!function(){function e(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(){return(t="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var o=n(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(arguments.length<3?e:i):a.value}}).apply(this,arguments)}function n(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,o,a,r,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,o=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw o}}return s}}(e,t)||s(e,t)||function(){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 o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,r=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){l=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(l)throw a}}}}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},s=r.iterator||"@@iterator",l=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var a=t&&t.prototype instanceof v?t:v,r=Object.create(a.prototype),s=new L(i||[]);return o(r,"_invoke",{value:S(e,n,s)}),r}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",m="executing",p="completed",g={};function v(){}function y(){}function b(){}var _={};u(_,s,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(D([])));C&&C!==n&&i.call(C,s)&&(_=C);var w=b.prototype=v.prototype=Object.create(_);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(o,a,r,s){var l=h(e[o],e,a);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,r,s)}),(function(e){n("throw",e,r,s)})):t.resolve(u).then((function(e){c.value=e,r(c)}),(function(e){return n("throw",e,r,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,o){n(e,i,t,o)}))}return a=a?a.then(o,o):o()}})}function S(t,n,i){var o=f;return function(a,r){if(o===m)throw Error("Generator is already running");if(o===p){if("throw"===a)throw r;return{value:e,done:!0}}for(i.method=a,i.arg=r;;){var s=i.delegate;if(s){var l=P(s,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===f)throw o=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=m;var c=h(t,n,i);if("normal"===c.type){if(o=i.done?p:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o=p,i.method="throw",i.arg=c.arg)}}}function P(t,n){var i=n.method,o=t.iterator[i];if(o===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var a=h(o,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var r=a.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function D(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return y.prototype=b,o(w,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},x(M.prototype),u(M.prototype,l,(function(){return this})),t.AsyncIterator=M,t.async=function(e,n,i,o,a){void 0===a&&(a=Promise);var r=new M(d(e,n,i,o),a);return t.isGeneratorFunction(n)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},x(w),u(w,c,"Generator"),u(w,s,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=D,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(i,o){return s.type="throw",s.arg=t,n.next=i,o&&(n.method="next",n.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],s=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(l&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(l){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var r=a?a.completion:{};return r.type=e,r.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(r)},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),g},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),O(n),g}},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 o=i.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:D(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function r(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){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 s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.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)?l(e,t):void 0}}function l(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 c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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,h(i.key),i)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e){var t=function(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)}(e,"string");return"symbol"==typeof t?t:t+""}function f(e,t,n){return t=_(t),function(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 m(e)}(e,y()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(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&&b(e,t)}function g(e){var t="function"==typeof Map?new Map:void 0;return(g=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(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 v(e,arguments,_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),b(n,e)})(e)}function v(e,t,n){if(y())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var o=new(e.bind.apply(e,i));return n&&b(o,n.prototype),o}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e){return(_=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],o=/^(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:o,monthsShortRegex:o,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"))},"+z1p":function(n,s,l){var u,h;u=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(h=u.en=u.en||{}).dictionary=Object.assign(h.dictionary||{},{"%0 of %1":"%0 of %1","Block quote":"Block quote",Bold:"Bold","Bulleted List":"Bulleted List",Cancel:"Cancel","Cannot upload file:":"Cannot upload file:","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row",Downloadable:"Downloadable","Dropdown toolbar":"Dropdown toolbar","Edit link":"Edit link","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Full size image":"Full size image","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6","Image toolbar":"Image toolbar","image widget":"image widget","Increase indent":"Increase indent","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Italic:"Italic","Left aligned image":"Left aligned image",Link:"Link","Link URL":"Link URL","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","Numbered List":"Numbered List","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Redo:"Redo","Rich Text Editor":"Rich Text Editor","Rich Text Editor, %0":"Rich Text Editor, %0","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Widget toolbar":"Widget toolbar"}),window,n.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,(function(t){return e[t]}).bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=98)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}));var i=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,["".concat(e).concat(i?" "+JSON.stringify(i):"").concat(s(e))])).name="CKEditorError",o.context=n,o.data=i,o}return p(t,e),d(t,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,n){if(e.is&&e.is("CKEditorError"))throw e;var i=new t(e.message,n);throw i.stack=e.stack,i}}])}(g(Error));function o(e,t){var n;(n=console).warn.apply(n,r(l(e,t)))}function a(e,t){var n;(n=console).error.apply(n,r(l(e,t)))}function s(e){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-"+e}function l(e,t){var n=s(e);return t?[e,t,n]:[e,n]}},function(e,t,n){"use strict";var i,o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function r(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},i=[],o=0;o<e.length;o++){var s=e[o],l=t.base?s[0]+t.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=r(u),h={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(a[d].references++,a[d].updater(h)):a.push({identifier:u,updater:p(h,t),references:1}),i.push(u)}return i}function l(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var a=n.nc;a&&(i.nonce=a)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var r=o(e.insert||"head");if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}return t}var c,u=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function d(e,t,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=u(t,o);else{var a=document.createTextNode(o),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(a,r[t]):e.appendChild(a)}}function h(e,t,n){var i=n.css,o=n.media,a=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var f=null,m=0;function p(e,t){var n,i,o;if(t.singleton){var a=m++;n=f||(f=l(t)),i=d.bind(null,n,a,!1),o=d.bind(null,n,a,!0)}else n=l(t),i=h.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var o=r(n[i]);a[o].references--}for(var l=s(e,t),c=0;c<n.length;c++){var u=r(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=l}}}},,function(e,t,n){"use strict";var i=n(8),o="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||o||Function("return this")();t.a=a},function(e,t,n){"use strict";(function(e){var i=n(3),o=n(13),a=s&&!s.nodeType&&s,r=a&&"object"==typeof e&&e&&!e.nodeType&&e,l=r&&r.exports===a?i.a.Buffer:void 0;t.a=(l?l.isBuffer:void 0)||o.a}).call(this,n(10)(e))},function(e,t,n){"use strict";(function(e){var i=n(8),o=s&&!s.nodeType&&s,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,r=a&&a.exports===o&&i.a.process,l=function(){try{return a&&a.require&&a.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();t.a=l}).call(this,n(10)(e))},function(e,t,n){"use strict";(function(e){var t=n(0),i="object"==typeof window?window:e;if(i.CKEDITOR_VERSION)throw new t.a("ckeditor-duplicated-modules",null);i.CKEDITOR_VERSION="24.0.0"}).call(this,n(11))},function(e,t,n){var i=n(1),o=n(60);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t,n){"use strict";(function(e){t.a="object"==typeof e&&e&&e.Object===Object&&e}).call(this,n(11))},function(e,t,n){"use strict";(function(e){var i=n(3),o=s&&!s.nodeType&&s,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,r=a&&a.exports===o?i.a.Buffer:void 0,l=r?r.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,i=l?l(n):new e.constructor(n);return e.copy(i),i}}).call(this,n(10)(e))},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}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(1),o=n(73);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){var i=n(1),o=n(15);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var i=n(1),o=n(17);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var i=n(1),o=n(19);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var i=n(1),o=n(21);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var i=n(1),o=n(23);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var i=n(1),o=n(25);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var i=n(1),o=n(27);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var i=n(1),o=n(29);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_se,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_sw{right:50%;left:auto}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{right:auto;left:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{right:auto;left:0;transform:translateX(50%)}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:transparent;border-bottom-color:transparent;border-right-color:var(--ck-color-tooltip-background);border-top-color:transparent;border-left-width:0;border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}.ck.ck-tooltip.ck-tooltip_w{right:calc(100% + var(--ck-tooltip-arrow-size));left:auto;top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1);border-left-color:var(--ck-color-tooltip-background);border-bottom-color:transparent;border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:0;border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var i=n(1),o=n(31);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(var(--ck-spacing-small)*-1);margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var i=n(1),o=n(33);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var i=n(1),o=n(35);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*0.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var(--ck-switch-button-translation)*-1))}"},function(e,t,n){var i=n(1),o=n(37);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown .ck-dropdown__panel{width:max-content;max-width:var(--ck-toolbar-dropdown-max-width)}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var i=n(1),o=n(39);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var i=n(1),o=n(41);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var i=n(1),o=n(43);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var i=n(1),o=n(45);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content blockquote{overflow:hidden;padding-right:1.5em;padding-left:1.5em;margin-left:0;margin-right:0;font-style:italic;border-left:5px solid #ccc}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}"},function(e,t,n){var i=n(1),o=n(47);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border);filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);bottom:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}'},function(e,t,n){var i=n(1),o=n(49);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var i=n(1),o=n(51);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(var(--ck-widget-outline-thickness)*-0.5);left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-0.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(e,t,n){var i=n(1),o=n(53);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var i=n(1),o=n(55);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{pointer-events:none;transform-origin:0 0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);background:var(--ck-color-labeled-field-label-background);padding:0 calc(var(--ck-font-size-tiny)*0.5);line-height:normal;font-weight:400;text-overflow:ellipsis;overflow:hidden;max-width:100%;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-spacing-medium),calc(var(--ck-font-size-base)*0.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-spacing-medium)*-1),calc(var(--ck-font-size-base)*0.6)) scale(1)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));background:transparent;padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}"},function(e,t,n){var i=n(1),o=n(57);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var i=n(1),o=n(59);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}"},function(e,t){e.exports='.ck-vertical-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{content:"";width:0;position:absolute;right:-1px;top:var(--ck-spacing-small);bottom:var(--ck-spacing-small);z-index:1}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-text-width)*0.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-large);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}'},function(e,t,n){var i=n(1),o=n(62);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var i=n(1),o=n(64);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var i=n(1),o=n(66);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(e,t,n){var i=n(1),o=n(68);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var i=n(1),o=n(70);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var i=n(1),o=n(72);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var i=n(1),o=n(75);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(e,t,n){var i=n(1),o=n(77);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(e,t,n){var i=n(1),o=n(79);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var i=n(1),o=n(81);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}"},function(e,t,n){var i=n(1),o=n(83);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(var(--ck-spacing-standard)*3);background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var i=n(1),o=n(85);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}"},function(e,t,n){var i=n(1),o=n(87);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(e,t,n){var i=n(1),o=n(89);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var i=n(1),o=n(91);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(e,t,n){var i=n(1),o=n(93);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var i=n(1),o=n(95);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var i=n(1),o=n(97);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]),i(o,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=o.locals||{}},function(e,t){e.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(n,s,l){"use strict";var u=a().mark(Lr),h=a().mark(Dr),g=a().mark(dc);l.r(s),l.d(s,"default",(function(){return fg}));var y=l(3),b=y.a.Symbol,k=Object.prototype,C=k.hasOwnProperty,w=k.toString,x=b?b.toStringTag:void 0,M=Object.prototype.toString,S=b?b.toStringTag:void 0,P=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?function(e){var t=C.call(e,x),n=e[x];try{e[x]=void 0;var i=!0}catch(e){}var o=w.call(e);return i&&(t?e[x]=n:delete e[x]),o}(e):function(e){return M.call(e)}(e)},T=function(e,t){return function(n){return e(t(n))}},O=T(Object.getPrototypeOf,Object),L=function(e){return null!=e&&"object"==typeof e},D=Function.prototype.toString,I=Object.prototype.hasOwnProperty,F=D.call(Object),A=function(e){if(!L(e)||"[object Object]"!=P(e))return!1;var t=O(e);if(null===t)return!0;var n=I.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==F},E=function(e,t){return e===t||e!=e&&t!=t},B=function(e,t){for(var n=e.length;n--;)if(E(e[n][0],t))return n;return-1},N=Array.prototype.splice;function R(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])}}R.prototype.clear=function(){this.__data__=[],this.size=0},R.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():N.call(t,n,1),--this.size,0))},R.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},R.prototype.has=function(e){return B(this.__data__,e)>-1},R.prototype.set=function(e,t){var n=this.__data__,i=B(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var j,z=R,V=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},H=function(e){if(!V(e))return!1;var t=P(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=y.a["__core-js_shared__"],q=(j=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",U=Function.prototype.toString,W=function(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""},J=/^\[object .+?Constructor\]$/,G=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!V(e)||function(e){return!!q&&q in e}(e))&&(H(e)?G:J).test(W(e))}(n)?n:void 0},Q=$(y.a,"Map"),K=$(Object,"create"),Z=Object.prototype.hasOwnProperty,X=Object.prototype.hasOwnProperty;function ee(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])}}ee.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},ee.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ee.prototype.get=function(e){var t=this.__data__;if(K){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Z.call(t,e)?t[e]:void 0},ee.prototype.has=function(e){var t=this.__data__;return K?void 0!==t[e]:X.call(t,e)},ee.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=K&&void 0===t?"__lodash_hash_undefined__":t,this};var te=ee,ne=function(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function ie(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])}}ie.prototype.clear=function(){this.size=0,this.__data__={hash:new te,map:new(Q||z),string:new te}},ie.prototype.delete=function(e){var t=ne(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ne(this,e).get(e)},ie.prototype.has=function(e){return ne(this,e).has(e)},ie.prototype.set=function(e,t){var n=ne(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var oe=ie;function ae(e){var t=this.__data__=new z(e);this.size=t.size}ae.prototype.clear=function(){this.__data__=new z,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof z){var i=n.__data__;if(!Q||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new oe(i)}return n.set(e,t),this.size=n.size,this};var re=ae,se=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),le=function(e,t,n){"__proto__"==t&&se?se(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ce=Object.prototype.hasOwnProperty,ue=function(e,t,n){var i=e[t];ce.call(e,t)&&E(i,n)&&(void 0!==n||t in e)||le(e,t,n)},de=function(e,t,n,i){var o=!n;n||(n={});for(var a=-1,r=t.length;++a<r;){var s=t[a],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?le(n,s,l):ue(n,s,l)}return n},he=function(e){return L(e)&&"[object Arguments]"==P(e)},fe=Object.prototype,me=fe.hasOwnProperty,pe=fe.propertyIsEnumerable,ge=he(function(){return arguments}())?he:function(e){return L(e)&&me.call(e,"callee")&&!pe.call(e,"callee")},ve=Array.isArray,ye=l(4),be=/^(?:0|[1-9]\d*)$/,_e=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&be.test(e))&&e>-1&&e%1==0&&e<t},ke=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;var we=function(e){return function(t){return e(t)}},xe=l(5),Me=xe.a&&xe.a.isTypedArray,Se=Me?we(Me):function(e){return L(e)&&ke(e.length)&&!!Ce[P(e)]},Pe=Object.prototype.hasOwnProperty,Te=function(e,t){var n=ve(e),i=!n&&ge(e),o=!n&&!i&&Object(ye.a)(e),a=!n&&!i&&!o&&Se(e),r=n||i||o||a,s=r?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=s.length;for(var c in e)!t&&!Pe.call(e,c)||r&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,l))||s.push(c);return s},Oe=Object.prototype,Le=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oe)},De=T(Object.keys,Object),Ie=Object.prototype.hasOwnProperty,Fe=function(e){return null!=e&&ke(e.length)&&!H(e)},Ae=function(e){return Fe(e)?Te(e):function(e){if(!Le(e))return De(e);var t=[];for(var n in Object(e))Ie.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Ee=Object.prototype.hasOwnProperty,Be=function(e){return Fe(e)?Te(e,!0):function(e){if(!V(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Le(e),n=[];for(var i in e)("constructor"!=i||!t&&Ee.call(e,i))&&n.push(i);return n}(e)},Ne=l(9),Re=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},je=function(){return[]},ze=Object.prototype.propertyIsEnumerable,Ve=Object.getOwnPropertySymbols,He=Ve?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,o=0,a=[];++n<i;){var r=e[n];t(r)&&(a[o++]=r)}return a}(Ve(e),(function(t){return ze.call(e,t)})))}:je,Ye=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e},qe=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ye(t,He(e)),e=O(e);return t}:je,Ue=function(e,t,n){var i=t(e);return ve(e)?i:Ye(i,n(e))},We=function(e){return Ue(e,Ae,He)},Je=function(e){return Ue(e,Be,qe)},Ge=$(y.a,"DataView"),$e=$(y.a,"Promise"),Qe=$(y.a,"Set"),Ke=$(y.a,"WeakMap"),Ze=W(Ge),Xe=W(Q),et=W($e),tt=W(Qe),nt=W(Ke),it=P;(Ge&&"[object DataView]"!=it(new Ge(new ArrayBuffer(1)))||Q&&"[object Map]"!=it(new Q)||$e&&"[object Promise]"!=it($e.resolve())||Qe&&"[object Set]"!=it(new Qe)||Ke&&"[object WeakMap]"!=it(new Ke))&&(it=function(e){var t=P(e),n="[object Object]"==t?e.constructor:void 0,i=n?W(n):"";if(i)switch(i){case Ze:return"[object DataView]";case Xe:return"[object Map]";case et:return"[object Promise]";case tt:return"[object Set]";case nt:return"[object WeakMap]"}return t});var ot=it,at=Object.prototype.hasOwnProperty,rt=y.a.Uint8Array,st=function(e){var t=new e.constructor(e.byteLength);return new rt(t).set(new rt(e)),t},lt=/\w*$/,ct=b?b.prototype:void 0,ut=ct?ct.valueOf:void 0,dt=function(e,t){var n=t?st(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},ht=Object.create,ft=function(){function e(){}return function(t){if(!V(t))return{};if(ht)return ht(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),mt=function(e){return"function"!=typeof e.constructor||Le(e)?{}:ft(O(e))},pt=xe.a&&xe.a.isMap,gt=pt?we(pt):function(e){return L(e)&&"[object Map]"==ot(e)},vt=xe.a&&xe.a.isSet,yt=vt?we(vt):function(e){return L(e)&&"[object Set]"==ot(e)},bt={};bt["[object Arguments]"]=bt["[object Array]"]=bt["[object ArrayBuffer]"]=bt["[object DataView]"]=bt["[object Boolean]"]=bt["[object Date]"]=bt["[object Float32Array]"]=bt["[object Float64Array]"]=bt["[object Int8Array]"]=bt["[object Int16Array]"]=bt["[object Int32Array]"]=bt["[object Map]"]=bt["[object Number]"]=bt["[object Object]"]=bt["[object RegExp]"]=bt["[object Set]"]=bt["[object String]"]=bt["[object Symbol]"]=bt["[object Uint8Array]"]=bt["[object Uint8ClampedArray]"]=bt["[object Uint16Array]"]=bt["[object Uint32Array]"]=!0,bt["[object Error]"]=bt["[object Function]"]=bt["[object WeakMap]"]=!1;var _t=function e(t,n,i,o,a,r){var s,l=1&n,c=2&n,u=4&n;if(i&&(s=a?i(t,o,a,r):i(t)),void 0!==s)return s;if(!V(t))return t;var d=ve(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&at.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return Re(t,s)}else{var h=ot(t),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(ye.a)(t))return Object(Ne.a)(t,l);if("[object Object]"==h||"[object Arguments]"==h||f&&!a){if(s=c||f?{}:mt(t),!l)return c?function(e,t){return de(e,qe(e),t)}(t,function(e,t){return e&&de(t,Be(t),e)}(s,t)):function(e,t){return de(e,He(e),t)}(t,function(e,t){return e&&de(t,Ae(t),e)}(s,t))}else{if(!bt[h])return a?t:{};s=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return st(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?st(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return dt(e,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,lt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new i;case"[object Symbol]":return function(e){return ut?Object(ut.call(e)):{}}(e)}}(t,h,l)}}r||(r=new re);var m=r.get(t);if(m)return m;r.set(t,s),yt(t)?t.forEach((function(o){s.add(e(o,n,i,o,t,r))})):gt(t)&&t.forEach((function(o,a){s.set(a,e(o,n,i,a,t,r))}));var p=u?c?Je:We:c?keysIn:Ae,g=d?void 0:p(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(g||t,(function(o,a){g&&(o=t[a=o]),ue(s,a,e(o,n,i,a,t,r))})),s},kt=function(e,t){return _t(e,5,t="function"==typeof t?t:void 0)},Ct=function(e){return L(e)&&1===e.nodeType&&!A(e)},wt=function(){return d((function e(t,n){c(this,e),this._config={},n&&this.define(xt(n)),t&&this._setObjectToTarget(this._config,t)}),[{key:"set",value:function(e,t){this._setToTarget(this._config,e,t)}},{key:"define",value:function(e,t){this._setToTarget(this._config,e,t,!0)}},{key:"get",value:function(e){return this._getFromSource(this._config,e)}},{key:"names",value:a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=Object.keys(this._config);case 1:if(!(t<n.length)){e.next=8;break}return i=n[t],e.next=5,i;case 5:t++,e.next=1;break;case 8:case"end":return e.stop()}}),e,this)}))},{key:"_setToTarget",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(A(t))this._setObjectToTarget(e,t,i);else{var a=t.split(".");t=a.pop();var r,s=o(a);try{for(s.s();!(r=s.n()).done;){var l=r.value;A(e[l])||(e[l]={}),e=e[l]}}catch(c){s.e(c)}finally{s.f()}if(A(n))return A(e[t])||(e[t]={}),void this._setObjectToTarget(e=e[t],n,i);i&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var i,a=o(n);try{for(a.s();!(i=a.n()).done;){var r=i.value;if(!A(e[r])){e=null;break}e=e[r]}}catch(s){a.e(s)}finally{a.f()}return e?xt(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var i=this;Object.keys(t).forEach((function(o){i._setToTarget(e,o,t[o],n)}))}}])}();function xt(e){return kt(e,Mt)}function Mt(e){return Ct(e)?e:void 0}var St=d((function e(t,n){c(this,e),this.source=t,this.name=n,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}})),Pt=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function Tt(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+Pt[e>>0&255]+Pt[e>>8&255]+Pt[e>>16&255]+Pt[e>>24&255]+Pt[t>>0&255]+Pt[t>>8&255]+Pt[t>>16&255]+Pt[t>>24&255]+Pt[n>>0&255]+Pt[n>>8&255]+Pt[n>>16&255]+Pt[n>>24&255]+Pt[i>>0&255]+Pt[i>>8&255]+Pt[i>>16&255]+Pt[i>>24&255]}var Ot={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Lt=(l(6),l(0)),Dt=Symbol("listeningTo"),It=Symbol("emitterId"),Ft={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var i=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];i||(i=!0,e.off(),t.call.apply(t,[this,e].concat(o)))}),n)},off:function(e,t){this.stopListening(this,e,t)},listenTo:function(e,t,n){var i,a,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[Dt]||(this[Dt]={});var s=this[Dt];Et(e)||At(e);var l=Et(e);(i=s[l])||(i=s[l]={emitter:e,callbacks:{}}),(a=i.callbacks[t])||(a=i.callbacks[t]=[]),a.push(n),function(e,t){var n=Bt(e);if(!n[t]){for(var i=t,a=null,r=[];""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},r.push(n[i]),a&&n[i].childEvents.push(a),a=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){var s,l=o(r);try{for(l.s();!(s=l.n()).done;){s.value.callbacks=n[i].callbacks.slice()}}catch(c){l.e(c)}finally{l.f()}n[i].childEvents.push(a)}}}(e,t);var c,u=Nt(e,t),d=Ot.get(r.priority),h={callback:n,priority:d},f=o(u);try{for(f.s();!(c=f.n()).done;){for(var m=c.value,p=!1,g=0;g<m.length;g++)if(m[g].priority<d){m.splice(g,0,h),p=!0;break}p||m.push(h)}}catch(v){f.e(v)}finally{f.f()}},stopListening:function(e,t,n){var i=this[Dt],o=e&&Et(e),a=i&&o&&i[o],r=a&&t&&a.callbacks[t];if(!(!i||e&&!a||t&&!r))if(n)jt(e,t,n),-1!==r.indexOf(n)&&(1===r.length?delete a.callbacks[t]:jt(e,t,n));else if(r){for(;n=r.pop();)jt(e,t,n);delete a.callbacks[t]}else if(a){for(t in a.callbacks)this.stopListening(e,t);delete i[o]}else{for(o in i)this.stopListening(i[o].emitter);delete this[Dt]}},fire:function(e){try{for(var t=e instanceof St?e:new St(this,e),n=t.name,i=function e(t,n){var i;return t._events&&(i=t._events[n])&&i.callbacks.length?i.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,n),o=arguments.length,a=new Array(o>1?o-1:0),r=1;r<o;r++)a[r-1]=arguments[r];if(t.path.push(this),i){var s=[t].concat(a);i=Array.from(i);for(var l=0;l<i.length&&(i[l].callback.apply(this,s),t.off.called&&(delete t.off.called,jt(this,n,i[l].callback)),!t.stop.called);l++);}if(this._delegations){var c=this._delegations.get(n),u=this._delegations.get("*");c&&Rt(c,t,a),u&&Rt(u,t,a)}return t.return}catch(e){Lt.a.rethrowUnexpectedError(e,this)}},delegate:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return{to:function(t,i){e._delegations||(e._delegations=new Map),n.forEach((function(n){var o=e._delegations.get(n);o?o.set(t,i):e._delegations.set(n,new Map([[t,i]]))}))}}},stopDelegating:function(e,t){if(this._delegations)if(e)if(t){var n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()}};function At(e,t){e[It]||(e[It]=t||Tt())}function Et(e){return e[It]}function Bt(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function Nt(e,t){var n=Bt(e)[t];if(!n)return[];for(var i=[n.callbacks],o=0;o<n.childEvents.length;o++){var a=Nt(e,n.childEvents[o]);i=i.concat(a)}return i}function Rt(e,t,n){var a,s=o(e);try{for(s.s();!(a=s.n()).done;){var l=i(a.value,2),c=l[0],u=l[1];u?"function"==typeof u&&(u=u(t.name)):u=t.name;var d=new St(t.source,u);d.path=r(t.path),c.fire.apply(c,[d].concat(r(n)))}}catch(h){s.e(h)}finally{s.f()}}function jt(e,t,n){var i,a=o(Nt(e,t));try{for(a.s();!(i=a.n()).done;)for(var r=i.value,s=0;s<r.length;s++)r[s].callback==n&&(r.splice(s,1),s--)}catch(l){a.e(l)}finally{a.f()}}function zt(e){return!(!e||!e[Symbol.iterator])}function Vt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];n.forEach((function(t){Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((function(n){if(!(n in e.prototype)){var i=Object.getOwnPropertyDescriptor(t,n);i.enumerable=!1,Object.defineProperty(e.prototype,n,i)}}))}))}var Ht=function(){return d((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e);var i=zt(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i){var a,r=o(t);try{for(r.s();!(a=r.n()).done;){var s=a.value;this._items.push(s),this._itemMap.set(this._getItemIdBeforeAdding(s),s)}}catch(l){r.e(l)}finally{r.f()}}}),[{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}},{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new Lt.a("collection-add-item-invalid-index",this);for(var n=0;n<e.length;n++){var i=e[n],o=this._getItemIdBeforeAdding(i),a=t+n;this._items.splice(a,0,i),this._itemMap.set(o,i),this.fire("add",i,a)}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new Lt.a("collection-get-invalid-arg",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){return this._itemMap.has("string"==typeof e?e:e[this._idProperty])}},{key:"getIndex",value:function(e){var t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}},{key:"remove",value:function(e){var t=i(this._remove(e),2),n=t[0],o=t[1];return this.fire("change",{added:[],removed:[n],index:o}),n}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new Lt.a("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){t._setUpBindToBinding("function"==typeof e?function(t){return e(t)}:function(t){return t[e]})}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,i=this._bindToCollection,a=function(t,a,r){var s=i._bindToCollection==n,l=i._bindToInternalToExternalMap.get(a);if(s&&l)n._bindToExternalToInternalMap.set(a,l),n._bindToInternalToExternalMap.set(l,a);else{var c=e(a);if(!c)return void n._skippedIndexesFromExternal.push(r);var u,d=r,h=o(n._skippedIndexesFromExternal);try{for(h.s();!(u=h.n()).done;){r>u.value&&d--}}catch(g){h.e(g)}finally{h.f()}var f,m=o(i._skippedIndexesFromExternal);try{for(m.s();!(f=m.n()).done;){d>=f.value&&d++}}catch(g){m.e(g)}finally{m.f()}n._bindToExternalToInternalMap.set(a,c),n._bindToInternalToExternalMap.set(c,a),n.add(c,d);for(var p=0;p<i._skippedIndexesFromExternal.length;p++)d<=i._skippedIndexesFromExternal[p]&&i._skippedIndexesFromExternal[p]++}},r=o(i);try{for(r.s();!(t=r.n()).done;){var s=t.value;a(0,s,i.getIndex(s))}}catch(l){r.e(l)}finally{r.f()}this.listenTo(i,"add",a),this.listenTo(i,"remove",(function(e,t,i){var o=n._bindToExternalToInternalMap.get(t);o&&n.remove(o),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(e,t){return i<t&&e.push(t-1),i>t&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new Lt.a("collection-add-invalid-id",this);if(this.get(t))throw new Lt.a("collection-add-item-already-exists",this)}else e[n]=t=Tt();return t}},{key:"_remove",value:function(e){var t,n,i,o=!1,a=this._idProperty;if("string"==typeof e?(n=e,o=!(i=this._itemMap.get(n)),i&&(t=this._items.indexOf(i))):"number"==typeof e?(t=e,o=!(i=this._items[t]),i&&(n=i[a])):(n=(i=e)[a],o=-1==(t=this._items.indexOf(i))||!this._itemMap.get(n)),o)throw new Lt.a("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);var r=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(r),this.fire("remove",i,t),[i,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}}])}();Vt(Ht,Ft);var Yt=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];c(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var r,s=o(n);try{for(s.s();!(r=s.n()).done;){var l=r.value;l.pluginName&&this._availablePlugins.set(l.pluginName,l)}}catch(p){s.e(p)}finally{s.f()}this._contextPlugins=new Map;var u,d=o(a);try{for(d.s();!(u=d.n()).done;){var h=i(u.value,2),f=h[0],m=h[1];this._contextPlugins.set(f,m),this._contextPlugins.set(m,f),f.pluginName&&this._availablePlugins.set(f.pluginName,f)}}catch(p){d.e(p)}finally{d.f()}}),[{key:Symbol.iterator,value:a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(i=n.value,e.t0="function"==typeof i[0],!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new Lt.a("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,i=this._context,a=new Set,r=[],s=f(e),l=f(t),c=function(e){var t,n=[],i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;h(a)||n.push(a)}}catch(r){i.e(r)}finally{i.f()}return n.length?n:null}(e);if(c){var u="plugincollection-plugin-not-found";return Object(Lt.b)(u,{plugins:c}),Promise.reject(new Lt.a(u,i,{plugins:c}))}return Promise.all(s.map((function e(o){if(!l.includes(o)&&!n._plugins.has(o)&&!a.has(o))return function(o){return new Promise((function(s){a.add(o),o.requires&&o.requires.forEach((function(n){var a=h(n);if(o.isContextPlugin&&!a.isContextPlugin)throw new Lt.a("plugincollection-context-required",null,{plugin:a.name,requiredBy:o.name});if(t.includes(a))throw new Lt.a("plugincollection-required",i,{plugin:a.name,requiredBy:o.name});e(a)}));var l=n._contextPlugins.get(o)||new o(i);n._add(o,l),r.push(l),s()}))}(o).catch((function(e){throw Object(Lt.b)("plugincollection-load",{plugin:o}),e}))}))).then((function(){return d(r,"init")})).then((function(){return d(r,"afterInit")})).then((function(){return r}));function d(e,t){return e.reduce((function(e,i){return i[t]?n._contextPlugins.has(i)?e:e.then(i[t].bind(i)):e}),Promise.resolve())}function h(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function f(e){return e.map((function(e){return h(e)})).filter((function(e){return!!e}))}}},{key:"destroy",value:function(){var e,t=[],n=o(this);try{for(n.s();!(e=n.n()).done;){var a=i(e.value,2)[1];"function"!=typeof a.destroy||this._contextPlugins.has(a)||t.push(a.destroy())}}catch(r){n.e(r)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new Lt.a("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}])}();function qt(e){return Array.isArray(e)?e:[e]}Vt(Yt,Ft),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var Ut=["ar","fa","he","ku","ug"],Wt=function(){return d((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Jt(this.uiLanguage),this.contentLanguageDirection=Jt(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}),[{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}},{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t=qt(t),"string"==typeof e&&(e={string:e}),function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n<t.length?t[n]:e}))}(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new Lt.a("translation-service-quantity-not-a-number",null,{quantity:n});var i=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===i&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var o=t.id||t.string;if(0===i||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,o))return 1!==n?t.plural:t.string;var a=window.CKEDITOR_TRANSLATIONS[e].dictionary,r=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof a[o])return a[o];var s=Number(r(n));return a[o][s]}(this.uiLanguage,e,e.plural?t[0]:1),t)}}])}();function Jt(e){return Ut.includes(e)?"rtl":"ltr"}var Gt=function(){return d((function e(t){c(this,e),this.config=new wt(t,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new Yt(this,n);var i=this.config.get("language")||{};this.locale=new Wt({uiLanguage:"string"==typeof i?i:i.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Ht,this._contextOwner=null}),[{key:"initPlugins",value:function(){var e,t=this.config.get("plugins")||[],n=o(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("function"!=typeof i)throw new Lt.a("context-initplugins-constructor-only",null,{Plugin:i});if(!0!==i.isContextPlugin)throw new Lt.a("context-initplugins-invalid-plugin",null,{Plugin:i})}}catch(a){n.e(a)}finally{n.f()}return this.plugins.init(t)}},{key:"destroy",value:function(){var e=this;return Promise.all(Array.from(this.editors,(function(e){return e.destroy()}))).then((function(){return e.plugins.destroy()}))}},{key:"_addEditor",value:function(e,t){if(this._contextOwner)throw new Lt.a("context-addeditor-private-context");this.editors.add(e),t&&(this._contextOwner=e)}},{key:"_removeEditor",value:function(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var e,t={},n=o(this.config.names());try{for(n.s();!(e=n.n()).done;){var i=e.value;["plugins","removePlugins","extraPlugins"].includes(i)||(t[i]=this.config.get(i))}}catch(a){n.e(a)}finally{n.f()}return t}}],[{key:"create",value:function(e){var t=this;return new Promise((function(n){var i=new t(e);n(i.initPlugins().then((function(){return i})))}))}}])}();function $t(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}var Qt=function(e){return _t(e,4)},Kt=function(){return d((function e(t){c(this,e),this.document=t,this.parent=null}),[{key:"index",get:function(){var e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new Lt.a("view-node-not-found-in-parent",this);return e}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}},{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.index),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),i=e.getAncestors(t),o=0;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),i=$t(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}},{key:"toJSON",value:function(){var e=Qt(this);return delete e.parent,e}},{key:"is",value:function(e){return"node"===e||"view:node"===e}}])}();Vt(Kt,Ft);var Zt=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e]))._textData=n,i}return p(t,e),d(t,[{key:"is",value:function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(e){this._fireChange("text",this),this._textData=e}},{key:"isSimilar",value:function(e){return e instanceof t&&(this===e||this.data===e.data)}},{key:"_clone",value:function(){return new t(this.document,this.data)}}])}(Kt),Xt=function(){return d((function e(t,n,i){if(c(this,e),this.textNode=t,n<0||n>t.data.length)throw new Lt.a("view-textproxy-wrong-offsetintext",this);if(i<0||n+i>t.data.length)throw new Lt.a("view-textproxy-wrong-length",this);this.data=t.data.substring(n,n+i),this.offsetInText=n}),[{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}},{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}])}();function en(e){return zt(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var tn=function(){return d((function e(){c(this,e),this._patterns=[],this.add.apply(this,arguments)}),[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,o=t;i<o.length;i++){var a=o[i];("string"==typeof a||a instanceof RegExp)&&(a={name:a}),a.classes&&("string"==typeof a.classes||a.classes instanceof RegExp)&&(a.classes=[a.classes]),this._patterns.push(a)}}},{key:"match",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,a=t;i<a.length;i++){var r,s=a[i],l=o(this._patterns);try{for(l.s();!(r=l.n()).done;){var c=r.value,u=nn(s,c);if(u)return{element:s,pattern:c,match:u}}}catch(d){l.e(d)}finally{l.f()}}return null}},{key:"matchAll",value:function(){for(var e=[],t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var a=0,r=n;a<r.length;a++){var s,l=r[a],c=o(this._patterns);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=nn(l,u);d&&e.push({element:l,pattern:u,match:d})}}catch(h){c.e(h)}finally{c.f()}}return e.length>0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}])}();function nn(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var i in e){var o=e[i];if(!t.hasAttribute(i))return null;var a=t.getAttribute(i);if(!0===o)n.push(i);else if(o instanceof RegExp){if(!o.test(a))return null;n.push(i)}else{if(a!==o)return null;n.push(i)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,i=[],a=o(e);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r instanceof RegExp){var s,l=o(t.getClassNames());try{for(l.s();!(s=l.n()).done;){var c=s.value;r.test(c)&&i.push(c)}}catch(u){l.e(u)}finally{l.f()}if(0===i.length)return null}else{if(!t.hasClass(r))return null;i.push(r)}}}catch(u){a.e(u)}finally{a.f()}return i}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var i in e){var o=e[i];if(!t.hasStyle(i))return null;var a=t.getStyle(i);if(o instanceof RegExp){if(!o.test(a))return null;n.push(i)}else{if(a!==o)return null;n.push(i)}}return n}(t.styles,e),!n.styles))&&n}var on=function(e){return"symbol"==typeof e||L(e)&&"[object Symbol]"==P(e)},an=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rn=/^\w*$/;function sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,o=t?t.apply(this,i):i[0],a=n.cache;if(a.has(o))return a.get(o);var r=e.apply(this,i);return n.cache=a.set(o,r)||a,r};return n.cache=new(sn.Cache||oe),n}sn.Cache=oe;var ln=sn,cn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,un=/\\(\\)?/g,dn=function(e){var t=ln((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(cn,(function(e,n,i,o){t.push(i?o.replace(un,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}(),hn=b?b.prototype:void 0,fn=hn?hn.toString:void 0,mn=function(e){return null==e?"":function e(t){if("string"==typeof t)return t;if(ve(t))return function(e,t){for(var n=-1,i=null==e?0:e.length,o=Array(i);++n<i;)o[n]=t(e[n],n,e);return o}(t,e)+"";if(on(t))return fn?fn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}(e)},pn=function(e,t){return ve(e)?e:function(e,t){if(ve(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!on(e))||rn.test(e)||!an.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:dn(mn(e))},gn=function(e){if("string"==typeof e||on(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},vn=function(e,t){for(var n=0,i=(t=pn(t,e)).length;null!=e&&n<i;)e=e[gn(t[n++])];return n&&n==i?e:void 0},yn=function(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(o);++i<o;)a[i]=e[i+t];return a},bn=function(e,t,n){var i=null==e?void 0:vn(e,t);return void 0===i?n:i},_n=function(e,t,n){(void 0!==n&&!E(e[t],n)||void 0===n&&!(t in e))&&le(e,t,n)},kn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Cn=function(e){return e},wn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},xn=Math.max,Mn=function(e){return function(){return e}},Sn=Date.now,Pn=function(e){var t=0,n=0;return function(){var i=Sn(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(se?function(e,t){return se(e,"toString",{configurable:!0,enumerable:!1,value:Mn(t),writable:!0})}:Cn),Tn=function(e){return function(e,t){return Pn(function(e,t,n){return t=xn(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=xn(i.length-t,0),r=Array(a);++o<a;)r[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=n(r),wn(e,this,s)}}(e,void 0,Cn),e+"")}((function(t,n){var i=-1,o=n.length,a=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,r&&function(e,t,n){if(!V(n))return!1;var i=typeof t;return!!("number"==i?Fe(n)&&_e(t,n.length):"string"==i&&t in n)&&E(n[t],e)}(n[0],n[1],r)&&(a=o<3?void 0:a,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,a)}return t}))},On=Tn((function(e,t,n){!function e(t,n,i,o,a){t!==n&&function(e,t,n){for(var i=-1,o=Object(e),a=n(e),r=a.length;r--;){var s=a[++i];if(!1===t(o[s],s))break}}(n,(function(r,s){if(a||(a=new re),V(r))!function(e,t,n,i,o,a,r){var s=kn(e,n),l=kn(t,n),c=r.get(l);if(c)_n(e,n,c);else{var u=a?a(s,l,n+"",e,t,r):void 0,d=void 0===u;if(d){var h=ve(l),f=!h&&Object(ye.a)(l),m=!h&&!f&&Se(l);u=l,h||f||m?ve(s)?u=s:function(e){return L(e)&&Fe(e)}(s)?u=Re(s):f?(d=!1,u=Object(Ne.a)(l,!0)):m?(d=!1,u=dt(l,!0)):u=[]:A(l)||ge(l)?(u=s,ge(s)?u=function(e){return de(e,Be(e))}(s):V(s)&&!H(s)||(u=mt(l))):d=!1}d&&(r.set(l,u),o(u,l,i,a,r),r.delete(l)),_n(e,n,u)}}(t,n,s,i,e,o,a);else{var l=o?o(kn(t,s),r,s+"",t,n,a):void 0;void 0===l&&(l=r),_n(t,s,l)}}),Be)}(e,t,n)})),Ln=function(){return d((function e(t){c(this,e),this._styles={},this._styleProcessor=t}),[{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}},{key:"setTo",value:function(e){this.clear();for(var t=0,n=Array.from(function(e){var t=null,n=0,i=0,o=null,a=new Map;if(""===e)return a;";"!=e.charAt(e.length-1)&&(e+=";");for(var r=0;r<e.length;r++){var s=e.charAt(r);if(null===t)switch(s){case":":o||(o=e.substr(n,r-n),i=r+1);break;case'"':case"'":t=s;break;case";":var l=e.substr(i,r-i);o&&a.set(o.trim(),l.trim()),o=null,n=r+1}else s===t&&(t=null)}return a}(e).entries());t<n.length;t++){var o=i(n[t],2),a=o[0],r=o[1];this._styleProcessor.toNormalizedForm(a,r,this._styles)}}},{key:"has",value:function(e){if(this.isEmpty)return!1;var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return i(t,1)[0]===e}));return Array.isArray(t)}},{key:"set",value:function(e,t){if(V(e))for(var n=0,o=Object.entries(e);n<o.length;n++){var a=i(o[n],2),r=a[0],s=a[1];this._styleProcessor.toNormalizedForm(r,s,this._styles)}else this._styleProcessor.toNormalizedForm(e,t,this._styles)}},{key:"remove",value:function(e){var t=In(e);(function(e,t){null==e||function(e,t){null==(e=function(e,t){return t.length<2?e:vn(e,yn(t,0,-1))}(e,t=pn(t,e)))||delete e[gn(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]}(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}},{key:"getNormalized",value:function(e){return this._styleProcessor.getNormalized(e,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(e){return e.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(e){if(!this.isEmpty){if(this._styles[e]&&!V(this._styles[e]))return this._styles[e];var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return i(t,1)[0]===e}));return Array.isArray(t)?t[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(e){return i(e,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=0,n=Object.keys(this._styles);t<n.length;t++){var i=n[t];e.push.apply(e,r(this._styleProcessor.getReducedForm(i,this._styles)))}return e}},{key:"_cleanEmptyObjectsOnPath",value:function(e){var t=e.split(".");if(t.length>1){var n=t.splice(0,t.length-1).join("."),i=bn(this._styles,n);i&&!Array.from(Object.keys(i)).length&&this.remove(n)}}}])}(),Dn=function(){return d((function e(){c(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}),[{key:"toNormalizedForm",value:function(e,t,n){if(V(t))Fn(n,In(e),t);else if(this._normalizers.has(e)){var i=this._normalizers.get(e)(t);Fn(n,i.path,i.value)}else Fn(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return On({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return bn(t,n);var i=n(e,t);if(i)return i}return bn(t,In(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;this._mapStyleNames(a,[e])}}catch(r){i.e(r)}finally{i.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,r(t))}}])}();function In(e){return e.replace("-",".")}function Fn(e,t,n){var i=n;V(n)&&(i=On({},bn(e,t),n)),function(e,t,n){null==e||function(e,t,n,i){if(!V(e))return e;for(var o=-1,a=(t=pn(t,e)).length,r=a-1,s=e;null!=s&&++o<a;){var l=gn(t[o]),c=n;if(o!=r){var u=s[l];void 0===(c=void 0)&&(c=V(u)?u:_e(t[o+1])?[]:{})}ue(s,l,c),s=s[l]}}(e,t,n)}(e,t,i)}var An=function(e){function t(e,n,a,r){var s;if(c(this,t),(s=f(this,t,[e])).name=n,s._attrs=function(e){var t,n=o(e=en(e));try{for(n.s();!(t=n.n()).done;){var a=i(t.value,2),r=a[0],s=a[1];null===s?e.delete(r):"string"!=typeof s&&e.set(r,String(s))}}catch(l){n.e(l)}finally{n.f()}return e}(a),s._children=[],r&&s._insertChild(0,r),s._classes=new Set,s._attrs.has("class")){var l=s._attrs.get("class");En(s._classes,l),s._attrs.delete("class")}return s._styles=new Ln(s.document.stylesProcessor),s._attrs.has("style")&&(s._styles.setTo(s._attrs.get("style")),s._attrs.delete("style")),s._customProperties=new Map,m(s)}return p(t,e),d(t,[{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?r(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof t))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var n,a=o(this._attrs);try{for(a.s();!(n=a.n()).done;){var r=i(n.value,2),s=r[0],l=r[1];if(!e._attrs.has(s)||e._attrs.get(s)!==l)return!1}}catch(p){a.e(p)}finally{a.f()}var c,u=o(this._classes);try{for(u.s();!(c=u.n()).done;){var d=c.value;if(!e._classes.has(d))return!1}}catch(p){u.e(p)}finally{u.f()}var h,f=o(this._styles.getStyleNames());try{for(f.s();!(h=f.n()).done;){var m=h.value;if(!e._styles.has(m)||e._styles.getAsString(m)!==this._styles.getAsString(m))return!1}}catch(p){f.e(p)}finally{f.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,o=t;i<o.length;i++){var a=o[i];if(!this._classes.has(a))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(e){return this._styles.getAsString(e)}},{key:"getNormalizedStyle",value:function(e){return this._styles.getNormalized(e)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,o=t;i<o.length;i++){var a=o[i];if(!this._styles.has(a))return!1}return!0}},{key:"findAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=v(tn,t),o=this.parent;o;){if(i.match(o))return o;o=o.parent}return null}},{key:"getCustomProperty",value:function(e){return this._customProperties.get(e)}},{key:"getCustomProperties",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getIdentity",value:function(){var e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((function(e){return"".concat(e[0],'="').concat(e[1],'"')})).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,i=o(this.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;t.push(a._clone(e))}}catch(s){i.e(s)}finally{i.f()}}var r=new this.constructor(this.document,this.name,this._attrs,t);return r._classes=new Set(this._classes),r._styles.set(this._styles.getNormalized()),r._customProperties=new Map(this._customProperties),r.getFillerOffset=this.getFillerOffset,r}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,a=o(function(e,t){return"string"==typeof t?[new Zt(e,t)]:(zt(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Zt(e,t):t instanceof Xt?new Zt(e,t.data):t})))}(this.document,t));try{for(a.s();!(n=a.n()).done;){var r=n.value;null!==r.parent&&r._remove(),r.parent=this,r.document=this.document,this._children.splice(e,0,r),e++,i++}}catch(s){a.e(s)}finally{a.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_setAttribute",value:function(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?En(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}},{key:"_removeAttribute",value:function(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){this._fireChange("attributes",this);var t,n=o(qt(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._classes.add(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"_removeClass",value:function(e){this._fireChange("attributes",this);var t,n=o(qt(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._classes.delete(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){this._fireChange("attributes",this);var t,n=o(qt(e));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._styles.remove(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}}])}(Kt);function En(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var Bn=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n,i,o])).getFillerOffset=Nn,a}return p(t,e),d(t,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}])}(An);function Nn(){var e=r(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,i=o(e);try{for(i.s();!(n=i.n()).done;){if(!n.value.is("uiElement"))return null}}catch(a){i.e(a)}finally{i.f()}return this.childCount}var Rn=Tn((function(e,t){de(t,Be(t),e)})),jn=Symbol("observableProperties"),zn=Symbol("boundObservables"),Vn=Symbol("boundProperties"),Hn={set:function(e,t){var n=this;if(V(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{qn(this);var i=this[jn];if(e in this&&!i.has(e))throw new Lt.a("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return i.get(e)},set:function(t){var n=i.get(e),o=this.fire("set:"+e,e,t,n);void 0===o&&(o=t),n===o&&i.has(e)||(i.set(e,o),this.fire("change:"+e,e,o,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length||!Jn(n))throw new Lt.a("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new Lt.a("observable-bind-duplicate-properties",this);qn(this);var o=this[Vn];n.forEach((function(t){if(o.has(t))throw new Lt.a("observable-bind-rebind",e)}));var a=new Map;return n.forEach((function(e){var t={property:e,to:[]};o.set(e,t),a.set(e,t)})),{to:Un,toMany:Wn,_observable:this,_bindProperties:n,_to:[],_bindings:a}},unbind:function(){var e=this;if(this[jn]){for(var t=this[Vn],n=this[zn],i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(o.length){if(!Jn(o))throw new Lt.a("observable-unbind-wrong-properties",this);o.forEach((function(i){var o,a,r,s,l=t.get(i);l&&(l.to.forEach((function(t){o=t[0],a=t[1],r=n.get(o),(s=r[a]).delete(l),s.size||delete r[a],Object.keys(r).length||(n.delete(o),e.stopListening(o,"change"))})),t.delete(i))}))}else n.forEach((function(t,n){e.stopListening(n,"change")})),n.clear(),t.clear()}},decorate:function(e){var t=this,n=this[e];if(!n)throw new Lt.a("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:e});this.on(e,(function(e,i){e.return=n.apply(t,i)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.fire(e,n)}}};Rn(Hn,Ft);var Yn=Hn;function qn(e){e[jn]||(Object.defineProperty(e,jn,{value:new Map}),Object.defineProperty(e,zn,{value:new Map}),Object.defineProperty(e,Vn,{value:new Map}))}function Un(){var e,t=this,n=(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new Lt.a("observable-bind-to-parse-error",null);var i,o={to:[]};return"function"==typeof t[t.length-1]&&(o.callback=t.pop()),t.forEach((function(e){if("string"==typeof e)i.properties.push(e);else{if("object"!=typeof e)throw new Lt.a("observable-bind-to-parse-error",null);i={observable:e,properties:[]},o.to.push(i)}})),o}).apply(void 0,arguments),i=Array.from(this._bindings.keys()),o=i.length;if(!n.callback&&n.to.length>1)throw new Lt.a("observable-bind-to-no-callback",this);if(o>1&&n.callback)throw new Lt.a("observable-bind-to-extra-callback",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==o)throw new Lt.a("observable-bind-to-properties-length",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(i[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,i=e[zn];i.get(t.observable)||e.listenTo(t.observable,"change",(function(o,a){(n=i.get(t.observable)[a])&&n.forEach((function(t){Gn(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,i){e._to.forEach((function(o){t=o.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([o.observable,t]),function(e,t,n,i){var o=e[zn],a=o.get(n),r=a||{};r[i]||(r[i]=new Set),r[i].add(t),a||o.set(n,r)}(e._observable,n,o.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){Gn(t._observable,e)}))}function Wn(e,t,n){if(this._bindings.size>1)throw new Lt.a("observable-bind-to-many-not-one-binding",this);this.to.apply(this,r(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function Jn(e){return e.every((function(e){return"string"==typeof e}))}function Gn(e,t){var n,i=e[Vn].get(t);i.callback?n=i.callback.apply(e,i.to.map((function(e){return e[0][e[1]]}))):n=(n=i.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}var $n=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n,i,o])).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==m(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==m(a)})),a}return p(t,e),d(t,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}])}(Bn);Vt($n,Yn);var Qn=Symbol("rootName"),Kn=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e,n])).rootName="main",i}return p(t,e),d(t,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(Qn)},set:function(e){this._setCustomProperty(Qn,e)}},{key:"_name",set:function(e){this.name=e}}])}($n),Zn=function(){return d((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(this,e),!t.boundaries&&!t.startPosition)throw new Lt.a("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new Lt.a("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,this.position=Xn._createAt(t.startPosition?t.startPosition:t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}),[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,i;do{var o;i=this.position,t=(o=this.next()).done,n=o.value}while(!t&&e(n));t||(this.position=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&t.offset===i.childCount)return{done:!0};if(i===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(i instanceof Zt){if(t.isAtEnd)return this.position=Xn._createAfter(i),this._next();e=i.data[t.offset]}else e=i.getChild(t.offset);if(e instanceof An)return this.shallow?t.offset++:t=new Xn(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof Zt){if(this.singleCharacters)return t=new Xn(e,0),this.position=t,this._next();var o,a=e.data.length;return e==this._boundaryEndParent?(a=this.boundaries.end.offset,o=new Xt(e,0,a),t=Xn._createAfter(o)):(o=new Xt(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",o,n,t,a)}if("string"==typeof e){var r;r=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-t.offset;var s=new Xt(i,t.offset,r);return t.offset+=r,this.position=t,this._formatReturnValue("text",s,n,t,r)}return t=Xn._createAfter(i),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&0===t.offset)return{done:!0};if(i==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(i instanceof Zt){if(t.isAtStart)return this.position=Xn._createBefore(i),this._previous();e=i.data[t.offset-1]}else e=i.getChild(t.offset-1);if(e instanceof An)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new Xn(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof Zt){if(this.singleCharacters)return t=new Xn(e,e.data.length),this.position=t,this._previous();var o,a=e.data.length;if(e==this._boundaryStartParent){var r=this.boundaries.start.offset;a=(o=new Xt(e,r,e.data.length-r)).data.length,t=Xn._createBefore(o)}else o=new Xt(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",o,n,t,a)}if("string"==typeof e){var s;s=this.singleCharacters?1:t.offset-(i===this._boundaryStartParent?this.boundaries.start.offset:0),t.offset-=s;var l=new Xt(i,t.offset,s);return this.position=t,this._formatReturnValue("text",l,n,t,s)}return t=Xn._createBefore(i),this.position=t,this._formatReturnValue("elementStart",i,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,i,o){return t instanceof Xt&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Xn._createAfter(t.textNode):(i=Xn._createAfter(t.textNode),this.position=i)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Xn._createBefore(t.textNode):(i=Xn._createBefore(t.textNode),this.position=i))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:o}}}}])}(),Xn=function(){function e(t,n){c(this,e),this.parent=t,this.offset=n}return d(e,[{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof $n);){if(!e.parent)return null;e=e.parent}return e}},{key:"getShiftedBy",value:function(t){var n=e._createAt(this),i=n.offset+t;return n.offset=i<0?0:i,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Zn(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),i=0;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var i=$t(t,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return t[i]<n[i]?"before":"after"}}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new Zn(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var i=t;if("end"==n)n=i.is("$text")?i.data.length:i.childCount;else{if("before"==n)return this._createBefore(i);if("after"==n)return this._createAfter(i);if(0!==n&&!n)throw new Lt.a("view-createpositionat-offset-required",i)}return new e(i,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new Lt.a("view-position-after-root",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new Lt.a("view-position-before-root",t,{root:t});return new e(t.parent,t.index)}}])}(),ei=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;c(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return d(e,[{key:Symbol.iterator,value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Zn({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(ti,{direction:"backward"}),n=this.end.getLastMatchingPosition(ti);return t.parent.is("$text")&&t.isAtStart&&(t=Xn._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=Xn._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(ti);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(ti,{direction:"backward"}),i=t.nodeAfter,o=n.nodeBefore;return i&&i.is("$text")&&(t=new Xn(i,0)),o&&o.is("$text")&&(n=new Xn(o,o.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Zn(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a().mark((function n(){var i,r,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.boundaries=e,t.ignoreElementEnd=!0,i=new Zn(t),r=o(i),n.prev=3,r.s();case 5:if((s=r.n()).done){n.next=11;break}return l=s.value,n.next=9,l.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),r.e(n.t0);case 16:return n.prev=16,r.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a().mark((function n(){var i,r,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.boundaries=e,i=new Zn(t),n.next=4,i.position;case 4:r=o(i),n.prev=5,r.s();case 7:if((s=r.n()).done){n.next=13;break}return l=s.value,n.next=11,l.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),r.e(n.t0);case 18:return n.prev=18,r.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,i){return new this(new Xn(e,t),new Xn(n,i))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(Xn._createBefore(e),t)}}])}();function ti(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function ni(e){var t,n=0,i=o(e);try{for(i.s();!(t=i.n()).done;){t.value;n++}}catch(a){i.e(a)}finally{i.f()}return n}var ii=function(){function e(){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;c(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,i)}return d(e,[{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}},{key:"getRanges",value:a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=o(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(a){n.e(a)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=o(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(a){n.e(a)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=o(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,a=t.value,r=!1,s=o(e._ranges);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(a.isEqual(l)){r=!0;break}}}catch(c){s.e(c)}finally{s.f()}if(!r)return!1}}catch(c){n.e(c)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=ni(this.getRanges());if(t!=ni(e.getRanges()))return!1;if(0==t)return!0;var n,i=o(this.getRanges());try{for(i.s();!(n=i.n()).done;){var a=n.value;a=a.getTrimmed();var r,s=!1,l=o(e.getRanges());try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c=c.getTrimmed(),a.start.isEqual(c.start)&&a.end.isEqual(c.end)){s=!0;break}}}catch(u){l.e(u)}finally{l.f()}if(!s)return!1}}catch(u){i.e(u)}finally{i.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,i){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof oi)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof ei)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof Xn)this._setRanges([new ei(t)]),this._setFakeOptions(n);else if(t instanceof Kt){var o,a=!!i&&!!i.backward;if(void 0===n)throw new Lt.a("view-selection-setto-required-second-parameter",this);o="in"==n?ei._createIn(t):"on"==n?ei._createOn(t):new ei(Xn._createAt(t,n)),this._setRanges([o],a),this._setFakeOptions(i)}else{if(!zt(t))throw new Lt.a("view-selection-setto-not-selectable",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Lt.a("view-selection-setfocus-no-ranges",this);var n=Xn._createAt(e,t);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new ei(n,i),!0):this._addRange(new ei(i,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;this._addRange(a)}}catch(r){i.e(r)}finally{i.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof ei))throw new Lt.a("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=o(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e.isIntersecting(i))throw new Lt.a("view-selection-range-intersects",this,{addedRange:e,intersectingRange:i})}}catch(a){n.e(a)}finally{n.f()}this._ranges.push(new ei(e.start,e.end))}}])}();Vt(ii,Ft);var oi=function(){return d((function e(){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;c(this,e),this._selection=new ii,this._selection.delegate("change").to(this),this._selection.setTo(t,n,i)}),[{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}}])}();Vt(oi,Ft);var ai=function(){return d((function e(t){c(this,e),this.selection=new oi,this.roots=new Ht({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}),[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=o(this._postFixers);try{for(i.s();!(n=i.n()).done;){if(t=(0,n.value)(e))break}}catch(a){i.e(a)}finally{i.f()}}while(t)}}])}();Vt(ai,Yn);var ri=function(e){function n(e,t,i,o){var a;return c(this,n),(a=f(this,n,[e,t,i,o])).getFillerOffset=si,a._priority=10,a._id=null,a._clonesGroup=null,a}return p(n,e),d(n,[{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}},{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new Lt.a("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:t(_(n.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var i=t(_(n.prototype),"_clone",this).call(this,e);return i._priority=this._priority,i._id=this._id,i}}])}(An);function si(){if(li(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(li(e)>1)return null;e=e.parent}return!e||li(e)>1?null:this.childCount}function li(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}ri.DEFAULT_PRIORITY=10;var ci=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n,i,o])).getFillerOffset=ui,a}return p(t,e),d(t,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof Kt||Array.from(t).length>0))throw new Lt.a("view-emptyelement-cannot-add",[this,t])}}])}(An);function ui(){return null}var di=navigator.userAgent.toLowerCase(),hi=function(e){return e.indexOf("macintosh")>-1}(di),fi=function(e){return!!e.match(/gecko\/\d+/)}(di),mi=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(di),pi=function(e){return e.indexOf("android")>-1}(di);(function(e){e.indexOf("chrome/")>-1&&e.indexOf("edge/")})(di),function(){try{0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(n){}}();var gi={"\u2318":"ctrl","\u21e7":"shift","\u2325":"alt"},vi={ctrl:"\u2318",shift:"\u21e7",alt:"\u2325"},yi=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(var n=48;n<=57;n++)e[n-48]=n;for(var i=112;i<=123;i++)e["f"+(i-111)]=i;return e}();function bi(e){var t;if("string"==typeof e){if(!(t=yi[e.toLowerCase()]))throw new Lt.a("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?yi.alt:0)+(e.ctrlKey?yi.ctrl:0)+(e.shiftKey?yi.shift:0);return t}function _i(e){return"string"==typeof e&&(e=Mi(e)),e.map((function(e){return"string"==typeof e?bi(e):e})).reduce((function(e,t){return t+e}),0)}function ki(e){return hi?Mi(e).map((function(e){return vi[e.toLowerCase()]||e})).reduce((function(e,t){return e.slice(-1)in gi?e+t:e+"+"+t})):e}function Ci(e){return e==yi.arrowright||e==yi.arrowleft||e==yi.arrowup||e==yi.arrowdown}function wi(e,t){var n="ltr"===t;switch(e){case yi.arrowleft:return n?"left":"right";case yi.arrowright:return n?"right":"left";case yi.arrowup:return"up";case yi.arrowdown:return"down"}}function xi(e,t){var n=wi(e,t);return"down"===n||"right"===n}function Mi(e){return e.split(/\s*\+\s*/)}var Si=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n,i,o])).getFillerOffset=Pi,a}return p(t,e),d(t,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof Kt||Array.from(t).length>0))throw new Lt.a("view-uielement-cannot-add",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),i=o(this.getAttributeKeys());try{for(i.s();!(t=i.n()).done;){var a=t.value;n.setAttribute(a,this.getAttribute(a))}}catch(r){i.e(r)}finally{i.f()}return n}}])}(An);function Pi(){return null}var Ti=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n,i,o])).getFillerOffset=Oi,a}return p(t,e),d(t,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof Kt||Array.from(t).length>0))throw new Lt.a("view-rawelement-cannot-add",[this,t])}}])}(An);function Oi(){return null}var Li=function(){return d((function e(t,n){c(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}),[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,a=o(function(e,t){return"string"==typeof t?[new Zt(e,t)]:(zt(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Zt(e,t):t instanceof Xt?new Zt(e,t.data):t})))}(this.document,t));try{for(a.s();!(n=a.n()).done;){var r=n.value;null!==r.parent&&r._remove(),r.parent=this,this._children.splice(e,0,r),e++,i++}}catch(s){a.e(s)}finally{a.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t)}}])}();Vt(Li,Ft);var Di=function(){return d((function e(t){c(this,e),this.document=t,this._cloneGroups=new Map}),[{key:"setSelection",value:function(e,t,n){this.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this.document.selection._setFocus(e,t)}},{key:"createText",value:function(e){return new Zt(this.document,e)}},{key:"createAttributeElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new ri(this.document,e,t);return n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),i}},{key:"createContainerElement",value:function(e,t){return new Bn(this.document,e,t)}},{key:"createEditableElement",value:function(e,t){var n=new $n(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){return new ci(this.document,e,t)}},{key:"createUIElement",value:function(e,t,n){var i=new Si(this.document,e,t);return n&&(i.render=n),i}},{key:"createRawElement",value:function(e,t,n){var i=new Ti(this.document,e,t);return i.render=n||function(){},i}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){A(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof Xn?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new Lt.a("view-writer-break-non-container-element",this.document);if(!t.parent)throw new Lt.a("view-writer-break-root",this.document);if(e.isAtStart)return Xn._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(Xn._createAfter(t),n);var i=new ei(e,Xn._createAt(t,"end")),o=new Xn(n,0);this.move(i,o)}return Xn._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var i=n.parent,o=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Xn(i,o))}var a=n.getChild(t-1),r=n.getChild(t);if(!a||!r)return e;if(a.is("$text")&&r.is("$text"))return Bi(a,r);if(a.is("attributeElement")&&r.is("attributeElement")&&a.isSimilar(r)){var s=a.childCount;return a._appendChild(r.getChildren()),r._remove(),this._removeFromClonedElementsGroup(r),this.mergeAttributes(new Xn(a,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new Lt.a("view-writer-merge-containers-invalid-position",this.document);var i=t.getChild(t.childCount-1),o=Xn._createAt(i instanceof Zt?i:t,"end");return this.move(ei._createIn(n),Xn._createAt(t,"end")),this.remove(ei._createOn(n)),o}},{key:"insert",value:function(e,t){!function e(t,n){var i,a=o(t);try{var r=function(){var t=i.value;if(!Ni.some((function(e){return t instanceof e})))throw new Lt.a("view-writer-insert-invalid-node-type",n);t.is("$text")||e(t.getChildren(),n)};for(a.s();!(i=a.n()).done;)r()}catch(s){a.e(s)}finally{a.f()}}(t=zt(t)?r(t):[t],this.document);var n=Ii(e);if(!n)throw new Lt.a("view-writer-invalid-position-container",this.document);var i,a=this._breakAttributes(e,!0),s=n._insertChild(a.offset,t),l=o(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;this._addToClonedElementsGroup(c)}}catch(f){l.e(f)}finally{l.f()}var u=a.getShiftedBy(s),d=this.mergeAttributes(a);if(0===s)return new ei(d,d);d.isEqual(a)||u.offset--;var h=this.mergeAttributes(u);return new ei(d,h)}},{key:"remove",value:function(e){var t=e instanceof ei?e:ei._createOn(e);if(ji(t,this.document),t.isCollapsed)return new Li(this.document);var n,i=this._breakAttributesRange(t,!0),a=i.start,r=i.end,s=a.parent._removeChildren(a.offset,r.offset-a.offset),l=o(s);try{for(l.s();!(n=l.n()).done;){var c=n.value;this._removeFromClonedElementsGroup(c)}}catch(d){l.e(d)}finally{l.f()}var u=this.mergeAttributes(a);return t.start=u,t.end=u.clone(),new Li(this.document,s)}},{key:"clear",value:function(e,t){ji(e,this.document);var n,i=o(e.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(i.s();!(n=i.n()).done;){var a=n.value,r=a.item,s=void 0;if(r.is("element")&&t.isSimilar(r))s=ei._createOn(r);else if(!a.nextPosition.isAfter(e.start)&&r.is("$textProxy")){var l=r.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));l&&(s=ei._createIn(l))}s&&(s.end.isAfter(e.end)&&(s.end=e.end),s.start.isBefore(e.start)&&(s.start=e.start),this.remove(s))}}catch(c){i.e(c)}finally{i.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var i=(t=this._breakAttributes(t,!0)).parent,o=i.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=i.childCount-o}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof ri))throw new Lt.a("view-writer-wrap-invalid-attribute",this.document);if(ji(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&!Array.from(n.parent.getChildren()).some((function(e){return!e.is("uiElement")}))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new ei(n)}return this._wrapRange(e,t)}},{key:"unwrap",value:function(e,t){if(!(t instanceof ri))throw new Lt.a("view-writer-unwrap-invalid-attribute",this.document);if(ji(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),i=n.start,o=n.end,a=this._unwrapChildren(i.parent,i.offset,o.offset,t),r=this.mergeAttributes(a.start);r.isEqual(a.start)||a.end.offset--;var s=this.mergeAttributes(a.end);return new ei(r,s)}},{key:"rename",value:function(e,t){var n=new Bn(this.document,e,t.getAttributes());return this.insert(Xn._createAfter(t),n),this.move(ei._createIn(t),Xn._createAt(n,0)),this.remove(ei._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return Xn._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Xn._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Xn._createBefore(e)}},{key:"createRange",value:function(e,t){return new ei(e,t)}},{key:"createRangeOn",value:function(e){return ei._createOn(e)}},{key:"createRangeIn",value:function(e){return ei._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new ii(e,t,n)}},{key:"_wrapChildren",value:function(e,t,n,i){for(var o=t,a=[];o<n;){var r=e.getChild(o),s=r.is("$text"),l=r.is("attributeElement"),c=r.is("emptyElement"),u=r.is("uiElement"),d=r.is("rawElement");if(l&&this._wrapAttributeElement(i,r))a.push(new Xn(e,o));else if(s||c||u||d||l&&Fi(i,r)){var h=i._clone();r._remove(),h._appendChild(r),e._insertChild(o,h),this._addToClonedElementsGroup(h),a.push(new Xn(e,o))}else l&&this._wrapChildren(r,0,r.childCount,i);o++}for(var f=0,m=0,p=a;m<p.length;m++){var g=p[m];g.offset-=f,g.offset!=t&&(this.mergeAttributes(g).isEqual(g)||(f++,n--))}return ei._createFromParentsAndOffsets(e,t,e,n)}},{key:"_unwrapChildren",value:function(e,t,n,i){for(var o=t,a=[];o<n;){var r=e.getChild(o);if(r.is("attributeElement"))if(r.isSimilar(i)){var s=r.getChildren(),l=r.childCount;r._remove(),e._insertChild(o,s),this._removeFromClonedElementsGroup(r),a.push(new Xn(e,o),new Xn(e,o+l)),o+=l,n+=l-1}else this._unwrapAttributeElement(i,r)?(a.push(new Xn(e,o),new Xn(e,o+1)),o++):(this._unwrapChildren(r,0,r.childCount,i),o++);else o++}for(var c=0,u=0,d=a;u<d.length;u++){var h=d[u];h.offset-=c,h.offset!=t&&h.offset!=n&&(this.mergeAttributes(h).isEqual(h)||(c++,n--))}return ei._createFromParentsAndOffsets(e,t,e,n)}},{key:"_wrapRange",value:function(e,t){var n=this._breakAttributesRange(e,!0),i=n.start,o=n.end,a=this._wrapChildren(i.parent,i.offset,o.offset,t),r=this.mergeAttributes(a.start);r.isEqual(a.start)||a.end.offset--;var s=this.mergeAttributes(a.end);return new ei(r,s)}},{key:"_wrapPosition",value:function(e,t){if(t.isSimilar(e.parent))return Ai(e.clone());e.parent.is("$text")&&(e=Ei(e));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},e.parent._insertChild(e.offset,n);var i=new ei(e,e.getShiftedBy(1));this.wrap(i,t);var o=new Xn(n.parent,n.index);n._remove();var a=o.nodeBefore,r=o.nodeAfter;return a instanceof Zt&&r instanceof Zt?Bi(a,r):Ai(o)}},{key:"_wrapAttributeElement",value:function(e,t){if(!zi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,i=o(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var a=n.value;if("class"!==a&&"style"!==a&&t.hasAttribute(a)&&t.getAttribute(a)!==e.getAttribute(a))return!1}}catch(y){i.e(y)}finally{i.f()}var r,s=o(e.getStyleNames());try{for(s.s();!(r=s.n()).done;){var l=r.value;if(t.hasStyle(l)&&t.getStyle(l)!==e.getStyle(l))return!1}}catch(y){s.e(y)}finally{s.f()}var c,u=o(e.getAttributeKeys());try{for(u.s();!(c=u.n()).done;){var d=c.value;"class"!==d&&"style"!==d&&(t.hasAttribute(d)||this.setAttribute(d,e.getAttribute(d),t))}}catch(y){u.e(y)}finally{u.f()}var h,f=o(e.getStyleNames());try{for(f.s();!(h=f.n()).done;){var m=h.value;t.hasStyle(m)||this.setStyle(m,e.getStyle(m),t)}}catch(y){f.e(y)}finally{f.f()}var p,g=o(e.getClassNames());try{for(g.s();!(p=g.n()).done;){var v=p.value;t.hasClass(v)||this.addClass(v,t)}}catch(y){g.e(y)}finally{g.f()}return!0}},{key:"_unwrapAttributeElement",value:function(e,t){if(!zi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,i=o(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var a=n.value;if("class"!==a&&"style"!==a&&(!t.hasAttribute(a)||t.getAttribute(a)!==e.getAttribute(a)))return!1}}catch(f){i.e(f)}finally{i.f()}if(!t.hasClass.apply(t,r(e.getClassNames())))return!1;var s,l=o(e.getStyleNames());try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!t.hasStyle(c)||t.getStyle(c)!==e.getStyle(c))return!1}}catch(f){l.e(f)}finally{l.f()}var u,d=o(e.getAttributeKeys());try{for(d.s();!(u=d.n()).done;){var h=u.value;"class"!==h&&"style"!==h&&this.removeAttribute(h,t)}}catch(f){d.e(f)}finally{d.f()}return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}},{key:"_breakAttributesRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,i=e.end;if(ji(e,this.document),e.isCollapsed){var o=this._breakAttributes(e.start,t);return new ei(o,o)}var a=this._breakAttributes(i,t),r=a.parent.childCount,s=this._breakAttributes(n,t);return a.offset+=a.parent.childCount-r,new ei(s,a)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,i=e.parent;if(e.parent.is("emptyElement"))throw new Lt.a("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new Lt.a("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new Lt.a("view-writer-cannot-break-raw-element",this.document);if(!t&&i.is("$text")&&Ri(i.parent))return e.clone();if(Ri(i))return e.clone();if(i.is("$text"))return this._breakAttributes(Ei(e),t);if(n==i.childCount){var o=new Xn(i.parent,i.index+1);return this._breakAttributes(o,t)}if(0===n){var a=new Xn(i.parent,i.index);return this._breakAttributes(a,t)}var r=i.index+1,s=i._clone();i.parent._insertChild(r,s),this._addToClonedElementsGroup(s);var l=i._removeChildren(n,i.childCount-n);s._appendChild(l);var c=new Xn(i.parent,r);return this._breakAttributes(c,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=o(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addToClonedElementsGroup(i)}}catch(s){n.e(s)}finally{n.f()}}var a=e.id;if(a){var r=this._cloneGroups.get(a);r||(r=new Set,this._cloneGroups.set(a,r)),r.add(e),e._clonesGroup=r}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=o(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeFromClonedElementsGroup(i)}}catch(s){n.e(s)}finally{n.f()}}var a=e.id;if(a){var r=this._cloneGroups.get(a);r&&r.delete(e)}}}])}();function Ii(e){for(var t=e.parent;!Ri(t);){if(!t)return;t=t.parent}return t}function Fi(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function Ai(e){var t=e.nodeBefore;if(t&&t.is("$text"))return new Xn(t,t.data.length);var n=e.nodeAfter;return n&&n.is("$text")?new Xn(n,0):e}function Ei(e){if(e.offset==e.parent.data.length)return new Xn(e.parent.parent,e.parent.index+1);if(0===e.offset)return new Xn(e.parent.parent,e.parent.index);var t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new Zt(e.root.document,t)),new Xn(e.parent.parent,e.parent.index+1)}function Bi(e,t){var n=e.data.length;return e._data+=t.data,t._remove(),new Xn(e,n)}var Ni=[Zt,ri,Bn,ci,Ti,Si];function Ri(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function ji(e,t){var n=Ii(e.start),i=Ii(e.end);if(!n||!i||n!==i)throw new Lt.a("view-writer-invalid-range-container",t)}function zi(e,t){return null===e.id&&null===t.id}function Vi(e){return"[object Text]"==Object.prototype.toString.call(e)}var Hi=function(e){return e.createTextNode("\xa0")},Yi=function(e){var t=e.createElement("br");return t.dataset.ckeFiller=!0,t},qi=function(){for(var e="",t=0;t<7;t++)e+="\u200b";return e}();function Ui(e){return Vi(e)&&e.data.substr(0,7)===qi}function Wi(e){return 7==e.data.length&&Ui(e)}function Ji(e){return Ui(e)?e.data.slice(7):e.data}function Gi(e,t){if(t.keyCode==yi.arrowleft){var n=t.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var i=n.getRangeAt(0).startContainer,o=n.getRangeAt(0).startOffset;Ui(i)&&o<=7&&n.collapse(i,0)}}}function $i(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var o=function(e,t,n){var i=Qi(e,t,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var o=Qi(Ki(e,i),Ki(t,i),n);return{firstIndex:i,lastIndexOld:e.length-o,lastIndexNew:t.length-o}}(e,t,n);return i?function(e,t){var n=e.firstIndex,i=e.lastIndexOld,o=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var a=[];return n>0&&(a=a.concat(Array(n).fill("equal"))),o-n>0&&(a=a.concat(Array(o-n).fill("insert"))),i-n>0&&(a=a.concat(Array(i-n).fill("delete"))),o<t&&(a=a.concat(Array(t-o).fill("equal"))),a}(o,t.length):function(e,t){var n=[],i=t.firstIndex,o=t.lastIndexOld,a=t.lastIndexNew;return a-i>0&&n.push({index:i,type:"insert",values:e.slice(i,a)}),o-i>0&&n.push({index:i+(a-i),type:"delete",howMany:o-i}),n}(t,o)}function Qi(e,t,n){for(var i=0;i<Math.max(e.length,t.length);i++)if(void 0===e[i]||void 0===t[i]||!n(e[i],t[i]))return i;return-1}function Ki(e,t){return e.slice(t).reverse()}function Zi(e,t,n){n=n||function(e,t){return e===t};var i,o,a=e.length,r=t.length;if(a>200||r>200||a+r>300)return Zi.fastDiff(e,t,n,!0);if(r<a){var s=e;e=t,t=s,i="delete",o="insert"}else i="insert",o="delete";var l=e.length,c=t.length,u=c-l,d={},h={};function f(a){var r=(void 0!==h[a-1]?h[a-1]:-1)+1,s=void 0!==h[a+1]?h[a+1]:-1,u=r>s?-1:1;d[a+u]&&(d[a]=d[a+u].slice(0)),d[a]||(d[a]=[]),d[a].push(r>s?i:o);for(var f=Math.max(r,s),m=f-a;m<l&&f<c&&n(e[m],t[f]);)m++,f++,d[a].push("equal");return f}var m,p=0;do{for(m=-p;m<u;m++)h[m]=f(m);for(m=u+p;m>u;m--)h[m]=f(m);h[u]=f(u),p++}while(h[u]!==c);return d[u].slice(1)}function Xi(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function eo(e){var t=e.parentNode;t&&t.removeChild(e)}function to(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}Zi.fastDiff=$i;var no=function(){return d((function e(t,n){c(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}),[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new Lt.a("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=o(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._updateChildrenMappings(i)}}catch(g){n.e(g)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var a,r=o(this.markedAttributes);try{for(r.s();!(a=r.n()).done;){var s=a.value;this._updateAttrs(s)}}catch(g){r.e(g)}finally{r.f()}var l,c=o(this.markedChildren);try{for(c.s();!(l=c.n()).done;){var u=l.value;this._updateChildren(u,{inlineFillerPosition:e})}}catch(g){c.e(g)}finally{c.f()}var d,h=o(this.markedTexts);try{for(h.s();!(d=h.n()).done;){var f=d.value;!this.markedChildren.has(f.parent)&&this.domConverter.mapViewToDom(f.parent)&&this._updateText(f,{inlineFillerPosition:e})}}catch(g){h.e(g)}finally{h.f()}if(e){var m=this.domConverter.viewPositionToDom(e),p=m.parent.ownerDocument;this._inlineFiller=Ui(m.parent)?m.parent:io(p,m.parent,m.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=this.domConverter.mapViewToDom(e).childNodes,i=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),a=this._diffNodeLists(n,i),r=this._findReplaceActions(a,n,i);if(-1!==r.indexOf("replace")){var s,l={equal:0,insert:0,delete:0},c=o(r);try{for(c.s();!(s=c.n()).done;){var u=s.value;if("replace"===u){var d=l.equal+l.insert,h=l.equal+l.delete,f=e.getChild(d);!f||f.is("uiElement")||f.is("rawElement")||this._updateElementMappings(f,n[h]),eo(i[d]),l.equal++}else l[u]++}}catch(m){c.e(m)}finally{c.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?Xn._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&Vi(t.parent)&&Ui(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!Ui(e))throw new Lt.a("view-renderer-filler-was-lost",this);Wi(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;return!(!this.domConverter.mapViewToDom(t.root)||!t.is("element")||!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t)||n===t.getFillerOffset()||e.nodeBefore instanceof Zt||e.nodeAfter instanceof Zt)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),i=this.domConverter.viewToDom(e,n.ownerDocument),a=n.data,r=i.data,s=t.inlineFillerPosition;if(s&&s.parent==e.parent&&s.offset==e.index&&(r=qi+r),a!=r){var l,c=o($i(a,r));try{for(c.s();!(l=c.n()).done;){var u=l.value;"insert"===u.type?n.insertData(u.index,u.values.join("")):n.deleteData(u.index,u.howMany)}}catch(d){c.e(d)}finally{c.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,i=Array.from(t.attributes).map((function(e){return e.name})),a=o(e.getAttributeKeys());try{for(a.s();!(n=a.n()).done;){var r=n.value;t.setAttribute(r,e.getAttribute(r))}}catch(u){a.e(u)}finally{a.f()}var s,l=o(i);try{for(l.s();!(s=l.n()).done;){var c=s.value;e.hasAttribute(c)||t.removeAttribute(c)}}catch(u){l.e(u)}finally{l.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var i=t.inlineFillerPosition,a=this.domConverter.mapViewToDom(e).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:i}));i&&i.parent===e&&io(n.ownerDocument,r,i.offset);var s,l=this._diffNodeLists(a,r),c=0,u=new Set,d=o(l);try{for(d.s();!(s=d.n()).done;){var h=s.value;"delete"===h?(u.add(a[c]),eo(a[c])):"equal"===h&&c++}}catch(b){d.e(b)}finally{d.f()}c=0;var f,m=o(l);try{for(m.s();!(f=m.n()).done;){var p=f.value;"insert"===p?(Xi(n,c,r[c]),c++):"equal"===p&&(this._markDescendantTextToSync(this.domConverter.domToView(r[c])),c++)}}catch(b){m.e(b)}finally{m.f()}var g,v=o(u);try{for(v.s();!(g=v.n()).done;){var y=g.value;y.parentNode||this.domConverter.unbindDomElement(y)}}catch(b){v.e(b)}finally{v.f()}}}},{key:"_diffNodeLists",value:function(e,t){return Zi(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,ao.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var i,a=[],r=[],s=[],l={equal:0,insert:0,delete:0},c=o(e);try{for(c.s();!(i=c.n()).done;){var u=i.value;"insert"===u?s.push(n[l.equal+l.insert]):"delete"===u?r.push(t[l.equal+l.delete]):((a=a.concat(Zi(r,s,oo).map((function(e){return"equal"===e?"replace":e})))).push("equal"),r=[],s=[]),l[u]++}}catch(d){c.e(d)}finally{c.f()}return a.concat(Zi(r,s,oo).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=o(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._markDescendantTextToSync(i)}}catch(a){n.e(a)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent="\xa0",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";var i=t.getSelection(),o=t.createRange();i.removeAllRanges(),o.selectNodeContents(n),i.addRange(o)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(i.parent,i.offset),fi&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var i=n.childNodes[e.offset];i&&"BR"==i.tagName&&t.addRange(t.getRangeAt(0))}}(i,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=o(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var i=n.activeElement,a=this.domConverter.mapDomToView(i);i&&a&&n.getSelection().removeAllRanges()}}}catch(r){t.e(r)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}])}();function io(e,t,n){var i=t instanceof Array?t:t.childNodes,o=i[n];if(Vi(o))return o.data=qi+o.data,o;var a=e.createTextNode(qi);return Array.isArray(t)?i.splice(n,0,a):Xi(t,n,a),a}function oo(e,t){return to(e)&&to(t)&&!Vi(e)&&!Vi(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function ao(e,t,n){return t===n||(Vi(t)&&Vi(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}Vt(no,Yn);var ro={window:window,document:document};function so(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function lo(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var co=Yi(document),uo=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?Yi:Hi,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new tn,this._encounteredRawContentDomNodes=new WeakSet}),[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new ii(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,i=o(e.childNodes);try{for(i.s();!(n=i.n()).done;){var a=n.value;this.unbindDomElement(a)}}catch(r){i.e(r)}finally{i.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var a=this._processDataFromViewText(e);return t.createTextNode(a)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),i.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),i.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),i.bind&&this.bindElements(n,e);var r,s=o(e.getAttributeKeys());try{for(s.s();!(r=s.n()).done;){var l=r.value;n.setAttribute(l,e.getAttribute(l))}}catch(h){s.e(h)}finally{s.f()}}if(!1!==i.withChildren){var c,u=o(this.viewChildrenToDom(e,t,i));try{for(u.s();!(c=u.n()).done;){var d=c.value;n.appendChild(d)}}catch(h){u.e(h)}finally{u.f()}}return n}},{key:"viewChildrenToDom",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a().mark((function r(){var s,l,c,u,d;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:s=e.getFillerOffset&&e.getFillerOffset(),l=0,c=o(e.getChildren()),a.prev=3,c.s();case 5:if((u=c.n()).done){a.next=16;break}if(d=u.value,a.t0=s===l,!a.t0){a.next=11;break}return a.next=11,n._blockFiller(t);case 11:return a.next=13,n.viewToDom(d,t,i);case 13:l++;case 14:a.next=5;break;case 16:a.next=21;break;case 18:a.prev=18,a.t1=a.catch(3),c.e(a.t1);case 21:return a.prev=21,c.f(),a.finish(21);case 24:if(a.t2=s===l,!a.t2){a.next=28;break}return a.next=28,n._blockFiller(t);case 28:case"end":return a.stop()}}),r,null,[[3,18,21,24]])}))()}},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),i=document.createRange();return i.setStart(t.parent,t.offset),i.setEnd(n.parent,n.offset),i}},{key:"viewPositionToDom",value:function(e){var t,n,i,o=e.parent;if(o.is("$text")){var a=this.findCorrespondingDomText(o);if(!a)return null;var r=e.offset;return Ui(a)&&(r+=7),{parent:a,offset:r}}if(0===e.offset){if(!(t=this.mapViewToDom(o)))return null;i=t.childNodes[0]}else{var s=e.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore)))return null;t=n.parentNode,i=n.nextSibling}return Vi(i)&&Ui(i)?{parent:i,offset:7}:{parent:t,offset:n?so(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e,this.blockFillerMode))return null;var n,i=this.getHostViewElement(e);if(i)return i;if(Vi(e)){if(Wi(e))return null;var a=this._processDataFromDomText(e);return""===a?null:new Zt(this.document,a)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new Li(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var r=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new An(this.document,r),t.bind&&this.bindElements(e,n);for(var s=e.attributes,l=s.length-1;l>=0;l--)n._setAttribute(s[l].name,s[l].value);if(!1!==t.withChildren&&this._rawContentElementMatcher.match(n))return n._setCustomProperty("$rawContent",e.innerHTML),this._encounteredRawContentDomNodes.add(e),n}if(!1!==t.withChildren){var c,u=o(this.domChildrenToView(e,t));try{for(u.s();!(c=u.n()).done;){var d=c.value;n._appendChild(d)}}catch(h){u.e(h)}finally{u.f()}}return n}},{key:"domChildrenToView",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a().mark((function i(){var o,r;return a().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=0;case 1:if(!(o<e.childNodes.length)){i.next=10;break}if(r=t.domToView(e.childNodes[o],n),i.t0=null!==r,!i.t0){i.next=7;break}return i.next=7,r;case 7:o++,i.next=1;break;case 10:case"end":return i.stop()}}),i)}))()}},{key:"domSelectionToView",value:function(e){if(1===e.rangeCount){var t=e.getRangeAt(0).startContainer;Vi(t)&&(t=t.parentNode);var n=this.fakeSelectionToView(t);if(n)return n}for(var i=this.isDomSelectionBackward(e),o=[],a=0;a<e.rangeCount;a++){var r=e.getRangeAt(a),s=this.domRangeToView(r);s&&o.push(s)}return new ii(o,{backward:i})}},{key:"domRangeToView",value:function(e){var t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new ei(t,n):null}},{key:"domPositionToView",value:function(e,t){if(this.isBlockFiller(e,this.blockFillerMode))return this.domPositionToView(e.parentNode,so(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return Xn._createBefore(n);if(Vi(e)){if(Wi(e))return this.domPositionToView(e.parentNode,so(e));var i=this.findCorrespondingViewText(e),o=t;return i?(Ui(e)&&(o=(o-=7)<0?0:o),new Xn(i,o)):null}if(0===t){var a=this.mapDomToView(e);if(a)return new Xn(a,0)}else{var r=e.childNodes[t-1],s=Vi(r)?this.findCorrespondingViewText(r):this.mapDomToView(r);if(s&&s.parent)return new Xn(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(Wi(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var i=this.mapDomToView(n);if(i)return i.nextSibling instanceof Zt?i.nextSibling:null}else{var o=this.mapDomToView(e.parentNode);if(o){var a=o.getChild(0);return a instanceof Zt?a:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var n=ro.window,o=n.scrollX,a=n.scrollY,r=[];fo(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;r.push([t,n])})),t.focus(),fo(t,(function(e){var t=i(r.shift(),2),n=t[0],o=t[1];e.scrollLeft=n,e.scrollTop=o})),ro.window.scrollTo(o,a)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(e){return e&&e.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(co):!("BR"!==e.tagName||!mo(e,this.blockElements)||1!==e.parentNode.childNodes.length)||function(e,t){return Vi(e)&&"\xa0"==e.data&&mo(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=lo(e);for(t.pop();t.length;){var n=t.pop(),i=this._domToViewMapping.get(n);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"registerRawContentMatcher",value:function(e){this._rawContentElementMatcher.add(e)}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(Vi(e)&&Ui(e)&&t<7)return!1;if(this.isElement(e)&&Ui(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var i=this._getTouchingViewTextNode(e,!1);(!i||!this._nodeEndsWithSpace(i))&&i||(n="\xa0"+n.substr(1))}if(" "==n.charAt(n.length-1)){var o=this._getTouchingViewTextNode(e,!0);" "!=n.charAt(n.length-2)&&o&&" "!=o.data.charAt(0)||(n=n.substr(0,n.length-1)+"\xa0")}return n.replace(/ {2}/g," \xa0")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(ho(e,this.preElements))return Ji(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),i=this._getTouchingInlineDomNode(e,!0),o=this._checkShouldLeftTrimDomText(e,n),a=this._checkShouldRightTrimDomText(e,i);return o&&(t=t.replace(/^ /,"")),a&&(t=t.replace(/ $/,"")),t=(t=Ji(new Text(t))).replace(/ \u00A0/g,"  "),(/( |\u00A0)\u00A0$/.test(t)||!i||i.data&&" "==i.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),o&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e,t){return!t||!!Ct(t)||!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!Ui(e)}},{key:"_getTouchingViewTextNode",value:function(e,t){var n,i=o(new Zn({startPosition:t?Xn._createAfter(e):Xn._createBefore(e),direction:t?"forward":"backward"}));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.item.is("containerElement"))return null;if(a.item.is("element","br"))return null;if(a.item.is("$textProxy"))return a.item}}catch(r){i.e(r)}finally{i.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"nextNode":"previousNode",i=e.ownerDocument,o=lo(e)[0],a=i.createTreeWalker(o,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return Vi(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});a.currentNode=e;var r=a[n]();if(null!==r){var s=function(e,t){for(var n=lo(e),i=lo(t),o=0;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}(e,r);if(s&&!ho(e,this.blockElements,s)&&!ho(r,this.blockElements,s))return r}return null}}])}();function ho(e,t,n){var i=lo(e);return n&&(i=i.slice(i.indexOf(n)+1)),i.some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}function fo(e,t){for(;e&&e!=ro.document;)t(e),e=e.parentNode}function mo(e,t){var n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function po(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var go=Rn({},Ft,{listenTo:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if(to(e)||po(e)){var a=this._getProxyEmitter(e)||new vo(e);a.attach.apply(a,i),e=a}(t=Ft.listenTo).call.apply(t,[this,e].concat(i))},stopListening:function(e,t,n){if(to(e)||po(e)){var i=this._getProxyEmitter(e);if(!i)return;e=i}Ft.stopListening.call(this,e,t,n),e instanceof vo&&e.detach(t)},_getProxyEmitter:function(e){return t=this,n=yo(e),t[Dt]&&t[Dt][n]?t[Dt][n].emitter:null;var t,n}}),vo=d((function e(t){c(this,e),At(this,yo(t)),this._domNode=t}));function yo(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Tt())}Rn(vo.prototype,Ft,{attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var i={capture:!!n.useCapture,passive:!!n.usePassive},o=this._createDomListener(e,i);this._domNode.addEventListener(e,o,i),this._domListeners||(this._domListeners={}),this._domListeners[e]=o}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,i=function(t){n.fire(e,t)};return i.removeListener=function(){n._domNode.removeEventListener(e,i,t),delete n._domListeners[e]},i}});var bo=function(){return d((function e(t){c(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}),[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}])}();function _o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new oe;++t<n;)this.add(e[t])}Vt(bo,go),_o.prototype.add=_o.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_o.prototype.has=function(e){return this.__data__.has(e)};var ko=_o,Co=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},wo=function(e,t){return e.has(t)},xo=function(e,t,n,i,o,a){var r=1&n,s=e.length,l=t.length;if(s!=l&&!(r&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,h=2&n?new ko:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var f=e[u],m=t[u];if(i)var p=r?i(m,f,u,t,e,a):i(f,m,u,e,t,a);if(void 0!==p){if(p)continue;d=!1;break}if(h){if(!Co(t,(function(e,t){if(!wo(h,t)&&(f===e||o(f,e,n,i,a)))return h.push(t)}))){d=!1;break}}else if(f!==m&&!o(f,m,n,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d},Mo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},So=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Po=b?b.prototype:void 0,To=Po?Po.valueOf:void 0,Oo=Object.prototype.hasOwnProperty,Lo=Object.prototype.hasOwnProperty,Do=function e(t,n,i,o,a){return t===n||(null==t||null==n||!L(t)&&!L(n)?t!=t&&n!=n:function(e,t,n,i,o,a){var r=ve(e),s=ve(t),l=r?"[object Array]":ot(e),c=s?"[object Array]":ot(t),u="[object Object]"==(l="[object Arguments]"==l?"[object Object]":l),d="[object Object]"==(c="[object Arguments]"==c?"[object Object]":c),h=l==c;if(h&&Object(ye.a)(e)){if(!Object(ye.a)(t))return!1;r=!0,u=!1}if(h&&!u)return a||(a=new re),r||Se(e)?xo(e,t,n,i,o,a):function(e,t,n,i,o,a,r){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new rt(e),new rt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return E(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Mo;case"[object Set]":if(s||(s=So),e.size!=t.size&&!(1&i))return!1;var l=r.get(e);if(l)return l==t;i|=2,r.set(e,t);var c=xo(s(e),s(t),i,o,a,r);return r.delete(e),c;case"[object Symbol]":if(To)return To.call(e)==To.call(t)}return!1}(e,t,l,n,i,o,a);if(!(1&n)){var f=u&&Lo.call(e,"__wrapped__"),m=d&&Lo.call(t,"__wrapped__");if(f||m){var p=f?e.value():e,g=m?t.value():t;return a||(a=new re),o(p,g,n,i,a)}}return!!h&&(a||(a=new re),function(e,t,n,i,o,a){var r=1&n,s=We(e),l=s.length;if(l!=We(t).length&&!r)return!1;for(var c=l;c--;){var u=s[c];if(!(r?u in t:Oo.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var h=!0;a.set(e,t),a.set(t,e);for(var f=r;++c<l;){var m=e[u=s[c]],p=t[u];if(i)var g=r?i(p,m,u,t,e,a):i(m,p,u,e,t,a);if(!(void 0===g?m===p||o(m,p,n,i,a):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,i,o,a))}(t,n,i,o,e,a))},Io=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?Do(e,t,void 0,n):!!i},Fo=function(e){function n(e){var t;return c(this,n),(t=f(this,n,[e]))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},t.domConverter=e.domConverter,t.renderer=e._renderer,t._domElements=[],t._mutationObserver=new window.MutationObserver(t._onMutations.bind(m(t))),t}return p(n,e),d(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}},{key:"enable",value:function(){t(_(n.prototype),"enable",this).call(this);var e,i=o(this._domElements);try{for(i.s();!(e=i.n()).done;){var a=e.value;this._mutationObserver.observe(a,this._config)}}catch(r){i.e(r)}finally{i.f()}}},{key:"disable",value:function(){t(_(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(e){if(0!==e.length){var t,n=this.domConverter,i=new Map,a=new Set,r=o(e);try{for(r.s();!(t=r.n()).done;){var s=t.value;if("childList"===s.type){var l=n.mapDomToView(s.target);if(l&&(l.is("uiElement")||l.is("rawElement")))continue;l&&!this._isBogusBrMutation(s)&&a.add(l)}}}catch(O){r.e(O)}finally{r.f()}var c,u=o(e);try{for(u.s();!(c=u.n()).done;){var d=c.value,h=n.mapDomToView(d.target);if((!h||!h.is("uiElement")&&!h.is("rawElement"))&&"characterData"===d.type){var f=n.findCorrespondingViewText(d.target);f&&!a.has(f.parent)?i.set(f,{type:"text",oldText:f.data,newText:Ji(d.target),node:f}):!f&&Ui(d.target)&&a.add(n.mapDomToView(d.target.parentNode))}}}catch(O){u.e(O)}finally{u.f()}var m,p=[],g=o(i.values());try{for(g.s();!(m=g.n()).done;){var v=m.value;this.renderer.markToSync("text",v.node),p.push(v)}}catch(O){g.e(O)}finally{g.f()}var y,b=o(a);try{for(b.s();!(y=b.n()).done;){var _=y.value,k=n.mapViewToDom(_),C=Array.from(_.getChildren()),w=Array.from(n.domChildrenToView(k,{withChildren:!1}));Io(C,w,T)||(this.renderer.markToSync("children",_),p.push({type:"children",oldChildren:C,newChildren:w,node:_}))}}catch(O){b.e(O)}finally{b.f()}var x=e[0].target.ownerDocument.getSelection(),M=null;if(x&&x.anchorNode){var S=n.domPositionToView(x.anchorNode,x.anchorOffset),P=n.domPositionToView(x.focusNode,x.focusOffset);S&&P&&(M=new ii(S)).setFocus(P)}p.length&&(this.document.fire("mutations",p,M),this.view.forceRender())}function T(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}}},{key:"_isBogusBrMutation",value:function(e){var t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}])}(bo),Ao=function(){return d((function e(t,n,i){c(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,Rn(this,i)}),[{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}},{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}}])}(),Eo=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).useCapture=!1,n}return p(t,e),d(t,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&!t.checkShouldIgnoreEventFromTarget(n.target)&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new Ao(this.view,t,n))}}])}(bo),Bo=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).domEventType=["keydown","keyup"],n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return bi(this)}})}}])}(Eo),No=function(){return y.a.Date.now()},Ro=/^\s+|\s+$/g,jo=/^[-+]0x[0-9a-f]+$/i,zo=/^0b[01]+$/i,Vo=/^0o[0-7]+$/i,Ho=parseInt,Yo=function(e){if("number"==typeof e)return e;if(on(e))return NaN;if(V(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=V(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ro,"");var n=zo.test(e);return n||Vo.test(e)?Ho(e.slice(2),n?2:8):jo.test(e)?NaN:+e},qo=Math.max,Uo=Math.min,Wo=function(e,t,n){var i,o,a,r,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,a=o;return i=o=void 0,c=t,r=e.apply(a,n)}function m(e){return c=e,s=setTimeout(g,t),u?f(e):r}function p(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function g(){var e=No();if(p(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?Uo(n,a-(e-c)):n}(e))}function v(e){return s=void 0,h&&i?f(e):(i=o=void 0,r)}function y(){var e=No(),n=p(e);if(i=arguments,o=this,l=e,n){if(void 0===s)return m(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),r}return t=Yo(t)||0,V(n)&&(u=!!n.leading,a=(d="maxWait"in n)?qo(Yo(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=o=s=void 0},y.flush=function(){return void 0===s?r:v(No())},y},Jo=function(e){function n(e){var t;return c(this,n),(t=f(this,n,[e]))._fireSelectionChangeDoneDebounced=Wo((function(e){return t.document.fire("selectionChangeDone",e)}),200),t}return p(n,e),d(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("keydown",(function(n,i){t.selection.isFake&&Ci(i.keyCode)&&e.isEnabled&&(i.preventDefault(),e._handleSelectionMove(i.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new ii(t.getRanges(),{backward:t.isBackward,fake:!1});e!=yi.arrowleft&&e!=yi.arrowup||n.setTo(n.getFirstPosition()),e!=yi.arrowright&&e!=yi.arrowdown||n.setTo(n.getLastPosition());var i={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}])}(bo),Go=function(e){function n(e){var t;return c(this,n),(t=f(this,n,[e])).mutationObserver=e.getObserver(Fo),t.selection=t.document.selection,t.domConverter=e.domConverter,t._documents=new WeakSet,t._fireSelectionChangeDoneDebounced=Wo((function(e){return t.document.fire("selectionChangeDone",e)}),200),t._clearInfiniteLoopInterval=setInterval((function(){return t._clearInfiniteLoop()}),1e3),t._loopbackCounter=0,t}return p(n,e),d(n,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(e,i){t._handleSelectionChange(i,n)})),this._documents.add(n))}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e,t){if(this.isEnabled){var n=t.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var i=this.domConverter.domSelectionToView(n);if(0!=i.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(i)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(i))this.view.forceRender();else{var o={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}])}(bo),$o=function(e){function n(e){var t;c(this,n),(t=f(this,n,[e])).domEventType=["focus","blur"],t.useCapture=!0;var i=t.document;return i.on("focus",(function(){i.isFocused=!0,t._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),i.on("blur",(function(t,n){var o=i.selection.editableElement;null!==o&&o!==n.target||(i.isFocused=!1,e.forceRender())})),t}return p(n,e),d(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),t(_(n.prototype),"destroy",this).call(this)}}])}(Eo),Qo=function(e){function t(e){var n;c(this,t),(n=f(this,t,[e])).domEventType=["compositionstart","compositionupdate","compositionend"];var i=n.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}])}(Eo),Ko=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).domEventType=["beforeinput"],n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}])}(Eo);function Zo(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Xo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var ea=["top","right","bottom","left","width","height"],ta=function(){function e(t){c(this,e);var n=Zo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Ct(t)||n)if(n){var i=e.getDomRangeRects(t);na(this,e.getBoundingRect(i))}else na(this,t.getBoundingClientRect());else if(po(t)){var o=t.innerWidth,a=t.innerHeight;na(this,{top:0,right:o,bottom:a,left:0,width:o,height:a})}else na(this,t)}return d(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!ia(t))for(var i=t.parentNode||t.commonAncestorContainer;i&&!ia(i);){var o=new e(i),a=n.getIntersection(o);if(!a)return null;a.getArea()<n.getArea()&&(n=a),i=i.parentNode}return n}},{key:"isEqual",value:function(e){for(var t=0,n=ea;t<n.length;t++){var i=n[t];if(this[i]!==e[i])return!1}return!0}},{key:"contains",value:function(e){var t=this.getIntersection(e);return!(!t||!t.isEqual(e))}},{key:"excludeScrollbarsAndBorders",value:function(){var e,t,n,i=this._source;if(po(i))e=i.innerWidth-i.document.documentElement.clientWidth,t=i.innerHeight-i.document.documentElement.clientHeight,n=i.getComputedStyle(i.document.documentElement).direction;else{var o=Xo(this._source);e=i.offsetWidth-i.clientWidth-o.left-o.right,t=i.offsetHeight-i.clientHeight-o.top-o.bottom,n=i.ownerDocument.defaultView.getComputedStyle(i).direction,this.left+=o.left,this.top+=o.top,this.right-=o.right,this.bottom-=o.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}}],[{key:"getDomRangeRects",value:function(t){var n=[],i=Array.from(t.getClientRects());if(i.length){var a,r=o(i);try{for(r.s();!(a=r.n()).done;){var s=a.value;n.push(new e(s))}}catch(u){r.e(u)}finally{r.f()}}else{var l=t.startContainer;Vi(l)&&(l=l.parentNode);var c=new e(l.getBoundingClientRect());c.right=c.left,c.width=0,n.push(c)}return n}},{key:"getBoundingRect",value:function(t){var n,i={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},a=0,r=o(t);try{for(r.s();!(n=r.n()).done;){var s=n.value;a++,i.left=Math.min(i.left,s.left),i.top=Math.min(i.top,s.top),i.right=Math.max(i.right,s.right),i.bottom=Math.max(i.bottom,s.bottom)}}catch(l){r.e(l)}finally{r.f()}return 0==a?null:(i.width=i.right-i.left,i.height=i.bottom-i.top,new e(i))}}])}();function na(e,t){var n,i=o(ea);try{for(i.s();!(n=i.n()).done;){var a=n.value;e[a]=t[a]}}catch(r){i.e(r)}finally{i.f()}}function ia(e){return!!Ct(e)&&e===e.ownerDocument.body}function oa(e){for(var t=e.target,n=e.viewportOffset,i=void 0===n?0:n,o=da(t),a=o,r=null;a;){ra(ha(a==o?t:r),(function(){return fa(t,a)}));var s=fa(t,a);if(aa(a,s,i),a.parent!=a){if(r=a.frameElement,a=a.parent,!r)return}else a=null}}function aa(e,t,n){var i=t.clone().moveBy(0,n),o=t.clone().moveBy(0,-n),a=new ta(e).excludeScrollbarsAndBorders();if(![o,i].every((function(e){return a.contains(e)}))){var r=e.scrollX,s=e.scrollY;la(o,a)?s-=a.top-t.top+n:sa(i,a)&&(s+=t.bottom-a.bottom+n),ca(t,a)?r-=a.left-t.left+n:ua(t,a)&&(r+=t.right-a.right+n),e.scrollTo(r,s)}}function ra(e,t){for(var n,i,o=da(e);e!=o.document.body;)i=t(),(n=new ta(e).excludeScrollbarsAndBorders()).contains(i)||(la(i,n)?e.scrollTop-=n.top-i.top:sa(i,n)&&(e.scrollTop+=i.bottom-n.bottom),ca(i,n)?e.scrollLeft-=n.left-i.left:ua(i,n)&&(e.scrollLeft+=i.right-n.right)),e=e.parentNode}function sa(e,t){return e.bottom>t.bottom}function la(e,t){return e.top<t.top}function ca(e,t){return e.left<t.left}function ua(e,t){return e.right>t.right}function da(e){return Zo(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function ha(e){if(Zo(e)){var t=e.commonAncestorContainer;return Vi(t)&&(t=t.parentNode),t}return e.parentNode}function fa(e,t){var n=da(e),i=new ta(e);if(n===t)return i;for(var o=n;o!=t;){var a=new ta(o.frameElement).excludeScrollbarsAndBorders();i.moveBy(a.left,a.top),o=o.parent}return i}Object.assign({},{scrollViewportToShowTarget:oa,scrollAncestorsToShowTarget:function(e){ra(ha(e),(function(){return new ta(e)}))}});var ma=function(){return d((function e(t){var n=this;c(this,e),this.document=new ai(t),this.domConverter=new uo(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new no(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Di(this.document),this.addObserver(Fo),this.addObserver(Go),this.addObserver($o),this.addObserver(Bo),this.addObserver(Jo),this.addObserver(Qo),pi&&this.addObserver(Ko),this.document.on("keydown",Gi),function(e){e.document.on("keydown",(function(t,n){return function(e,t,n){if(t.keyCode==yi.arrowright){var i=t.domTarget.ownerDocument.defaultView.getSelection(),o=1==i.rangeCount&&i.getRangeAt(0).collapsed;if(o||t.shiftKey){var a=n.domPositionToView(i.focusNode,i.focusOffset);if(null===a)return;var r=!1,s=a.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(r=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(r){var l=n.viewPositionToDom(s);o?i.collapse(l.parent,l.offset):i.extend(l.parent,l.offset)}}}}(0,n,e.domConverter)}))}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}),[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=this.document.getRoot(n);i._name=e.tagName.toLowerCase();for(var a={},r=0,s=Array.from(e.attributes);r<s.length;r++){var l=s[r],c=l.name,u=l.value;a[c]=u,"class"===c?this._writer.addClass(u.split(" "),i):this._writer.setAttribute(c,u,i)}this._initialDomRootAttributes.set(e,a);var d=function(){t._writer.setAttribute("contenteditable",!i.isReadOnly,i),i.isReadOnly?t._writer.addClass("ck-read-only",i):t._writer.removeClass("ck-read-only",i)};d(),this.domRoots.set(n,e),this.domConverter.bindElements(e,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(e.ownerDocument),i.on("change:children",(function(e,n){return t._renderer.markToSync("children",n)})),i.on("change:attributes",(function(e,n){return t._renderer.markToSync("attributes",n)})),i.on("change:text",(function(e,n){return t._renderer.markToSync("text",n)})),i.on("change:isReadOnly",(function(){return t.change(d)})),i.on("change",(function(){t._hasChangedSinceTheLastRendering=!0}));var h,f=o(this._observers.values());try{for(f.s();!(h=f.n()).done;){var m=h.value;m.observe(e,n)}}catch(p){f.e(p)}finally{f.f()}}},{key:"detachDomRoot",value:function(e){var t=this.domRoots.get(e);Array.from(t.attributes).forEach((function(e){var n=e.name;return t.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(t);for(var i in n)t.setAttribute(i,n[i]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}},{key:"getDomRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,a=o(this.domRoots);try{for(a.s();!(n=a.n()).done;){var r=i(n.value,2),s=r[0],l=r[1];t.observe(l,s)}}catch(c){a.e(c)}finally{a.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=o(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.disable()}}catch(n){t.e(n)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=o(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.enable()}}catch(n){t.e(n)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&oa({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new Lt.a("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){Lt.a.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=o(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return Xn._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Xn._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Xn._createBefore(e)}},{key:"createRange",value:function(e,t){return new ei(e,t)}},{key:"createRangeOn",value:function(e){return ei._createOn(e)}},{key:"createRangeIn",value:function(e){return ei._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new ii(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}])}();Vt(ma,Yn);var pa=function(){function e(t){c(this,e),this.parent=null,this._attrs=en(t)}return d(e,[{key:"index",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new Lt.a("model-node-not-found-in-parent",this);return e}},{key:"startOffset",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new Lt.a("model-node-not-found-in-parent",this);return e}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}},{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),i=e.getAncestors(t),o=0;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),i=$t(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((function(e,t){return e[t[0]]=t[1],e}),{})),e}},{key:"is",value:function(e){return"node"===e||"model:node"===e}},{key:"_clone",value:function(){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(e,t){this._attrs.set(e,t)}},{key:"_setAttributesTo",value:function(e){this._attrs=en(e)}},{key:"_removeAttribute",value:function(e){return this._attrs.delete(e)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}}])}(),ga=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[t]))._data=e||"",i}return p(n,e),d(n,[{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}},{key:"is",value:function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}}],[{key:"fromJSON",value:function(e){return new n(e.data,e.attributes)}}])}(pa),va=function(){return d((function e(t,n,i){if(c(this,e),this.textNode=t,n<0||n>t.offsetSize)throw new Lt.a("model-textproxy-wrong-offsetintext",this);if(i<0||n+i>t.offsetSize)throw new Lt.a("model-textproxy-wrong-length",this);this.data=t.data.substring(n,n+i),this.offsetInText=n}),[{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}}])}(),ya=function(){return d((function e(t){c(this,e),this._nodes=[],t&&this._insertNodes(0,t)}),[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new Lt.a("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,i=o(this._nodes);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(e>=n&&e<n+a.offsetSize)return this.getNodeIndex(a);n+=a.offsetSize}}catch(r){i.e(r)}finally{i.f()}if(n!=e)throw new Lt.a("model-nodelist-offset-out-of-bounds",this,{offset:e,nodeList:this});return this.length}},{key:"_insertNodes",value:function(e,t){var n,i,a=o(t);try{for(a.s();!(i=a.n()).done;){if(!(i.value instanceof pa))throw new Lt.a("model-nodelist-insertnodes-not-node",this)}}catch(s){a.e(s)}finally{a.f()}(n=this._nodes).splice.apply(n,[e,0].concat(r(t)))}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}}])}(),ba=function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n,[t])).name=e,o._children=new ya,i&&o._insertChild(0,i),o}return p(n,e),d(n,[{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;n=n.getChild(n.offsetToIndex(a))}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var i,a=o(this._children);try{for(a.s();!(i=a.n()).done;){var r=i.value;e.children.push(r.toJSON())}}catch(s){a.e(s)}finally{a.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new ga(e)]:(zt(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new ga(e):e instanceof va?new ga(e.data,e.getAttributes()):e})))}(t),a=o(i);try{for(a.s();!(n=a.n()).done;){var r=n.value;null!==r.parent&&r._remove(),r.parent=this}}catch(s){a.e(s)}finally{a.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),a=o(i);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.parent=null}}catch(s){a.e(s)}finally{a.f()}return i}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var i,a=o(e.children);try{for(a.s();!(i=a.n()).done;){var r=i.value;t.push(r.name?n.fromJSON(r):ga.fromJSON(r))}}catch(s){a.e(s)}finally{a.f()}}return new n(e.name,e.attributes,t)}}])}(pa),_a=function(){return d((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(this,e),!t.boundaries&&!t.startPosition)throw new Lt.a("model-tree-walker-no-start-position",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new Lt.a("model-tree-walker-unknown-direction",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,this.position=t.startPosition?t.startPosition.clone():Ca._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}),[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,i,o;do{var a;i=this.position,o=this._visitedParent,t=(a=this.next()).done,n=a.value}while(!t&&e(n));t||(this.position=i,this._visitedParent=o)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var i=t.parent,o=wa(t,i),a=o||xa(t,i,o);if(a instanceof ba)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=a),this.position=t,ka("elementStart",a,e,t,1);if(a instanceof ga){var r;if(this.singleCharacters)r=1;else{var s=a.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),r=s-t.offset}var l=new va(a,t.offset-a.startOffset,r);return t.offset+=r,this.position=t,ka("text",l,e,t,r)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():ka("elementEnd",n,e,t)}},{key:"_previous",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};var i=t.parent,o=wa(t,i),a=o||Ma(t,i,o);if(a instanceof ba)return t.offset--,this.shallow?(this.position=t,ka("elementStart",a,e,t,1)):(t.path.push(a.maxOffset),this.position=t,this._visitedParent=a,this.ignoreElementEnd?this._previous():ka("elementEnd",a,e,t));if(a instanceof ga){var r;if(this.singleCharacters)r=1;else{var s=a.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),r=t.offset-s}var l=new va(a,t.offset-a.startOffset-r,r);return t.offset-=r,this.position=t,ka("text",l,e,t,r)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,ka("elementStart",n,e,t,1)}}])}();function ka(e,t,n,i,o){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:o}}}var Ca=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(c(this,e),!t.is("element")&&!t.is("documentFragment"))throw new Lt.a("model-position-root-invalid",t);if(!(n instanceof Array)||0===n.length)throw new Lt.a("model-position-path-incorrect-format",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(r(t.getPath()),r(n)),t=t.root),this.root=t,this.path=n,this.stickiness=i}return d(e,[{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t<this.path.length-1;t++)if(!(e=e.getChild(e.offsetToIndex(this.path[t]))))throw new Lt.a("model-position-path-incorrect",this,{position:this});if(e.is("$text"))throw new Lt.a("model-position-path-incorrect",this,{position:this});return e}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return wa(this,this.parent)}},{key:"nodeAfter",get:function(){var e=this.parent;return xa(this,e,wa(this,e))}},{key:"nodeBefore",get:function(){var e=this.parent;return Ma(this,e,wa(this,e))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}},{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=$t(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new _a(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=$t(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),i=0;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,i=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),i=e._createAt(t);break;case"after":n=e._createAt(t),i=e._createAt(this);break;default:return!1}for(var o=n.parent;n.path.length+i.path.length;){if(n.isEqual(i))return!0;if(n.path.length>i.path.length){if(n.offset!==o.maxOffset)return!1;n.path=n.path.slice(0,-1),o=o.parent,n.offset++}else{if(0!==i.offset)return!1;i.path=i.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==$t(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,i=t.movedRange;return i.containsPosition(this)||i.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==$t(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;i.offset-=n}}else if("prefix"==$t(t.getParentPath(),this.getParentPath())){var o=t.path.length-1;if(t.offset<=this.path[o]){if(t.offset+n>this.path[o])return null;i.path[o]-=n}}return i}},{key:"_getTransformedByInsertion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==$t(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(i.offset+=n);else if("prefix"==$t(t.getParentPath(),this.getParentPath())){var o=t.path.length-1;t.offset<=this.path[o]&&(i.path[o]+=n)}return i}},{key:"_getTransformedByMove",value:function(t,n,i){if(n=n._getTransformedByDeletion(t,i),t.isEqual(n))return e._createAt(this);var o=this._getTransformedByDeletion(t,i);return null===o||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(i).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):o._getTransformedByInsertion(n,i)}},{key:"_getCombined",value:function(t,n){var i=t.path.length-1,o=e._createAt(n);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[i]-t.offset,o.path=[].concat(r(o.path),r(this.path.slice(i+1))),o}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}}],[{key:"_createAt",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var o=t;if("end"==n)n=o.maxOffset;else{if("before"==n)return this._createBefore(o,i);if("after"==n)return this._createAfter(o,i);if(0!==n&&!n)throw new Lt.a("model-createpositionat-offset-required",[this,t])}if(!o.is("element")&&!o.is("documentFragment"))throw new Lt.a("model-position-parent-incorrect",[this,t]);var a=o.getPath();return a.push(n),new this(o.root,a,i)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new Lt.a("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new Lt.a("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var i=new e(n.graveyard,t.path);return i.stickiness=t.stickiness,i}if(!n.getRoot(t.root))throw new Lt.a("model-position-fromjson-no-root",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}])}();function wa(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function xa(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function Ma(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}var Sa=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;c(this,e),this.start=Ca._createAt(t),this.end=Ca._createAt(n||t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return d(e,[{key:Symbol.iterator,value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new _a({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==$t(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}},{key:"containsItem",value:function(e){var t=Ca._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.isIntersecting(t);if(i||(i=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!i)return null;var o=this.start,a=this.end;return t.start.isBefore(o)&&(o=t.start),t.end.isAfter(a)&&(a=t.end),new e(o,a)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,i=Ca._createAt(this.start),o=i.parent;i.path.length>n+1;){var a=o.maxOffset-i.offset;0!==a&&t.push(new e(i,i.getShiftedBy(a))),i.path=i.path.slice(0,-1),i.offset++,o=o.parent}for(;i.path.length<=this.end.path.length;){var r=this.end.path[i.path.length-1],s=r-i.offset;0!==s&&t.push(new e(i,i.getShiftedBy(s))),i.offset=r,i.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new _a(e)}},{key:"getItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a().mark((function n(){var i,r,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.boundaries=e,t.ignoreElementEnd=!0,i=new _a(t),r=o(i),n.prev=3,r.s();case 5:if((s=r.n()).done){n.next=11;break}return l=s.value,n.next=9,l.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),r.e(n.t0);case 16:return n.prev=16,r.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a().mark((function n(){var i,r,s,l;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.boundaries=e,i=new _a(t),n.next=4,i.position;case 4:r=o(i),n.prev=5,r.s();case 7:if((s=r.n()).done){n.next=13;break}return l=s.value,n.next=11,l.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),r.e(n.t0);case 18:return n.prev=18,r.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,i=[new e(this.start,this.end)],a=o(t);try{for(a.s();!(n=a.n()).done;)for(var s=n.value,l=0;l<i.length;l++){var c=i[l].getTransformedByOperation(s);i.splice.apply(i,[l,1].concat(r(c))),l+=c.length-1}}catch(m){a.e(m)}finally{a.f()}for(var u=0;u<i.length;u++)for(var d=i[u],h=u+1;h<i.length;h++){var f=i[h];(d.containsRange(f)||f.containsRange(d)||d.isEqual(f))&&i.splice(h,1)}return i}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),i=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(i=this.end.getShiftedBy(1)),n.root!=i.root&&(i=this.end.getShiftedBy(-1)),new e(n,i)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),i=this.end._getTransformedByMergeOperation(t);return n.root!=i.root&&(i=this.end.getShiftedBy(-1)),n.isAfter(i)?(t.sourcePosition.isBefore(t.targetPosition)?(n=Ca._createAt(i)).offset=0:(t.deletionPosition.isEqual(n)||(i=t.deletionPosition),n=t.targetPosition),new e(n,i)):new e(n,i)}},{key:"_getTransformedByInsertion",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var o=new e(this.start,this.end);return o.start=o.start._getTransformedByInsertion(t,n),o.end=o.end._getTransformedByInsertion(t,n),[o]}},{key:"_getTransformedByMove",value:function(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var a=this.start._getTransformedByMove(t,n,i);return[new e(a)]}var r,s=e._createFromPositionAndShift(t,i),l=n._getTransformedByDeletion(t,i);if(this.containsPosition(n)&&!o&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var c=this.start._getTransformedByMove(t,n,i),u=this.end._getTransformedByMove(t,n,i);return[new e(c,u)]}var d=this.getDifference(s),h=null,f=this.getIntersection(s);if(1==d.length?h=new e(d[0].start._getTransformedByDeletion(t,i),d[0].end._getTransformedByDeletion(t,i)):2==d.length&&(h=new e(this.start,this.end._getTransformedByDeletion(t,i))),r=h?h._getTransformedByInsertion(l,i,null!==f||o):[],f){var m=new e(f.start._getCombined(s.start,l),f.end._getCombined(s.start,l));2==r.length?r.splice(1,0,m):r.push(m)}return r}},{key:"_getTransformedByDeletion",value:function(t,n){var i=this.start._getTransformedByDeletion(t,n),o=this.end._getTransformedByDeletion(t,n);return null==i&&null==o?null:(null==i&&(i=t),null==o&&(o=t),new e(i,o))}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(e){return new this(Ca._createAt(e,0),Ca._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(Ca._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new Lt.a("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),i=new this(t.start,t.end);if(n>0)for(var o=n-1;e[o].end.isEqual(i.start);o++)i.start=Ca._createAt(e[o].start);for(var a=n+1;a<e.length&&e[a].start.isEqual(i.end);a++)i.end=Ca._createAt(e[a].end);return i}},{key:"fromJSON",value:function(e,t){return new this(Ca.fromJSON(e.start,t),Ca.fromJSON(e.end,t))}}])}(),Pa=function(){return d((function e(){var t=this;c(this,e),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var i=t._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=t.findPositionIn(i,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var i=t.findMappedViewAncestor(n.viewPosition),o=t._viewToModelMapping.get(i),a=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,i);n.modelPosition=Ca._createAt(o,a)}}),{priority:"low"})}),[{key:"bindElements",value:function(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}},{key:"unbindViewElement",value:function(e){var t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e)){var n,i=o(this._elementToMarkerNames.get(e));try{for(i.s();!(n=i.n()).done;){var a=n.value;this._unboundMarkerNames.add(a)}}catch(r){i.e(r)}finally{i.f()}}this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var i=this._elementToMarkerNames.get(e)||new Set;i.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,i)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var i=this._elementToMarkerNames.get(e);i&&(i.delete(t),0==i.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new Sa(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new ei(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,i=new Set,a=o(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.is("attributeElement")){var s,l=o(r.getElementsWithSameId());try{for(l.s();!(s=l.n()).done;){var c=s.value;i.add(c)}}catch(u){l.e(u)}finally{l.f()}}else i.add(r)}}catch(u){a.e(u)}finally{a.f()}return i}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var i=0,o=0;o<t;o++)i+=this.getModelLength(e.getChild(o));return i}},{key:"getModelLength",value:function(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;var t,n=0,i=o(e.getChildren());try{for(i.s();!(t=i.n()).done;){var a=t.value;n+=this.getModelLength(a)}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"findPositionIn",value:function(e,t){var n,i=0,o=0,a=0;if(e.is("$text"))return new Xn(e,t);for(;o<t;)n=e.getChild(a),o+=i=this.getModelLength(n),a++;return o==t?this._moveViewPositionToTextNode(new Xn(e,a)):this.findPositionIn(n,t-(o-i))}},{key:"_moveViewPositionToTextNode",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;return t instanceof Zt?new Xn(t,t.data.length):n instanceof Zt?new Xn(n,0):e}}])}();Vt(Pa,Ft);var Ta=function(){return d((function e(){c(this,e),this._consumable=new Map,this._textProxyRegistry=new Map}),[{key:"add",value:function(e,t){t=Oa(t),e instanceof va&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}},{key:"consume",value:function(e,t){return t=Oa(t),e instanceof va&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}},{key:"test",value:function(e,t){t=Oa(t),e instanceof va&&(e=this._getSymbolForTextProxy(e));var n=this._consumable.get(e);if(void 0===n)return null;var i=n.get(t);return void 0===i?null:i}},{key:"revert",value:function(e,t){t=Oa(t),e instanceof va&&(e=this._getSymbolForTextProxy(e));var n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(e){var t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){var i=n.get(e.endOffset);i&&(t=i.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}},{key:"_addSymbolForTextProxy",value:function(e,t,n){var i,o,a=Symbol("textProxySymbol");return(i=this._textProxyRegistry.get(e))||(i=new Map,this._textProxyRegistry.set(e,i)),(o=i.get(t))||(o=new Map,i.set(t,o)),o.set(n,a),a}}])}();function Oa(e){var t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}var La=function(){return d((function e(t){c(this,e),this.conversionApi=Object.assign({dispatcher:this},t),this._reconversionEventsMapping=new Map}),[{key:"convertChanges",value:function(e,t,n){var i,a=o(e.getMarkersToRemove());try{for(a.s();!(i=a.n()).done;){var r=i.value;this.convertMarkerRemove(r.name,r.range,n)}}catch(v){a.e(v)}finally{a.f()}var s,l=o(this._mapChangesWithAutomaticReconversion(e));try{for(l.s();!(s=l.n()).done;){var c=s.value;"insert"===c.type?this.convertInsert(Sa._createFromPositionAndShift(c.position,c.length),n):"remove"===c.type?this.convertRemove(c.position,c.length,c.name,n):"reconvert"===c.type?this.reconvertElement(c.element,n):this.convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,n)}}catch(v){l.e(v)}finally{l.f()}var u,d=o(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(d.s();!(u=d.n()).done;){var h=u.value,f=t.get(h).getRange();this.convertMarkerRemove(h,f,n),this.convertMarkerAdd(h,f,n)}}catch(v){d.e(v)}finally{d.f()}var m,p=o(e.getMarkersToAdd());try{for(p.s();!(m=p.n()).done;){var g=m.value;this.convertMarkerAdd(g.name,g.range,n)}}catch(v){p.e(v)}finally{p.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,i=o(Array.from(e).map(Ia));try{for(i.s();!(n=i.n()).done;){var a=n.value;this._convertInsertWithAttributes(a)}}catch(r){i.e(r)}finally{i.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,i){this.conversionApi.writer=i,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,i,a){this.conversionApi.writer=a,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var r,s=o(e);try{for(s.s();!(r=s.n()).done;){var l=r.value,c={item:l.item,range:Sa._createFromPositionAndShift(l.previousPosition,l.length),attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:"+t,c)}}catch(u){s.e(u)}finally{s.f()}this._clearConversionApi()}},{key:"reconvertElement",value:function(e,t){var n=Sa._createOn(e);this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(n);var i=this.conversionApi.mapper,a=i.toViewElement(e);t.remove(a),this._convertInsertWithAttributes({item:e,range:n});var r,s=i.toViewElement(e),l=o(Sa._createIn(e));try{for(l.s();!(r=l.n()).done;){var c=r.value,u=c.item,d=Fa(u,i);d?d.root!==s.root&&t.move(t.createRangeOn(d),i.toViewPosition(Ca._createBefore(u))):this._convertInsertWithAttributes(Ia(c))}}catch(h){l.e(h)}finally{l.f()}i.unbindViewElement(a),this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,i),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var a,r=o(i);try{for(r.s();!(a=r.n()).done;){var s=a.value,l=s.getRange();if(Da(e.getFirstPosition(),s,this.conversionApi.mapper)){var c={item:e,markerName:s.name,markerRange:l};this.conversionApi.consumable.test(e,"addMarker:"+s.name)&&this.fire("addMarker:"+s.name,c,this.conversionApi)}}}catch(m){r.e(m)}finally{r.f()}var u,d=o(e.getAttributeKeys());try{for(d.s();!(u=d.n()).done;){var h=u.value,f={item:e,range:e.getFirstRange(),attributeKey:h,attributeOldValue:null,attributeNewValue:e.getAttribute(h)};this.conversionApi.consumable.test(e,"attribute:"+f.attributeKey)&&this.fire("attribute:"+f.attributeKey+":$text",f,this.conversionApi)}}catch(m){d.e(m)}finally{d.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if(t.root.document&&"$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var i="addMarker:"+e,a=new Ta;if(a.add(t,i),this.conversionApi.consumable=a,this.fire(i,{markerName:e,markerRange:t},this.conversionApi),a.test(t,i)){this.conversionApi.consumable=this._createConsumableForRange(t,i);var r,s=o(t.getItems());try{for(s.s();!(r=s.n()).done;){var l=r.value;if(this.conversionApi.consumable.test(l,i)){var c={item:l,range:Sa._createOn(l),markerName:e,markerRange:t};this.fire(i,c,this.conversionApi)}}}catch(u){s.e(u)}finally{s.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_mapReconversionTriggerEvent",value:function(e,t){this._reconversionEventsMapping.set(t,e)}},{key:"_createInsertConsumable",value:function(e){var t,n=new Ta,i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value.item;n.add(a,"insert");var r,s=o(a.getAttributeKeys());try{for(s.s();!(r=s.n()).done;){var l=r.value;n.add(a,"attribute:"+l)}}catch(c){s.e(c)}finally{s.f()}}}catch(c){i.e(c)}finally{i.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,i=new Ta,a=o(e.getItems());try{for(a.s();!(n=a.n()).done;){var r=n.value;i.add(r,t)}}catch(s){a.e(s)}finally{a.f()}return i}},{key:"_createSelectionConsumable",value:function(e,t){var n=new Ta;n.add(e,"selection");var i,a=o(t);try{for(a.s();!(i=a.n()).done;){var r=i.value;n.add(e,"addMarker:"+r.name)}}catch(u){a.e(u)}finally{a.f()}var s,l=o(e.getAttributeKeys());try{for(l.s();!(s=l.n()).done;){var c=s.value;n.add(e,"attribute:"+c)}}catch(u){l.e(u)}finally{l.f()}return n}},{key:"_testAndFire",value:function(e,t){this.conversionApi.consumable.test(t.item,e)&&this.fire(function(e,t){return"".concat(e,":").concat(t.item.name||"$text")}(e,t),t,this.conversionApi)}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}},{key:"_convertInsertWithAttributes",value:function(e){this._testAndFire("insert",e);var t,n=o(e.item.getAttributeKeys());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.attributeKey=i,e.attributeOldValue=null,e.attributeNewValue=e.item.getAttribute(i),this._testAndFire("attribute:"+i,e)}}catch(a){n.e(a)}finally{n.f()}}},{key:"_mapChangesWithAutomaticReconversion",value:function(e){var t,n=new Set,i=[],a=o(e.getChanges());try{for(a.s();!(t=a.n()).done;){var r=t.value,s=r.position||r.range.start,l=s.parent;if(wa(s,l))i.push(r);else{var c="attribute"===r.type?xa(s,l,null):l;if(c.is("$text"))i.push(r);else{var u;if(u="attribute"===r.type?"attribute:".concat(r.attributeKey,":").concat(c.name):"".concat(r.type,":").concat(r.name),this._isReconvertTriggerEvent(u,c.name)){if(n.has(c))continue;n.add(c),i.push({type:"reconvert",element:c})}else i.push(r)}}}}catch(d){a.e(d)}finally{a.f()}return i}},{key:"_isReconvertTriggerEvent",value:function(e,t){return this._reconversionEventsMapping.get(e)===t}}])}();function Da(e,t,n){var i=t.getRange(),o=Array.from(e.getAncestors());return o.shift(),o.reverse(),!o.some((function(e){if(i.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function Ia(e){return{item:e.item,range:Sa._createFromPositionAndShift(e.previousPosition,e.length)}}function Fa(e,t){if(e.is("textProxy")){var n=t.toViewPosition(Ca._createBefore(e)).parent;return n.is("$text")?n:null}return t.toViewElement(e)}Vt(La,Ft);var Aa=function(){function e(t,n,i){c(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,i)}return d(e,[{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=o(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,a=t.value,r=!1,s=o(e._ranges);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(a.isEqual(l)){r=!0;break}}}catch(c){s.e(c)}finally{s.f()}if(!r)return!1}}catch(c){n.e(c)}finally{n.f()}return!0}},{key:"getRanges",value:a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,new Sa(i.start,i.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=o(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(a){n.e(a)}finally{n.f()}return t?new Sa(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=o(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(a){n.e(a)}finally{n.f()}return t?new Sa(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,i){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof Sa)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Ca)this._setRanges([new Sa(t)]);else if(t instanceof pa){var o,a=!!i&&!!i.backward;if("in"==n)o=Sa._createIn(t);else if("on"==n)o=Sa._createOn(t);else{if(void 0===n)throw new Lt.a("model-selection-setto-required-second-parameter",[this,t]);o=new Sa(Ca._createAt(t,n))}this._setRanges([o],a)}else{if(!zt(t))throw new Lt.a("model-selection-setto-not-selectable",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(e=Array.from(e)).some((function(n){if(!(n instanceof Sa))throw new Lt.a("model-selection-set-ranges-not-range",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||i){this._removeAllRanges();var a,r=o(e);try{for(r.s();!(a=r.n()).done;){var s=a.value;this._pushRange(s)}}catch(l){r.e(l)}finally{r.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Lt.a("model-selection-setfocus-no-ranges",[this,e]);var n=Ca._createAt(e,t);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new Sa(n,i)),this._lastRangeBackward=!0):(this._pushRange(new Sa(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:a().mark((function e(){var t,n,i,r,s,l,c,u,d,h;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new WeakSet,n=o(this.getRanges()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=38;break}if(r=i.value,s=Na(r.start,t),e.t0=s&&Ra(s,r),!e.t0){e.next=11;break}return e.next=11,s;case 11:l=o(r.getWalker()),e.prev=12,l.s();case 14:if((c=l.n()).done){e.next=23;break}if(u=c.value,d=u.item,e.t1="elementEnd"==u.type&&Ba(d,t,r),!e.t1){e.next=21;break}return e.next=21,d;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(12),l.e(e.t2);case 28:return e.prev=28,l.f(),e.finish(28);case 31:if(h=Na(r.end,t),e.t3=h&&!r.end.isTouching(Ca._createAt(h,0))&&Ra(h,r),!e.t3){e.next=36;break}return e.next=36,h;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e.catch(2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=Ca._createAt(e,0),n=Ca._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new Sa(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new Lt.a("model-selection-range-intersects",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}}])}();function Ea(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function Ba(e,t,n){return Ea(e,t)&&Ra(e,n)}function Na(e,t){var n=e.parent.root.document.model.schema,i=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),o=!1,a=i.find((function(e){return!o&&(!(o=n.isLimit(e))&&Ea(e,t))}));return i.forEach((function(e){return t.add(e)})),a}function Ra(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(Sa._createOn(n),!0)}Vt(Aa,Ft);var ja=function(e){function t(e,n){var i;return c(this,t),i=f(this,t,[e,n]),za.call(m(i)),i}return p(t,e),d(t,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new Sa(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new t(e.start,e.end)}}])}(Sa);function za(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var i=n[0];i.isDocumentOperation&&Va.call(e,i)}),{priority:"low"})}function Va(e){var t=this.getTransformedByOperation(e),n=Sa._createFromRanges(t),i=!n.isEqual(this),o=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),a=null;if(i){"$graveyard"==n.root.rootName&&(a="remove"==e.type?e.sourcePosition:e.deletionPosition);var r=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",r,{deletionPosition:a})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:a})}Vt(ja,Ft);var Ha=function(){return d((function e(t){c(this,e),this._selection=new Ya(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}),[{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"observeMarkers",value:function(e){this._selection.observeMarkers(e)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}}],[{key:"_getStoreAttributeKey",value:function(e){return"selection:"+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith("selection:")}}])}();Vt(Ha,Ft);var Ya=function(e){function n(e){var t;return c(this,n),(t=f(this,n)).markers=new Ht({idProperty:"name"}),t._model=e.model,t._document=e,t._attributePriority=new Map,t._selectionRestorePosition=null,t._hasChangedRange=!1,t._overriddenGravityRegister=new Set,t._observedMarkers=new Set,t.listenTo(t._model,"applyOperation",(function(e,n){var i=n[0];i.isDocumentOperation&&"marker"!=i.type&&"rename"!=i.type&&"noop"!=i.type&&(0==t._ranges.length&&t._selectionRestorePosition&&t._fixGraveyardSelection(t._selectionRestorePosition),t._selectionRestorePosition=null,t._hasChangedRange&&(t._hasChangedRange=!1,t.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),t.on("change:range",(function(){var e,n=o(t.getRanges());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!t._document._validateSelectionRange(i))throw new Lt.a("document-selection-wrong-position",m(t),{range:i})}}catch(a){n.e(a)}finally{n.f()}})),t.listenTo(t._model.markers,"update",(function(e,n,i,o){t._updateMarker(n,o)})),t.listenTo(t._document,"change",(function(e,n){!function(e,t){var n,i=o(e.document.differ.getChanges());try{var a=function(){var i=n.value;if("insert"!=i.type)return 1;var a=i.position.parent;i.length===a.maxOffset&&e.enqueueChange(t,(function(e){var t,n=o(Array.from(a.getAttributeKeys()).filter((function(e){return e.startsWith("selection:")})));try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeAttribute(i,a)}}catch(r){n.e(r)}finally{n.f()}}))};for(i.s();!(n=i.n()).done;)a()}catch(r){i.e(r)}finally{i.f()}}(t._model,n)})),t}return p(n,e),d(n,[{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:t(_(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return t(_(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return t(_(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}},{key:"destroy",value:function(){for(var e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}},{key:"getRanges",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._ranges.length){e.next=4;break}return e.delegateYield(t(_(n.prototype),"getRanges",this).call(this),"t0",2);case 2:e.next=6;break;case 4:return e.next=6,this._document._getDefaultRange();case 6:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return t(_(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return t(_(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(e,i,o){t(_(n.prototype),"setTo",this).call(this,e,i,o),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(e,i){t(_(n.prototype),"setFocus",this).call(this,e,i),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(e,t){this._setAttribute(e,t)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}},{key:"removeAttribute",value:function(e){this._removeAttribute(e)&&this.fire("change:attribute",{attributeKeys:[e],directChange:!0})}},{key:"overrideGravity",value:function(){var e=Tt();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}},{key:"restoreGravity",value:function(e){if(!this._overriddenGravityRegister.has(e))throw new Lt.a("document-selection-gravity-wrong-restore",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"observeMarkers",value:function(e){this._observedMarkers.add(e),this._updateMarkers()}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(e){var t=this._prepareRange(e);t&&this._ranges.push(t)}},{key:"_prepareRange",value:function(e){var t=this;if(this._checkRange(e),e.root!=this._document.graveyard){var n=ja.fromRange(e);return n.on("change:range",(function(e,i,o){if(t._hasChangedRange=!0,n.root==t._document.graveyard){t._selectionRestorePosition=o.deletionPosition;var a=t._ranges.indexOf(n);t._ranges.splice(a,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){if(this._observedMarkers.size){var e,t=[],n=!1,i=o(this._model.markers);try{for(i.s();!(e=i.n()).done;){var a=e.value,r=a.name.split(":",1)[0];if(this._observedMarkers.has(r)){var s,l=a.getRange(),c=o(this.getRanges());try{for(c.s();!(s=c.n()).done;){var u=s.value;l.containsRange(u,!u.isCollapsed)&&t.push(a)}}catch(y){c.e(y)}finally{c.f()}}}}catch(y){i.e(y)}finally{i.f()}for(var d=Array.from(this.markers),h=0,f=t;h<f.length;h++){var m=f[h];this.markers.has(m)||(this.markers.add(m),n=!0)}for(var p=0,g=Array.from(this.markers);p<g.length;p++){var v=g[p];t.includes(v)||(this.markers.remove(v),n=!0)}n&&this.fire("change:marker",{oldMarkers:d,directChange:!1})}}},{key:"_updateMarker",value:function(e,t){var n=e.name.split(":",1)[0];if(this._observedMarkers.has(n)){var i=!1,a=Array.from(this.markers),r=this.markers.has(e);if(t){var s,l=!1,c=o(this.getRanges());try{for(c.s();!(s=c.n()).done;){var u=s.value;if(t.containsRange(u,!u.isCollapsed)){l=!0;break}}}catch(d){c.e(d)}finally{c.f()}l&&!r?(this.markers.add(e),i=!0):!l&&r&&(this.markers.remove(e),i=!0)}else r&&(this.markers.remove(e),i=!0);i&&this.fire("change:marker",{oldMarkers:a,directChange:!1})}}},{key:"_updateAttributes",value:function(e){var t=en(this._getSurroundingAttributes()),n=en(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else{var a,r=o(this._attributePriority);try{for(r.s();!(a=r.n()).done;){var s=i(a.value,2),l=s[0];"low"==s[1]&&(this._attrs.delete(l),this._attributePriority.delete(l))}}catch(y){r.e(y)}finally{r.f()}}this._setAttributesTo(t);var c,u=[],d=o(this.getAttributes());try{for(d.s();!(c=d.n()).done;){var h=i(c.value,2),f=h[0],m=h[1];n.has(f)&&n.get(f)===m||u.push(f)}}catch(y){d.e(y)}finally{d.f()}var p,g=o(n);try{for(g.s();!(p=g.n()).done;){var v=i(p.value,1)[0];this.hasAttribute(v)||u.push(v)}}catch(y){g.e(y)}finally{g.f()}u.length>0&&this.fire("change:attribute",{attributeKeys:u,directChange:!1})}},{key:"_setAttribute",value:function(e,i){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=o?"normal":"low";return("low"!=a||"normal"!=this._attributePriority.get(e))&&t(_(n.prototype),"getAttribute",this).call(this,e)!==i&&(this._attrs.set(e,i),this._attributePriority.set(e,a),!0)}},{key:"_removeAttribute",value:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=i?"normal":"low";return!("low"==o&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,o),!t(_(n.prototype),"hasAttribute",this).call(this,e)||(this._attrs.delete(e),0)))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,a=o(this.getAttributes());try{for(a.s();!(t=a.n()).done;){var r=i(t.value,2),s=r[0],l=r[1];e.get(s)!==l&&this._removeAttribute(s,!1)}}catch(m){a.e(m)}finally{a.f()}var c,u=o(e);try{for(u.s();!(c=u.n()).done;){var d=i(c.value,2),h=d[0],f=d[1];this._setAttribute(h,f,!1)&&n.add(h)}}catch(m){u.e(m)}finally{u.f()}return n}},{key:"_getStoredAttributes",value:a().mark((function e(){var t,n,i,r,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=o(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((i=n.n()).done){e.next=13;break}if(!(r=i.value).startsWith("selection:")){e.next=11;break}return s=r.substr("selection:".length),e.next=11,[s,t.getAttribute(r)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var i=e.textNode?e.textNode:e.nodeBefore,a=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=qa(i)),n||(n=qa(a)),!this.isGravityOverridden&&!n)for(var r=i;r&&!t.isInline(r)&&!n;)n=qa(r=r.previousSibling);if(!n)for(var s=a;s&&!t.isInline(s)&&!n;)n=qa(s=s.nextSibling);n||(n=this._getStoredAttributes())}else{var l,c=o(this.getFirstRange());try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u.item.is("element")&&t.isObject(u.item))break;if("text"==u.type){n=u.item.getAttributes();break}}}catch(d){c.e(d)}finally{c.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}])}(Aa);function qa(e){return e instanceof va||e instanceof ga?e.getAttributes():null}var Ua=function(){return d((function e(t){c(this,e),this._dispatchers=t}),[{key:"add",value:function(e){var t,n=o(this._dispatchers);try{for(n.s();!(t=n.n()).done;){e(t.value)}}catch(i){n.e(i)}finally{n.f()}return this}}])}(),Wa=function(e){return _t(e,5)},Ja=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=Wa(e)).view=Qa(e.view,"container"),function(t){var n;if(t.on("insert:"+e.model,(n=e.view,function(e,t,i){var o=n(t.item,i);if(o&&i.consumable.consume(t.item,"insert")){var a=i.mapper.toViewPosition(t.range.start);i.mapper.bindElements(t.item,o),i.writer.insert(a,o)}}),{priority:e.converterPriority||"normal"}),e.triggerBy){if(e.triggerBy.attributes){var i,a=o(e.triggerBy.attributes);try{for(a.s();!(i=a.n()).done;){var r=i.value;t._mapReconversionTriggerEvent(e.model,"attribute:".concat(r,":").concat(e.model))}}catch(u){a.e(u)}finally{a.f()}}if(e.triggerBy.children){var s,l=o(e.triggerBy.children);try{for(l.s();!(s=l.n()).done;){var c=s.value;t._mapReconversionTriggerEvent(e.model,"insert:"+c),t._mapReconversionTriggerEvent(e.model,"remove:"+c)}}catch(u){l.e(u)}finally{l.f()}}}}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){var t="attribute:"+((e=Wa(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=o(e.model.values);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.view[a]=Qa(e.view[a],"attribute")}}catch(s){i.e(s)}finally{i.f()}}else e.view=Qa(e.view,"attribute");var r=Ka(e);return function(n){n.on(t,function(e){return function(t,n,i){var o=e(n.attributeOldValue,i),a=e(n.attributeNewValue,i);if((o||a)&&i.consumable.consume(n.item,t.name)){var r=i.writer;if(n.item instanceof Aa||n.item instanceof Ha)r.wrap(r.document.selection.getFirstRange(),a);else{var s=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&o&&(s=r.unwrap(s,o)),null!==n.attributeNewValue&&a&&r.wrap(s,a)}}}}(r),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t="attribute:"+((e=Wa(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=o(e.model.values);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.view[a]=Za(e.view[a])}}catch(s){i.e(s)}finally{i.f()}}else e.view=Za(e.view);var r=Ka(e);return function(n){var i;n.on(t,(i=r,function(e,t,n){var a=i(t.attributeOldValue,n),r=i(t.attributeNewValue,n);if((a||r)&&n.consumable.consume(t.item,e.name)){var l=n.mapper.toViewElement(t.item),c=n.writer;if(!l)throw new Lt.a("conversion-attribute-to-attribute-on-text",[t,n]);if(null!==t.attributeOldValue&&a)if("class"==a.key){var u,d=o(qt(a.value));try{for(d.s();!(u=d.n()).done;){var h=u.value;c.removeClass(h,l)}}catch(s){d.e(s)}finally{d.f()}}else if("style"==a.key)for(var f=0,m=Object.keys(a.value);f<m.length;f++){var p=m[f];c.removeStyle(p,l)}else c.removeAttribute(a.key,l);if(null!==t.attributeNewValue&&r)if("class"==r.key){var g,v=o(qt(r.value));try{for(v.s();!(g=v.n()).done;){var y=g.value;c.addClass(y,l)}}catch(s){v.e(s)}finally{v.f()}}else if("style"==r.key)for(var b=0,_=Object.keys(r.value);b<_.length;b++){var k=_[b];c.setStyle(k,r.value[k],l)}else c.setAttribute(r.key,r.value,l)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToElement",value:function(e){return this.add(function(e){return(e=Wa(e)).view=Qa(e.view,"ui"),function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,i){t.isOpening=!0;var a=n(t,i);t.isOpening=!1;var r=n(t,i);if(a&&r){var s=t.markerRange;if(!s.isCollapsed||i.consumable.consume(s,e.name)){var l,c=o(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;if(!i.consumable.consume(u.item,e.name))return}}catch(f){c.e(f)}finally{c.f()}var d=i.mapper,h=i.writer;h.insert(d.toViewPosition(s.start),a),i.mapper.bindElementToMarker(a,t.markerName),s.isCollapsed||(h.insert(d.toViewPosition(s.end),r),i.mapper.bindElementToMarker(r,t.markerName)),e.stop()}}}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(function(e,t,n){var i=n.mapper.markerNameToElements(t.markerName);if(i){var a,r=o(i);try{for(r.s();!(a=r.n()).done;){var s=a.value;n.mapper.unbindElementFromMarkerName(s,t.markerName),n.writer.clear(n.writer.createRangeOn(s),s)}}catch(l){r.e(l)}finally{r.f()}n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToHighlight",value:function(e){return this.add(function(e){return function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,i){if(t.item&&(t.item instanceof Aa||t.item instanceof Ha||t.item.is("$textProxy"))){var a=Xa(n,t,i);if(a&&i.consumable.consume(t.item,e.name)){var r=i.writer,s=Ga(r,a),l=r.document.selection;if(t.item instanceof Aa||t.item instanceof Ha)r.wrap(l.getFirstRange(),s,l);else{var c,u=i.mapper.toViewRange(t.range),d=o(r.wrap(u,s).getItems());try{for(d.s();!(c=d.n()).done;){var h=c.value;if(h.is("attributeElement")&&h.isSimilar(s)){i.mapper.bindElementToMarker(h,t.markerName);break}}}catch(f){d.e(f)}finally{d.f()}}}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return function(t,n,i){if(n.item&&n.item instanceof ba){var a=Xa(e,n,i);if(a&&i.consumable.test(n.item,t.name)){var r=i.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){i.consumable.consume(n.item,t.name);var s,l=o(Sa._createIn(n.item));try{for(l.s();!(s=l.n()).done;){var c=s.value;i.consumable.consume(c.item,t.name)}}catch(u){l.e(u)}finally{l.f()}r.getCustomProperty("addHighlight")(r,a,i.writer),i.mapper.bindElementToMarker(r,n.markerName)}}}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return function(t,n,i){if(!n.markerRange.isCollapsed){var a=Xa(e,n,i);if(a){var r=Ga(i.writer,a),s=i.mapper.markerNameToElements(n.markerName);if(s){var l,c=o(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;i.mapper.unbindElementFromMarkerName(u,n.markerName),u.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(u),r):u.getCustomProperty("removeHighlight")(u,a.id,i.writer)}}catch(d){c.e(d)}finally{c.f()}i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToData",value:function(e){return this.add(function(e){var t=(e=Wa(e)).model;return e.view||(e.view=function(n){return{group:t,name:n.substr(e.model.length+1)}}),function(n){var i;n.on("addMarker:"+t,(i=e.view,function(e,t,n){var o=i(t.markerName,n);if(o){var a=t.markerRange;n.consumable.consume(a,e.name)&&($a(a,!1,n,t,o),$a(a,!0,n,t,o),e.stop())}}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return function(t,n,i){var a=e(n.markerName,i);if(a){var r=i.mapper.markerNameToElements(n.markerName);if(r){var s,l=o(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;i.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("containerElement")?(u("data-".concat(a.group,"-start-before"),c),u("data-".concat(a.group,"-start-after"),c),u("data-".concat(a.group,"-end-before"),c),u("data-".concat(a.group,"-end-after"),c)):i.writer.clear(i.writer.createRangeOn(c),c)}}catch(d){l.e(d)}finally{l.f()}i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}function u(e,t){if(t.hasAttribute(e)){var n=new Set(t.getAttribute(e).split(","));n.delete(a.name),0==n.size?i.writer.removeAttribute(e,t):i.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}])}(Ua);function Ga(e,t){var n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),t.priority&&(n._priority=t.priority),n._id=t.id,n}function $a(e,t,n,i,o){var a,r,s=t?e.start:e.end;n.schema.checkChild(s,"$text")?function(e,t,n,i,o){var a=n.writer.createUIElement("".concat(o.group,"-").concat(t?"start":"end"),o.name?{name:o.name}:null);n.writer.insert(e,a),n.mapper.bindElementToMarker(a,i.markerName)}(n.mapper.toViewPosition(s),t,n,i,o):(t&&s.nodeAfter||!t&&!s.nodeBefore?(a=s.nodeAfter,r=!0):(a=s.nodeBefore,r=!1),function(e,t,n,i,o,a){var r="data-".concat(a.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(r)?e.getAttribute(r).split(","):[];s.unshift(a.name),i.writer.setAttribute(r,s.join(","),e),i.mapper.bindElementToMarker(e,o.markerName)}(n.mapper.toViewElement(a),t,r,n,i,o))}function Qa(e,t){return"function"==typeof e?e:function(n,i){return function(e,t,n){var i;"string"==typeof e&&(e={name:e});var a=t.writer,r=Object.assign({},e.attributes);if(i="container"==n?a.createContainerElement(e.name,r):"attribute"==n?a.createAttributeElement(e.name,r,{priority:e.priority||ri.DEFAULT_PRIORITY}):a.createUIElement(e.name,r),e.styles)for(var s=0,l=Object.keys(e.styles);s<l.length;s++){var c=l[s];a.setStyle(c,e.styles[c],i)}if(e.classes){var u=e.classes;if("string"==typeof u)a.addClass(u,i);else{var d,h=o(u);try{for(h.s();!(d=h.n()).done;){var f=d.value;a.addClass(f,i)}}catch(m){h.e(m)}finally{h.f()}}}return i}(e,i,t)}}function Ka(e){return e.model.values?function(t,n){var i=e.view[t];return i?i(t,n):null}:e.view}function Za(e){return"string"==typeof e?function(t){return{key:e,value:t}}:"object"==typeof e?e.value?function(){return e}:function(t){return{key:e.key,value:t}}:e}function Xa(e,t,n){var i="function"==typeof e?e(t,n):e;return i?(i.priority||(i.priority=10),i.id||(i.id=t.markerName),i):null}function er(e){var t,n=e.model,i=n.schema,a=n.document,r=o(a.getRootNames());try{for(r.s();!(t=r.n()).done;){var s=t.value,l=a.getRoot(s);if(l.isEmpty&&!i.checkChild(l,"$text")&&i.checkChild(l,"paragraph"))return e.insertElement("paragraph",l),!0}}catch(c){r.e(c)}finally{r.f()}return!1}function tr(e,t,n){var i=n.createContext(e);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),t)}function nr(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var ir=function(t){function n(){return c(this,n),f(this,n,arguments)}return p(n,t),d(n,[{key:"elementToElement",value:function(e){return this.add(or(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){sr(e=Wa(e));var t=lr(e,!1),n=ar(e.view),i=n?"element:"+n:"element";return function(n){n.on(i,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var n=null;("string"==typeof(t=Wa(t)).view||t.view.key)&&(n=function(t){"string"==typeof t.view&&(t.view={key:t.view});var n,i=t.view.key;return n="class"==i||"style"==i?e({},"class"==i?"classes":"styles",t.view.value):{attributes:e({},i,void 0===t.view.value?/[\s\S]*/:t.view.value)},t.view.name&&(n.name=t.view.name),t.view=n,i}(t)),sr(t,n);var i=lr(t,!0);return function(e){e.on("element",i,{priority:t.converterPriority||"low"})}}(t))}},{key:"elementToMarker",value:function(e){return Object(Lt.c)("upcast-helpers-element-to-marker-deprecated"),this.add(function(e){return function(e){var t=e.model;e.model=function(e,n){var i="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":i})}}(e=Wa(e)),or(e)}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=Wa(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t=rr(cr(e,"start")),n=rr(cr(e,"end"));return function(i){i.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),i.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});var a=Ot.get("low"),r=Ot.get("highest"),s=Ot.get(e.converterPriority)/r;i.on("element",function(e){return function(t,n,i){var a="data-"+e.view;function r(t,a){var r,s=o(a);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=e.model(l,i),u=i.writer.createElement("$marker",{"data-name":c});i.writer.insert(u,t),n.modelCursor=n.modelCursor.isEqual(t)?n.modelCursor.getShiftedBy(1):n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(d){s.e(d)}finally{s.f()}}n.modelRange||(n=Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor))),i.consumable.consume(n.viewItem,{attributes:a+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(a+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:a+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(a+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:a+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(a+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:a+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(a+"-start-before").split(","))}}(e),{priority:a+s})}}(e))}}])}(Ua);function or(e){var t=rr(e=Wa(e)),n=ar(e.view),i=n?"element:"+n:"element";return function(n){n.on(i,t,{priority:e.converterPriority||"normal"})}}function ar(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function rr(e){var t=new tn(e.view);return function(n,i,o){var a=t.match(i.viewItem);if(a){var r=a.match;if(r.name=!0,o.consumable.test(i.viewItem,r)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,i.viewItem,o);s&&o.safeInsert(s,i.modelCursor)&&(o.consumable.consume(i.viewItem,r),o.convertChildren(i.viewItem,s),o.updateConversionResult(s,i))}}}}function sr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)};e.model={key:"object"!=typeof e.model?e.model:e.model.key,value:"object"!=typeof e.model||void 0===e.model.value?n:e.model.value}}function lr(e,t){var n=new tn(e.view);return function(i,o,a){var r=n.match(o.viewItem);if(r){var s=e.model.key,l="function"==typeof e.model.value?e.model.value(o.viewItem,a):e.model.value;null!==l&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==typeof n&&!ar(n)||n.classes||n.attributes||n.styles)}(e.view,o.viewItem)?r.match.name=!0:delete r.match.name,a.consumable.test(o.viewItem,r.match)&&(o.modelRange||(o=Object.assign(o,a.convertChildren(o.viewItem,o.modelCursor))),function(e,t,n,i){for(var o=!1,a=0,r=Array.from(e.getItems({shallow:n}));a<r.length;a++){var s=r[a];i.schema.checkAttribute(s,t.key)&&(i.writer.setAttribute(t.key,t.value,s),o=!0)}return o}(o.modelRange,{key:s,value:l},t,a)&&a.consumable.consume(o.viewItem,r.match)))}}}function cr(e,t){var n={};return n.view=e.view+"-"+t,n.model=function(t,n){var i=t.getAttribute("name"),o=e.model(i,n);return n.writer.createElement("$marker",{"data-name":o})},n}var ur=function(){return d((function e(t,n){var i=this;c(this,e),this.model=t,this.view=new ma(n),this.mapper=new Pa,this.downcastDispatcher=new La({mapper:this.mapper,schema:t.schema});var a=this.model.document,r=a.selection,s=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){i.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){i.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(a,"change",(function(){i.view.change((function(e){i.downcastDispatcher.convertChanges(a.differ,s,e),i.downcastDispatcher.convertSelection(r,s,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return function(n,i){var a,r=i.newSelection,s=[],l=o(r.getRanges());try{for(l.s();!(a=l.n()).done;){var c=a.value;s.push(t.toModelRange(c))}}catch(d){l.e(d)}finally{l.f()}var u=e.createSelection(s,{backward:r.isBackward});u.isEqual(e.document.selection)||e.change((function(e){e.setSelection(u)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var i=n.writer,o=n.mapper.toViewPosition(t.range.start),a=i.createText(t.item.data);i.insert(o,a)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(e,t,n){var i,a=n.mapper.toViewPosition(t.position),r=t.position.getShiftedBy(t.length),s=n.mapper.toViewPosition(r,{isPhantom:!0}),l=n.writer.createRange(a,s),c=n.writer.remove(l.getTrimmed()),u=o(n.writer.createRangeIn(c).getItems());try{for(u.s();!(i=u.n()).done;){var d=i.value;n.mapper.unbindViewElement(d)}}catch(h){u.e(h)}finally{u.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i,a=n.writer,r=o(a.document.selection.getRanges());try{for(r.s();!(i=r.n()).done;){var s=i.value;s.isCollapsed&&s.end.parent.isAttached()&&n.writer.mergeAttributes(s.start)}}catch(l){r.e(l)}finally{r.f()}a.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i=t.selection;if(!i.isCollapsed&&n.consumable.consume(i,"selection")){var a,r=[],s=o(i.getRanges());try{for(s.s();!(a=s.n()).done;){var l=a.value,c=n.mapper.toViewRange(l);r.push(c)}}catch(u){s.e(u)}finally{s.f()}n.writer.setSelection(r,{backward:i.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i=t.selection;if(i.isCollapsed&&n.consumable.consume(i,"selection")){var o=n.writer,a=i.getFirstPosition(),r=n.mapper.toViewPosition(a),s=o.breakAttributes(r);o.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(e){if("$graveyard"==e.rootName)return null;var t=new Kn(i.view.document,e.name);return t.rootName=e.rootName,i.mapper.bindElements(e,t),t}))}),[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}])}();Vt(ur,Yn);var dr=function(){return d((function e(){c(this,e),this._commands=new Map}),[{key:"add",value:function(e,t){this._commands.set(e,t)}},{key:"get",value:function(e){return this._commands.get(e)}},{key:"execute",value:function(e){var t=this.get(e);if(!t)throw new Lt.a("commandcollection-command-not-found",this,{commandName:e});for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return t.execute.apply(t,i)}},{key:"names",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"commands",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var e,t=o(this.commands());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(n){t.e(n)}finally{t.f()}}}])}(),hr=function(){function e(){c(this,e),this._consumables=new Map}return d(e,[{key:"add",value:function(e,t){var n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new fr(e),this._consumables.set(e,n)),n.add(t))}},{key:"test",value:function(e,t){var n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}},{key:"consume",value:function(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}},{key:"revert",value:function(e,t){var n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}}],[{key:"consumablesFromElement",value:function(e){var t,n={element:e,name:!0,attributes:[],classes:[],styles:[]},i=o(e.getAttributeKeys());try{for(i.s();!(t=i.n()).done;){var a=t.value;"style"!=a&&"class"!=a&&n.attributes.push(a)}}catch(h){i.e(h)}finally{i.f()}var r,s=o(e.getClassNames());try{for(s.s();!(r=s.n()).done;){var l=r.value;n.classes.push(l)}}catch(h){s.e(h)}finally{s.f()}var c,u=o(e.getStyleNames());try{for(u.s();!(c=u.n()).done;){var d=c.value;n.styles.push(d)}}catch(h){u.e(h)}finally{u.f()}return n}},{key:"createFrom",value:function(t,n){if(n||(n=new e(t)),t.is("$text"))return n.add(t),n;t.is("element")&&n.add(t,e.consumablesFromElement(t)),t.is("documentFragment")&&n.add(t);var i,a=o(t.getChildren());try{for(a.s();!(i=a.n()).done;){var r=i.value;n=e.createFrom(r,n)}}catch(s){a.e(s)}finally{a.f()}return n}}])}(),fr=function(){return d((function e(t){c(this,e),this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}),[{key:"add",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._add(t,e[t])}},{key:"test",value:function(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(var t in this._consumables)if(t in e){var n=this._test(t,e[t]);if(!0!==n)return n}return!0}},{key:"consume",value:function(e){for(var t in e.name&&(this._canConsumeName=!1),this._consumables)t in e&&this._consume(t,e[t])}},{key:"revert",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._revert(t,e[t])}},{key:"_add",value:function(e,t){var n,i=ve(t)?t:[t],a=this._consumables[e],r=o(i);try{for(r.s();!(n=r.n()).done;){var s=n.value;if("attributes"===e&&("class"===s||"style"===s))throw new Lt.a("viewconsumable-invalid-attribute",this);if(a.set(s,!0),"styles"===e){var l,c=o(this.element.document.stylesProcessor.getRelatedStyles(s));try{for(c.s();!(l=c.n()).done;){var u=l.value;a.set(u,!0)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){r.e(d)}finally{r.f()}}},{key:"_test",value:function(e,t){var n,i=ve(t)?t:[t],a=this._consumables[e],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("attributes"!==e||"class"!==l&&"style"!==l){var c=a.get(l);if(void 0===c)return null;if(!c)return!1}else{var u="class"==l?"classes":"styles",d=this._test(u,r(this._consumables[u].keys()));if(!0!==d)return d}}}catch(h){s.e(h)}finally{s.f()}return!0}},{key:"_consume",value:function(e,t){var n,i=ve(t)?t:[t],a=this._consumables[e],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("attributes"!==e||"class"!==l&&"style"!==l){if(a.set(l,!1),"styles"==e){var c,u=o(this.element.document.stylesProcessor.getRelatedStyles(l));try{for(u.s();!(c=u.n()).done;){var d=c.value;a.set(d,!1)}}catch(f){u.e(f)}finally{u.f()}}}else{var h="class"==l?"classes":"styles";this._consume(h,r(this._consumables[h].keys()))}}}catch(f){s.e(f)}finally{s.f()}}},{key:"_revert",value:function(e,t){var n,i=ve(t)?t:[t],a=this._consumables[e],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("attributes"!==e||"class"!==l&&"style"!==l)!1===a.get(l)&&a.set(l,!0);else{var c="class"==l?"classes":"styles";this._revert(c,r(this._consumables[c].keys()))}}}catch(u){s.e(u)}finally{s.f()}}}])}(),mr=function(){return d((function e(){var t=this;c(this,e),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(e,t){t[0]=new pr(t[0])}),{priority:"highest"}),this.on("checkChild",(function(e,n){n[0]=new pr(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"})}),[{key:"register",value:function(e,t){if(this._sourceDefinitions[e])throw new Lt.a("schema-cannot-register-item-twice",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}},{key:"extend",value:function(e,t){if(!this._sourceDefinitions[e])throw new Lt.a("schema-cannot-extend-missing-item",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(e){var t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}},{key:"isRegistered",value:function(e){return!!this.getDefinition(e)}},{key:"isBlock",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isBlock)}},{key:"isLimit",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}},{key:"isObject",value:function(e){var t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}},{key:"isInline",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isInline)}},{key:"isSelectable",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isSelectable&&!t.isObject)}},{key:"isContent",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isContent&&!t.isObject)}},{key:"checkChild",value:function(e,t){return!!t&&this._checkContextMatch(t,e)}},{key:"checkAttribute",value:function(e,t){var n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}},{key:"checkMerge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Ca){var n=e.nodeBefore,i=e.nodeAfter;if(!(n instanceof ba))throw new Lt.a("schema-check-merge-no-element-before",this);if(!(i instanceof ba))throw new Lt.a("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}var a,r=o(t.getChildren());try{for(r.s();!(a=r.n()).done;){var s=a.value;if(!this.checkChild(e,s))return!1}}catch(l){r.e(l)}finally{r.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,n){var o=i(n,2),a=o[0],r=o[1];if(r){var s=e(a,r);"boolean"==typeof s&&(t.stop(),t.return=s)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,n){var o=i(n,2),a=o[0],r=o[1],s=e(a,r);"boolean"==typeof s&&(t.stop(),t.return=s)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof Ca?e.parent:(e instanceof Sa?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(r(e.getFirstPosition().getAncestors()),[new ga("",e.getAttributes())]);return this.checkAttribute(n,t)}var i,a=o(e.getRanges());try{for(a.s();!(i=a.n()).done;){var s,l=o(i.value);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(this.checkAttribute(c.item,t))return!0}}catch(u){l.e(u)}finally{l.f()}}}catch(u){a.e(u)}finally{a.f()}return!1}},{key:"getValidRanges",value:a().mark((function e(t,n){var i,r,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o(t),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=8;break}return r=i.value,e.delegateYield(r.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),i=o(t),e.prev=2,i.s();case 4:if((r=i.n()).done){e.next=9;break}return s=r.value,e.delegateYield(this._getValidRangesForRange(s,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),i.e(e.t1);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new Sa(e);var s=e.getAncestors().reverse().find((function(e){return i.isLimit(e)}))||e.root;"both"!=r&&"backward"!=r||(t=new _a({boundaries:Sa._createIn(s),startPosition:e,direction:"backward"})),"both"!=r&&"forward"!=r||(n=new _a({boundaries:Sa._createIn(s),startPosition:e}));var l,c=o(a().mark((function e(t,n){var i,o,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=!1;case 1:if(i){e.next=18;break}if(i=!0,!t){e.next=9;break}if(o=t.next(),e.t0=o.done,e.t0){e.next=9;break}return i=!1,e.next=9,{walker:t,value:o.value};case 9:if(!n){e.next=16;break}if(r=n.next(),e.t1=r.done,e.t1){e.next=16;break}return i=!1,e.next=16,{walker:n,value:r.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.value;if(d.type==(u.walker==t?"elementEnd":"elementStart")&&this.isObject(d.item))return Sa._createOn(d.item);if(this.checkChild(d.nextPosition,"$text"))return new Sa(d.nextPosition)}}catch(h){c.e(h)}finally{c.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.is("$text"))Sr(this,a,t);else{var r,s=o(Sa._createIn(a).getPositions());try{for(s.s();!(r=s.n()).done;){var l=r.value;Sr(this,l.nodeBefore||l.parent,t)}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){i.e(c)}finally{i.f()}}},{key:"createContext",value:function(e){return new pr(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),i=0,o=n;i<o.length;i++){var a=o[i];e[a]=gr(t[a],a)}for(var r=0,s=n;r<s.length;r++){vr(e,s[r])}for(var l=0,c=n;l<c.length;l++){yr(e,c[l])}for(var u=0,d=n;u<d.length;u++){var h=d[u];br(e,h),_r(e,h)}for(var f=0,m=n;f<m.length;f++){var p=m[f];kr(e,p),Cr(e,p)}this._compiledDefinitions=e}},{key:"_checkContextMatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,i=t.getItem(n);if(e.allowIn.includes(i.name)){if(0==n)return!0;var o=this.getDefinition(i);return this._checkContextMatch(o,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:a().mark((function e(t,n){var i,r,s,l,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.start,r=t.start,s=o(t.getItems({shallow:!0})),e.prev=2,s.s();case 4:if((l=s.n()).done){e.next=19;break}if(c=l.value,e.t0=c.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(Sa._createIn(c),n),"t1",9);case 9:if(e.t2=this.checkAttribute(c,n),e.t2){e.next=16;break}if(e.t3=i.isEqual(r),e.t3){e.next=15;break}return e.next=15,new Sa(i,r);case 15:i=Ca._createAfter(c);case 16:r=Ca._createAfter(c);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(2),s.e(e.t4);case 24:return e.prev=24,s.f(),e.finish(24);case 27:if(e.t5=i.isEqual(r),e.t5){e.next=31;break}return e.next=31,new Sa(i,r);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}])}();Vt(mr,Yn);var pr=function(){function e(t){if(c(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(Mr)}return d(e,[{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(r(this._items),r(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}])}();function gr(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a,r=n.value,s=o(Object.keys(r).filter((function(e){return e.startsWith("is")})));try{for(s.s();!(a=s.n()).done;){var l=a.value;t[l]=r[l]}}catch(c){s.e(c)}finally{s.f()}}}catch(c){i.e(c)}finally{i.f()}}(e,n),wr(e,n,"allowIn"),wr(e,n,"allowContentOf"),wr(e,n,"allowWhere"),wr(e,n,"allowAttributes"),wr(e,n,"allowAttributesOf"),wr(e,n,"inheritTypesFrom"),function(e,t){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value.inheritAllFrom;a&&(t.allowContentOf.push(a),t.allowWhere.push(a),t.allowAttributesOf.push(a),t.inheritTypesFrom.push(a))}}catch(r){i.e(r)}finally{i.f()}}(e,n),n}function vr(e,t){var n,i=o(e[t].allowContentOf);try{for(i.s();!(n=i.n()).done;){var a=n.value;e[a]&&xr(e,a).forEach((function(e){e.allowIn.push(t)}))}}catch(r){i.e(r)}finally{i.f()}delete e[t].allowContentOf}function yr(e,t){var n,i=o(e[t].allowWhere);try{for(i.s();!(n=i.n()).done;){var a,s=e[n.value];s&&(a=e[t].allowIn).push.apply(a,r(s.allowIn))}}catch(l){i.e(l)}finally{i.f()}delete e[t].allowWhere}function br(e,t){var n,i=o(e[t].allowAttributesOf);try{for(i.s();!(n=i.n()).done;){var a,s=e[n.value];s&&(a=e[t].allowAttributes).push.apply(a,r(s.allowAttributes))}}catch(l){i.e(l)}finally{i.f()}delete e[t].allowAttributesOf}function _r(e,t){var n,i=e[t],a=o(i.inheritTypesFrom);try{for(a.s();!(n=a.n()).done;){var r=e[n.value];if(r){var s,l=o(Object.keys(r).filter((function(e){return e.startsWith("is")})));try{for(l.s();!(s=l.n()).done;){var c=s.value;c in i||(i[c]=r[c])}}catch(u){l.e(u)}finally{l.f()}}}}catch(u){a.e(u)}finally{a.f()}delete i.inheritTypesFrom}function kr(e,t){var n=e[t],i=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(i))}function Cr(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function wr(e,t,n){var i,a=o(e);try{for(a.s();!(i=a.n()).done;){var s,l=i.value;"string"==typeof l[n]?t[n].push(l[n]):Array.isArray(l[n])&&(s=t[n]).push.apply(s,r(l[n]))}}catch(c){a.e(c)}finally{a.f()}}function xr(e,t){var n,i=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(i.name)}))}function Mr(e){return"string"==typeof e?{name:e,getAttributeKeys:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function Sr(e,t,n){var i,a=o(t.getAttributeKeys());try{for(a.s();!(i=a.n()).done;){var r=i.value;e.checkAttribute(t,r)||n.removeAttribute(r,t)}}catch(s){a.e(s)}finally{a.f()}}var Pr=function(){return d((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}),[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,i,a=o(new pr(e));try{for(a.s();!(i=a.n()).done;){var r,s=i.value,l={},c=o(s.getAttributeKeys());try{for(c.s();!(r=c.n()).done;){var u=r.value;l[u]=s.getAttribute(u)}}catch(h){c.e(h)}finally{c.f()}var d=t.createElement(s.name,l);n&&t.append(d,n),n=Ca._createAt(d,0)}}catch(h){a.e(h)}finally{a.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=hr.createFrom(e),this.conversionApi.store={};var i=this._convertItem(e,this._modelCursor),a=i.modelRange,r=t.createDocumentFragment();if(a){this._removeEmptyElements();for(var s=0,l=Array.from(this._modelCursor.parent.getChildren());s<l.length;s++){var c=l[s];t.append(c,r)}r.markers=function(e,t){var n,i=new Set,a=new Map,r=o(Sa._createIn(e).getItems());try{for(r.s();!(n=r.n()).done;){var s=n.value;"$marker"==s.name&&i.add(s)}}catch(f){r.e(f)}finally{r.f()}var l,c=o(i);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.getAttribute("data-name"),h=t.createPositionBefore(u);a.has(d)?a.get(d).end=h.clone():a.set(d,new Sa(h.clone())),t.remove(u)}}catch(f){c.e(f)}finally{c.f()}return a}(r,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,r}},{key:"_convertItem",value:function(e,t){var n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Sa))throw new Lt.a("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(e,t){for(var n=t.is("position")?t:Ca._createAt(t,0),i=new Sa(n),o=0,a=Array.from(e.getChildren());o<a.length;o++){var r=a[o],s=this._convertItem(r,n);s.modelRange instanceof Sa&&(i.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:i,modelCursor:n}}},{key:"_safeInsert",value:function(e,t){var n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}},{key:"_updateConversionResult",value:function(e,t){var n=this._getSplitParts(e),i=this.conversionApi.writer;t.modelRange||(t.modelRange=i.createRange(i.createPositionBefore(e),i.createPositionAfter(n[n.length-1])));var o=this._cursorParents.get(e);t.modelCursor=o?i.createPositionAt(o,0):t.modelRange.end}},{key:"_splitToAllowedParent",value:function(e,t){var n=this.conversionApi,i=n.schema,a=n.writer,r=i.findAllowedParent(t,e);if(r){if(r===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return tr(t,e,i)?{position:nr(t,a)}:null;var s,l=this.conversionApi.writer.split(t,r),c=[],u=o(l.range.getWalker());try{for(u.s();!(s=u.n()).done;){var d=s.value;if("elementEnd"==d.type)c.push(d.item);else{var h=c.pop();this._registerSplitPair(h,d.item)}}}catch(m){u.e(m)}finally{u.f()}var f=l.range.end.parent;return this._cursorParents.set(e,f),{position:l.position,cursorParent:f}}},{key:"_registerSplitPair",value:function(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);var n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}},{key:"_getSplitParts",value:function(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}},{key:"_removeEmptyElements",value:function(){var e,t=!1,n=o(this._splitParts.keys());try{for(n.s();!(e=n.n()).done;){var i=e.value;i.isEmpty&&(this.conversionApi.writer.remove(i),this._splitParts.delete(i),t=!0)}}catch(a){n.e(a)}finally{n.f()}t&&this._removeEmptyElements()}}])}();Vt(Pr,Ft);var Tr=function(){return d((function e(t,n){var i=this;c(this,e),this.model=t,this.stylesProcessor=n,this.processor=void 0,this.mapper=new Pa,this.downcastDispatcher=new La({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var i=n.writer,o=n.mapper.toViewPosition(t.range.start),a=i.createText(t.item.data);i.insert(o,a)}}),{priority:"lowest"}),this.upcastDispatcher=new Pr({schema:t.schema}),this.viewDocument=new ai(n),this._viewWriter=new Di(this.viewDocument),this.upcastDispatcher.on("text",(function(e,t,n){var i=n.schema,o=n.consumable,a=n.writer,r=t.modelCursor;if(o.test(t.viewItem)){if(!i.checkChild(r,"$text")){if(!tr(r,"$text",i))return;r=nr(r,a)}o.consume(t.viewItem);var s=a.createText(t.viewItem.data);a.insert(s,r),t.modelRange=a.createRange(r,r.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var i=n.convertChildren(t.viewItem,t.modelCursor),o=i.modelRange,a=i.modelCursor;t.modelRange=o,t.modelCursor=a}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var i=n.convertChildren(t.viewItem,t.modelCursor),o=i.modelRange,a=i.modelCursor;t.modelRange=o,t.modelCursor=a}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){i.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){i.model.enqueueChange("transparent",er)}),{priority:"lowest"})}),[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,i=e.trim,o=void 0===i?"empty":i;if(!this._checkIfRootsExists([n]))throw new Lt.a("datacontroller-get-non-existent-root",this);var a=this.model.document.getRoot(n);return"empty"!==o||this.model.hasContent(a,{ignoreWhitespaces:!0})?this.stringify(a,e):""}},{key:"stringify",value:function(e,t){var n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e,t){var n=this.viewDocument,a=this._viewWriter;this.mapper.clearBindings();var r=Sa._createIn(e),s=new Li(n);if(this.mapper.bindElements(e,s),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(r,a),!e.is("documentFragment")){var l,c=function(e){var t=[],n=e.root.document;if(!n)return[];var i,a=Sa._createIn(e),r=o(n.model.markers);try{for(r.s();!(i=r.n()).done;){var s=i.value,l=a.getIntersection(s.getRange());l&&t.push([s.name,l])}}catch(c){r.e(c)}finally{r.f()}return t}(e),u=o(c);try{for(u.s();!(l=u.n()).done;){var d=i(l.value,2),h=d[0],f=d[1];this.downcastDispatcher.convertMarkerAdd(h,f,a)}}catch(m){u.e(m)}finally{u.f()}}return delete this.downcastDispatcher.conversionApi.options,s}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new Lt.a("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Lt.a("datacontroller-init-non-existent-root",this);return this.model.enqueueChange("transparent",(function(e){for(var i=0,o=Object.keys(n);i<o.length;i++){var a=o[i],r=t.model.document.getRoot(a);e.insert(t.parse(n[a],r),r,0)}})),Promise.resolve()}},{key:"set",value:function(e){var t=this,n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Lt.a("datacontroller-set-non-existent-root",this);this.model.enqueueChange("transparent",(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var i=0,o=Object.keys(n);i<o.length;i++){var a=o[i],r=t.model.document.getRoot(a);e.remove(e.createRangeIn(r)),e.insert(t.parse(n[a],r),r,0)}}))}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(i){return t.upcastDispatcher.convert(e,i,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(!this.model.document.getRootNames().includes(i))return!1}}catch(a){n.e(a)}finally{n.f()}return!0}}])}();Vt(Tr,Yn);var Or=function(){return d((function e(t,n){c(this,e),this._helpers=new Map,this._downcast=qt(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=qt(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}),[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new Lt.a("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new Lt.a("conversion-for-unknown-group",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=o(Lr(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=i.model,r=i.view;this.for("upcast").elementToElement({model:a,view:r,converterPriority:e.converterPriority})}}catch(s){n.e(s)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=o(Lr(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=i.model,r=i.view;this.for("upcast").elementToAttribute({view:r,model:a,converterPriority:e.converterPriority})}}catch(s){n.e(s)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=o(Lr(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,a=i.model,r=i.view;this.for("upcast").attributeToAttribute({view:r,model:a})}}catch(s){n.e(s)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,i=e.isDowncast;if(this._helpers.has(t))throw new Lt.a("conversion-group-exists",this);var o=i?new Ja(n):new ir(n);this._helpers.set(t,o)}}])}();function Lr(e){var t,n,i,r,s,l;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!e.model.values){a.next=20;break}t=o(e.model.values),a.prev=2,t.s();case 4:if((n=t.n()).done){a.next=10;break}return i=n.value,r={key:e.model.key,value:i},s=e.view[i],l=e.upcastAlso?e.upcastAlso[i]:void 0,a.delegateYield(Dr(r,s,l),"t0",8);case 8:a.next=4;break;case 10:a.next=15;break;case 12:a.prev=12,a.t1=a.catch(2),t.e(a.t1);case 15:return a.prev=15,t.f(),a.finish(15);case 18:a.next=21;break;case 20:return a.delegateYield(Dr(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return a.stop()}}),u,null,[[2,12,15,18]])}function Dr(e,t,n){var i,r,s;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,{model:e,view:t};case 2:if(!n){a.next=20;break}i=o(qt(n)),a.prev=4,i.s();case 6:if((r=i.n()).done){a.next=12;break}return s=r.value,a.next=10,{model:e,view:s};case 10:a.next=6;break;case 12:a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),i.e(a.t0);case 17:return a.prev=17,i.f(),a.finish(17);case 20:case"end":return a.stop()}}),h,null,[[4,14,17,20]])}var Ir=function(){return d((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";c(this,e),this.operations=[],this.type=t}),[{key:"baseVersion",get:function(){var e,t=o(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(i){t.e(i)}finally{t.f()}return null}},{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}}])}(),Fr=function(){return d((function e(t){c(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}),[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"className",get:function(){return"Operation"}},{key:"fromJSON",value:function(e){return new this(e.baseVersion)}}])}(),Ar=function(){function e(t){c(this,e),this.markers=new Map,this._children=new ya,t&&this._insertChild(0,t)}return d(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;n=n.getChild(n.offsetToIndex(a))}}catch(r){i.e(r)}finally{i.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=o(this._children);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toJSON())}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new ga(e)]:(zt(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new ga(e):e instanceof va?new ga(e.data,e.getAttributes()):e})))}(t),a=o(i);try{for(a.s();!(n=a.n()).done;){var r=n.value;null!==r.parent&&r._remove(),r.parent=this}}catch(s){a.e(s)}finally{a.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),a=o(i);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.parent=null}}catch(s){a.e(s)}finally{a.f()}return i}}],[{key:"fromJSON",value:function(t){var n,i=[],a=o(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;i.push(r.name?ba.fromJSON(r):ga.fromJSON(r))}}catch(s){a.e(s)}finally{a.f()}return new e(i)}}])}();function Er(e,t){var n=(t=Rr(t)).reduce((function(e,t){return e+t.offsetSize}),0),i=e.parent;zr(e);var o=e.index;return i._insertChild(o,t),jr(i,o+t.length),jr(i,o),new Sa(e,e.getShiftedBy(n))}function Br(e){if(!e.isFlat)throw new Lt.a("operation-utils-remove-range-not-flat",this);var t=e.start.parent;zr(e.start),zr(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return jr(t,e.start.index),n}function Nr(e,t){if(!e.isFlat)throw new Lt.a("operation-utils-move-range-not-flat",this);var n=Br(e);return Er(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function Rr(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new ga(e[n]));else if(e[n]instanceof va)t.push(new ga(e[n].data,e[n].getAttributes()));else if(e[n]instanceof Ar||e[n]instanceof ya){var i,a=o(e[n]);try{for(a.s();!(i=a.n()).done;){var r=i.value;t.push(r)}}catch(u){a.e(u)}finally{a.f()}}else e[n]instanceof pa&&t.push(e[n]);for(var s=1;s<t.length;s++){var l=t[s],c=t[s-1];l instanceof ga&&c instanceof ga&&Vr(l,c)&&(t.splice(s-1,2,new ga(c.data+l.data,c.getAttributes())),s--)}return t}function jr(e,t){var n=e.getChild(t-1),i=e.getChild(t);if(n&&i&&n.is("$text")&&i.is("$text")&&Vr(n,i)){var o=new ga(n.data+i.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,o)}}function zr(e){var t=e.textNode,n=e.parent;if(t){var i=e.offset-t.startOffset,o=t.index;n._removeChildren(o,1);var a=new ga(t.data.substr(0,i),t.getAttributes()),r=new ga(t.data.substr(i),t.getAttributes());n._insertChild(o,[a,r])}}function Vr(e,t){var n,i=e.getAttributes(),a=t.getAttributes(),r=o(i);try{for(r.s();!(n=r.n()).done;){var s=n.value;if(s[1]!==t.getAttribute(s[0]))return!1;a.next()}}catch(l){r.e(l)}finally{r.f()}return a.next().done}var Hr=function(e,t){return Do(e,t)},Yr=function(e){function n(e,t,i,o,a){var r;return c(this,n),(r=f(this,n,[a])).range=e.clone(),r.key=t,r.oldValue=void 0===i?null:i,r.newValue=void 0===o?null:o,r}return p(n,e),d(n,[{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}},{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.range=this.range.toJSON(),e}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new Lt.a("attribute-operation-range-not-flat",this);var e,t=o(this.range.getItems({shallow:!0}));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==this.oldValue&&!Hr(n.getAttribute(this.key),this.oldValue))throw new Lt.a("attribute-operation-wrong-old-value",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new Lt.a("attribute-operation-attribute-exists",this,{node:n,key:this.key})}}catch(i){t.e(i)}finally{t.f()}}},{key:"_execute",value:function(){Hr(this.oldValue,this.newValue)||function(e,t,n){zr(e.start),zr(e.end);var i,a=o(e.getItems({shallow:!0}));try{for(a.s();!(i=a.n()).done;){var r=i.value,s=r.is("$textProxy")?r.textNode:r;null!==n?s._setAttribute(t,n):s._removeAttribute(t),jr(s.parent,s.index)}}catch(l){a.e(l)}finally{a.f()}jr(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}}],[{key:"className",get:function(){return"AttributeOperation"}},{key:"fromJSON",value:function(e,t){return new n(Sa.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}}])}(Fr),qr=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[null])).sourcePosition=e.clone(),i.howMany=t,i}return p(n,e),d(n,[{key:"type",get:function(){return"detach"}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new Lt.a("detach-operation-on-document-node",this)}},{key:"_execute",value:function(){Br(Sa._createFromPositionAndShift(this.sourcePosition,this.howMany))}}],[{key:"className",get:function(){return"DetachOperation"}}])}(Fr),Ur=function(e){function n(e,t,i,o){var a;return c(this,n),(a=f(this,n,[o])).sourcePosition=e.clone(),a.sourcePosition.stickiness="toNext",a.howMany=t,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNone",a}return p(n,e),d(n,[{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}},{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new Lt.a("move-operation-nodes-do-not-exist",this);if(e===t&&n<i&&i<n+this.howMany)throw new Lt.a("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==$t(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var o=this.sourcePosition.path.length-1;if(this.targetPosition.path[o]>=n&&this.targetPosition.path[o]<n+this.howMany)throw new Lt.a("move-operation-node-into-itself",this)}}},{key:"_execute",value:function(){Nr(Sa._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}}],[{key:"className",get:function(){return"MoveOperation"}},{key:"fromJSON",value:function(e,t){var n=Ca.fromJSON(e.sourcePosition,t),i=Ca.fromJSON(e.targetPosition,t);return new this(n,e.howMany,i,e.baseVersion)}}])}(Fr),Wr=function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n,[i])).position=e.clone(),o.position.stickiness="toNone",o.nodes=new ya(Rr(t)),o.shouldReceiveAttributes=!1,o}return p(n,e),d(n,[{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}},{key:"clone",value:function(){var e=new ya(r(this.nodes).map((function(e){return e._clone(!0)}))),t=new n(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}},{key:"getReversed",value:function(){var e=new Ca(this.position.root.document.graveyard,[0]);return new Ur(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new Lt.a("insert-operation-position-invalid",this)}},{key:"_execute",value:function(){var e=this.nodes;this.nodes=new ya(r(e).map((function(e){return e._clone(!0)}))),Er(this.position,e)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}}],[{key:"className",get:function(){return"InsertOperation"}},{key:"fromJSON",value:function(e,t){var i,a=[],r=o(e.nodes);try{for(r.s();!(i=r.n()).done;){var s=i.value;a.push(s.name?ba.fromJSON(s):ga.fromJSON(s))}}catch(c){r.e(c)}finally{r.f()}var l=new n(Ca.fromJSON(e.position,t),a,e.baseVersion);return l.shouldReceiveAttributes=e.shouldReceiveAttributes,l}}])}(Fr),Jr=function(e){function n(e,t,i,o,a,r){var s;return c(this,n),(s=f(this,n,[r])).name=e,s.oldRange=t?t.clone():null,s.newRange=i?i.clone():null,s.affectsData=a,s._markers=o,s}return p(n,e),d(n,[{key:"type",get:function(){return"marker"}},{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){this._markers[this.newRange?"_set":"_remove"](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}}],[{key:"className",get:function(){return"MarkerOperation"}},{key:"fromJSON",value:function(e,t){return new n(e.name,e.oldRange?Sa.fromJSON(e.oldRange,t):null,e.newRange?Sa.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}}])}(Fr),Gr=function(e){function n(e,t,i,o){var a;return c(this,n),(a=f(this,n,[o])).position=e,a.position.stickiness="toNext",a.oldName=t,a.newName=i,a}return p(n,e),d(n,[{key:"type",get:function(){return"rename"}},{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.nodeAfter;if(!(e instanceof ba))throw new Lt.a("rename-operation-wrong-position",this);if(e.name!==this.oldName)throw new Lt.a("rename-operation-wrong-name",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e}}],[{key:"className",get:function(){return"RenameOperation"}},{key:"fromJSON",value:function(e,t){return new n(Ca.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}}])}(Fr),$r=function(e){function n(e,t,i,o,a){var r;return c(this,n),(r=f(this,n,[a])).root=e,r.key=t,r.oldValue=i,r.newValue=o,r}return p(n,e),d(n,[{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}},{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Lt.a("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Lt.a("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Lt.a("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.root=this.root.toJSON(),e}}],[{key:"className",get:function(){return"RootAttributeOperation"}},{key:"fromJSON",value:function(e,t){if(!t.getRoot(e.root))throw new Lt.a("rootattribute-operation-fromjson-no-root",this,{rootName:e.root});return new n(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}}])}(Fr),Qr=function(e){function n(e,t,i,o,a){var r;return c(this,n),(r=f(this,n,[a])).sourcePosition=e.clone(),r.sourcePosition.stickiness="toPrevious",r.howMany=t,r.targetPosition=i.clone(),r.targetPosition.stickiness="toNext",r.graveyardPosition=o.clone(),r}return p(n,e),d(n,[{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Ca(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Sa(this.sourcePosition,e)}},{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Ca(this.sourcePosition.root,t)._getTransformedByMergeOperation(this),i=new Kr(e,this.howMany,this.graveyardPosition,this.baseVersion+1);return i.insertionPosition=n,i}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new Lt.a("merge-operation-source-position-invalid",this);if(!t.parent)throw new Lt.a("merge-operation-target-position-invalid",this);if(this.howMany!=e.maxOffset)throw new Lt.a("merge-operation-how-many-invalid",this)}},{key:"_execute",value:function(){var e=this.sourcePosition.parent;Nr(Sa._createIn(e),this.targetPosition),Nr(Sa._createOn(e),this.graveyardPosition)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}}],[{key:"className",get:function(){return"MergeOperation"}},{key:"fromJSON",value:function(e,t){var n=Ca.fromJSON(e.sourcePosition,t),i=Ca.fromJSON(e.targetPosition,t),o=Ca.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,i,o,e.baseVersion)}}])}(Fr),Kr=function(e){function n(e,t,i,o){var a;return c(this,n),(a=f(this,n,[o])).splitPosition=e.clone(),a.splitPosition.stickiness="toNext",a.howMany=t,a.insertionPosition=n.getInsertionPosition(e),a.insertionPosition.stickiness="toNone",a.graveyardPosition=i?i.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return p(n,e),d(n,[{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var e=this.insertionPosition.path.slice();return e.push(0),new Ca(this.insertionPosition.root,e)}},{key:"movedRange",get:function(){var e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Sa(this.splitPosition,e)}},{key:"clone",value:function(){var e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return e.insertionPosition=this.insertionPosition,e}},{key:"getReversed",value:function(){var e=new Ca(this.splitPosition.root.document.graveyard,[0]);return new Qr(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.splitPosition.parent;if(!e||e.maxOffset<this.splitPosition.offset)throw new Lt.a("split-operation-position-invalid",this);if(!e.parent)throw new Lt.a("split-operation-split-in-root",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new Lt.a("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new Lt.a("split-operation-graveyard-position-invalid",this)}},{key:"_execute",value:function(){var e=this.splitPosition.parent;if(this.graveyardPosition)Nr(Sa._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var t=e._clone();Er(this.insertionPosition,t)}Nr(new Sa(Ca._createAt(e,this.splitPosition.offset),Ca._createAt(e,e.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var e=t(_(n.prototype),"toJSON",this).call(this);return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}}],[{key:"className",get:function(){return"SplitOperation"}},{key:"getInsertionPosition",value:function(e){var t=e.path.slice(0,-1);return t[t.length-1]++,new Ca(e.root,t)}},{key:"fromJSON",value:function(e,t){var n=Ca.fromJSON(e.splitPosition,t),i=Ca.fromJSON(e.insertionPosition,t),o=e.graveyardPosition?Ca.fromJSON(e.graveyardPosition,t):null,a=new this(n,e.howMany,o,e.baseVersion);return a.insertionPosition=i,a}}])}(Fr),Zr=function(e){function t(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return c(this,t),(i=f(this,t,[n]))._document=e,i.rootName=o,i}return p(t,e),d(t,[{key:"document",get:function(){return this._document}},{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}}])}(ba),Xr=function(){return d((function e(t,n){c(this,e),this.model=t,this.batch=n}),[{key:"createText",value:function(e,t){return new ga(e,t)}},{key:"createElement",value:function(e,t){return new ba(e,t)}},{key:"createDocumentFragment",value:function(){return new Ar}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof ga&&""==e.data)){var a=Ca._createAt(t,n);if(e.parent){if(os(e.root,a.root))return void this.move(Sa._createOn(e),a);if(e.root.document)throw new Lt.a("model-writer-insert-forbidden-move",this);this.remove(e)}var r=new Wr(a,e,a.root.document?a.root.document.version:null);if(e instanceof ga&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),e instanceof Ar){var s,l=o(e.markers);try{for(l.s();!(s=l.n()).done;){var c=i(s.value,2),u=c[0],d=c[1],h=Ca._createAt(d.root,0),f={range:new Sa(d.start._getCombined(h,a),d.end._getCombined(h,a)),usingOperation:!0,affectsData:!0};this.model.markers.has(u)?this.updateMarker(u,f):this.addMarker(u,f)}}catch(m){l.e(m)}finally{l.f()}}}}},{key:"insertText",value:function(e,t,n,i){t instanceof Ar||t instanceof ba||t instanceof Ca?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,i)}},{key:"insertElement",value:function(e,t,n,i){t instanceof Ar||t instanceof ba||t instanceof Ca?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,i)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof Ar||t instanceof ba?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof Ar||t instanceof ba?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof Sa){var i,a=o(n.getMinimalFlatRanges());try{for(a.s();!(i=a.n()).done;){es(this,e,t,i.value)}}catch(r){a.e(r)}finally{a.f()}}else ts(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,a=o(en(e));try{for(a.s();!(n=a.n()).done;){var r=i(n.value,2),s=r[0],l=r[1];this.setAttribute(s,l,t)}}catch(c){a.e(c)}finally{a.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof Sa){var n,i=o(t.getMinimalFlatRanges());try{for(i.s();!(n=i.n()).done;){es(this,e,null,n.value)}}catch(a){i.e(a)}finally{i.f()}}else ts(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,i=o(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var a=n.value;t.removeAttribute(a,e)}}catch(r){i.e(r)}finally{i.f()}};if(e instanceof Sa){var i,a=o(e.getItems());try{for(a.s();!(i=a.n()).done;){n(i.value)}}catch(r){a.e(r)}finally{a.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof Sa))throw new Lt.a("writer-move-invalid-range",this);if(!e.isFlat)throw new Lt.a("writer-move-range-not-flat",this);var i=Ca._createAt(t,n);if(!i.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!os(e.root,i.root))throw new Lt.a("writer-move-different-document",this);var o=new Ur(e.start,e.end.offset-e.start.offset,i,e.root.document?e.root.document.version:null);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=o((e instanceof Sa?e:Sa._createOn(e)).getMinimalFlatRanges().reverse());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addOperationForAffectedMarkers("move",i),is(i.start,i.end.offset-i.start.offset,this.batch,this.model)}}catch(a){n.e(a)}finally{n.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof ba))throw new Lt.a("writer-merge-no-element-before",this);if(!(n instanceof ba))throw new Lt.a("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(Sa._createIn(n),Ca._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=Ca._createAt(e.nodeBefore,"end"),n=Ca._createAt(e.nodeAfter,0),i=new Ca(e.root.document.graveyard,[0]),o=new Qr(n,e.nodeAfter.maxOffset,t,i,e.root.document.version);this.batch.addOperation(o),this.model.applyOperation(o)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof ba))throw new Lt.a("writer-rename-not-element-instance",this);var n=e.root.document?e.root.document.version:null,i=new Gr(Ca._createBefore(e),e.name,t,n);this.batch.addOperation(i),this.model.applyOperation(i)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,i,o=e.parent;if(!o.parent)throw new Lt.a("writer-split-element-no-parent",this);if(t||(t=o.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new Lt.a("writer-split-invalid-limit-element",this);do{var a=new Kr(e,o.maxOffset-e.offset,null,o.root.document?o.root.document.version:null);this.batch.addOperation(a),this.model.applyOperation(a),n||i||(n=o,i=e.parent.nextSibling),o=(e=this.createPositionAfter(e.parent)).parent}while(o!==t);return{position:e,range:new Sa(Ca._createAt(n,"end"),Ca._createAt(i,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new Lt.a("writer-wrap-range-not-flat",this);var n=t instanceof ba?t:new ba(t);if(n.childCount>0)throw new Lt.a("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new Lt.a("writer-wrap-element-attached",this);this.insert(n,e.start);var i=new Sa(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(i,Ca._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new Lt.a("writer-unwrap-element-no-parent",this);this.move(Sa._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new Lt.a("writer-addmarker-no-usingoperation",this);var n=t.usingOperation,i=t.range,o=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new Lt.a("writer-addmarker-marker-exists",this);if(!i)throw new Lt.a("writer-addmarker-no-range",this);return n?(ns(this,e,null,i,o),this.model.markers.get(e)):this.model.markers._set(e,i,n,o)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,i=this.model.markers.get(n);if(!i)throw new Lt.a("writer-updatemarker-marker-not-exists",this);if(t){var o="boolean"==typeof t.usingOperation,a="boolean"==typeof t.affectsData,r=a?t.affectsData:i.affectsData;if(!o&&!t.range&&!a)throw new Lt.a("writer-updatemarker-wrong-options",this);var s=i.getRange(),l=t.range?t.range:s;o&&t.usingOperation!==i.managedUsingOperations?t.usingOperation?ns(this,n,null,l,r):(ns(this,n,s,null,r),this.model.markers._set(n,l,void 0,r)):i.managedUsingOperations?ns(this,n,s,l,r):this.model.markers._set(n,l,void 0,r)}else this.model.markers._refresh(i)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new Lt.a("writer-removemarker-no-marker",this);var n=this.model.markers.get(t);n.managedUsingOperations?ns(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,a=o(en(e));try{for(a.s();!(n=a.n()).done;){var r=i(n.value,2),s=r[0],l=r[1];this._setSelectionAttribute(s,l)}}catch(c){a.e(c)}finally{a.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeSelectionAttribute(i)}}catch(a){n.e(a)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var i=Ha._getStoreAttributeKey(e);this.setAttribute(i,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=Ha._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new Lt.a("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,i=o(this.model.markers);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.managedUsingOperations){var r=a.getRange(),s=!1;if("move"===e)s=t.containsPosition(r.start)||t.start.isEqual(r.start)||t.containsPosition(r.end)||t.end.isEqual(r.end);else{var l=t.nodeAfter,c=r.end.parent==l&&0==r.end.offset,u=r.end.nodeAfter==l,d=r.start.nodeAfter==l;s=r.start.parent==t.nodeBefore&&r.start.isAtEnd||c||u||d}s&&this.updateMarker(a.name,{range:r})}}}catch(h){i.e(h)}finally{i.f()}}}])}();function es(e,t,n,i){var a,r,s,l,c=e.model,u=c.document,d=i.start,h=o(i.getWalker({shallow:!0}));try{for(h.s();!(l=h.n()).done;){var f=l.value;s=f.item.getAttribute(t),a&&r!=s&&(r!=n&&m(),d=a),a=f.nextPosition,r=s}}catch(p){h.e(p)}finally{h.f()}function m(){var i=new Sa(d,a),o=new Yr(i,t,r,n,i.root.document?u.version:null);e.batch.addOperation(o),c.applyOperation(o)}a instanceof Ca&&a!=d&&r!=n&&m()}function ts(e,t,n,i){var o,a,r=e.model,s=r.document,l=i.getAttribute(t);l!=n&&(i.root===i?a=new $r(i,t,l,n,i.document?s.version:null):(o=new Sa(Ca._createBefore(i),e.createPositionAfter(i)),a=new Yr(o,t,l,n,o.root.document?s.version:null)),e.batch.addOperation(a),r.applyOperation(a))}function ns(e,t,n,i,o){var a=e.model,r=new Jr(t,n,i,a.markers,o,a.document.version);e.batch.addOperation(r),a.applyOperation(r)}function is(e,t,n,i){var o;if(e.root.document){var a=i.document,r=new Ca(a.graveyard,[0]);o=new Ur(e,t,r,a.version)}else o=new qr(e,t);n.addOperation(o),i.applyOperation(o)}function os(e,t){return e===t||e instanceof Zr&&t instanceof Zr}var as=function(){return d((function e(t){c(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}),[{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}},{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=Sa._createOn(e),i=o(this._markerCollection.getMarkersIntersectingRange(n));try{for(i.s();!(t=i.n()).done;){var a=t.value,r=a.getRange();this.bufferMarkerChange(a.name,r,r,a.affectsData)}}catch(s){i.e(s)}finally{i.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=o(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._isInInsertedElement(i.parent)||this._markAttribute(i)}}catch(p){n.e(p)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var a=this._isInInsertedElement(e.sourcePosition.parent),r=this._isInInsertedElement(e.targetPosition.parent);a||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),r||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var s,l=Sa._createFromPositionAndShift(e.position,1),c=o(this._markerCollection.getMarkersIntersectingRange(l));try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.getRange();this.bufferMarkerChange(u.name,d,d,u.affectsData)}}catch(p){c.e(p)}finally{c.f()}break;case"split":var h=e.splitPosition.parent;this._isInInsertedElement(h)||this._markRemove(h,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var f=e.sourcePosition.parent;this._isInInsertedElement(f.parent)||this._markRemove(f.parent,f.startOffset,1),this._markInsert(e.graveyardPosition.parent,e.graveyardPosition.offset,1);var m=e.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,e.targetPosition.offset,f.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,i){var o=this._changedMarkers.get(e);o?(o.newRange=n,o.affectsData=i,null==o.oldRange&&null==o.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:i})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=o(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var a=i(e.value,2),r=a[0],s=a[1];null!=s.oldRange&&t.push({name:r,range:s.oldRange})}}catch(l){n.e(l)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=o(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var a=i(e.value,2),r=a[0],s=a[1];null!=s.newRange&&t.push({name:r,range:s.newRange})}}catch(l){n.e(l)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=o(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){if(i(e.value,2)[1].affectsData)return!0}}catch(n){t.e(n)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],i=o(this._changesInElement.keys());try{for(i.s();!(t=i.n()).done;){var a,s=t.value,l=this._changesInElement.get(s).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1})),c=this._elementSnapshots.get(s),u=rs(s.getChildren()),d=ss(c.length,l),h=0,f=0,m=o(d);try{for(m.s();!(a=m.n()).done;){var p=a.value;if("i"===p)n.push(this._getInsertDiff(s,h,u[h].name)),h++;else if("r"===p)n.push(this._getRemoveDiff(s,h,c[f].name)),f++;else if("a"===p){var g=u[h].attributes,v=c[f].attributes,y=void 0;if("$text"==u[h].name)y=new Sa(Ca._createAt(s,h),Ca._createAt(s,h+1));else{var b=s.offsetToIndex(h);y=new Sa(Ca._createAt(s,h),Ca._createAt(s.getChild(b),0))}n.push.apply(n,r(this._getAttributesDiff(y,v,g))),h++,f++}else h++,f++}}catch(O){m.e(O)}finally{m.f()}}}catch(O){i.e(O)}finally{i.f()}n.sort((function(e,t){return e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1}));for(var _=1;_<n.length;_++){var k=n[_-1],C=n[_],w="remove"==k.type&&"remove"==C.type&&"$text"==k.name&&"$text"==C.name&&k.position.isEqual(C.position),x="insert"==k.type&&"insert"==C.type&&"$text"==k.name&&"$text"==C.name&&k.position.parent==C.position.parent&&k.position.offset+k.length==C.position.offset,M="attribute"==k.type&&"attribute"==C.type&&k.position.parent==C.position.parent&&k.range.isFlat&&C.range.isFlat&&k.position.offset+k.length==C.position.offset&&k.attributeKey==C.attributeKey&&k.attributeOldValue==C.attributeOldValue&&k.attributeNewValue==C.attributeNewValue;(w||x||M)&&(n[_-1].length++,M&&(n[_-1].range.end=n[_-1].range.end.getShiftedBy(1)),n.splice(_,1),_--)}for(var S=0,P=n;S<P.length;S++){var T=P[S];delete T.changeCount,"attribute"==T.type&&(delete T.position,delete T.length)}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.slice().filter(ls),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(e,t,n){var i={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i)}},{key:"_markRemove",value:function(e,t,n){var i={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i),this._removeAllNestedChanges(e,t,n)}},{key:"_markAttribute",value:function(e){var t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}},{key:"_markChange",value:function(e,t){this._makeSnapshot(e);var n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(var i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}},{key:"_getChangesForElement",value:function(e){var t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}},{key:"_makeSnapshot",value:function(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,rs(e.getChildren()))}},{key:"_handleChange",value:function(e,t){e.nodesToHandle=e.howMany;var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,r=e.offset+e.howMany,s=a.offset+a.howMany;if("insert"==e.type&&("insert"==a.type&&(e.offset<=a.offset?a.offset+=e.howMany:e.offset<s&&(a.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==a.type&&e.offset<a.offset&&(a.offset+=e.howMany),"attribute"==a.type))if(e.offset<=a.offset)a.offset+=e.howMany;else if(e.offset<s){var l=a.howMany;a.howMany=e.offset-a.offset,t.unshift({type:"attribute",offset:r,howMany:l-a.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==a.type)if(r<=a.offset)a.offset-=e.howMany;else if(r<=s)if(e.offset<a.offset){var c=r-a.offset;a.offset=e.offset,a.howMany-=c,e.nodesToHandle-=c}else a.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=a.offset)e.nodesToHandle-=a.howMany,a.howMany=0;else if(e.offset<s){var u=s-e.offset;a.howMany-=u,e.nodesToHandle-=u}if("remove"==a.type&&(r<=a.offset?a.offset-=e.howMany:e.offset<a.offset&&(e.nodesToHandle+=a.howMany,a.howMany=0)),"attribute"==a.type)if(r<=a.offset)a.offset-=e.howMany;else if(e.offset<a.offset){var d=r-a.offset;a.offset=e.offset,a.howMany-=d}else if(e.offset<s)if(r<=s){var h=a.howMany;a.howMany=e.offset-a.offset,t.unshift({type:"attribute",offset:e.offset,howMany:h-a.howMany-e.nodesToHandle,count:this._changeCount++})}else a.howMany-=s-e.offset}if("attribute"==e.type){if("insert"==a.type)if(e.offset<a.offset&&r>a.offset){if(r>s){var f={type:"attribute",offset:s,howMany:r-s,count:this._changeCount++};this._handleChange(f,t),t.push(f)}e.nodesToHandle=a.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=a.offset&&e.offset<s&&(r>s?(e.nodesToHandle=r-s,e.offset=s):e.nodesToHandle=0);if("remove"==a.type&&e.offset<a.offset&&r>a.offset){var m={type:"attribute",offset:a.offset,howMany:r-a.offset,count:this._changeCount++};this._handleChange(m,t),t.push(m),e.nodesToHandle=a.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==a.type&&(e.offset>=a.offset&&r<=s?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=a.offset&&r>=s&&(a.howMany=0))}}}catch(p){i.e(p)}finally{i.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:Ca._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:Ca._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var a=[];n=new Map(n);var r,s=o(t);try{for(s.s();!(r=s.n()).done;){var l=i(r.value,2),c=l[0],u=l[1],d=n.has(c)?n.get(c):null;d!==u&&a.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:c,attributeOldValue:u,attributeNewValue:d,changeCount:this._changeCount++}),n.delete(c)}}catch(v){s.e(v)}finally{s.f()}var h,f=o(n);try{for(f.s();!(h=f.n()).done;){var m=i(h.value,2),p=m[0],g=m[1];a.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:p,attributeOldValue:null,attributeNewValue:g,changeCount:this._changeCount++})}}catch(v){f.e(v)}finally{f.f()}return a}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),i=e.startOffset;if(n){var a,r=o(n);try{for(r.s();!(a=r.n()).done;){var s=a.value;if("insert"==s.type&&i>=s.offset&&i<s.offset+s.howMany)return!0}}catch(l){r.e(l)}finally{r.f()}}return this._isInInsertedElement(t)}},{key:"_removeAllNestedChanges",value:function(e,t,n){var i,a=o(new Sa(Ca._createAt(e,t),Ca._createAt(e,t+n)).getItems({shallow:!0}));try{for(a.s();!(i=a.n()).done;){var r=i.value;r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}catch(s){a.e(s)}finally{a.f()}}}])}();function rs(e){var t,n=[],i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.is("$text"))for(var r=0;r<a.data.length;r++)n.push({name:"$text",attributes:new Map(a.getAttributes())});else n.push({name:a.name,attributes:new Map(a.getAttributes())})}}catch(s){i.e(s)}finally{i.f()}return n}function ss(e,t){var n,i=[],a=0,s=0,l=o(t);try{for(l.s();!(n=l.n()).done;){var c=n.value;if(c.offset>a){for(var u=0;u<c.offset-a;u++)i.push("e");s+=c.offset-a}if("insert"==c.type){for(var d=0;d<c.howMany;d++)i.push("i");a=c.offset+c.howMany}else if("remove"==c.type){for(var h=0;h<c.howMany;h++)i.push("r");a=c.offset,s+=c.howMany}else i.push.apply(i,r("a".repeat(c.howMany).split(""))),a=c.offset+c.howMany,s+=c.howMany}}catch(m){l.e(m)}finally{l.f()}if(s<e)for(var f=0;f<e-s-a;f++)i.push("e");return i}function ls(e){return!(e.position&&"$graveyard"==e.position.root.rootName||e.range&&"$graveyard"==e.range.root.rootName)}var cs=function(){return d((function e(){c(this,e),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}),[{key:"addOperation",value:function(e){this._operations.includes(e)||this._operations.push(e)}},{key:"getOperations",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[],a=o(this._operations);try{for(a.s();!(e=a.n()).done;){var r=e.value;r.baseVersion>=t&&r.baseVersion<n&&i.push(r)}}catch(s){a.e(s)}finally{a.f()}return i}},{key:"getOperation",value:function(e){var t,n=o(this._operations);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.baseVersion==e)return i}}catch(a){n.e(a)}finally{n.f()}}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}}])}();function us(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function ds(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var hs=function(){return d((function e(t){var n=this;c(this,e),this.model=t,this.version=0,this.history=new cs(this),this.selection=new Ha(this),this.roots=new Ht({idProperty:"rootName"}),this.differ=new as(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root","$graveyard"),this.listenTo(t,"applyOperation",(function(e,t){var i=t[0];if(i.isDocumentOperation&&i.baseVersion!==n.version)throw new Lt.a("model-document-applyoperation-wrong-version",n,{operation:i})}),{priority:"highest"}),this.listenTo(t,"applyOperation",(function(e,t){var i=t[0];i.isDocumentOperation&&n.differ.bufferOperation(i)}),{priority:"high"}),this.listenTo(t,"applyOperation",(function(e,t){var i=t[0];i.isDocumentOperation&&(n.version++,n.history.addOperation(i))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",(function(e,t,i,o){n.differ.bufferMarkerChange(t.name,i,o,t.affectsData),null===i&&t.on("change",(function(e,i){n.differ.bufferMarkerChange(t.name,i,t.getRange(),t.affectsData)}))}))}),[{key:"graveyard",get:function(){return this.getRoot("$graveyard")}},{key:"createRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new Lt.a("model-document-createroot-name-exists",this,{name:t});var n=new Zr(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return"$graveyard"!=e}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=Qt(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=o(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(i){t.e(i)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,i=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(i)||t.createRange(i)}},{key:"_validateSelectionRange",value:function(e){return fs(e.start)&&fs(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=o(this._postFixers);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(this.selection.refresh(),t=a(e))break}}catch(r){i.e(r)}finally{i.f()}}while(t)}}])}();function fs(e){var t=e.textNode;if(t){var n=t.data,i=e.offset-t.startOffset;return!us(n,i)&&!ds(n,i)}return!0}Vt(hs,Ft);var ms=function(){return d((function e(){c(this,e),this._markers=new Map}),[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=e instanceof ps?e.name:e;if(o.includes(","))throw new Lt.a("markercollection-incorrect-marker-name",this);var a=this._markers.get(o);if(a){var r=a.getRange(),s=!1;return r.isEqual(t)||(a._attachLiveRange(ja.fromRange(t)),s=!0),n!=a.managedUsingOperations&&(a._managedUsingOperations=n,s=!0),"boolean"==typeof i&&i!=a.affectsData&&(a._affectsData=i,s=!0),s&&this.fire("update:"+o,a,r,t),a}var l=ja.fromRange(t),c=new ps(o,l,n,i);return this._markers.set(o,c),this.fire("update:"+o,c,null,t),c}},{key:"_remove",value:function(e){var t=e instanceof ps?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof ps?e.name:e,n=this._markers.get(t);if(!n)throw new Lt.a("markercollection-refresh-marker-not-exists",this);var i=n.getRange();this.fire("update:"+t,n,i,i,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=r.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=null!==r.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=o(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(i){t.e(i)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:a().mark((function e(t){var n,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=o(this._markers.values()),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=r.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}])}();Vt(ms,Ft);var ps=function(){return d((function e(t,n,i,o){c(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=i,this._affectsData=o}),[{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new Lt.a("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new Lt.a("marker-destroyed",this);return this._affectsData}},{key:"getStart",value:function(){if(!this._liveRange)throw new Lt.a("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new Lt.a("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new Lt.a("marker-destroyed",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}])}();Vt(ps,Ft);var gs=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"type",get:function(){return"noop"}},{key:"clone",value:function(){return new t(this.baseVersion)}},{key:"getReversed",value:function(){return new t(this.baseVersion+1)}},{key:"_execute",value:function(){}}],[{key:"className",get:function(){return"NoOperation"}}])}(Fr),vs={};vs[Yr.className]=Yr,vs[Wr.className]=Wr,vs[Jr.className]=Jr,vs[Ur.className]=Ur,vs[gs.className]=gs,vs[Fr.className]=Fr,vs[Gr.className]=Gr,vs[$r.className]=$r,vs[Kr.className]=Kr,vs[Qr.className]=Qr;var ys=function(e){function t(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(c(this,t),!(i=f(this,t,[e,n,o])).root.is("rootElement"))throw new Lt.a("model-liveposition-root-not-rootelement",e);return bs.call(m(i)),m(i)}return p(t,e),d(t,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new Ca(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}])}(Ca);function bs(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var i=n[0];i.isDocumentOperation&&_s.call(e,i)}),{priority:"low"})}function _s(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}Vt(ys,Ft);var ks=function(){return d((function e(t,n,i){c(this,e),this.model=t,this.writer=n,this.position=i,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}),[{key:"handleNodes",value:function(e,t){e=Array.from(e);for(var n=0;n<e.length;n++)this._handleNode(e[n],{isFirst:0===n&&t.isFirst,isLast:n===e.length-1&&t.isLast});this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?Sa._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new Sa(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(e,t){this.schema.isObject(e)?this._handleObject(e,t):this._checkAndSplitToAllowedPosition(e,t)?(this._insert(e),this._mergeSiblingsOf(e,t)):this._handleDisallowedNode(e,t)}},{key:"_handleObject",value:function(e,t){this._checkAndSplitToAllowedPosition(e)?this._insert(e):this._tryAutoparagraphing(e,t)}},{key:"_handleDisallowedNode",value:function(e,t){e.is("element")?this.handleNodes(e.getChildren(),t):this._tryAutoparagraphing(e,t)}},{key:"_insert",value:function(e){if(!this.schema.checkChild(this.position,e))throw new Lt.a("insertcontent-wrong-position",this,{node:e,position:this.position});var t=ys.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(e,this.position),this.position=t.toPosition(),t.detach(),this.nodeToSelect=this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?e:null,this._filterAttributesOf.push(e)}},{key:"_setAffectedBoundaries",value:function(e){this._affectedStart||(this._affectedStart=ys.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=ys.fromPosition(e,"toNext"))}},{key:"_mergeSiblingsOf",value:function(e,t){if(e instanceof ba){var n=this._canMergeLeft(e,t),i=this._canMergeRight(e,t),o=ys._createBefore(e);o.stickiness="toNext";var a=ys._createAfter(e);if(a.stickiness="toNext",n){var r=ys.fromPosition(this.position);r.stickiness="toNext",this._affectedStart.isEqual(o)&&(this._affectedStart.detach(),this._affectedStart=ys._createAt(o.nodeBefore,"end","toPrevious")),this.writer.merge(o),o.isEqual(this._affectedEnd)&&t.isLast&&(this._affectedEnd.detach(),this._affectedEnd=ys._createAt(o.nodeBefore,"end","toNext")),this.position=r.toPosition(),r.detach()}if(i){if(!this.position.isEqual(a))throw new Lt.a("insertcontent-invalid-insertion-position",this);this.position=Ca._createAt(a.nodeBefore,"end");var s=ys.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(a)&&(this._affectedEnd.detach(),this._affectedEnd=ys._createAt(a.nodeBefore,"end","toNext")),this.writer.merge(a),a.getShiftedBy(-1).isEqual(this._affectedStart)&&t.isFirst&&(this._affectedStart.detach(),this._affectedStart=ys._createAt(a.nodeBefore,0,"toPrevious")),this.position=s.toPosition(),s.detach()}(n||i)&&this._filterAttributesOf.push(this.position.parent),o.detach(),a.detach()}}},{key:"_canMergeLeft",value:function(e,t){var n=e.previousSibling;return t.isFirst&&n instanceof ba&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,e)}},{key:"_canMergeRight",value:function(e,t){var n=e.nextSibling;return t.isLast&&n instanceof ba&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(e,n)}},{key:"_tryAutoparagraphing",value:function(e,t){var n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,e)&&(n._appendChild(e),this._handleNode(n,t))}},{key:"_checkAndSplitToAllowedPosition",value:function(e){var t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(;t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var i=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=i,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}])}();function Cs(e,t,n){var i=t.parent,a=n.parent;return i!=a&&!e.isLimit(i)&&!e.isLimit(a)&&function(e,t,n){var i,a=o(new Sa(e,t).getWalker());try{for(a.s();!(i=a.n()).done;){var r=i.value;if(n.isLimit(r.item))return!1}}catch(s){a.e(s)}finally{a.f()}return!0}(t,n,e)}function ws(e,t,n){var i=e.createElement("paragraph");e.insert(i,t),xs(e,n,e.createPositionAt(i,0))}function xs(e,t,n){t instanceof Ha?e.setSelection(n):t.setTo(n)}function Ms(e,t){var n=e.isForward,i=e.walker,o=e.unit,a=e.schema,r=t.type,s=t.item,l=t.nextPosition;if("text"==r)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var i=e.position.offset-n.startOffset;!Ps(n.data,i,t)&&!Ts(n,i,t);){e.next();var o=t?e.position.nodeAfter:e.position.nodeBefore;if(o&&o.is("$text")){var a=o.data.charAt(t?0:o.data.length-1);' ,.?!:;"-()'.includes(a)||(e.next(),n=e.position.textNode)}i=e.position.offset-n.startOffset}return e.position}(i,n):function(e,t){var n=e.position.textNode;if(n)for(var i=n.data,o=e.position.offset-n.startOffset;us(i,o)||"character"==t&&ds(i,o);)e.next(),o=e.position.offset-n.startOffset;return e.position}(i,o);if(r==(n?"elementStart":"elementEnd")){if(a.isSelectable(s))return Ca._createAt(s,n?"after":"before");if(a.checkChild(l,"$text"))return l}else{if(a.isLimit(s))return void i.skip((function(){return!0}));if(a.checkChild(l,"$text"))return l}}function Ss(e,t){var n=Ca._createAt(e.root,t?"end":0);return t?new Sa(e,n):new Sa(n,e)}function Ps(e,t,n){return' ,.?!:;"-()'.includes(e.charAt(t+(n?0:-1)))}function Ts(e,t,n){return t===(n?e.endOffset:0)}function Os(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var i=t.createRangeOn(n);n=n.parent,t.remove(i)}}))}function Ls(e,t){return e.isCollapsed?function(e,t){var n=e.start,i=t.getNearestSelectionRange(n);if(!i)return null;if(!i.isCollapsed)return i;var o=i.start;return n.isEqual(o)?null:new Sa(o)}(e,t):function(e,t){var n=e.start,i=e.end,o=t.checkChild(n,"$text"),a=t.checkChild(i,"$text"),r=t.getLimitElement(n),s=t.getLimitElement(i);if(r===s){if(o&&a)return null;if(function(e,t,n){var i=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),o=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return i||o}(n,i,t)){var l=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),c=i.nodeBefore&&t.isSelectable(i.nodeBefore)?null:t.getNearestSelectionRange(i,"backward");return new Sa(l?l.start:n,c?c.end:i)}}var u=r&&!r.is("rootElement"),d=s&&!s.is("rootElement");if(u||d){var h=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,f=u&&(!h||!Is(n.nodeAfter,t)),m=d&&(!h||!Is(i.nodeBefore,t)),p=n,g=i;return f&&(p=Ca._createBefore(Ds(r,t))),m&&(g=Ca._createAfter(Ds(s,t))),new Sa(p,g)}return null}(e,t)}function Ds(e,t){for(var n=e,i=n;t.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function Is(e,t){return e&&t.isSelectable(e)}var Fs=function(){return d((function e(){var t=this;c(this,e),this.markers=new ms,this.document=new hs(this),this.schema=new mr,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.selection,a=t.schema,r=[],s=!1,l=o(i.getRanges());try{for(l.s();!(n=l.n()).done;){var c=n.value,u=Ls(c,a);u&&!u.isEqual(c)?(r.push(u),s=!0):r.push(c)}}catch(d){l.e(d)}finally{l.f()}s&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value,r=t.pop();if(a.isEqual(r))t.push(r);else if(a.isIntersecting(r)){var s=r.start.isAfter(a.start)?a.start:r.start,l=r.end.isAfter(a.end)?r.end:a.end,c=new Sa(s,l);t.push(c)}else t.push(r),t.push(a)}}catch(d){i.e(d)}finally{i.f()}return t}(r),{backward:i.isBackward})}(t,e)}))}(this),this.document.registerPostFixer(er)}),[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Ir,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){Lt.a.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new Ir(e):"function"==typeof e&&(t=e,e=new Ir),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){Lt.a.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,i){return e.change((function(o){var a;(a=n?n instanceof Aa||n instanceof Ha?n:o.createSelection(n,i):e.document.selection).isCollapsed||e.deleteContent(a,{doNotAutoparagraph:!0});var r,s=new ks(e,o,a.anchor);r=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(r,{isFirst:!0,isLast:!0});var l=s.getSelectionRange();l&&(a instanceof Ha?o.setSelection(l):a.setTo(l));var c=s.getAffectedRange()||e.createRange(a.anchor);return s.destroy(),c}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var a=t.getFirstRange();if("$graveyard"!=a.root.rootName){var r=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var i=t.getFirstRange();return i.start.parent!=i.end.parent&&e.checkChild(n,"paragraph")}(r,t)){var s=i(function(e){var t=e.root.document.model,n=e.start,i=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var a=function(e){var t,n=e.parent,i=n.root.document.model.schema,a=o(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(a.s();!(t=a.n()).done;){var r=t.value;if(i.isLimit(r))return null;if(i.isBlock(r))return r}}catch(s){a.e(s)}finally{a.f()}}(i);if(a&&i.isTouching(t.createPositionAt(a,0))){var r=t.createSelection(e);t.modifySelection(r,{direction:"backward"}),i=r.getLastPosition()}}return[ys.fromPosition(n,"toPrevious"),ys.fromPosition(i,"toNext")]}(a),2),l=s[0],c=s[1];l.isTouching(c)||e.remove(e.createRange(l,c)),n.leaveUnmerged||(function(e,t,n){var o=e.model;if(Cs(e.model.schema,t,n)){var a=i(function(e,t){for(var n=e.getAncestors(),i=t.getAncestors(),o=0;n[o]&&n[o]==i[o];)o++;return[n[o],i[o]]}(t,n),2),r=a[0],s=a[1];r&&s&&(!o.hasContent(r,{ignoreMarkers:!0})&&o.hasContent(s,{ignoreMarkers:!0})?function e(t,n,i,o){var a=n.parent,r=i.parent;if(a!=o&&r!=o){for(n=t.createPositionAfter(a),(i=t.createPositionBefore(r)).isEqual(n)||t.insert(a,i);n.parent.isEmpty;){var s=n.parent;n=t.createPositionBefore(s),t.remove(s)}i=t.createPositionBefore(r),function(e,t){var n=t.nodeBefore,i=t.nodeAfter;n.name!=i.name&&e.rename(n,i.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(i.getAttributes()),n),e.merge(t)}(t,i),Cs(t.model.schema,n,i)&&e(t,n,i,o)}}(e,t,n,r.parent):function e(t,n,i,o){var a=n.parent,r=i.parent;if(a!=o&&r!=o){for(n=t.createPositionAfter(a),(i=t.createPositionBefore(r)).isEqual(n)||t.insert(r,n),t.merge(n);i.parent.isEmpty;){var s=i.parent;i=t.createPositionBefore(s),t.remove(s)}Cs(t.model.schema,n,i)&&e(t,n,i,o)}}(e,t,n,r.parent))}}(e,l,c),r.removeDisallowedAttributes(l.parent.getChildren(),e)),xs(e,t,l),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),i=e.checkChild(t,"paragraph");return!n&&i}(r,l)&&ws(e,l,t),l.detach(),c.detach()}else!function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),ws(e,e.createPositionAt(n,0),t)}(e,t)}))}}}(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e.schema,r="backward"!=o.direction,s=o.unit?o.unit:"character",l=new _a({boundaries:Ss(t.focus,r),singleCharacters:!0,direction:r?"forward":"backward"}),c={walker:l,schema:a,isForward:r,unit:s},u=function(){if(n.done)return{v:void 0};var i=Ms(c,n.value);return i?{v:void(t instanceof Ha?e.change((function(e){e.setSelectionFocus(i)})):t.setFocus(i))}:void 0};n=l.next();)if(i=u())return i.v}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;var a,r,s=i.start.root,l=i.start.getCommonPath(i.end),c=s.getNodeByPath(l),u=(a=i.start.parent==i.end.parent?i:e.createRange(e.createPositionAt(c,i.start.path[l.length]),e.createPositionAt(c,i.end.path[l.length]+1))).end.offset-a.start.offset,d=o(a.getItems({shallow:!0}));try{for(d.s();!(r=d.n()).done;){var h=r.value;h.is("$textProxy")?e.appendText(h.data,h.getAttributes(),n):e.append(e.cloneElement(h,!0),n)}}catch(p){d.e(p)}finally{d.f()}if(a!=i){var f=i._getTransformedByMove(a.start,e.createPositionAt(n,0),u)[0],m=e.createRange(e.createPositionAt(n,0),f.start);Os(e.createRange(f.end,e.createPositionAt(n,"end")),e),Os(m,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof ba?Sa._createIn(e):e;if(n.isCollapsed)return!1;var i=t.ignoreWhitespaces,a=void 0!==i&&i,r=t.ignoreMarkers,s=void 0!==r&&r;if(!s){var l,c=o(this.markers.getMarkersIntersectingRange(n));try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u.affectsData)return!0}}catch(m){c.e(m)}finally{c.f()}}var d,h=o(n.getItems());try{for(h.s();!(d=h.n()).done;){var f=d.value;if(this.schema.isContent(f)){if(!f.is("$textProxy"))return!0;if(!a)return!0;if(-1!==f.data.search(/\S/))return!0}}}catch(m){h.e(m)}finally{h.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new Ca(e,t,n)}},{key:"createPositionAt",value:function(e,t){return Ca._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Ca._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Ca._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sa(e,t)}},{key:"createRangeIn",value:function(e){return Sa._createIn(e)}},{key:"createRangeOn",value:function(e){return Sa._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new Aa(e,t,n)}},{key:"createBatch",value:function(e){return new Ir(e)}},{key:"createOperationFromJSON",value:function(e){return function(){return d((function e(){c(this,e)}),null,[{key:"fromJSON",value:function(e,t){return vs[e.__className].fromJSON(e,t)}}])}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){this._currentWriter=new Xr(this,this._pendingChanges[0].batch);var t=this._pendingChanges[0].callback(this._currentWriter);e.push(t),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}])}();Vt(Fs,Yn);var As=function(){return d((function e(){c(this,e),this._listener=Object.create(go)}),[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+bi(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=_i(e);this._listener.listenTo(this._listener,"_keydown:"+i,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:n.priority})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+bi(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}])}(),Es=function(e){function n(e){var t;return c(this,n),(t=f(this,n)).editor=e,t}return p(n,e),d(n,[{key:"set",value:function(e,i){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof i){var r=i;i=function(e,t){o.editor.execute(r),t()}}t(_(n.prototype),"set",this).call(this,e,i,a)}}])}(As),Bs=function(){return d((function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this._context=n.context||new Gt({language:n.language}),this._context._addEditor(this,!n.context);var i=Array.from(this.constructor.builtinPlugins||[]);this.config=new wt(n,this.constructor.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new Yt(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new dr,this.set("state","initializing"),this.once("ready",(function(){return t.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return t.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new Fs;var o=new Dn;this.data=new Tr(this.model,o),this.editing=new ur(this.model,o),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Or([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Es(this),this.keystrokes.listenTo(this.editing.view.document)}),[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],i=e.get("extraPlugins")||[];return this.plugins.init(t.concat(i),n)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var e;return(e=this.commands).execute.apply(e,arguments)}catch(n){Lt.a.rethrowUnexpectedError(n,this)}}},{key:"focus",value:function(){this.editing.view.focus()}}])}();Vt(Bs,Yn);var Ns={updateSourceElement:function(){if(!this.sourceElement)throw new Lt.a("editor-missing-sourceelement",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},Rs=function(){return d((function e(){c(this,e)}),[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}])}(),js=function(){return d((function e(t){c(this,e),this._domParser=new DOMParser,this._domConverter=new uo(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new Rs}),[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"registerRawContentMatcher",value:function(e){this._domConverter.registerRawContentMatcher(e)}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),i=t.body.childNodes;i.length>0;)n.appendChild(i[0]);return n}}])}(),zs=function(){return d((function e(t){c(this,e),this.editor=t,this._components=new Map}),[{key:"names",value:a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(Vs(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new Lt.a("componentfactory-item-missing",this,{name:e});return this._components.get(Vs(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(Vs(e))}}])}();function Vs(e){return String(e).toLowerCase()}var Hs=function(){return d((function e(){c(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}),[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new Lt.a("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}])}();Vt(Hs,go),Vt(Hs,Yn);var Ys=function(){return d((function e(t){var n=this;c(this,e),this.editor=t,this.componentFactory=new zs(t),this.focusTracker=new Hs,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}),[{key:"element",get:function(){return null}},{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=o(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){e.value.ckeditorInstance=null}}catch(n){t.e(n)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}])}();Vt(Ys,Ft),l(14);var qs=new WeakMap;function Us(e){var t=e.view,n=e.element,i=e.text,o=e.isDirectHost,a=void 0===o||o,r=t.document;qs.has(r)||(qs.set(r,new Map),r.registerPostFixer((function(e){return Ws(r,e)}))),qs.get(r).set(n,{text:i,isDirectHost:a}),t.change((function(e){return Ws(r,e)}))}function Ws(e,t){var n,a=!1,r=o(qs.get(e));try{for(r.s();!(n=r.n()).done;){var s=i(n.value,2);Js(t,s[0],s[1])&&(a=!0)}}catch(l){r.e(l)}finally{r.f()}return a}function Js(e,t,n){var i=n.text,o=n.isDirectHost?t:function(e){if(1===e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t),a=!1;return!!o&&(n.hostElement=o,o.getAttribute("data-placeholder")!==i&&(e.setAttribute("data-placeholder",i,o),a=!0),function(e){if(!e.isAttached())return!1;var t=!Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})),n=e.document;if(!n.isFocused&&t)return!0;var i=n.selection.anchor;return!(!t||!i||i.parent===e)}(o)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,o)&&(a=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,o)&&(a=!0),a)}var Gs=function(){return d((function e(){c(this,e),this._replacedElements=[]}),[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}])}(),$s=function(e){function n(e,t){var i,o;return c(this,n),(i=f(this,n,[e])).view=t,i._toolbarConfig=(o=e.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),i._elementReplacer=new Gs,i}return p(n,e),d(n,[{key:"element",get:function(){return this.view.element}},{key:"init",value:function(e){var t=this.view,n=this.editor.editing.view,i=t.editable,o=n.document.getRoot();i.name=o.rootName,t.render();var a=i.element;this.setEditableElement(i.name,a),this.focusTracker.add(a),t.editable.bind("isFocused").to(this.focusTracker),n.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,i=this.editor.editing.view;this._elementReplacer.restore(),i.detachDomRoot(e.editable.name),e.destroy(),t(_(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,i=e.originFocusTracker,o=e.toolbar,a=e.beforeFocus,r=e.afterBlur;i.add(o.element),n.set("Alt+F10",(function(e,t){i.isFocused&&!o.focusTracker.isFocused&&(a&&a(),o.focus(),t())})),o.keystrokes.set("Esc",(function(e,n){o.focusTracker.isFocused&&(t.focus(),r&&r(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),i=e.sourceElement,o=e.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");o&&Us({view:t,element:n,text:o,isDirectHost:!1})}}])}(Ys),Qs=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return c(this,t),(e=f(this,t,[n,{idProperty:"viewUid"}])).on("add",(function(t,n,i){e._renderViewIntoCollectionParent(n,i)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return p(t,e),d(t,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=o(this);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._renderViewIntoCollectionParent(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length||!n.every((function(e){return"string"==typeof e})))throw new Lt.a("ui-viewcollection-delegate-wrong-events",this);return{to:function(t){var i,a=o(e);try{for(a.s();!(i=a.n()).done;)for(var r=i.value,s=0,l=n;s<l.length;s++){var c=l[s];r.delegate(c).to(t)}}catch(u){a.e(u)}finally{a.f()}e.on("add",(function(e,i){for(var o=0,a=n;o<a.length;o++){var r=a[o];i.delegate(r).to(t)}})),e.on("remove",(function(e,i){for(var o=0,a=n;o<a.length;o++){var r=a[o];i.stopDelegating(r,t)}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}])}(Ht),Ks=function(){return d((function e(t){c(this,e),Object.assign(this,sl(rl(t))),this._isRendered=!1,this._revertData=null}),[{key:"render",value:function(){var e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}},{key:"apply",value:function(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}},{key:"revert",value:function(e){if(!this._revertData)throw new Lt.a("ui-template-revert-not-applied",[this,e]);this._revertTemplateFromNode(e,this._revertData)}},{key:"getViews",value:a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(a().mark((function e(t){var n,i,r;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!t.children){a.next=24;break}n=o(t.children),a.prev=2,n.s();case 4:if((i=n.n()).done){a.next=16;break}if(!hl(r=i.value)){a.next=11;break}return a.next=9,r;case 9:a.next=14;break;case 11:if(a.t0=fl(r),!a.t0){a.next=14;break}return a.delegateYield(e(r),"t1",14);case 14:a.next=4;break;case 16:a.next=21;break;case 18:a.prev=18,a.t2=a.catch(2),n.e(a.t2);case 21:return a.prev=21,n.f(),a.finish(21);case 24:case"end":return a.stop()}}),e,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_renderNode",value:function(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new Lt.a("ui-template-wrong-syntax",this);return this.text?this._renderText(e):this._renderElement(e)}},{key:"_renderElement",value:function(e){var t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}},{key:"_renderText",value:function(e){var t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),tl(this.text)?this._bindToObservable({schema:this.text,updater:il(t),data:e}):t.textContent=this.text.join(""),t}},{key:"_renderAttributes",value:function(e){var t,n,i,o;if(this.attributes){var a=e.node,r=e.revertData;for(t in this.attributes)if(i=a.getAttribute(t),n=this.attributes[t],r&&(r.attributes[t]=i),o=V(n[0])&&n[0].ns?n[0].ns:null,tl(n)){var s=o?n[0].value:n;r&&pl(t)&&s.unshift(i),this._bindToObservable({schema:s,updater:ol(a,t,o),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(r&&i&&pl(t)&&n.unshift(i),dl(n=n.map((function(e){return e&&e.value||e})).reduce((function(e,t){return e.concat(t)}),[]).reduce(cl,""))||a.setAttributeNS(o,t,n))}}},{key:"_renderStyleAttribute",value:function(e,t){var n=t.node;for(var i in e){var o=e[i];tl(o)?this._bindToObservable({schema:[o],updater:al(n,i),data:t}):n.style[i]=o}}},{key:"_renderElementChildren",value:function(e){var t,n=e.node,i=e.intoFragment?document.createDocumentFragment():n,a=e.isApplying,r=0,s=o(this.children);try{for(s.s();!(t=s.n()).done;){var l=t.value;if(ml(l)){if(!a){l.setParent(n);var c,u=o(l);try{for(u.s();!(c=u.n()).done;){var d=c.value;i.appendChild(d.element)}}catch(f){u.e(f)}finally{u.f()}}}else if(hl(l))a||(l.isRendered||l.render(),i.appendChild(l.element));else if(to(l))i.appendChild(l);else if(a){var h={children:[],bindings:[],attributes:{}};e.revertData.children.push(h),l._renderNode({node:i.childNodes[r++],isApplying:!0,revertData:h})}else i.appendChild(l.render())}}catch(f){s.e(f)}finally{s.f()}e.intoFragment&&n.appendChild(i)}},{key:"_setUpListeners",value:function(e){var t=this;if(this.eventListeners){var n=function(n){var o=t.eventListeners[n].map((function(t){var o=i(n.split("@"),2),a=o[0],r=o[1];return t.activateDomEventListener(a,r,e)}));e.revertData&&e.revertData.bindings.push(o)};for(var o in this.eventListeners)n(o)}}},{key:"_bindToObservable",value:function(e){var t=e.schema,n=e.updater,i=e.data,o=i.revertData;nl(t,n,i);var a=t.filter((function(e){return!dl(e)})).filter((function(e){return e.observable})).map((function(e){return e.activateAttributeListener(t,n,i)}));o&&o.bindings.push(a)}},{key:"_revertTemplateFromNode",value:function(e,t){var n,i=o(t.bindings);try{for(i.s();!(n=i.n()).done;){var a,r=o(n.value);try{for(r.s();!(a=r.n()).done;){(0,a.value)()}}catch(u){r.e(u)}finally{r.f()}}}catch(u){i.e(u)}finally{i.f()}if(t.text)e.textContent=t.text;else{for(var s in t.attributes){var l=t.attributes[s];null===l?e.removeAttribute(s):e.setAttribute(s,l)}for(var c=0;c<t.children.length;++c)this._revertTemplateFromNode(e.childNodes[c],t.children[c])}}}],[{key:"bind",value:function(e,t){return{to:function(n,i){return new Xs({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:i})},if:function(n,i,o){return new el({observable:e,emitter:t,attribute:n,valueIfTrue:i,callback:o})}}}},{key:"extend",value:function(e,t){if(e._isRendered)throw new Lt.a("template-extend-render",[this,e]);!function e(t,n,i){if(n.attributes&&(t.attributes||(t.attributes={}),ul(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),ul(t.eventListeners,n.eventListeners)),n.text&&(i=t.text).push.apply(i,r(n.text)),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new Lt.a("ui-template-extend-children-mismatch",t);var a,s=0,l=o(n.children);try{for(l.s();!(a=l.n()).done;){var c=a.value;e(t.children[s++],c)}}catch(u){l.e(u)}finally{l.f()}}}(e,sl(rl(t)))}}])}();Vt(Ks,Ft);var Zs=function(){return d((function e(t){c(this,e),Object.assign(this,t)}),[{key:"getValue",value:function(e){var t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}},{key:"activateAttributeListener",value:function(e,t,n){var i=this,o=function(){return nl(e,t,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,o),function(){i.emitter.stopListening(i.observable,"change:"+i.attribute,o)}}}])}(),Xs=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"activateDomEventListener",value:function(e,t,n){var i=this,o=function(e,n){t&&!n.target.matches(t)||("function"==typeof i.eventNameOrFunction?i.eventNameOrFunction(n):i.observable.fire(i.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,o),function(){i.emitter.stopListening(n.node,e,o)}}}])}(Zs),el=function(e){function n(){return c(this,n),f(this,n,arguments)}return p(n,e),d(n,[{key:"getValue",value:function(e){return!dl(t(_(n.prototype),"getValue",this).call(this,e))&&(this.valueIfTrue||!0)}}])}(Zs);function tl(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(tl):e instanceof Zs)}function nl(e,t,n){var i=function(e,t){return e.map((function(e){return e instanceof Zs?e.getValue(t):e}))}(e,n.node);dl(i=1==e.length&&e[0]instanceof el?i[0]:i.reduce(cl,""))?t.remove():t.set(i)}function il(e){return{set:function(t){e.textContent=t},remove:function(){e.textContent=""}}}function ol(e,t,n){return{set:function(i){e.setAttributeNS(n,t,i)},remove:function(){e.removeAttributeNS(n,t)}}}function al(e,t){return{set:function(n){e.style[t]=n},remove:function(){e.style[t]=null}}}function rl(e){return kt(e,(function(e){if(e&&(e instanceof Zs||fl(e)||hl(e)||ml(e)))return e}))}function sl(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){e.text=qt(e.text)}(e),e.on&&(e.eventListeners=function(e){for(var t in e)ll(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(var t in e)e[t].value&&(e[t].value=qt(e[t].value)),ll(e,t)}(e.attributes);var t=[];if(e.children)if(ml(e.children))t.push(e.children);else{var n,i=o(e.children);try{for(i.s();!(n=i.n()).done;){var a=n.value;fl(a)||hl(a)||to(a)?t.push(a):t.push(new Ks(a))}}catch(r){i.e(r)}finally{i.f()}}e.children=t}return e}function ll(e,t){e[t]=qt(e[t])}function cl(e,t){return dl(t)?e:dl(e)?t:"".concat(e," ").concat(t)}function ul(e,t){for(var n in t){var i;e[n]?(i=e[n]).push.apply(i,r(t[n])):e[n]=t[n]}}function dl(e){return!e&&0!==e}function hl(e){return e instanceof gl}function fl(e){return e instanceof Ks}function ml(e){return e instanceof Qs}function pl(e){return"class"==e||"style"==e}l(16);var gl=function(){return d((function e(t){c(this,e),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new Ht,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(e,n){n.locale=t})),this.decorate("render")}),[{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ks.bind(this,this)}},{key:"createCollection",value:function(e){var t=new Qs(e);return this._viewCollections.add(t),t}},{key:"registerChild",value:function(e){zt(e)||(e=[e]);var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._unboundChildren.add(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"deregisterChild",value:function(e){zt(e)||(e=[e]);var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._unboundChildren.remove(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"setTemplate",value:function(e){this.template=new Ks(e)}},{key:"extendTemplate",value:function(e){Ks.extend(this.template,e)}},{key:"render",value:function(){if(this.isRendered)throw new Lt.a("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(e){return e.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}}])}();Vt(gl,go),Vt(gl,Yn);var vl=function(e){return"string"==typeof e||!ve(e)&&L(e)&&"[object String]"==P(e)},yl=function(e){function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return c(this,n),(t=f(this,n,[i])).locale=e,t}return p(n,e),d(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Ks({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=n&&n.xmlns,r=a?e.createElementNS(a,t):e.createElement(t);for(var s in n)r.setAttribute(s,n[s]);!vl(i)&&zt(i)||(i=[i]);var l,c=o(i);try{for(c.s();!(l=c.n()).done;){var u=l.value;vl(u)&&(u=e.createTextNode(u)),r.appendChild(u)}}catch(d){c.e(d)}finally{c.f()}return r}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){t(_(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}])}(Qs);l(18);var bl=function(e){function n(e){var t;return c(this,n),(t=f(this,n,[e])).body=new yl(e),t}return p(n,e),d(n,[{key:"render",value:function(){t(_(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),t(_(n.prototype),"destroy",this).call(this)}}])}(gl);l(20);var _l=function(e){function t(e){var n;c(this,t),(n=f(this,t,[e])).set("text"),n.set("for"),n.id="ck-editor__label_"+Tt();var i=n.bindTemplate;return n.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:n.id,for:i.to("for")},children:[{text:i.to("text")}]}),n}return p(t,e),d(t)}(gl),kl=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).top=n.createCollection(),n.main=n.createCollection(),n._voiceLabelView=n._createVoiceLabel(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":n._voiceLabelView.id},children:[n._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:n.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:n.main}]}),n}return p(t,e),d(t,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new _l;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}])}(bl),Cl=function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n,[e,t,i])).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this);var i=this._editingView,o=this.t;i.change((function(t){var n=i.document.getRoot(e.name);t.setAttribute("aria-label",o("Rich Text Editor, %0",e.name),n)}))}}])}(function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n,[e])).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=t,o}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),t(_(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var i=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",i)}))}e.isRenderingInProgress?function n(i){e.once("change:isRenderingInProgress",(function(e,o,a){a?n(i):t(i)}))}(this):t(this)}}])}(gl));function wl(e){return function(t){return t+e}}l(22);var xl=wl("px"),Ml=function(e){function n(e){var t;c(this,n);var i=(t=f(this,n,[e])).bindTemplate;return t.set("isActive",!1),t.set("isSticky",!1),t.set("limiterElement",null),t.set("limiterBottomOffset",50),t.set("viewportTopOffset",0),t.set("_marginLeft",null),t.set("_isStickyToTheLimiter",!1),t.set("_hasViewportTopOffset",!1),t.content=t.createCollection(),t._contentPanelPlaceholder=new Ks({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(e){return e?"block":"none"})),height:i.to("isSticky",(function(e){return e?xl(t._panelRect.height):null}))}}}).render(),t._contentPanel=new Ks({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(e){return e?xl(t._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(e){return e?xl(t.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(e){return e?xl(t.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:t.content}).render(),t.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[t._contentPanelPlaceholder,t._contentPanel]}),t}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(ro.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:xl(-ro.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}])}(gl),Sl=function(){return d((function e(t){var n=this;if(c(this,e),Object.assign(this,t),t.actions&&t.keystrokeHandler){var i=function(e){var i=t.actions[e];"string"==typeof i&&(i=[i]);var a,r=o(i);try{for(r.s();!(a=r.n()).done;){var s=a.value;t.keystrokeHandler.set(s,(function(t,i){n[e](),i()}))}}catch(l){r.e(l)}finally{r.f()}};for(var a in t.actions)i(a)}}),[{key:"first",get:function(){return this.focusables.find(Pl)||null}},{key:"last",get:function(){return this.focusables.filter(Pl).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,i){var o=n.element===e.focusTracker.focusedElement;return o&&(t=i),o})),t)}},{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var i=(t+n+e)%n;do{var o=this.focusables.get(i);if(Pl(o))return o;i=(i+n+e)%n}while(i!==t);return null}}])}();function Pl(e){return!(!e.focus||"none"==ro.window.getComputedStyle(e.element).display)}var Tl=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),n}return p(t,e),d(t)}(gl),Ol=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}}),n}return p(t,e),d(t)}(gl),Ll=function(){function e(t,n){c(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return d(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var i=e._elementCallbacks.get(t);i||(i=new Set,e._elementCallbacks.set(t,i)),i.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var i=e._getElementCallbacks(t);i&&(i.delete(n),i.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){var t;t="function"==typeof ro.window.ResizeObserver?ro.window.ResizeObserver:Dl,e._observerInstance=new t((function(t){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value,r=e._getElementCallbacks(a.target);if(r){var s,l=o(r);try{for(l.s();!(s=l.n()).done;){(0,s.value)(a)}}catch(c){l.e(c)}finally{l.f()}}}}catch(c){i.e(c)}finally{i.f()}}))}}])}();Ll._observerInstance=null,Ll._elementCallbacks=null;var Dl=function(){return d((function e(t){c(this,e),this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}),[{key:"observe",value:function(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var e=this;this.listenTo(ro.window,"resize",(function(){e._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function t(){e._checkElementRectsAndExecuteCallback(),e._periodicCheckTimeout=setTimeout(t,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var e,t=[],n=o(this._elements);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._hasRectChanged(i)&&t.push({target:i,contentRect:this._previousRects.get(i)})}}catch(a){n.e(a)}finally{n.f()}t.length&&this._callback(t)}},{key:"_hasRectChanged",value:function(e){if(!e.ownerDocument.body.contains(e))return!1;var t=new ta(e),n=this._previousRects.get(e),i=!n||!n.isEqual(t);return this._previousRects.set(e,t),i}}])}();Vt(Dl,go);var Il=function(e){function t(e){var n;c(this,t);var i=(n=f(this,t,[e])).bindTemplate;return n.set("isVisible",!1),n.set("position","se"),n.children=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(e){return"ck-dropdown__panel_"+e})),i.if("isVisible","ck-dropdown__panel-visible")]},children:n.children,on:{selectstart:i.to((function(e){return e.preventDefault()}))}}),n}return p(t,e),d(t,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}])}(gl);function Fl(e){var t=e.element,n=e.target,a=e.positions,r=e.limiter,s=e.fitInViewport;H(n)&&(n=n()),H(r)&&(r=r());var l,c,u=function(e){return e&&e.parentNode?e.offsetParent===ro.document.body?null:e.offsetParent:null}(t),d=new ta(t),h=new ta(n);if(r||s){var f=function(e,t){var n=t.viewportRect,a=t.elementRect.getArea(),r=function(e,t){var n,a=t.targetRect,r=t.elementRect,s=t.limiterRect,l=t.viewportRect,c=[],u=r.getArea(),d=o(e);try{for(d.s();!(n=d.n()).done;){var h=Al(n.value,a,r);if(h){var f=i(h,2),m=f[0],p=f[1],g=0,v=0;if(s)if(l){var y=s.getIntersection(l);y&&(g=y.getIntersectionArea(p))}else g=s.getIntersectionArea(p);l&&(v=l.getIntersectionArea(p));var b={positionName:m,positionRect:p,limiterIntersectArea:g,viewportIntersectArea:v};if(g===u)return[b];c.push(b)}}}catch(_){d.e(_)}finally{d.f()}return c}(e,t);if(n){var s=El(r.filter((function(e){return e.viewportIntersectArea===a})),a);if(s)return s}return El(r,a)}(a,{targetRect:h,elementRect:d,limiterRect:r&&new ta(r).getVisible(),viewportRect:s&&new ta(ro.window)}),m=i(f||Al(a[0],h,d),2);c=m[0],l=m[1]}else{var p=i(Al(a[0],h,d),2);c=p[0],l=p[1]}var g=Bl(l);return u&&(g=function(e,t){var n=e.left,i=e.top,o=Bl(new ta(t)),a=Xo(t);return n-=o.left,i-=o.top,n+=t.scrollLeft,i+=t.scrollTop,{left:n-=a.left,top:i-=a.top}}(g,u)),{left:g.left,top:g.top,name:c}}function Al(e,t,n){var i=e(t,n);if(!i)return null;var o=i.left,a=i.top;return[i.name,n.clone().moveTo(o,a)]}function El(e,t){var n,i,a,r=0,s=o(e);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=l.positionName,u=l.positionRect,d=l.limiterIntersectArea,h=l.viewportIntersectArea;if(d===t)return[c,u];var f=Math.pow(h,2)+Math.pow(d,2);f>r&&(r=f,n=u,i=c)}}catch(m){s.e(m)}finally{s.f()}return n?[i,n]:null}function Bl(e){var t=e.left,n=e.top,i=ro.window;return{left:t+i.scrollX,top:n+i.scrollY}}l(24);var Nl=function(e){function n(e,t,i){var o;c(this,n);var a=(o=f(this,n,[e])).bindTemplate;return o.buttonView=t,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new As,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[t,i]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&(e.panelView.position="auto"===e.panelPosition?n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelPosition)})),this.keystrokes.listenTo(this.element);var i=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",i),this.keystrokes.set("esc",i)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.southEast,i=e.southWest,o=e.northEast,a=e.northWest;return"ltr"===this.locale.uiLanguageDirection?[t,i,o,a]:[i,t,a,o]}}])}(gl);Nl.defaultPanelPositions={southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"}}},Nl._getOptimalPosition=Fl,l(26);var Rl=function(e){function n(){var e;c(this,n);var t=(e=f(this,n)).bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:t.to("viewBox")}}),e}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}])}(gl);l(28);var jl=function(e){function t(e){var n;c(this,t),(n=f(this,t,[e])).set("text",""),n.set("position","s");var i=n.bindTemplate;return n.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",i.to("position",(function(e){return"ck-tooltip_"+e})),i.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:i.to("text")}]}]}),n}return p(t,e),d(t)}(gl);l(30);var zl=function(e){function n(e){var t;c(this,n);var i=(t=f(this,n,[e])).bindTemplate,o=Tt();return t.set("class"),t.set("labelStyle"),t.set("icon"),t.set("isEnabled",!0),t.set("isOn",!1),t.set("isVisible",!0),t.set("isToggleable",!1),t.set("keystroke"),t.set("label"),t.set("tabindex",-1),t.set("tooltip"),t.set("tooltipPosition","s"),t.set("type","button"),t.set("withText",!1),t.set("withKeystroke",!1),t.children=t.createCollection(),t.tooltipView=t._createTooltipView(),t.labelView=t._createLabelView(o),t.iconView=new Rl,t.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),t.keystrokeView=t._createKeystrokeView(),t.bind("_tooltipString").to(t,"tooltip",t,"label",t,"keystroke",t._getTooltipString.bind(t)),t.setTemplate({tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(e){return!e})),i.if("isVisible","ck-hidden",(function(e){return!e})),i.to("isOn",(function(e){return e?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(e){return e||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":i.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":i.to("isOn",(function(e){return!!t.isToggleable&&String(e)}))},children:t.children,on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(e){t.isEnabled?t.fire("execute"):e.preventDefault()}))}}),t}return p(n,e),d(n,[{key:"render",value:function(){t(_(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new jl;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new gl;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:this.bindTemplate.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new gl;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return ki(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=ki(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}])}(gl),Vl='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',Hl=function(e){function n(e){var t;return c(this,n),(t=f(this,n,[e])).arrowView=t._createArrowView(),t.extendTemplate({attributes:{"aria-haspopup":!0}}),t.delegate("execute").to(m(t),"open"),t}return p(n,e),d(n,[{key:"render",value:function(){t(_(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new Rl;return e.content=Vl,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}])}(zl);l(32);var Yl=function(e){function n(){var e;return c(this,n),(e=f(this,n)).items=e.createCollection(),e.focusTracker=new Hs,e.keystrokes=new As,e._focusCycler=new Sl({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this);var i,a=o(this.items);try{for(a.s();!(i=a.n()).done;){var r=i.value;this.focusTracker.add(r.element)}}catch(s){a.e(s)}finally{a.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}])}(gl),ql=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).children=n.createCollection(),n.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:n.children}),n}return p(t,e),d(t,[{key:"focus",value:function(){this.children.first.focus()}}])}(gl),Ul=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),n}return p(t,e),d(t)}(gl);l(34);var Wl=function(e){function n(e){var t;return c(this,n),(t=f(this,n,[e])).isToggleable=!0,t.toggleSwitchView=t._createToggleView(),t.extendTemplate({attributes:{class:"ck-switchbutton"}}),t}return p(n,e),d(n,[{key:"render",value:function(){t(_(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new gl;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}])}(zl);function Jl(e){var t=e.emitter,n=e.activator,i=e.callback,a=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var r,s="function"==typeof t.composedPath?t.composedPath():[],l=o(a);try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c.contains(t.target)||s.includes(c))return}}catch(u){l.e(u)}finally{l.f()}i()}}))}function Gl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hl,n=new t(e),i=new Il(e),o=new Nl(e,n,i);return n.bind("isEnabled").to(o),n instanceof Hl?n.bind("isOn").to(o,"isOpen"):n.arrowView.bind("isOn").to(o,"isOpen"),function(e){(function(e){e.on("render",(function(){Jl({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof Wl||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(o),o}function $l(e,t){var n=e.locale,i=e.listView=new Yl(n);i.items.bindTo(t).using((function(e){var t=e.type,i=e.model;if("separator"===t)return new Ul(n);if("button"===t||"switchbutton"===t){var o,a,s=new ql(n);return(o=a="button"===t?new zl(n):new Wl(n)).bind.apply(o,r(Object.keys(i))).to(i),a.delegate("execute").to(s),s.children.add(a),s}})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}l(36),l(38),l(40);var Ql=function(e){function n(e,t){var i;c(this,n);var o=(i=f(this,n,[e])).bindTemplate,a=i.t;i.options=t||{},i.set("ariaLabel",a("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new Hs,i.keystrokes=new As,i.set("class"),i.set("isCompact",!1),i.itemsView=new Kl(e),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection(),i._focusCycler=new Sl({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}});var r,s=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact")];return i.options.shouldGroupWhenFull&&i.options.isFloating&&s.push("ck-toolbar_floating"),i.setTemplate({tag:"div",attributes:{class:s,role:"toolbar","aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")}},children:i.children,on:{mousedown:(r=i,r.bindTemplate.to((function(e){e.target===r.element&&e.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new Xl(i):new Zl(i),i}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this);var i,a=o(this.items);try{for(a.s();!(i=a.n()).done;){var r=i.value;this.focusTracker.add(r.element)}}catch(s){a.e(s)}finally{a.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),t(_(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){var n=this;this.items.addMany(e.map((function(i){return"|"==i?new Tl:"-"==i?(n.options.shouldGroupWhenFull&&Object(Lt.c)("toolbarview-line-break-ignored-when-grouping-items",e),new Ol):t.has(i)?t.create(i):void Object(Lt.c)("toolbarview-item-unavailable",{name:i})})).filter((function(e){return void 0!==e})))}}])}(gl),Kl=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).children=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:n.children}),n}return p(t,e),d(t)}(gl),Zl=function(){return d((function e(t){c(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}),[{key:"render",value:function(){}},{key:"destroy",value:function(){}}])}(),Xl=function(){return d((function e(t){var n=this;c(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var i,a=t.index,r=o(t.removed);try{for(r.s();!(i=r.n()).done;){var s=i.value;a>=n.ungroupedItems.length?n.groupedItems.remove(s):n.ungroupedItems.remove(s)}}catch(u){r.e(u)}finally{r.f()}for(var l=a;l<a+t.added.length;l++){var c=t.added[l-a];l>n.ungroupedItems.length?n.groupedItems.add(c,l-n.ungroupedItems.length):n.ungroupedItems.add(c,l)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}),[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new ta(e.lastChild),i=new ta(e);if(!this.cachedPadding){var o=ro.window.getComputedStyle(e);this.cachedPadding=Number.parseInt(o["ltr"===t?"paddingRight":"paddingLeft"])}return"ltr"===t?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new Ll(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new Tl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=Gl(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",function(e,t){var n=e.locale,i=n.t,o=e.toolbarView=new Ql(n);o.set("ariaLabel",i("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),[].map((function(e){return o.items.add(e)})),e.panelView.children.add(o),o.items.delegate("execute").to(e)}(n),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}])}();l(42);var ec=function(e){function n(e,t){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return c(this,n),(i=f(this,n,[e])).stickyPanel=new Ml(e),i.toolbar=new Ql(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new Cl(e,t),i}return p(n,e),d(n,[{key:"render",value:function(){t(_(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}])}(kl),tc=function(e){function n(e,t){var i;c(this,n),i=f(this,n,[t]),Ct(e)&&(i.sourceElement=e),i.data.processor=new js(i.data.viewDocument),i.model.document.createRoot();var o=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new ec(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:o});return i.ui=new $s(i,a),function(e){if(!H(e.updateSourceElement))throw new Lt.a("attachtoform-missing-elementapi-interface",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,i=t.form,o=function(){return e.updateSourceElement()};H(i.submit)&&(n=i.submit,i.submit=function(){o(),n.apply(i)}),i.addEventListener("submit",o),e.on("destroy",(function(){i.removeEventListener("submit",o),n&&(i.submit=n)}))}}(i),i}return p(n,e),d(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),t(_(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i){var o=new t(e,n);i(o.initPlugins().then((function(){return o.ui.init(Ct(e)?e:null)})).then((function(){if(!Ct(e)&&n.initialData)throw new Lt.a("editor-create-initial-data",null);var t=n.initialData||function(e){return Ct(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return o.data.init(t)})).then((function(){return o.fire("ready")})).then((function(){return o})))}))}}])}(Bs);Vt(tc,{setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}}),Vt(tc,Ns);var nc=function(){return d((function e(t){c(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}),[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",ic,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",ic),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}])}();function ic(e){e.return=!1,e.stop()}Vt(nc,Yn);var oc=function(){return d((function e(t){c(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}),[{key:"types",get:function(){return this._native.types}},{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}}])}(),ac=function(e){function t(e){var n;c(this,t);var i=(n=f(this,t,[e])).document;function o(e,t){t.preventDefault();var n=t.dropRange?[t.dropRange]:Array.from(i.selection.getRanges()),o=new St(i,"clipboardInput");i.fire(o,{dataTransfer:t.dataTransfer,targetRanges:n}),o.stop.called&&t.stopPropagation()}return n.domEventType=["paste","copy","cut","drop","dragover"],n.listenTo(i,"paste",o,{priority:"low"}),n.listenTo(i,"drop",o,{priority:"low"}),n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new oc(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){var n,i=t.target.ownerDocument,o=t.clientX,a=t.clientY;return i.caretRangeFromPoint&&i.caretRangeFromPoint(o,a)?n=i.caretRangeFromPoint(o,a):t.rangeParent&&((n=i.createRange()).setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}])}(Eo),rc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor.editing.view,t=e.document,n=!1;e.addObserver(ac),this.listenTo(t,"keydown",(function(e,t){n=t.shiftKey})),this.listenTo(t,"clipboardInput",(function(e,t){n&&(t.asPlainText=!0)}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PastePlainText"}}])}(nc),sc=["figcaption","li"],lc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,a=t.editing.view,s=a.document;function l(e,i){var o=i.dataTransfer;i.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));s.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this._htmlDataProcessor=new js(s),a.addObserver(ac),this.listenTo(s,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(s,"clipboardInput",(function(t,n){var i,o=n.dataTransfer,r="";o.getData("text/html")?r=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&(((i=(i=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||i.includes("<br>"))&&(i="<p>".concat(i,"</p>")),r=i),r=e._htmlDataProcessor.toView(r);var s=new St(e,"inputTransformation");e.fire(s,{content:r,dataTransfer:o,asPlainText:n.asPlainText}),s.stop.called&&t.stop(),a.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(t,n){if(!n.content.isEmpty){var a=e.editor.model,s=e.editor.data.toModel(n.content,"$clipboardHolder");if(0==s.childCount)return;a.change((function(e){var t=a.document.selection;if(n.asPlainText||function(e,t){if(e.childCount>1)return!1;var n=e.getChild(0);return!t.isObject(n)&&0==r(n.getAttributeKeys()).length}(s,a.schema)){var l=Array.from(t.getAttributes()).filter((function(e){var t=i(e,1)[0];return a.schema.getAttributeProperties(t).isFormatting}));t.isCollapsed||a.deleteContent(t,{doNotAutoparagraph:!0}),l.push.apply(l,r(t.getAttributes()));var c,u=o(e.createRangeIn(s).getItems());try{for(u.s();!(c=u.n()).done;){var d=c.value;(d.is("$text")||d.is("$textProxy"))&&e.setAttributes(l,d)}}catch(h){u.e(h)}finally{u.f()}}a.insertContent(s)})),t.stop()}}),{priority:"low"}),this.listenTo(s,"copy",l,{priority:"low"}),this.listenTo(s,"cut",(function(e,n){t.isReadOnly?n.preventDefault():l(e,n)}),{priority:"low"}),this.listenTo(s,"clipboardOutput",(function(i,a){a.content.isEmpty||(a.dataTransfer.setData("text/html",e._htmlDataProcessor.toData(a.content)),a.dataTransfer.setData("text/plain",function e(t){var n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else if(t.is("element","br"))n="\n";else{var i,a=null,r=o(t.getChildren());try{for(r.s();!(i=r.n()).done;){var s=i.value,l=e(s);a&&(a.is("containerElement")||s.is("containerElement"))&&(sc.includes(a.name)||sc.includes(s.name)?n+="\n":n+="\n\n"),n+=l,a=s}}catch(c){r.e(c)}finally{r.f()}}return n}(a.content))),"cut"==a.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[rc]}}])}(nc),cc=function(){return d((function e(t){var n=this;c(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,i){i?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}),[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",uc,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",uc),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}])}();function uc(e){e.return=!1,e.stop()}function dc(e,t){var n,i,r;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=o(t),a.prev=1,n.s();case 3:if((i=n.n()).done){a.next=11;break}if(r=i.value,a.t0=r&&e.getAttributeProperties(r[0]).copyOnEnter,!a.t0){a.next=9;break}return a.next=9,r;case 9:a.next=3;break;case 11:a.next=16;break;case 13:a.prev=13,a.t1=a.catch(1),n.e(a.t1);case 16:return a.prev=16,n.f(),a.finish(16);case 19:case"end":return a.stop()}}),g,null,[[1,13,16,19]])}Vt(cc,Yn);var hc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(i){!function(e,t,n,i){var o=n.isCollapsed,a=n.getFirstRange(),r=a.start.parent,s=a.end.parent;if(i.isLimit(r)||i.isLimit(s))o||r!=s||e.deleteContent(n);else if(o){var l=dc(t.model.schema,n.getAttributes());fc(t,a.start),t.setSelectionAttribute(l)}else{var c=!(a.start.isAtStart&&a.end.isAtEnd),u=r==s;e.deleteContent(n,{leaveUnmerged:c}),c&&(u?fc(t,n.focus):t.setSelection(s,0))}}(e.editor.model,i,n.selection,t.schema),e.fire("afterExecute",{writer:i})}))}}])}(cc);function fc(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var mc=function(e){function t(e){var n;c(this,t);var i=(n=f(this,t,[e])).document;return i.on("keydown",(function(e,t){var o;n.isEnabled&&t.keyCode==yi.enter&&(i.once("enter",(function(e){return o=e}),{priority:"highest"}),i.fire("enter",new Ao(i,t.domEvent,{isSoft:t.shiftKey})),o&&o.stop.called&&e.stop())})),n}return p(t,e),d(t,[{key:"observe",value:function(){}}])}(bo),pc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(mc),e.commands.add("enter",new hc(e)),this.listenTo(n,"enter",(function(n,i){i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}])}(nc),gc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(i){!function(e,t,n){var i=n.isCollapsed,o=n.getFirstRange(),a=o.end.parent,r=o.start.parent==a;if(i){var s=dc(e.schema,n.getAttributes());vc(e,t,o.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(s)}else{var l=!(o.start.isAtStart&&o.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:l}),r?vc(e,t,n.focus):l&&t.setSelection(a,0)}}(t,i,n.selection),e.fire("afterExecute",{writer:i})}))}},{key:"refresh",value:function(){var e=this.editor.model;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var i=t.getFirstRange(),o=i.start.parent,a=i.end.parent;return!yc(o,e)&&!yc(a,e)||o===a}(e.schema,e.document.selection)}}])}(cc);function vc(e,t,n){var i=t.createElement("softBreak");e.insertContent(i,n),t.setSelection(i,"after")}function yc(e,t){return!e.is("rootElement")&&(t.isLimit(e)||yc(e.parent,t))}var bc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.conversion,n=e.editing.view,i=n.document;e.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),t.for("upcast").elementToElement({model:"softBreak",view:"br"}),t.for("downcast").elementToElement({model:"softBreak",view:function(e,t){return t.writer.createEmptyElement("br")}}),n.addObserver(mc),e.commands.add("shiftEnter",new gc(e)),this.listenTo(i,"enter",(function(t,i){i.preventDefault(),i.isSoft&&(e.execute("shiftEnter"),n.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}])}(nc),_c=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!kc(e.schema,n))do{if(!(n=n.parent))return}while(!kc(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}])}(cc);function kc(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}for(var Cc=_i("Ctrl+A"),wc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new _c(e)),this.listenTo(t,"keydown",(function(t,n){bi(n)===Cc&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}])}(nc),xc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var i=t.commands.get("selectAll"),o=new zl(n);return o.set({label:(0,n.t)("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}])}(nc),Mc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[wc,xc]}},{key:"pluginName",get:function(){return"SelectAll"}}])}(nc),Sc=function(){return d((function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;c(this,e),this.model=t,this.size=0,this.limit=i,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}),[{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}},{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}}])}(),Pc=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[e]))._buffer=new Sc(e.model,t),i._batches=new WeakSet,i}return p(n,e),d(n,[{key:"buffer",get:function(){return this._buffer}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,o=t.text||"",a=o.length,r=t.range?n.createSelection(t.range):i.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(r),o&&n.insertContent(t.createText(o,i.selection.getAttributes()),r),s?t.setSelection(s):r.is("documentSelection")||t.setSelection(r),e._buffer.unlock(),e._buffer.input(a)}))}}])}(cc),Tc=[bi("arrowUp"),bi("arrowRight"),bi("arrowDown"),bi("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],Oc=112;Oc<=135;Oc++)Tc.push(Oc);function Lc(e){return!!e.ctrlKey||Tc.includes(e.keyCode)}function Dc(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,i=[],o=0;return e.forEach((function(e){"equal"==e?(a(),o++):"insert"==e?(r("insert")?n.values.push(t[o]):(a(),n={type:"insert",index:o,values:[t[o]]}),o++):r("delete")?n.howMany++:(a(),n={type:"delete",index:o,howMany:1})})),a(),i;function a(){n&&(i.push(n),n=null)}function r(e){return n&&n.type==e}}(Zi(e.oldChildren,e.newChildren,Ic),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function Ic(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var Fc=function(){return d((function e(t){c(this,e),this.editor=t,this.editing=this.editor.editing}),[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("children"===i.type&&!Dc(i))return!0}}catch(a){n.e(a)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;this._handleTextMutation(a,t),this._handleTextNodeInsertion(a)}}catch(r){i.e(r)}finally{i.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var i=this.editor.editing.view.domConverter.mapViewToDom(n),o=new uo(this.editor.editing.view.document),a=this.editor.data.toModel(o.domToView(i)).getChild(0),r=this.editor.editing.mapper.toModelElement(n);if(r){var s=Array.from(a.getChildren()),l=Array.from(r.getChildren()),c=s[s.length-1],u=l[l.length-1],d=c&&c.is("element","softBreak"),h=u&&!u.is("element","softBreak");d&&h&&s.pop();var f=this.editor.model.schema;if(Ac(s,f)&&Ac(l,f)){var m=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),p=l.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(p!==m){var g=Ec(Zi(p,m)),v=g.firstChangeAt,y=g.insertions,b=g.deletions,_=null;t&&(_=this.editing.mapper.toModelRange(t.getFirstRange()));var k=m.substr(v,y),C=this.editor.model.createRange(this.editor.model.createPositionAt(r,v),this.editor.model.createPositionAt(r,v+b));this.editor.execute("input",{text:k,range:C,resultRange:_})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),i=e.oldText.replace(/\u00A0/g," ");if(i!==n){var o=Ec(Zi(i,n)),a=o.firstChangeAt,r=o.insertions,s=o.deletions,l=null;t&&(l=this.editing.mapper.toModelRange(t.getFirstRange()));var c=this.editing.view.createPositionAt(e.node,a),u=this.editing.mapper.toModelPosition(c),d=this.editor.model.createRange(u,u.getShiftedBy(s)),h=n.substr(a,r);this.editor.execute("input",{text:h,range:d,resultRange:l})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=Dc(e),n=this.editing.view.createPositionAt(e.node,t.index),i=this.editing.mapper.toModelPosition(n);this.editor.execute("input",{text:t.values[0].data.replace(/\u00A0/g," "),range:this.editor.model.createRange(i)})}}}])}();function Ac(e,t){return e.every((function(e){return t.isInline(e)}))}function Ec(e){for(var t=null,n=null,i=0;i<e.length;i++)"equal"!=e[i]&&(t=null===t?i:t,n=i);for(var o=0,a=0,r=t;r<=n;r++)"insert"!=e[r]&&o++,"delete"!=e[r]&&a++;return{insertions:a,deletions:o,firstChangeAt:t}}var Bc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=new Pc(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){var t=null,n=e.model,i=e.editing.view,o=e.commands.get("input");function a(e){var a=n.document,s=i.document.isComposing,l=t&&t.isEqual(a.selection);t=null,o.isEnabled&&(Lc(e)||a.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&l||r())}function r(){var e=o.buffer;e.lock();var t=e.batch;o._batches.add(t),n.enqueueChange(t,(function(){n.deleteContent(n.document.selection)})),e.unlock()}i.document.on(pi?"beforeinput":"keydown",(function(e,t){return a(t)}),{priority:"lowest"}),i.document.on("compositionstart",(function(){var e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||r()}),{priority:"lowest"}),i.document.on("compositionend",(function(){t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(function(t,n,i){new Fc(e).handle(n,i)}))}(e)}},{key:"isInput",value:function(e){return this.editor.commands.get("input")._batches.has(e)}}],[{key:"pluginName",get:function(){return"Input"}}])}(nc),Nc=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).direction=n,i._buffer=new Sc(e.model,e.config.get("typing.undoStep")),i}return p(t,e),d(t,[{key:"buffer",get:function(){return this._buffer}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document;n.enqueueChange(this._buffer.batch,(function(o){e._buffer.lock();var a=o.createSelection(t.selection||i.selection),r=a.isCollapsed;if(a.isCollapsed&&n.modifySelection(a,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))e._replaceEntireContentWithParagraph(o);else if(!a.isCollapsed){var s=0;a.getFirstRange().getMinimalFlatRanges().forEach((function(e){s+=ni(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(a,{doNotResetEntireContent:r,direction:e.direction}),e._buffer.input(s),o.setSelection(a),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(i))return!1;if(!t.schema.checkChild(i,"paragraph"))return!1;var o=i.getChild(0);return!o||"paragraph"!==o.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.schema.getLimitElement(t.document.selection),i=e.createElement("paragraph");e.remove(e.createRangeIn(n)),e.insert(i,n),e.setSelection(i,0)}}])}(cc),Rc=function(e){function t(e){var n;c(this,t),n=f(this,t,[e]);var i=e.document,o=0;function a(e,t,n){var o;i.once("delete",(function(e){return o=e}),{priority:Number.POSITIVE_INFINITY}),i.fire("delete",new Ao(i,t,n)),o&&o.stop.called&&e.stop()}return i.on("keyup",(function(e,t){t.keyCode!=yi.delete&&t.keyCode!=yi.backspace||(o=0)})),i.on("keydown",(function(e,t){var n={};if(t.keyCode==yi.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=yi.backspace)return;n.direction="backward",n.unit="codePoint"}n.unit=(hi?t.altKey:t.ctrlKey)?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),pi&&i.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var i={unit:"codepoint",direction:"backward",sequence:1},o=n.domTarget.ownerDocument.defaultView.getSelection();o.anchorNode==o.focusNode&&o.anchorOffset+1!=o.focusOffset&&(i.selectionToRemove=e.domConverter.domSelectionToView(o)),a(t,n.domEvent,i)}})),n}return p(t,e),d(t,[{key:"observe",value:function(){}}])}(bo),jc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(Rc),e.commands.add("forwardDelete",new Nc(e,"forward")),e.commands.add("delete",new Nc(e,"backward")),this.listenTo(n,"delete",(function(n,i){var a={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){var r,s=e.model.createSelection(),l=[],c=o(i.selectionToRemove.getRanges());try{for(c.s();!(r=c.n()).done;){var u=r.value;l.push(e.editing.mapper.toModelRange(u))}}catch(d){c.e(d)}finally{c.f()}s.setTo(l),a.selection=s}e.execute("forward"==i.direction?"forwardDelete":"delete",a),i.preventDefault(),t.scrollToTheSelection()})),pi){var i=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();i={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(i){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(i.anchorNode,i.anchorOffset),n.extend(i.focusNode,i.focusOffset),i=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}])}(nc),zc=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[Bc,jc]}},{key:"pluginName",get:function(){return"Typing"}}])}(nc),Vc=new Map;function Hc(e,t,n){var i=Vc.get(e);i||(i=new Map,Vc.set(e,i)),i.set(t,n)}function Yc(e){return[e]}function qc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(e,t){var n=Vc.get(e);return n&&n.has(t)?n.get(t):Yc}(e.constructor,t.constructor);try{return i(e=e.clone(),t,n)}catch(e){throw e}}function Uc(e,t,n){e=e.slice(),t=t.slice();var i=new Wc(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(e),i.setOriginalOperations(t);var a=i.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:a};var s,l=new WeakMap,c=o(e);try{for(c.s();!(s=c.n()).done;){var u=s.value;l.set(u,0)}}catch(M){c.e(M)}finally{c.f()}for(var d={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},h=0;h<e.length;){var f,m,p=e[h],g=l.get(p);if(g!=t.length){var v=t[g],y=qc(p,v,i.getContext(p,v,!0)),b=qc(v,p,i.getContext(v,p,!1));i.updateRelation(p,v),i.setOriginalOperations(y,p),i.setOriginalOperations(b,v);var _,k=o(y);try{for(k.s();!(_=k.n()).done;){var C=_.value;l.set(C,g+b.length)}}catch(M){k.e(M)}finally{k.f()}(f=e).splice.apply(f,[h,1].concat(r(y))),(m=t).splice.apply(m,[g,1].concat(r(b)))}else h++}if(n.padWithNoOps){var w=e.length-d.originalOperationsACount,x=t.length-d.originalOperationsBCount;Gc(e,x-w),Gc(t,w-x)}return Jc(e,d.nextBaseVersionB),Jc(t,d.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:a}}var Wc=function(){return d((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!i,this._relations=new Map}),[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n?this.originalOperations.get(n):null,a=o(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;this.originalOperations.set(r,i||r)}}catch(s){a.e(s)}finally{a.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case Ur:switch(t.constructor){case Qr:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case Ur:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Kr:switch(t.constructor){case Qr:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case Ur:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Qr:switch(t.constructor){case Qr:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Kr:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case Jr:var n=e.newRange;if(!n)return;switch(t.constructor){case Ur:var i=Sa._createFromPositionAndShift(t.sourcePosition,t.howMany),o=i.containsPosition(n.start)||i.start.isEqual(n.start),a=i.containsPosition(n.end)||i.end.isEqual(n.end);!o&&!a||i.containsRange(n)||this._setRelation(e,t,{side:o?"left":"right",path:o?n.start.path.slice():n.end.path.slice()});break;case Qr:var r=n.start.isEqual(t.targetPosition),s=n.start.isEqual(t.deletionPosition),l=n.end.isEqual(t.deletionPosition),c=n.end.isEqual(t.sourcePosition);(r||s||l||c)&&this._setRelation(e,t,{wasInLeftElement:r,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:l,wasInRightElement:c})}}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),i=this._history.getUndoneOperation(n);if(!i)return null;var o=this.originalOperations.get(e),a=this._relations.get(o);return a&&a.get(i)||null}},{key:"_setRelation",value:function(e,t,n){var i=this.originalOperations.get(e),o=this.originalOperations.get(t),a=this._relations.get(i);a||(a=new Map,this._relations.set(i,a)),a.set(o,n)}}])}();function Jc(e,t){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){n.value.baseVersion=t++}}catch(a){i.e(a)}finally{i.f()}}function Gc(e,t){for(var n=0;n<t;n++)e.push(new gs(0))}function $c(e,t,n){var i=e.nodes.getNode(0).getAttribute(t);if(i==n)return null;var o=new Sa(e.position,e.position.getShiftedBy(e.howMany));return new Yr(o,t,i,n,0)}function Qc(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Kc(e,t){for(var n=[],i=0;i<e.length;i++){var o=e[i],a=new Ur(o.start,o.end.offset-o.start.offset,t,0);n.push(a);for(var r=i+1;r<e.length;r++)e[r]=e[r]._getTransformedByMove(a.sourcePosition,a.targetPosition,a.howMany)[0];t=t._getTransformedByMove(a.sourcePosition,a.targetPosition,a.howMany)}return n}Hc(Yr,Yr,(function(e,t,n){if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){var i=e.range.getDifference(t.range).map((function(t){return new Yr(t,e.key,e.oldValue,e.newValue,0)})),o=e.range.getIntersection(t.range);return o&&n.aIsStrong&&i.push(new Yr(o,t.key,t.newValue,e.newValue,0)),0==i.length?[new gs(0)]:i}return[e]})),Hc(Yr,Wr,(function(e,t){if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){var n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((function(t){return new Yr(t,e.key,e.oldValue,e.newValue,e.baseVersion)}));if(t.shouldReceiveAttributes){var i=$c(t,e.key,e.oldValue);i&&n.unshift(i)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),Hc(Yr,Qr,(function(e,t){var n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(Sa._createFromPositionAndShift(t.graveyardPosition,1));var i=e.range._getTransformedByMergeOperation(t);return i.isCollapsed||n.push(i),n.map((function(t){return new Yr(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),Hc(Yr,Ur,(function(e,t){return function(e,t){var n=Sa._createFromPositionAndShift(t.sourcePosition,t.howMany),i=null,a=[];n.containsRange(e,!0)?i=e:e.start.hasSameParentAs(n.start)?(a=e.getDifference(n),i=e.getIntersection(n)):a=[e];var s,l=[],c=o(a);try{for(c.s();!(s=c.n()).done;){var u=s.value;u=u._getTransformedByDeletion(t.sourcePosition,t.howMany);var d=t.getMovedRangeStart(),h=u.start.hasSameParentAs(d);u=u._getTransformedByInsertion(d,t.howMany,h),l.push.apply(l,r(u))}}catch(f){c.e(f)}finally{c.f()}return i&&l.push(i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),l}(e.range,t).map((function(t){return new Yr(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),Hc(Yr,Kr,(function(e,t){if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){var n=e.clone();return n.range=new Sa(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),Hc(Wr,Yr,(function(e,t){var n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){var i=$c(e,t.key,t.newValue);i&&n.push(i)}return n})),Hc(Wr,Wr,(function(e,t,n){return e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]})),Hc(Wr,Ur,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Hc(Wr,Kr,(function(e,t){return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Hc(Wr,Qr,(function(e,t){return e.position=e.position._getTransformedByMergeOperation(t),[e]})),Hc(Jr,Wr,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]})),Hc(Jr,Jr,(function(e,t,n){if(e.name==t.name){if(!n.aIsStrong)return[new gs(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),Hc(Jr,Qr,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]})),Hc(Jr,Ur,(function(e,t,n){if(e.oldRange&&(e.oldRange=Sa._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){var i=Sa._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=i.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=i.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=Sa._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),Hc(Jr,Kr,(function(e,t,n){if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){var i=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Ca._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Ca._createAt(t.moveTargetPosition)),e.newRange.end=e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?Ca._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?Ca._createAt(t.insertionPosition):i.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),Hc(Qr,Wr,(function(e,t){return e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]})),Hc(Qr,Qr,(function(e,t,n){if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){var i=t.graveyardPosition.path.slice();return i.push(0),e.sourcePosition=new Ca(t.graveyardPosition.root,i),e.howMany=0,[e]}return[new gs(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var o="$graveyard"==e.targetPosition.root.rootName,a="$graveyard"==t.targetPosition.root.rootName;if(a&&!o||!(o&&!a)&&n.aIsStrong){var r=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new Ur(r,e.howMany,s,0)]}return[new gs(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Hc(Qr,Ur,(function(e,t,n){var i=Sa._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.sourcePosition)?[new gs(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),Hc(Qr,Kr,(function(e,t,n){if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){var i=0!=t.howMany,o=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(i||o||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),Hc(Ur,Wr,(function(e,t){var n=Sa._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),Hc(Ur,Ur,(function(e,t,n){var i,a=Sa._createFromPositionAndShift(e.sourcePosition,e.howMany),s=Sa._createFromPositionAndShift(t.sourcePosition,t.howMany),l=n.aIsStrong,c=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?c=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(c=!1),i=e.targetPosition.isEqual(t.targetPosition)&&c?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Qc(e,t)&&Qc(t,e))return[t.getReversed()];if(a.containsPosition(t.targetPosition)&&a.containsRange(s,!0))return a.start=a.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),a.end=a.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Kc([a],i);if(s.containsPosition(e.targetPosition)&&s.containsRange(a,!0))return a.start=a.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),a.end=a.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Kc([a],i);var u=$t(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==u||"extension"==u)return a.start=a.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),a.end=a.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Kc([a],i);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(l=!1):l=!0;var d,h=[],f=o(a.getDifference(s));try{for(f.s();!(d=f.n()).done;){var m=d.value;m.start=m.start._getTransformedByDeletion(t.sourcePosition,t.howMany),m.end=m.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var p="same"==$t(m.start.getParentPath(),t.getMovedRangeStart().getParentPath()),g=m._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,p);h.push.apply(h,r(g))}}catch(y){f.e(y)}finally{f.f()}var v=a.getIntersection(s);return null!==v&&l&&(v.start=v.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),v.end=v.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===h.length?h.push(v):1==h.length?s.start.isBefore(a.start)||s.start.isEqual(a.start)?h.unshift(v):h.push(v):h.splice(1,0,v)),0===h.length?[new gs(e.baseVersion)]:Kc(h,i)})),Hc(Ur,Kr,(function(e,t,n){var i=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=e.targetPosition._getTransformedBySplitOperation(t));var o=Sa._createFromPositionAndShift(e.sourcePosition,e.howMany);if(o.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=i,[e];if(o.start.hasSameParentAs(t.splitPosition)&&o.containsPosition(t.splitPosition)){var a=new Sa(t.splitPosition,o.end);return a=a._getTransformedBySplitOperation(t),Kc([new Sa(o.start,t.splitPosition),a],i)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(i=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(i=e.targetPosition);var r=[o._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&r.push(Sa._createFromPositionAndShift(t.insertionPosition,1))}return Kc(r,i)})),Hc(Ur,Qr,(function(e,t,n){var i=Sa._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new gs(0)]}else if(!n.aWasUndone){var o=[],a=t.graveyardPosition.clone(),r=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(o.push(new Ur(e.sourcePosition,e.howMany-1,e.targetPosition,0)),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),r=r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),l=new Ur(a,1,s,0),c=l.getMovedRangeStart().path.slice();c.push(0);var u=new Ca(l.targetPosition.root,c);r=r._getTransformedByMove(a,s,1);var d=new Ur(r,t.howMany,u,0);return o.push(l),o.push(d),o}var h=Sa._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=h.start,e.howMany=h.end.offset-h.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),Hc(Gr,Wr,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),Hc(Gr,Qr,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),Hc(Gr,Ur,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Hc(Gr,Gr,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new gs(0)];e.oldName=t.newName}return[e]})),Hc(Gr,Kr,(function(e,t){if("same"==$t(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new Gr(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Hc($r,$r,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new gs(0)];e.oldValue=t.newValue}return[e]})),Hc(Kr,Wr,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=Kr.getInsertionPosition(e.splitPosition),[e]})),Hc(Kr,Qr,(function(e,t,n){if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){var i=t.graveyardPosition.path.slice();i.push(0);var o=new Ca(t.graveyardPosition.root,i),a=Kr.getInsertionPosition(new Ca(t.graveyardPosition.root,i)),r=new Kr(o,0,null,0);return r.insertionPosition=a,e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Kr.getInsertionPosition(e.splitPosition),e.graveyardPosition=r.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[r,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Kr.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Hc(Kr,Ur,(function(e,t,n){var i=Sa._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){var o=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&o){var a=e.splitPosition._getTransformedByMoveOperation(t),r=e.graveyardPosition._getTransformedByMoveOperation(t),s=r.path.slice();s.push(0);var l=new Ca(r.root,s);return[new Ur(a,e.howMany,l,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}return e.splitPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.splitPosition)?(e.howMany-=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Kr.getInsertionPosition(e.splitPosition),[e]):!e.splitPosition.isEqual(t.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.insertionPosition=e.graveyardPosition?e.insertionPosition._getTransformedByMoveOperation(t):Kr.getInsertionPosition(e.splitPosition),[e]):(e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Kr.getInsertionPosition(e.splitPosition),[e])})),Hc(Kr,Kr,(function(e,t,n){if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new gs(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new gs(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){var i="$graveyard"==e.splitPosition.root.rootName,o="$graveyard"==t.splitPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var a=[];return t.howMany&&a.push(new Ur(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&a.push(new Ur(e.splitPosition,e.howMany,e.moveTargetPosition,0)),a}return[new gs(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){var r=t.insertionPosition.path.slice();r.push(0);var s=new Ca(t.insertionPosition.root,r);return[e,new Ur(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Kr.getInsertionPosition(e.splitPosition),[e]}));var Zc=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e]))._stack=[],n._createdBatches=new WeakSet,n.refresh(),n.listenTo(e.data,"set",(function(){return n.clearStack()})),n}return p(t,e),d(t,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var i,a=this.editor.model,r=a.document,s=[],l=e.map((function(e){return e.getTransformedByOperations(n)})),c=l.flat(),u=o(l);try{for(u.s();!(i=u.n()).done;){var d=i.value.filter((function(e){return e.root!=r.graveyard})).filter((function(e){return!eu(e,c)}));d.length&&(Xc(d),s.push(d[0]))}}catch(h){u.e(h)}finally{u.f()}s.length&&a.change((function(e){e.setSelection(s,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,i=n.document;this._createdBatches.add(t);var a=e.operations.slice().filter((function(e){return e.isDocumentOperation}));a.reverse();var r,s=o(a);try{for(s.s();!(r=s.n()).done;){var l,c=r.value,u=Array.from(i.history.getOperations(c.baseVersion+1)),d=o(Uc([c.getReversed()],u,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(d.s();!(l=d.n()).done;){var h=l.value;t.addOperation(h),n.applyOperation(h),i.history.setOperationAsUndone(c,h)}}catch(f){d.e(f)}finally{d.f()}}}catch(f){s.e(f)}finally{s.f()}}}])}(cc);function Xc(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t<e.length;t++){var n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function eu(e,t){return t.some((function(t){return t!==e&&t.containsRange(e,!0)}))}var tu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,i=this._stack.splice(n,1)[0],o=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(o,(function(){e._undo(i.batch,o);var t=e.editor.model.document.history.getOperations(i.batch.baseVersion);e._restoreSelection(i.selection.ranges,i.selection.isBackward,t),e.fire("revert",i.batch,o)})),this.refresh()}}])}(Zc),nu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var i=e.editor.model.document.history.getOperations(t.batch.operations[t.batch.operations.length-1].baseVersion+1);e._restoreSelection(t.selection.ranges,t.selection.isBackward,i),e._undo(t.batch,n)})),this.refresh()}}])}(Zc),iu=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e]))._batchRegistry=new WeakSet,n}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new tu(t),this._redoCommand=new nu(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var i=n[0];if(i.isDocumentOperation){var o=i.batch,a=e._redoCommand._createdBatches.has(o),r=e._undoCommand._createdBatches.has(o);e._batchRegistry.has(o)||"transparent"==o.type&&!a&&!r||(a?e._undoCommand.addBatch(o):r||(e._undoCommand.addBatch(o),e._redoCommand.clearStack()),e._batchRegistry.add(o))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,i){e._redoCommand.addBatch(i)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}],[{key:"pluginName",get:function(){return"UndoEditing"}}])}(nc),ou='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',au='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',ru=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?ou:au,o="ltr"==t.uiLanguageDirection?au:ou;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",o)}},{key:"_addButton",value:function(e,t,n,i){var o=this,a=this.editor;a.ui.componentFactory.add(e,(function(r){var s=a.commands.get(e),l=new zl(r);return l.set({label:t,icon:i,keystroke:n,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),o.listenTo(l,"execute",(function(){a.execute(e),a.editing.view.focus()})),l}))}}])}(nc),su=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[iu,ru]}},{key:"pluginName",get:function(){return"Undo"}}])}(nc),lu=function(){return d((function e(t){c(this,e),this.context=t}),[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}])}();Vt(lu,Yn);var cu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new Ht({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new Lt.a("pendingactions-add-invalid-message",this);var t=Object.create(Yn);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:"first",get:function(){return this._actions.get(0)}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}}],[{key:"pluginName",get:function(){return"PendingActions"}}])}(lu),uu=function(){return d((function e(){var t=this;c(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}),[{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}},{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(i,o){n.onload=function(){var e=n.result;t._data=e,i(e)},n.onerror=function(){o("error")},n.onabort=function(){o("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}}])}();Vt(uu,Yn);var du=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this;this.loaders=new Ht,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return Object(Lt.c)("filerepository-no-upload-adapter"),null;var n=new hu(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,i=o(t.loaders);try{for(i.s();!(e=i.n()).done;){n+=e.value.uploaded}}catch(a){i.e(a)}finally{i.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,i=o(t.loaders);try{for(i.s();!(e=i.n()).done;){var a=e.value;a.uploadTotal&&(n+=a.uploadTotal)}}catch(r){i.e(r)}finally{i.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof hu?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,i){e===n&&t._loadersMap.delete(i)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(cu);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[cu]}}])}(nc);Vt(du,Yn);var hu=function(){return d((function e(t,n){c(this,e),this.id=Tt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new uu,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}),[{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}},{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new Lt.a("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new Lt.a("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,i){t.rejecter=i,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,i(e)}))})),t}}])}();Vt(hu,Yn);var fu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(du).createUploadAdapter=function(n){return new mu(n,t,e.editor.t)})}}],[{key:"requires",get:function(){return[du]}},{key:"pluginName",get:function(){return"CKFinderUploadAdapter"}}])}(nc),mu=function(){return d((function e(t,n,i){c(this,e),this.loader=t,this.url=n,this.t=i}),[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,i){e._initRequest(),e._initListeners(n,i,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var i=this.xhr,o=this.loader,a=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");i.addEventListener("error",(function(){return t(a)})),i.addEventListener("abort",(function(){return t()})),i.addEventListener("load",(function(){var n=i.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:a);e({default:n.url})})),i.upload&&i.upload.addEventListener("progress",(function(e){e.lengthComputable&&(o.uploadTotal=e.total,o.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){var t=new FormData;t.append("upload",e),t.append("ckCsrfToken",function(){var e,t=function(e){e=e.toLowerCase();var t,n=o(document.cookie.split(";"));try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=");if(decodeURIComponent(i[0].trim().toLowerCase())===e)return decodeURIComponent(i[1])}}catch(a){n.e(a)}finally{n.f()}return null}("ckCsrfToken");return t&&40==t.length||(e=t=function(e){var t="",n=new Uint8Array(40);window.crypto.getRandomValues(n);for(var i=0;i<n.length;i++){var o="abcdefghijklmnopqrstuvwxyz0123456789".charAt(n[i]%"abcdefghijklmnopqrstuvwxyz0123456789".length);t+=Math.random()>.5?o.toUpperCase():o}return t}(),document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(e)+";path=/"),t}()),this.xhr.send(t)}}])}();function pu(e){var t=e.next();return t.done?null:t.value}function gu(e,t,n,i){var o,a=null;"function"==typeof i?o=i:(a=e.commands.get(i),o=function(){e.execute(i)}),e.model.document.on("change:data",(function(i,r){if((!a||a.isEnabled)&&t.isEnabled){var s=pu(e.model.document.selection.getRanges());if(s.isCollapsed&&"transparent"!=r.type){var l=Array.from(e.model.document.differ.getChanges()),c=l[0];if(1==l.length&&"insert"===c.type&&"$text"==c.name&&1==c.length){var u=c.position.parent;if(!(u.is("element","codeBlock")||a&&!0===a.value)){var d=u.getChild(0),h=e.model.createRangeOn(d);if(h.containsRange(s)||s.end.isEqual(h.end)){var f=n.exec(d.data.substr(0,s.end.offset));f&&e.model.enqueueChange((function(e){var t=e.createPositionAt(u,0),n=e.createPositionAt(u,f[0].length),i=new ja(t,n);!1!==o({match:f})&&e.remove(i),i.detach()}))}}}}}}))}function vu(e,t,n,i){var a,r;n instanceof RegExp?a=n:r=n,r=r||function(e){for(var t,n=[],i=[];null!==(t=a.exec(e))&&!(t&&t.length<4);){var o=t,r=o.index,s=o[1],l=o[2],c=o[3],u=[(r+=t[0].length-(s+l+c).length)+s.length+l.length,r+s.length+l.length+c.length];n.push([r,r+s.length]),n.push(u),i.push([r+s.length,r+s.length+l.length])}return{remove:n,format:i}},e.model.document.on("change:data",(function(n,a){if("transparent"!=a.type&&t.isEnabled){var s=e.model,l=s.document.selection;if(l.isCollapsed){var c=Array.from(s.document.differ.getChanges()),u=c[0];if(1==c.length&&"insert"===u.type&&"$text"==u.name&&1==u.length){var d=l.focus,h=d.parent,f=function(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,i){return!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(n=t.createPositionAfter(i),""):e+i.data}),""),range:t.createRange(n,e.end)}}(s.createRange(s.createPositionAt(h,0),d),s),m=f.text,p=f.range,g=r(m),v=yu(p.start,g.format,s),y=yu(p.start,g.remove,s);v.length&&y.length&&s.enqueueChange((function(e){if(!1!==i(e,v)){var t,n=o(y.reverse());try{for(n.s();!(t=n.n()).done;){var a=t.value;e.remove(a)}}catch(r){n.e(r)}finally{n.f()}}}))}}}}))}function yu(e,t,n){return t.filter((function(e){return void 0!==e[0]&&void 0!==e[1]})).map((function(t){return n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1]))}))}function bu(e,t){return function(n,i){if(!e.commands.get(t).isEnabled)return!1;var a,r=o(e.model.schema.getValidRanges(i,t));try{for(r.s();!(a=r.n()).done;){var s=a.value;n.setAttribute(t,!0,s)}}catch(l){r.e(l)}finally{r.f()}n.removeSelectionAttribute(t)}}var _u=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).attributeKey=n,i}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,a=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(i.isCollapsed)a?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var r,s=o(n.schema.getValidRanges(i.getRanges(),e.attributeKey));try{for(s.s();!(r=s.n()).done;){var l=r.value;a?t.setAttribute(e.attributeKey,a,l):t.removeAttribute(e.attributeKey,l)}}catch(c){s.e(c)}finally{s.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var i,a=o(n.getRanges());try{for(a.s();!(i=a.n()).done;){var r,s=o(i.value.getItems());try{for(s.s();!(r=s.n()).done;){var l=r.value;if(t.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey)}}catch(c){s.e(c)}finally{s.f()}}}catch(c){a.e(c)}finally{a.f()}return!1}}])}(cc),ku=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"bold"}),e.model.schema.setAttributeProperties("bold",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"bold",view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add("bold",new _u(e,"bold")),e.keystrokes.set("CTRL+B","bold")}}],[{key:"pluginName",get:function(){return"BoldEditing"}}])}(nc),Cu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("bold",(function(i){var o=t.commands.get("bold"),a=new zl(i);return a.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),e.listenTo(a,"execute",(function(){t.execute("bold"),t.editing.view.focus()})),a}))}}])}(nc),wu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"italic"}),e.model.schema.setAttributeProperties("italic",{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:"italic",view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add("italic",new _u(e,"italic")),e.keystrokes.set("CTRL+I","italic")}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}])}(nc),xu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("italic",(function(i){var o=t.commands.get("italic"),a=new zl(i);return a.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),e.listenTo(a,"execute",(function(){t.execute("italic"),t.editing.view.focus()})),a}))}}])}(nc),Mu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.schema,o=Array.from(n.document.selection.getSelectedBlocks()),a=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(a){var n=o.filter((function(e){return Su(e)||Tu(i,e)}));e._applyQuote(t,n)}else e._removeQuote(t,o.filter(Su))}))}},{key:"_getValue",value:function(){var e=pu(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Su(e))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.schema,t=pu(this.editor.model.document.selection.getSelectedBlocks());return!!t&&Tu(e,t)}},{key:"_removeQuote",value:function(e,t){Pu(e,t).reverse().forEach((function(t){if(t.start.isAtStart&&t.end.isAtEnd)e.unwrap(t.start.parent);else if(t.start.isAtStart){var n=e.createPositionBefore(t.start.parent);e.move(t,n)}else{t.end.isAtEnd||e.split(t.end);var i=e.createPositionAfter(t.end.parent);e.move(t,i)}}))}},{key:"_applyQuote",value:function(e,t){var n=[];Pu(e,t).reverse().forEach((function(t){var i=Su(t.start);i||(i=e.createElement("blockQuote"),e.wrap(t,i)),n.push(i)})),n.reverse().reduce((function(t,n){return t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n}))}}])}(cc);function Su(e){return"blockQuote"==e.parent.name?e.parent:null}function Pu(e,t){for(var n,i=0,o=[];i<t.length;){var a=t[i],r=t[i+1];n||(n=e.createPositionBefore(a)),r&&a.nextSibling==r||(o.push(e.createRange(n,e.createPositionAfter(a))),n=null),i++}return o}function Tu(e,t){var n=e.checkChild(t.parent,"blockQuote"),i=e.checkChild(["$root","blockQuote"],t);return n&&i}var Ou=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.model.schema;e.commands.add("blockQuote",new Mu(e)),t.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),t.addChildCheck((function(e,t){if(e.endsWith("blockQuote")&&"blockQuote"==t.name)return!1})),e.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),e.model.document.registerPostFixer((function(n){var i,a=o(e.model.document.differ.getChanges());try{for(a.s();!(i=a.n()).done;){var r=i.value;if("insert"==r.type){var s=r.position.nodeAfter;if(!s)continue;if(s.is("element","blockQuote")&&s.isEmpty)return n.remove(s),!0;if(s.is("element","blockQuote")&&!t.checkChild(r.position,s))return n.unwrap(s),!0;if(s.is("element")){var l,c=o(n.createRangeIn(s).getItems());try{for(c.s();!(l=c.n()).done;){var u=l.value;if(u.is("element","blockQuote")&&!t.checkChild(n.createPositionBefore(u),u))return n.unwrap(u),!0}}catch(h){c.e(h)}finally{c.f()}}}else if("remove"==r.type){var d=r.position.parent;if(d.is("element","blockQuote")&&d.isEmpty)return n.remove(d),!0}}}catch(h){a.e(h)}finally{a.f()}return!1}))}},{key:"afterInit",value:function(){var e=this,t=this.editor.commands.get("blockQuote");this.listenTo(this.editor.editing.view.document,"enter",(function(n,i){var o=e.editor.model.document,a=o.selection.getLastPosition().parent;o.selection.isCollapsed&&a.isEmpty&&t.value&&(e.editor.execute("blockQuote"),e.editor.editing.view.scrollToTheSelection(),i.preventDefault(),n.stop())}))}}],[{key:"pluginName",get:function(){return"BlockQuoteEditing"}}])}(nc);l(44);var Lu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("blockQuote",(function(i){var o=t.commands.get("blockQuote"),a=new zl(i);return a.set({label:n("Block quote"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),e.listenTo(a,"execute",(function(){t.execute("blockQuote"),t.editing.view.focus()})),a}))}}])}(nc),Du=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.t;e.ui.componentFactory.add("ckfinder",(function(n){var i=e.commands.get("ckfinder"),o=new zl(n);return o.set({label:t("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i),o.on("execute",(function(){e.execute("ckfinder"),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}])}(nc),Iu=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){var i=n.target;t.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}])}(bo),Fu=function(){return d((function e(){c(this,e),this._stack=[]}),[{key:"add",value:function(e,t){var n=this._stack,i=n[0];this._insertDescriptor(e);var o=n[0];i===o||Au(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,i=n[0];this._removeDescriptor(e);var o=n[0];i===o||Au(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!Au(e,t[n])){n>-1&&t.splice(n,1);for(var i=0;t[i]&&Eu(t[i],e);)i++;t.splice(i,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}])}();function Au(e,t){return e&&t&&e.priority==t.priority&&Bu(e.classes)==Bu(t.classes)}function Eu(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&Bu(e.classes)>Bu(t.classes)}function Bu(e){return Array.isArray(e)?e.sort().join(","):e}Vt(Fu,Ft),l(46);var Nu=wl("px"),Ru=ro.document.body,ju=function(e){function t(e){var n;c(this,t);var i=(n=f(this,t,[e])).bindTemplate;return n.set("top",0),n.set("left",0),n.set("position","arrow_nw"),n.set("isVisible",!1),n.set("withArrow",!0),n.set("class"),n.content=n.createCollection(),n.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(e){return"ck-balloon-panel_"+e})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",Nu),left:i.to("left",Nu)}},children:n.content}),n}return p(t,e),d(t,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var n=t.defaultPositions,i=Object.assign({},{element:this.element,positions:[n.southArrowNorth,n.southArrowNorthMiddleWest,n.southArrowNorthMiddleEast,n.southArrowNorthWest,n.southArrowNorthEast,n.northArrowSouth,n.northArrowSouthMiddleWest,n.northArrowSouthMiddleEast,n.northArrowSouthWest,n.northArrowSouthEast],limiter:Ru,fitInViewport:!0},e),o=t._getOptimalPosition(i),a=parseInt(o.left),r=parseInt(o.top);Object.assign(this,{top:r,left:a,position:o.name})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=zu(e.target),i=e.limiter?zu(e.limiter):Ru;this.listenTo(ro.document,"scroll",(function(o,a){var r=a.target,s=n&&r.contains(n),l=i&&r.contains(i);!s&&!l&&n&&i||t.attachTo(e)}),{useCapture:!0}),this.listenTo(ro.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(ro.document,"scroll"),this.stopListening(ro.window,"resize")}}])}(gl);function zu(e){return Ct(e)?e:Zo(e)?e.commonAncestorContainer:"function"==typeof e?zu(e()):null}function Vu(e,t){return e.top-t.height-ju.arrowVerticalOffset}function Hu(e){return e.bottom+ju.arrowVerticalOffset}function Yu(e,t,n){return e&&Uu(e)&&!n.isInline(t)}function qu(e){return e.getAttribute("widget-type-around")}function Uu(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Wu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new Lt.a("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Zu,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new Rl;return n.set("content",'<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>'),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Ju(e,t,(function(e,t,n){return n.addClass(qt(t.classes),e)}),(function(e,t,n){return n.removeClass(qt(t.classes),e)})),e}function Ju(e,t,n,i){var o=new Fu;o.on("change:top",(function(t,o){o.oldDescriptor&&i(e,o.oldDescriptor,o.writer),o.newDescriptor&&n(e,o.newDescriptor,o.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return o.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return o.remove(t,n)}),e)}function Gu(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function $u(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,i,o){t.setAttribute("contenteditable",o?"false":"true",e)})),e.on("change:isFocused",(function(n,i,o){o?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function Qu(e,t){var n=e.getSelectedElement();if(n){var i=qu(e);if(i)return t.createPositionAt(n,i);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var o=e.getSelectedBlocks().next().value;if(o){if(o.isEmpty)return t.createPositionAt(o,0);var a=t.createPositionAfter(o);return e.focus.isTouching(a)?a:t.createPositionBefore(o)}return e.focus}function Ku(e,t){var n=new ta(ro.window),i=n.getIntersection(e),o=t.height+ju.arrowVerticalOffset;if(e.top-o>n.top||e.bottom+o<n.bottom)return null;var a=i||e,r=a.left+a.width/2-t.width/2;return{top:Math.max(e.top,0)+ju.arrowVerticalOffset,left:r,name:"arrow_n"}}function Zu(){return null}function Xu(e){var t=e.getSelectedElement();return t&&function(e){return!!e.getCustomProperty("image")&&Uu(e)}(t)?t:null}function ed(e){return!!e&&e.is("element","image")}function td(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.change((function(i){var o=i.createElement("image",t),a=n||Qu(e.document.selection,e);e.insertContent(o,a),o.parent&&i.setSelection(o,"on")}))}function nd(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var i=function(e,t){var n=Qu(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(i,"image")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return r(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function id(e){var t,n=[],i=o(e.getChildren());try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(a),a.is("element")&&n.push.apply(n,r(a.getChildren()))}}catch(s){i.e(s)}finally{i.f()}return n.find((function(e){return e.is("element","img")}))}function od(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,o=id(n.mapper.toViewElement(t.item));i.setAttribute(t.attributeKey,t.attributeNewValue||"",o)}}}ju.arrowHorizontalOffset=25,ju.arrowVerticalOffset=10,ju._getOptimalPosition=Fl,ju.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:Vu(e,t),left:e.left-ju.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:Vu(e,t),left:e.left-.25*t.width-ju.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:Vu(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:Vu(e,t),left:e.left-.75*t.width+ju.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:Vu(e,t),left:e.left-t.width+ju.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:Vu(e,t),left:e.left+e.width/2-ju.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:Vu(e,t),left:e.left+e.width/2-.25*t.width-ju.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:Vu(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:Vu(e,t),left:e.left+e.width/2-.75*t.width+ju.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:Vu(e,t),left:e.left+e.width/2-t.width+ju.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:Vu(e,t),left:e.right-ju.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:Vu(e,t),left:e.right-.25*t.width-ju.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:Vu(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:Vu(e,t),left:e.right-.75*t.width+ju.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:Vu(e,t),left:e.right-t.width+ju.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:Hu(e),left:e.left-ju.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:Hu(e),left:e.left-.25*t.width-ju.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:Hu(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:Hu(e),left:e.left-.75*t.width+ju.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:Hu(e),left:e.left-t.width+ju.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:Hu(e),left:e.left+e.width/2-ju.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:Hu(e),left:e.left+e.width/2-.25*t.width-ju.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:Hu(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:Hu(e),left:e.left+e.width/2-.75*t.width+ju.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:Hu(e),left:e.left+e.width/2-t.width+ju.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:Hu(e),left:e.right-ju.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:Hu(e),left:e.right-.25*t.width-ju.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:Hu(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:Hu(e),left:e.right-.75*t.width+ju.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:Hu(e),left:e.right-t.width+ju.arrowHorizontalOffset,name:"arrow_ne"}}};var ad=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){this.isEnabled=nd(this.editor.model)}},{key:"execute",value:function(e){var t,n=this.editor.model,i=o(qt(e.source));try{for(i.s();!(t=i.n()).done;){td(n,{src:t.value})}}catch(a){i.e(a)}finally{i.f()}}}])}(cc),rd=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion;e.editing.view.addObserver(Iu),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),i.for("dataDowncast").elementToElement({model:"image",view:function(e,t){return sd(t.writer)}}),i.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var i=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),Wu(e,t,{label:function(){var t=id(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}(sd(i),i,n("image widget"))}}),i.for("downcast").add(od("src")).add(od("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,o=id(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var a=t.attributeOldValue;a.data&&(i.removeAttribute("srcset",o),i.removeAttribute("sizes",o),a.width&&i.removeAttribute("width",o))}else{var r=t.attributeNewValue;r.data&&(i.setAttribute("srcset",r.data,o),i.setAttribute("sizes","100vw",o),r.width&&i.setAttribute("width",r.width,o))}}}}()),i.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){return t.writer.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var i=id(t.viewItem);if(i&&i.hasAttribute("src")&&n.consumable.test(i,{name:!0})){var o=pu(n.convertItem(i,t.modelCursor).modelRange.getItems());o&&(n.convertChildren(t.viewItem,o),n.updateConversionResult(o,t))}}}}()),e.commands.add("imageInsert",new ad(e))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}])}(nc);function sd(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var ld=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).domEventType="mousedown",n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}])}(Eo),cd=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).attributes=new Set,n._overrideUid=null,n}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,i=t.model.document.selection;this.listenTo(t.editing.view.document,"keydown",(function(t,o){if(i.isCollapsed&&!(o.shiftKey||o.altKey||o.ctrlKey)){var a=o.keyCode==yi.arrowright,r=o.keyCode==yi.arrowleft;if(a||r){var s=n.contentLanguageDirection;!0===("ltr"===s&&a||"rtl"===s&&r?e._handleForwardMovement(o):e._handleBackwardMovement(o))&&t.stop()}}}),{priority:Ot.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(i,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&fd(i.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,i=n.getFirstPosition();return!this._isGravityOverridden&&(!i.isAtStart||!ud(n,t))&&(fd(i,t)?(hd(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,i=n.document.selection,o=i.getFirstPosition();return this._isGravityOverridden?(hd(e),this._restoreGravity(),dd(n,t,o),!0):o.isAtStart?!!ud(i,t)&&(hd(e),dd(n,t,o),!0):function(e,t){return fd(e.getShiftedBy(-1),t)}(o,t)?o.isAtEnd&&!ud(i,t)&&fd(o,t)?(hd(e),dd(n,t,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}}],[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}])}(nc);function ud(e,t){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(e.hasAttribute(a))return!0}}catch(r){i.e(r)}finally{i.f()}return!1}function dd(e,t,n){var i=n.nodeBefore;e.change((function(e){i?e.setSelectionAttribute(i.getAttributes()):e.removeSelectionAttribute(t)}))}function hd(e){e.preventDefault()}function fd(e,t){var n,i=e.nodeBefore,a=e.nodeAfter,r=o(t);try{for(r.s();!(n=r.n()).done;){var s=n.value,l=i?i.getAttribute(s):void 0;if((a?a.getAttribute(s):void 0)!==l)return!0}}catch(c){r.e(c)}finally{r.f()}return!1}function md(e,t,n,i){return i.createRange(pd(e,t,n,!0,i),pd(e,t,n,!1,i))}function pd(e,t,n,i,o){for(var a=e.textNode||(i?e.nodeBefore:e.nodeAfter),r=null;a&&a.getAttribute(t)==n;)r=a,a=i?a.previousSibling:a.nextSibling;return r?o.createPositionAt(r,i?"before":"after"):e}var gd=function(){return d((function e(){c(this,e),this._definitions=new Set}),[{key:"length",get:function(){return this._definitions.size}},{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,i){if(i.consumable.test(n.item,"attribute:linkHref")){var a,r=i.writer,s=r.document.selection,l=o(e._definitions);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=r.createAttributeElement("a",c.attributes,{priority:5});r.setCustomProperty("link",!0,u),c.callback(n.attributeNewValue)?n.item.is("selection")?r.wrap(s.getFirstRange(),u):r.wrap(i.mapper.toViewRange(n.range),u):r.unwrap(i.mapper.toViewRange(n.range),u)}}catch(d){l.e(d)}finally{l.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,n,a){var r,s=a.mapper.toViewElement(n.item),l=Array.from(s.getChildren()).find((function(e){return"a"===e.name})),c=o(e._definitions);try{for(c.s();!(r=c.n()).done;){var u=r.value,d=en(u.attributes);if(u.callback(n.attributeNewValue)){var h,f=o(d);try{for(f.s();!(h=f.n()).done;){var m=i(h.value,2),p=m[0],g=m[1];"class"===p?a.writer.addClass(g,l):a.writer.setAttribute(p,g,l)}}catch(C){f.e(C)}finally{f.f()}}else{var v,y=o(d);try{for(y.s();!(v=y.n()).done;){var b=i(v.value,2),_=b[0],k=b[1];"class"===_?a.writer.removeClass(k,l):a.writer.removeAttribute(_,l)}}catch(C){y.e(C)}finally{y.f()}}}}catch(C){c.e(C)}finally{c.f()}}))}}}])}(),vd=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),yd=function(e){return vd.test(e)},bd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_d="\\ud83c[\\udffb-\\udfff]",kd="[^\\ud800-\\udfff]",Cd="(?:\\ud83c[\\udde6-\\uddff]){2}",wd="[\\ud800-\\udbff][\\udc00-\\udfff]",xd="(?:"+bd+"|"+_d+")?",Md="[\\ufe0e\\ufe0f]?"+xd+"(?:\\u200d(?:"+[kd,Cd,wd].join("|")+")[\\ufe0e\\ufe0f]?"+xd+")*",Sd="(?:"+[kd+bd+"?",bd,Cd,wd,"[\\ud800-\\udfff]"].join("|")+")",Pd=RegExp(_d+"(?="+_d+")|"+Sd+Md,"g"),Td=function(e){e=mn(e);var t=yd(e)?function(e){return yd(e)?function(e){return e.match(Pd)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,n=t?t[0]:e.charAt(0),i=t?function(e,t,n){return yn(e,1,n=void 0===n?e.length:n)}(t).join(""):e.slice(1);return n.toUpperCase()+i},Od=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Ld=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Dd=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Id=/^((\w+:(\/{2,})?)|(\W))/i;function Fd(e,t){var n=t.writer,i=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,i),i}function Ad(e){return function(e){return e.replace(Od,"").match(Ld)}(e=String(e))?e:"#"}function Ed(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}function Bd(e,t){var n=Dd.test(e)?"mailto:":t,i=!!n&&!Id.test(e);return e&&i?n+e:e}var Nd=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).manualDecorators=new Ht,n.automaticDecorators=new gd,n}return p(t,e),d(t,[{key:"restoreManualDecoratorStates",value:function(){var e,t=o(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(i){t.e(i)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=pu(t.selection.getSelectedBlocks());Ed(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var i,a=o(this.manualDecorators);try{for(a.s();!(i=a.n()).done;){var r=i.value;r.value=this._getDecoratorStateFromModel(r.id)}}catch(s){a.e(s)}finally{a.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,a=i.document.selection,r=[],s=[];for(var l in n)n[l]?r.push(l):s.push(l);i.change((function(n){if(a.isCollapsed){var l=a.getFirstPosition();if(a.hasAttribute("linkHref")){var c=md(l,"linkHref",a.getAttribute("linkHref"),i);n.setAttribute("linkHref",e,c),r.forEach((function(e){n.setAttribute(e,!0,c)})),s.forEach((function(e){n.removeAttribute(e,c)})),n.setSelection(n.createPositionAfter(c.end.nodeBefore))}else if(""!==e){var u=en(a.getAttributes());u.set("linkHref",e),r.forEach((function(e){u.set(e,!0)}));var d=i.insertContent(n.createText(e,u),l).end;n.setSelection(d)}["linkHref"].concat(r,s).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var h,f=i.schema.getValidRanges(a.getRanges(),"linkHref"),m=[],p=o(a.getSelectedBlocks());try{for(p.s();!(h=p.n()).done;){var g=h.value;i.schema.checkAttribute(g,"linkHref")&&m.push(n.createRangeOn(g))}}catch(x){p.e(x)}finally{p.f()}var v,y=m.slice(),b=o(f);try{for(b.s();!(v=b.n()).done;){var _=v.value;t._isRangeToUpdate(_,m)&&y.push(_)}}catch(x){b.e(x)}finally{b.f()}var k,C=o(y);try{var w=function(){var t=k.value;n.setAttribute("linkHref",e,t),r.forEach((function(e){n.setAttribute(e,!0,t)})),s.forEach((function(e){n.removeAttribute(e,t)}))};for(C.s();!(k=C.n()).done;)w()}catch(x){C.e(x)}finally{C.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,i=pu(n.selection.getSelectedBlocks());return Ed(i,t.schema)?i.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){if(n.value.containsRange(e))return!1}}catch(a){i.e(a)}finally{i.f()}return!0}}])}(cc),Rd=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=pu(t.selection.getSelectedBlocks());this.isEnabled=Ed(n,e.schema)?e.schema.checkAttribute(n,"linkHref"):e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=this.editor.commands.get("link");e.change((function(i){var a,r=o(t.isCollapsed?[md(t.getFirstPosition(),"linkHref",t.getAttribute("linkHref"),e)]:e.schema.getValidRanges(t.getRanges(),"linkHref"));try{for(r.s();!(a=r.n()).done;){var s=a.value;if(i.removeAttribute("linkHref",s),n){var l,c=o(n.manualDecorators);try{for(c.s();!(l=c.n()).done;){var u=l.value;i.removeAttribute(u.id,s)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){r.e(d)}finally{r.f()}}))}}])}(cc),jd=d((function e(t){var n=t.id,i=t.label,o=t.attributes,a=t.defaultValue;c(this,e),this.id=n,this.set("value"),this.defaultValue=a,this.label=i,this.attributes=o}));Vt(jd,Yn),l(48);var zd=/^(https?:)?\/\//,Vd=function(e){function t(e){var n;return c(this,t),n=f(this,t,[e]),e.config.define("link",{addTargetToExternalLinks:!1}),n}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Fd}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return Fd(Ad(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new Nd(e)),e.commands.add("unlink",new Rd(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,o=Object.entries(e);n<o.length;n++){var a=i(o[n],2),r=a[0],s=a[1],l=Object.assign({},s,{id:"link"+Td(r)});t.push(l)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((function(e){return"automatic"===e.mode}))),this._enableManualDecorators(t.filter((function(e){return"manual"===e.mode}))),e.plugins.get(cd).registerAttribute("linkHref"),function(e,t,n,i){var a=e.editing.view,r=new Set;a.document.registerPostFixer((function(n){var a=e.model.document.selection,s=!1;if(a.hasAttribute(t)){var l,c=md(a.getFirstPosition(),t,a.getAttribute(t),e.model),u=o(e.editing.mapper.toViewRange(c).getItems());try{for(u.s();!(l=u.n()).done;){var d=l.value;d.is("element","a")&&!d.hasClass(i)&&(n.addClass(i,d),r.add(d),s=!0)}}catch(h){u.e(h)}finally{u.f()}}return s})),e.conversion.for("editingDowncast").add((function(e){function t(){a.change((function(e){var t,n=o(r.values());try{for(n.s();!(t=n.n()).done;){var a=t.value;e.removeClass(i,a),r.delete(a)}}catch(s){n.e(s)}finally{n.f()}}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(e){var t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:"automatic",callback:function(e){return zd.test(e)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(e){if(e.length){var t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((function(e){t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new jd(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:function(t,i){var o=i.writer;if(t){var a=n.get(e.id).attributes,r=o.createAttributeElement("a",a,{priority:5});return o.setCustomProperty("link",!0,r),r}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var e=this.editor,t=e.model,n=t.document.selection,i=e.commands.get("link");this.listenTo(t,"insertContent",(function(){var e=n.anchor.nodeBefore,o=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(o&&o.hasAttribute("linkHref")||t.change((function(e){Hd(e,i.manualDecorators)})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var e=this.editor,t=e.commands.get("link");e.editing.view.addObserver(ld);var n=!1;this.listenTo(e.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(function(){if(n){n=!1;var i=e.model.document.selection;if(i.isCollapsed&&i.hasAttribute("linkHref")){var o=i.getFirstPosition(),a=md(o,"linkHref",i.getAttribute("linkHref"),e.model);(o.isTouching(a.start)||o.isTouching(a.end))&&e.model.change((function(e){Hd(e,t.manualDecorators)}))}}}))}},{key:"_enableTypingOverLink",value:function(){var e,t,n=this.editor;this.listenTo(n.editing.view.document,"delete",(function(){t=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var i=n.model.document.selection;i.isCollapsed||(t?t=!1:Yd(n)&&function(e){var t=e.document.selection,n=t.getFirstPosition(),i=t.getLastPosition(),o=n.nodeAfter;return!!o&&!!o.is("$text")&&!!o.hasAttribute("linkHref")&&(o===(i.textNode||i.nodeBefore)||md(n,"linkHref",o.getAttribute("linkHref"),e).containsRange(e.createRange(n,i),!0))}(n.model)&&(e=i.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(a,r){var s=i(r,1)[0];t=!1,Yd(n)&&e&&(n.model.change((function(t){var n,a=o(e);try{for(a.s();!(n=a.n()).done;){var r=i(n.value,2),l=r[0],c=r[1];t.setAttribute(l,c,s)}}catch(u){a.e(u)}finally{a.f()}})),e=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view,o=e.commands.get("link"),a=!1,r=!1;this.listenTo(i.document,"delete",(function(e,t){r=t.domEvent.keyCode===yi.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){a=!1;var e=n.getFirstPosition(),i=n.getAttribute("linkHref");if(i){var o=md(e,"linkHref",i,t);a=o.containsPosition(e)||o.end.isEqual(e)}}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){r&&(r=!1,a||e.model.enqueueChange((function(e){Hd(e,o.manualDecorators)})))}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[cd,Bc,lc]}}])}(nc);function Hd(e,t){e.removeSelectionAttribute("linkHref");var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;e.removeSelectionAttribute(a.id)}}catch(r){i.e(r)}finally{i.f()}}function Yd(e){return e.plugins.get("Input").isInput(e.model.change((function(e){return e.batch})))}var qd=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){this.fire("show:"+e.type+(e.namespace?":"+e.namespace:""),{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}])}(lu),Ud=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).stopListening(n.editor.model.document,"change"),n.listenTo(n.editor.model.document,"change",(function(){return n.refresh()}),{priority:"low"}),n}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.commands.get("imageInsert"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}},{key:"execute",value:function(){var e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new Lt.a("ckfinder-unknown-openermethod",e);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var i=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=function(t){i&&i(t),t.on("files:choose",(function(n){var i,a=n.data.files.toArray(),r=a.filter((function(e){return!e.isImage()})),s=a.filter((function(e){return e.isImage()})),l=o(r);try{for(l.s();!(i=l.n()).done;){var c=i.value;e.execute("link",c.getUrl())}}catch(p){l.e(p)}finally{l.f()}var u,d=[],h=o(s);try{for(h.s();!(u=h.n()).done;){var f=u.value,m=f.getUrl();d.push(m||t.request("file:getProxyUrl",{file:f}))}}catch(p){h.e(p)}finally{h.f()}d.length&&Wd(e,d)})),t.on("file:choose:resizedImage",(function(t){var n=t.data.resizedUrl;if(n)Wd(e,[n]);else{var i=e.plugins.get("Notification"),o=e.locale.t;i.showWarning(o("Could not obtain resized image URL."),{title:o("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}])}(cc);function Wd(e,t){if(e.commands.get("imageInsert").isEnabled)e.execute("imageInsert",{source:t});else{var n=e.plugins.get("Notification"),i=e.locale.t;n.showWarning(i("Could not insert image at the current position."),{title:i("Inserting image failed"),namespace:"ckfinder"})}}var Jd=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor;e.commands.add("ckfinder",new Ud(e))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[qd,rd,Vd]}}])}(nc),Gd=/^data:(\S*?);base64,/,$d=function(){return d((function e(t,n,i){if(c(this,e),!t)throw new Lt.a("fileuploader-missing-file",null);if(!n)throw new Lt.a("fileuploader-missing-token",null);if(!i)throw new Lt.a("fileuploader-missing-api-address",null);this.file=function(e){if("string"!=typeof e)return!1;var t=e.match(Gd);return!(!t||!t.length)}(t)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:512;try{for(var n=e.match(Gd)[1],i=atob(e.replace(Gd,"")),o=[],a=0;a<i.length;a+=t){for(var r=i.slice(a,a+t),s=new Array(r.length),l=0;l<r.length;l++)s[l]=r.charCodeAt(l);o.push(new Uint8Array(s))}return new Blob(o,{type:n})}catch(e){throw new Lt.a("fileuploader-decoding-image-data-error",null)}}(t):t,this._token=n,this._apiAddress=i}),[{key:"onProgress",value:function(e){return this.on("progress",(function(t,n){return e(n)})),this}},{key:"onError",value:function(e){return this.once("error",(function(t,n){return e(n)})),this}},{key:"abort",value:function(){this.xhr.abort()}},{key:"send",value:function(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}},{key:"_prepareRequest",value:function(){var e=new XMLHttpRequest;e.open("POST",this._apiAddress),e.setRequestHeader("Authorization",this._token.value),e.responseType="json",this.xhr=e}},{key:"_attachXHRListeners",value:function(){var e=this,t=this,n=this.xhr;function i(e){return function(){return t.fire("error",e)}}n.addEventListener("error",i("Network Error")),n.addEventListener("abort",i("Abort")),n.upload&&n.upload.addEventListener("progress",(function(t){t.lengthComputable&&e.fire("progress",{total:t.total,uploaded:t.loaded})})),n.addEventListener("load",(function(){var t=n.status,i=n.response;if(t<200||t>299)return e.fire("error",i.message||i.error)}))}},{key:"_sendRequest",value:function(){var e=this,t=new FormData,n=this.xhr;return t.append("file",this.file),new Promise((function(i,o){n.addEventListener("load",(function(){var t=n.status,a=n.response;return t<200||t>299?o(a.message?new Lt.a("fileuploader-uploading-data-failed",e,{message:a.message}):a.error):i(a)})),n.addEventListener("error",(function(){return o(new Error("Network Error"))})),n.addEventListener("abort",(function(){return o(new Error("Abort"))})),n.send(t)}))}}])}();Vt($d,Ft);var Qd={autoRefresh:!0},Kd=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qd;if(c(this,e),!t)throw new Lt.a("token-missing-token-url",this);n.initValue&&this._validateTokenValue(n.initValue),this.set("value",n.initValue),this._refresh="function"==typeof t?t:function(){return e=t,new Promise((function(t,n){var i=new XMLHttpRequest;i.open("GET",e),i.addEventListener("load",(function(){var e=i.status,o=i.response;return e<200||e>299?n(new Lt.a("token-cannot-download-new-token",null)):t(o)})),i.addEventListener("error",(function(){return n(new Error("Network Error"))})),i.addEventListener("abort",(function(){return n(new Error("Abort"))})),i.send()}));var e},this._options=Object.assign({},Qd,n)}return d(e,[{key:"init",value:function(){var e=this;return new Promise((function(t,n){e.value?(e._options.autoRefresh&&e._registerRefreshTokenTimeout(),t(e)):e.refreshToken().then(t).catch(n)}))}},{key:"refreshToken",value:function(){var e=this;return this._refresh().then((function(t){e._validateTokenValue(t),e.set("value",t),e._options.autoRefresh&&e._registerRefreshTokenTimeout()})).then((function(){return e}))}},{key:"destroy",value:function(){clearTimeout(this._tokenRefreshTimeout)}},{key:"_validateTokenValue",value:function(e){var t="string"==typeof e,n=!/^".*"$/.test(e),i=t&&3===e.split(".").length;if(!n||!i)throw new Lt.a("token-not-in-jwt-format",this)}},{key:"_registerRefreshTokenTimeout",value:function(){var e=this,t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout((function(){e.refreshToken()}),t)}},{key:"_getTokenRefreshTimeoutTime",value:function(){try{var e=i(this.value.split("."),2)[1],t=JSON.parse(atob(e)).exp;return t?Math.floor((1e3*t-Date.now())/2):36e5}catch(n){return 36e5}}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qd;return new e(t,n).init()}}])}();Vt(Kd,Yn);var Zd=Kd,Xd=function(e){function n(){return c(this,n),f(this,n,arguments)}return p(n,e),d(n,[{key:"init",value:function(){var e=this.context.config.get("cloudServices")||{};for(var t in e)this[t]=e[t];if(this._tokens=new Map,this.tokenUrl)return this.token=new n.Token(this.tokenUrl),this._tokens.set(this.tokenUrl,this.token),this.token.init();this.token=null}},{key:"registerTokenUrl",value:function(e){if(this._tokens.has(e))return Promise.resolve(this.getTokenFor(e));var t=new n.Token(e);return this._tokens.set(e,t),t.init()}},{key:"getTokenFor",value:function(e){var t=this._tokens.get(e);if(!t)throw new Lt.a("cloudservices-token-not-registered",this);return t}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this);var e,i=o(this._tokens.values());try{for(i.s();!(e=i.n()).done;){e.value.destroy()}}catch(a){i.e(a)}finally{i.f()}}}],[{key:"pluginName",get:function(){return"CloudServices"}}])}(lu);Xd.Token=Zd;var eh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,n=this.editor,i=n.plugins.get(Xd),o=i.token;o&&(this._uploadGateway=new t._UploadGateway(o,i.uploadUrl),n.plugins.get(du).createUploadAdapter=function(t){return new th(e._uploadGateway,t)})}}],[{key:"requires",get:function(){return[du,Xd]}}])}(nc),th=function(){return d((function e(t,n){c(this,e),this.uploadGateway=t,this.loader=n}),[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return e.fileUploader=e.uploadGateway.upload(t),e.fileUploader.on("progress",(function(t,n){e.loader.uploadTotal=n.total,e.loader.uploaded=n.uploaded})),e.fileUploader.send()}))}},{key:"abort",value:function(){this.fileUploader.abort()}}])}();eh._UploadGateway=function(){return d((function e(t,n){if(c(this,e),!t)throw new Lt.a("uploadgateway-missing-token",null);if(!n)throw new Lt.a("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=n}),[{key:"upload",value:function(e){return new $d(e,this._token,this._apiAddress)}}])}(),l(50);var nh=["before","after"],ih=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2l2 2.038"/></svg>',"image/svg+xml").firstChild,oh=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e]))._currentFakeCaretModelElement=null,n}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,i,a){t.change((function(e){var n,i=o(t.document.roots);try{for(i.s();!(n=i.n()).done;){var r=n.value;a?e.removeClass("ck-widget__type-around_disabled",r):e.addClass("ck-widget__type-around_disabled",r)}}catch(s){i.e(s)}finally{i.f()}})),a||e.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,i=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),i.focus(),i.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,i){var o=this;this.listenTo(e,t,(function(){o.isEnabled&&n.apply(void 0,arguments)}),i)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=qu(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,o){var a=o.mapper.toViewElement(n.item);Yu(a,n.item,t)&&function(e,t,n){var i=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){for(var n=0,i=nh;n<i.length;n++){var o=i[n],a=new Ks({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+o],title:t[o]},children:[e.ownerDocument.importNode(ih,!0)]});e.appendChild(a.render())}}(n,t),function(e){var t=new Ks({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),i)}(o.writer,i,a)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,i=n.document.selection,o=n.schema;function a(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(t.editing.view.document,"keydown",(function(t,n){Ci(n.keyCode)&&e._handleArrowKeyPress(t,n)}),{priority:Ot.get("high")+10}),this._listenToIfEnabled(i,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=i.getSelectedElement();e&&Yu(t.editing.mapper.toViewElement(e),e,o)||t.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,i){var r=i.writer;if(e._currentFakeCaretModelElement){var s=i.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(r.removeClass(nh.map(a),s),e._currentFakeCaretModelElement=null)}var l=n.selection.getSelectedElement();if(l){var c=i.mapper.toViewElement(l);if(Yu(c,l,o)){var u=qu(n.selection);u&&(r.addClass(a(u),c),e._currentFakeCaretModelElement=l)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,i){i||t.model.change((function(e){e.removeSelectionAttribute("widget-type-around")}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,i=this.editor,o=i.model,a=o.document.selection,r=o.schema,s=i.editing.view,l=xi(t.keyCode,i.locale.contentLanguageDirection),c=s.document.selection.getSelectedElement();Yu(c,i.editing.mapper.toModelElement(c),r)?n=this._handleArrowKeyPressOnSelectedWidget(l):a.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=qu(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute("widget-type-around"),!0):(t.setSelectionAttribute("widget-type-around",e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,i=n.schema,o=t.plugins.get("Widget"),a=o._getObjectElementNextToSelection(e);return!!Yu(t.editing.mapper.toViewElement(a),a,i)&&(n.change((function(t){o._setSelectionOverElement(a),t.setSelectionAttribute("widget-type-around",e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(i,o){var a=o.domTarget.closest(".ck-widget__type-around__button");if(a){var r=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(a),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(a,n.domConverter),l=t.editing.mapper.toModelElement(s);e._insertParagraph(l,r),o.preventDefault(),i.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(function(i,o){var a,r=n.document.selection.getSelectedElement(),s=t.editing.mapper.toModelElement(r),l=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?a=!0:Yu(r,s,l)&&(e._insertParagraph(s,o.isSoft?"before":"after"),a=!0),a&&(o.preventDefault(),i.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=[yi.enter,yi.delete,yi.backspace];this._listenToIfEnabled(this.editor.editing.view.document,"keydown",(function(n,i){t.includes(i.keyCode)||Lc(i)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:Ot.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.model,n=t.schema;this._listenToIfEnabled(e.editing.view.document,"delete",(function(i,a){var r=qu(t.document.selection);if(r){var s=a.direction,l=t.document.selection.getSelectedElement(),c="forward"==s;if("before"===r===c)e.execute("delete",{selection:t.createSelection(l,"on")});else{var u=n.getNearestSelectionRange(t.createPositionAt(l,r),s);if(u)if(u.isCollapsed){var d=t.createSelection(u.start);if(t.modifySelection(d,{direction:s}),d.focus.isEqual(u.start)){var h=function(e,t){var n,i=t,a=o(t.getAncestors({parentFirst:!0}));try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.childCount>1||e.isLimit(r))break;i=r}}catch(s){a.e(s)}finally{a.f()}return i}(n,u.start.parent);t.deleteContent(t.createSelection(h,"on"),{doNotAutoparagraph:!0})}else t.change((function(t){t.setSelection(u),e.execute(c?"forwardDelete":"delete")}))}else t.change((function(t){t.setSelection(u),e.execute(c?"forwardDelete":"delete")}))}a.preventDefault(),i.stop()}}),{priority:Ot.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor.model,t=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(function(n,o){var a=i(o,2),r=a[0],s=a[1];if(!s||s.is("documentSelection")){var l=qu(t);return l?(n.stop(),e.change((function(n){var i=t.getSelectedElement(),o=e.createPositionAt(i,l),a=n.createSelection(o),s=e.insertContent(r,a);return n.setSelection(a),s}))):void 0}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"WidgetTypeAround"}}])}(nc);function ah(e,t,n){var i,a=e.schema,r="forward"==n?"elementStart":"elementEnd",s=o(e.createRangeIn(t.root).getWalker({startPosition:t,direction:n}));try{for(s.s();!(i=s.n()).done;){var l=i.value,c=l.previousPosition,u=l.item,d=l.type;if(a.isLimit(u)&&!a.isInline(u))return c;if(d==r&&a.isBlock(u))return null}}catch(h){s.e(h)}finally{s.f()}return null}function rh(e,t,n){var i="backward"==n?t.end:t.start;if(e.checkChild(i,"$text"))return i;var a,r=o(t.getWalker({direction:n}));try{for(r.s();!(a=r.n()).done;){var s=a.value.nextPosition;if(e.checkChild(s,"$text"))return s}}catch(l){r.e(l)}finally{r.f()}}l(52);var sh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,i){e._clearPreviouslySelectedWidgets(i.writer);var a,r=i.writer,s=r.document.selection,l=s.getSelectedElement(),c=null,u=o(s.getRanges());try{for(u.s();!(a=u.n()).done;){var d,h=o(a.value);try{for(h.s();!(d=h.n()).done;){var f=d.value.item;Uu(f)&&!lh(f,c)&&(r.addClass("ck-widget_selected",f),e._previouslySelected.add(f),c=f,f==l&&r.setSelection(s.getRanges(),{fake:!0,label:Gu(l)}))}}catch(m){h.e(m)}finally{h.f()}}}catch(m){u.e(m)}finally{u.f()}}),{priority:"low"}),t.addObserver(ld),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"keydown",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{priority:Ot.get("high")-20}),this.listenTo(n,"keydown",function(e){var t=e.model;return function(n,i){var a=i.keyCode==yi.arrowdown,r=i.shiftKey,s=t.document.selection;if(i.keyCode==yi.arrowup||a){var l=a;if(!r||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,l)){var c=function(e,t,n){var i=e.model;if(n){var o=t.isCollapsed?t.focus:t.getLastPosition(),a=ah(i,o,"forward");if(!a)return null;var r=i.createRange(o,a),s=rh(i.schema,r,"backward");return s&&o.isBefore(s)?i.createRange(o,s):null}var l=t.isCollapsed?t.focus:t.getFirstPosition(),c=ah(i,l,"backward");if(!c)return null;var u=i.createRange(c,l),d=rh(i.schema,u,"forward");return d&&l.isAfter(d)?i.createRange(d,l):null}(e,s,l);c&&!c.isCollapsed&&function(e,t,n){var i=e.model,a=e.view.domConverter;if(n){var r=i.createSelection(t.start);i.modifySelection(r),r.focus.isAtEnd||t.start.isEqual(r.focus)||(t=i.createRange(r.focus,t.end))}var s,l,c=e.mapper.toViewRange(t),u=a.viewRangeToDom(c),d=o(ta.getDomRangeRects(u));try{for(d.s();!(l=d.n()).done;){var h=l.value;if(void 0!==s){if(Math.round(h.top)>=s)return!1;s=Math.max(s,Math.round(h.bottom))}else s=Math.round(h.bottom)}}catch(f){d.e(f)}finally{d.f()}return!0}(e,c,l)&&(t.change((function(e){var n=l?c.end:c.start;if(r){var i=t.createSelection(s.anchor);i.setFocus(n),e.setSelection(i)}else e.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}}(this.editor.editing)),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,i=n.editing.view,o=i.document,a=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Uu(e))return!1;e=e.parent}return!1}(a)){if((mi||fi)&&t.domEvent.detail>=3){var r=n.editing.mapper,s=a.is("attributeElement")?a.findAncestor((function(e){return!e.is("attributeElement")})):a,l=r.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(l,"in")}))}}else if(Uu(a)||(a=a.findAncestor(Uu))){t.preventDefault(),o.isFocused||i.focus();var c=n.editing.mapper.toModelElement(a);this._setSelectionOverElement(c)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode;if(Ci(n)){var i=this.editor.model,o=i.schema,a=i.document.selection,r=a.getSelectedElement(),s=xi(n,this.editor.locale.contentLanguageDirection);if(r&&o.isObject(r)){var l=s?a.getLastPosition():a.getFirstPosition(),c=o.getNearestSelectionRange(l,s?"forward":"backward");c&&(i.change((function(e){e.setSelection(c)})),t.preventDefault(),e.stop())}else if(a.isCollapsed){var u=this._getObjectElementNextToSelection(s);u&&o.isObject(u)&&(this._setSelectionOverElement(u),t.preventDefault(),e.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){if(Ci(t.keyCode)){var n=this.editor.model,i=n.schema,o=n.document.selection.getSelectedElement();o&&i.isObject(o)&&(t.preventDefault(),e.stop())}}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var i=this._getObjectElementNextToSelection(e);return i?(this.editor.model.change((function(e){for(var o=n.anchor.parent;o.isEmpty;){var a=o;o=a.parent,e.remove(a)}t._setSelectionOverElement(i)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,i=t.createSelection(t.document.selection);t.modifySelection(i,{direction:e?"forward":"backward"});var o=e?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=o(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass("ck-widget_selected",i)}}catch(a){n.e(a)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[oh]}}])}(nc);function lh(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var ch=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=ed(e),this.value=!(!ed(e)||!e.hasAttribute("alt"))&&e.getAttribute("alt")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}])}(cc),uh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new ch(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}])}(nc);l(54);var dh=function(e){function t(e,n){var i;c(this,t),i=f(this,t,[e]);var o="ck-labeled-field-view-"+Tt(),a="ck-labeled-field-view-status-"+Tt();i.fieldView=n(i,o,a),i.set("label"),i.set("isEnabled",!0),i.set("isEmpty",!0),i.set("isFocused",!1),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.set("placeholder"),i.labelView=i._createLabelView(o),i.statusView=i._createStatusView(a),i.bind("_statusText").to(i,"errorText",i,"infoText",(function(e,t){return e||t}));var r=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",r.to("class"),r.if("isEnabled","ck-disabled",(function(e){return!e})),r.if("isEmpty","ck-labeled-field-view_empty"),r.if("isFocused","ck-labeled-field-view_focused"),r.if("placeholder","ck-labeled-field-view_placeholder"),r.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[i.fieldView,i.labelView]},i.statusView]}),i}return p(t,e),d(t,[{key:"_createLabelView",value:function(e){var t=new _l(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new gl(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}])}(gl);l(56);var hh=function(e){function n(e){var t;c(this,n),(t=f(this,n,[e])).set("value"),t.set("id"),t.set("placeholder"),t.set("isReadOnly",!1),t.set("hasError",!1),t.set("ariaDescribedById"),t.focusTracker=new Hs,t.bind("isFocused").to(t.focusTracker),t.set("isEmpty",!0);var i=t.bindTemplate;return t.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",i.if("isFocused","ck-input_focused"),i.if("isEmpty","ck-input-text_empty"),i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to("input"),change:i.to(t._updateIsEmpty.bind(t))}}),t}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(function(t,n,i){e._setDomElementValue(i),e._updateIsEmpty()}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}},{key:"_updateIsEmpty",value:function(){this.isEmpty=!this.element.value}},{key:"_setDomElementValue",value:function(e){this.element.value=e||0===e?e:""}}])}(gl);function fh(e,t,n){var i=new hh(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),i.bind("hasError").to(e,"errorText",(function(e){return!!e})),i.on("input",(function(){e.errorText=null})),e.bind("isEmpty","isFocused","placeholder").to(i),i}function mh(e){e.set("_isCssTransitionsDisabled",!1),e.disableCssTransitions=function(){e._isCssTransitionsDisabled=!0},e.enableCssTransitions=function(){e._isCssTransitionsDisabled=!1},e.extendTemplate({attributes:{class:[e.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function ph(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var gh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',vh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';l(58),l(7);var yh=function(e){function n(e){var t;c(this,n);var i=(t=f(this,n,[e])).locale.t;return t.focusTracker=new Hs,t.keystrokes=new As,t.labeledInput=t._createLabeledInputView(),t.saveButtonView=t._createButton(i("Save"),gh,"ck-button-save"),t.saveButtonView.type="submit",t.cancelButtonView=t._createButton(i("Cancel"),vh,"ck-button-cancel","cancel"),t._focusables=new Qs,t._focusCycler=new Sl({focusables:t._focusables,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),t.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[t.labeledInput,t.saveButtonView,t.cancelButtonView]}),mh(t),t}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),ph({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,i){var o=new zl(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new dh(this.locale,fh);return t.label=e("Text alternative"),t}}])}(gl);l(61),l(63);var bh=wl("px"),_h=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).positionLimiter=function(){var e=n.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},n.set("visibleView",null),n.view=new ju(e.locale),e.ui.view.body.add(n.view),e.ui.focusTracker.add(n.view.element),n._viewToStack=new Map,n._idToStack=new Map,n.set("_numberOfStacks",0),n.set("_singleViewMode",!1),n._rotatorView=n._createRotatorView(),n._fakePanelsView=n._createFakePanelsView(),n}return p(t,e),d(t,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new Lt.a("contextualballoon-add-view-exist",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new Lt.a("contextualballoon-remove-view-not-exist",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new Lt.a("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new kh(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,i){if(i<2)return"";var o=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[o,i])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new Ch(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,i=void 0===n?"":n,o=e.withArrow,a=void 0===o||o,r=e.singleViewMode,s=void 0!==r&&r;this.view.class=i,this.view.withArrow=a,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}}],[{key:"pluginName",get:function(){return"ContextualBalloon"}}])}(nc),kh=function(e){function n(e){var t;c(this,n),t=f(this,n,[e]);var i=e.t,o=t.bindTemplate;return t.set("isNavigationVisible",!0),t.focusTracker=new Hs,t.buttonPrevView=t._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),t.buttonNextView=t._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),t.content=t.createCollection(),t.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[t.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},t.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:t.content}]}),t}return p(n,e),d(n,[{key:"render",value:function(){t(_(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new zl(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}])}(gl),Ch=function(e){function t(e,n){var i;c(this,t);var o=(i=f(this,t,[e])).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=n,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",bh),left:o.to("left",bh),width:o.to("width",bh),height:o.to("height",bh)}},children:i.content}),i.on("change:numberOfPanels",(function(e,t,n,o){n>o?i._addPanels(n-o):i._removePanels(o-n),i.updatePosition()})),i}return p(t,e),d(t,[{key:"_addPanels",value:function(e){for(;e--;){var t=new gl;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,i=new ta(this._balloonPanelView.element),o=i.width,a=i.height;Object.assign(this,{top:t,left:n,width:o,height:a})}}}])}(gl);function wh(e){var t=e.editing.view,n=ju.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var xh=function(e){function n(){return c(this,n),f(this,n,arguments)}return p(n,e),d(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(i){var o=t.commands.get("imageTextAlternative"),a=new zl(i);return a.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),a.bind("isEnabled").to(o,"isEnabled"),e.listenTo(a,"execute",(function(){e._showForm()})),a}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new yh(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){Xu(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(Xu(e.editing.view.document.selection)){var n=wh(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Jl({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:wh(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[_h]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}])}(nc),Mh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[uh,xh]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}])}(nc);l(65);var Sh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[rd,sh,Mh]}},{key:"pluginName",get:function(){return"Image"}}])}(nc),Ph=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).buttonView=new zl(e),n._fileInputView=new Th(e),n._fileInputView.bind("acceptedType").to(m(n)),n._fileInputView.bind("allowMultipleFiles").to(m(n)),n._fileInputView.delegate("done").to(m(n)),n.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[n.buttonView,n._fileInputView]}),n.buttonView.on("execute",(function(){n._fileInputView.open()})),n}return p(t,e),d(t,[{key:"focus",value:function(){this.buttonView.focus()}}])}(gl),Th=function(e){function t(e){var n;c(this,t),(n=f(this,t,[e])).set("acceptedType"),n.set("allowMultipleFiles",!1);var i=n.bindTemplate;return n.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){n.element&&n.element.files&&n.element.files.length&&n.fire("done",n.element.files),n.element.value=""}))}}),n}return p(t,e),d(t,[{key:"open",value:function(){this.element.click()}}])}(gl);function Oh(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}var Lh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.t;e.ui.componentFactory.add("imageUpload",(function(n){var i=new Ph(n),o=e.commands.get("imageUpload"),a=e.config.get("image.upload.types"),r=Oh(a);return i.set({acceptedType:a.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:t("Insert image"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',tooltip:!0}),i.buttonView.bind("isEnabled").to(o),i.on("done",(function(t,n){var i=Array.from(n).filter((function(e){return r.test(e.type)}));i.length&&e.execute("imageUpload",{file:i})})),i}))}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}])}(nc);l(67),l(69),l(71);var Dh=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),n}return p(t,e),d(t,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var i=this.editor,o=t.item,a=o.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var r=i.plugins.get(du),s=a?t.attributeNewValue:null,l=this.placeholder,c=i.editing.mapper.toViewElement(o),u=n.writer;if("reading"==s)return Ih(c,u),void Fh(l,c,u);if("uploading"==s){var d=r.loaders.get(a);return Ih(c,u),void(d?(Ah(c,u),function(e,t,n,i){var o=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),o),n.on("change:uploadedPercent",(function(e,t,n){i.change((function(e){e.setStyle("width",n+"%",o)}))}))}(c,u,d,i.editing.view),function(e,t,n){if(n.data){var i=id(e);t.setAttribute("src",n.data,i)}}(c,u,d)):Fh(l,c,u))}"complete"==s&&r.loaders.get(a)&&function(e,t,n){var i=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),i),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(i))}))}),3e3)}(c,u,i.editing.view),function(e,t){Bh(e,t,"progressBar")}(c,u),Ah(c,u),function(e,t){t.removeClass("ck-appear",e)}(c,u)}}}])}(nc);function Ih(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Fh(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var i=id(t);i.getAttribute("src")!==e&&n.setAttribute("src",e,i),Eh(t,"placeholder")||n.insert(n.createPositionAfter(i),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function Ah(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Bh(e,t,"placeholder")}function Eh(e,t){var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.getCustomProperty(t))return a}}catch(r){i.e(r)}finally{i.f()}}function Bh(e,t,n){var i=Eh(e,n);i&&t.remove(t.createRangeOn(i))}var Nh=function(){return d((function e(t){c(this,e),this.document=t}),[{key:"createDocumentFragment",value:function(e){return new Li(this.document,e)}},{key:"createElement",value:function(e,t,n){return new An(this.document,e,t,n)}},{key:"createText",value:function(e){return new Zt(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var i=n.getChildIndex(e);return this.removeChildren(i,1,n),this.insertChild(i,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new An(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){A(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return Xn._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Xn._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Xn._createBefore(e)}},{key:"createRange",value:function(e,t){return new ei(e,t)}},{key:"createRangeOn",value:function(e){return ei._createOn(e)}},{key:"createRangeIn",value:function(e){return ei._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new ii(e,t,n)}}])}(),Rh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=nd(this.editor.model)||t}},{key:"execute",value:function(e){var t,n=this.editor,i=n.model,a=n.plugins.get(du),r=o(qt(e.file));try{for(r.s();!(t=r.n()).done;){jh(i,a,t.value)}}catch(s){r.e(s)}finally{r.f()}}}])}(cc);function jh(e,t,n){var i=t.createLoader(n);i&&td(e,{uploadId:i.id})}var zh=function(e){function t(e){var n;return c(this,t),n=f(this,t,[e]),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),n}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.model.schema,a=t.conversion,r=t.plugins.get(du),s=Oh(t.config.get("image.upload.types"));i.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new Rh(t)),a.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(i=n.dataTransfer,!Array.from(i.types).includes("text/html")||""===i.getData("text/html")){var i,o=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&s.test(e.type)})),a=n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}));t.model.change((function(n){n.setSelection(a),o.length&&(e.stop(),t.model.enqueueChange("default",(function(){t.execute("imageUpload",{file:o})})))}))}})),this.listenTo(t.plugins.get(lc),"inputTransformation",(function(e,n){var i=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:(t=e.item,new Promise((function(e,n){var i=t.getAttribute("src");fetch(i).then((function(e){return e.blob()})).then((function(t){var n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,i),o=n.replace("image/",""),a=new File([t],"image."+o,{type:n});e(a)})).catch(n)}))),imageElement:e.item};var t}));if(i.length){var a,s=new Nh(t.editing.view.document),l=o(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;s.setAttribute("uploadProcessed",!0,c.imageElement);var u=r.createLoader(c.promise);u&&(s.setAttribute("src","",c.imageElement),s.setAttribute("uploadId",u.id,c.imageElement))}}catch(d){l.e(d)}finally{l.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var i,a=o(n.differ.getChanges({includeChangesInGraveyard:!0}));try{for(a.s();!(i=a.n()).done;){var s=i.value;if("insert"==s.type&&"$text"!=s.name){var l,c=s.position.nodeAfter,u="$graveyard"==s.position.root.rootName,d=o(Vh(t,c));try{for(d.s();!(l=d.n()).done;){var h=l.value,f=h.getAttribute("uploadId");if(f){var m=r.loaders.get(f);m&&(u?m.abort():"idle"==m.status&&e._readAndUpload(m,h))}}}catch(p){d.e(p)}finally{d.f()}}}}catch(p){a.e(p)}finally{a.f()}}))}},{key:"_readAndUpload",value:function(e,t){var n=this,i=this.editor,o=i.model,a=i.locale.t,r=i.plugins.get(du),s=i.plugins.get(qd);return o.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(mi){var a=id(i.editing.mapper.toViewElement(t));i.editing.view.once("render",(function(){if(a.parent){var e=i.editing.view.domConverter.mapViewToDom(a.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return o.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){o.enqueueChange("transparent",(function(i){i.setAttributes({uploadStatus:"complete",src:e.default},t),n._parseAndSetSrcsetAttributeOnImage(e,t,i)})),l()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:a("Upload failed"),namespace:"upload"}),l(),o.enqueueChange("transparent",(function(e){e.remove(t)}))}));function l(){o.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),r.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var i=0,o=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return i=Math.max(i,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=o&&n.setAttribute("srcset",{data:o,width:i},t)}}],[{key:"requires",get:function(){return[du,qd,lc]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}])}(nc);function Vh(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var Hh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[zh,Lh,Dh]}}])}(nc),Yh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model,t=pu(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&qh(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(i){var a,r=o((e.selection||n.selection).getSelectedBlocks());try{for(r.s();!(a=r.n()).done;){var s=a.value;!s.is("element","paragraph")&&qh(s,t.schema)&&i.rename(s,"paragraph")}}catch(l){r.e(l)}finally{r.f()}}))}}])}(cc);function qh(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var Uh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var i=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,i)){var o=t.schema.findAllowedParent(n,i);if(!o)return;n=e.split(n,o).position}t.insertContent(i,n),e.setSelection(i,"in")}))}}])}(cc),Wh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,n=e.model;e.commands.add("paragraph",new Yh(e)),e.commands.add("insertParagraph",new Uh(e)),n.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,n){var i=n.writer;return t.paragraphLikeElements.has(e.name)?e.isEmpty?null:i.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}])}(nc);Wh.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var Jh=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).modelElements=n,i}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this,t=pu(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return Gh(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,i=e.value;t.change((function(e){var a,r=o(Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Gh(e,i,t.schema)})));try{for(r.s();!(a=r.n()).done;){var s=a.value;s.is("element",i)||e.rename(s,i)}}catch(l){r.e(l)}finally{r.f()}}))}}])}(cc);function Gh(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var $h=function(e){function t(e){var n;return c(this,t),n=f(this,t,[e]),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),n}return p(t,e),d(t,[{key:"init",value:function(){var e,t=this.editor,n=[],i=o(t.config.get("heading.options"));try{for(i.s();!(e=i.n()).done;){var a=e.value;"paragraph"!==a.model&&(t.model.schema.register(a.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(a),n.push(a.model))}}catch(r){i.e(r)}finally{i.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new Jh(t,n))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,i){var o=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return o.is("element",e.model)}))&&!o.is("element","paragraph")&&0===o.childCount&&i.writer.rename(o,"paragraph")}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Ot.get("low")+1})}}],[{key:"pluginName",get:function(){return"HeadingEditing"}},{key:"requires",get:function(){return[Wh]}}])}(nc),Qh=d((function e(t,n){c(this,e),n&&Rn(this,n),t&&this.set(t)}));Vt(Qh,Yn),l(12);var Kh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),a=n("Choose heading"),r=n("Heading");t.ui.componentFactory.add("heading",(function(n){var s,l={},c=new Ht,u=t.commands.get("heading"),d=t.commands.get("paragraph"),h=[u],f=o(i);try{var m=function(){var e=s.value,t={type:"button",model:new Qh({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(d,"value"),t.model.set("commandName","paragraph"),h.push(d)):(t.model.bind("isOn").to(u,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),c.add(t),l[e.model]=e.title};for(f.s();!(s=f.n()).done;)m()}catch(g){f.e(g)}finally{f.f()}var p=Gl(n);return $l(p,c),p.buttonView.set({isOn:!1,withText:!0,tooltip:r}),p.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),p.bind("isEnabled").toMany(h,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),p.buttonView.bind("label").to(u,"value",d,"value",(function(e,t){var n=e||t&&"paragraph";return l[n]?l[n]:a})),e.listenTo(p,"execute",(function(e){t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),p}))}}])}(nc);function Zh(e){var t,n=o(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i&&i.is("element","caption"))return i}}catch(a){n.e(a)}finally{n.f()}return null}function Xh(e){var t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}var ef=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,i=t.data,o=t.editing,a=t.t;t.model.schema.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((function(t){return e._insertMissingModelCaptionElement(t)})),t.conversion.for("upcast").elementToElement({view:Xh,model:"caption"}),i.downcastDispatcher.on("insert:caption",tf((function(e){return e.createContainerElement("figcaption")}),!1));var r=function(e,t){return function(n){var i=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,i),Us({view:e,element:i,text:t}),$u(i,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",tf(r)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(e){return e.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(e){return e.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(t){return e._updateCaptionVisibility(t)}))}},{key:"_updateCaptionVisibility",value:function(e){var t,n=this.editor.editing.mapper,i=this._lastSelectedCaption,o=this.editor.model.document.selection,a=o.getSelectedElement();if(a&&a.is("element","image")){var r=Zh(a);t=n.toViewElement(r)}var s=nf(o.getFirstPosition().parent);if(s&&(t=n.toViewElement(s)),t)return i?(i===t||(of(i,e),this._lastSelectedCaption=t),af(t,e)):(this._lastSelectedCaption=t,af(t,e));if(i){var l=of(i,e);return this._lastSelectedCaption=null,l}return!1}},{key:"_fixCaptionVisibility",value:function(e){var t=this;return function(n,i,o){var a=nf(e(i)),r=o.writer;if(a){var s=t.editor.editing.mapper.toViewElement(a);s&&(a.childCount?r.removeClass("ck-hidden",s):r.addClass("ck-hidden",s))}}}},{key:"_insertMissingModelCaptionElement",value:function(e){var t,n=this.editor.model,i=[],a=o(n.document.differ.getChanges());try{for(a.s();!(t=a.n()).done;){var r=t.value;if("insert"==r.type&&"$text"!=r.name){var s=r.position.nodeAfter;if(s.is("element","image")&&!Zh(s)&&i.push(s),!s.is("element","image")&&s.childCount){var l,c=o(n.createRangeIn(s).getItems());try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is("element","image")&&!Zh(u)&&i.push(u)}}catch(m){c.e(m)}finally{c.f()}}}}}catch(m){a.e(m)}finally{a.f()}for(var d=0,h=i;d<h.length;d++){var f=h[d];e.appendElement("caption",f)}return!!i.length}}],[{key:"pluginName",get:function(){return"ImageCaptionEditing"}}])}(nc);function tf(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,i,o){var a=i.item;if((a.childCount||t)&&ed(a.parent)){if(!o.consumable.consume(i.item,"insert"))return;var r=o.mapper.toViewElement(i.range.start.parent),s=e(o.writer),l=o.writer;a.childCount||l.addClass("ck-hidden",s),function(e,t,n,i){var o=i.writer.createPositionAt(n,"end");i.writer.insert(o,e),i.mapper.bindElements(t,e)}(s,i.item,r,o)}}}function nf(e){var t=e.getAncestors({includeSelf:!0}).find((function(e){return"caption"==e.name}));return t&&t.parent&&"image"==t.parent.name?t:null}function of(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function af(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}l(74);var rf=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).defaultStyle=!1,i.styles=n.reduce((function(e,t){return e[t.name]=t,t.isDefault&&(i.defaultStyle=t.name),e}),{}),i}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=ed(e),e)if(e.hasAttribute("imageStyle")){var t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(e){var t=this,n=e.value,i=this.editor.model,o=i.document.selection.getSelectedElement();i.change((function(e){t.styles[n].isDefault?e.removeAttribute("imageStyle",o):e.setAttribute("imageStyle",n,o)}))}}])}(cc);function sf(e,t){var n,i=o(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.name===e)return a}}catch(r){i.e(r)}finally{i.f()}}var lf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',cf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',uf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',df='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',hf={full:{name:"full",title:"Full size image",icon:lf,isDefault:!0},side:{name:"side",title:"Side image",icon:df,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:cf,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:uf,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:df,className:"image-style-align-right"}},ff={full:lf,left:cf,right:df,center:uf};function mf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(pf)}function pf(e){if("string"==typeof e){var t=e;hf[t]?e=Object.assign({},hf[t]):(Object(Lt.c)("image-style-not-found",{name:t}),e={name:t})}else if(hf[e.name]){var n=hf[e.name],i=Object.assign({},e);for(var o in n)Object.prototype.hasOwnProperty.call(e,o)||(i[o]=n[o]);e=i}return"string"==typeof e.icon&&ff[e.icon]&&(e.icon=ff[e.icon]),e}var gf=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,i=e.editing;e.config.define("image.styles",["full","side"]);var a=mf(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var r=function(e){return function(t,n,i){if(i.consumable.consume(n.item,t.name)){var o=sf(n.attributeNewValue,e),a=sf(n.attributeOldValue,e),r=i.mapper.toViewElement(n.item),s=i.writer;a&&s.removeClass(a.className,r),o&&s.addClass(o.className,r)}}}(a);i.downcastDispatcher.on("attribute:imageStyle:image",r),n.downcastDispatcher.on("attribute:imageStyle:image",r),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,i){if(n.modelRange){var a=n.viewItem,r=pu(n.modelRange.getItems());if(i.schema.checkAttribute(r,"imageStyle")){var s,l=o(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;i.consumable.consume(a,{classes:c.className})&&i.writer.setAttribute("imageStyle",c.name,r)}}catch(u){l.e(u)}finally{l.f()}}}}}(a),{priority:"low"}),e.commands.add("imageStyle",new rf(e,a))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}])}(nc);l(76);var vf=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}},{key:"init",value:function(){var e,t=function(e,t){var n,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;t[a.title]&&(a.title=t[a.title])}}catch(r){i.e(r)}finally{i.f()}return e}(mf(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=o(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._createButton(i)}}catch(a){n.e(a)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("imageStyle:"+e.name,(function(i){var o=n.commands.get("imageStyle"),a=new zl(i);return a.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),a.bind("isEnabled").to(o,"isEnabled"),a.bind("isOn").to(o,"value",(function(t){return t===e.name})),t.listenTo(a,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),a}))}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}])}(nc),yf=function(e){function n(){return c(this,n),f(this,n,arguments)}return p(n,e),d(n,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!Uu(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this);var e,i=o(this._toolbarDefinitions.values());try{for(i.s();!(e=i.n()).done;){e.value.view.destroy()}}catch(a){i.e(a)}finally{i.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,i=t.items,o=t.getRelatedElement,a=t.balloonClassName,r=void 0===a?"ck-toolbar-container":a;if(i.length){var s=this.editor,l=s.t,c=new Ql(s.locale);if(c.ariaLabel=n||l("Widget toolbar"),this._toolbarDefinitions.has(e))throw new Lt.a("widget-toolbar-duplicated",this,{toolbarId:e});c.fillFromConfig(i,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:c,getRelatedElement:o,balloonClassName:r})}else Object(Lt.c)("widget-toolbar-no-items",{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,i=null,a=o(this._toolbarDefinitions.values());try{for(a.s();!(e=a.n()).done;){var r=e.value,s=r.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&s)if(this.editor.ui.focusTracker.isFocused){var l=s.getAncestors().length;l>t&&(t=l,n=s,i=r)}else this._isToolbarVisible(r)&&this._hideToolbar(r);else this._isToolbarInBalloon(r)&&this._hideToolbar(r)}}catch(c){a.e(c)}finally{a.f()}i&&this._showToolbar(i,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?bf(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:_f(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=o(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var i=e.value;if(n._isToolbarVisible(i)){var a=i.getRelatedElement(n.editor.editing.view.document.selection);bf(n.editor,a)}}}catch(r){t.e(r)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[_h]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}])}(nc);function bf(e,t){var n=e.plugins.get("ContextualBalloon"),i=_f(e,t);n.updatePosition(i)}function _f(e,t){var n=ju.defaultPositions;return{target:e.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,Ku]}}var kf=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e]))._childCommands=[],n}return p(t,e),d(t,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._getFirstEnabledCommand().execute(t)}},{key:"registerChildCommand",value:function(e){var t=this;this._childCommands.push(e),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(e){return e.isEnabled}))}}])}(cc),Cf=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor;e.commands.add("indent",new kf(e)),e.commands.add("outdent",new kf(e))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}])}(nc),wf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',xf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',Mf=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?wf:xf,o="ltr"==t.uiLanguageDirection?xf:wf;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),o)}},{key:"_defineButton",value:function(e,t,n){var i=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var r=o.commands.get(e),s=new zl(a);return s.set({label:t,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.listenTo(s,"execute",(function(){o.execute(e),o.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}])}(nc),Sf=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).domEventType="click",n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}])}(Eo);l(78);var Pf=function(e){function n(e,t){var i;c(this,n),i=f(this,n,[e]);var o=e.t;i.focusTracker=new Hs,i.keystrokes=new As,i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),gh,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(o("Cancel"),vh,"ck-button-cancel","cancel"),i._manualDecoratorSwitches=i._createManualDecoratorSwitches(t),i.children=i._createFormChildren(t.manualDecorators),i._focusables=new Qs,i._focusCycler=new Sl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var a=["ck","ck-link-form","ck-responsive-form"];return t.manualDecorators.length&&a.push("ck-link-form_layout-vertical","ck-vertical-form"),i.setTemplate({tag:"form",attributes:{class:a,tabindex:"-1"},children:i.children}),mh(i),i}return p(n,e),d(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(e,t){return e[t.name]=t.isOn,e}),{})}},{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),ph({view:this}),[this.urlInputView].concat(r(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var e=this.locale.t,t=new dh(this.locale,fh);return t.label=e("Link URL"),t}},{key:"_createButton",value:function(e,t,n,i){var o=new zl(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,i=this.createCollection(),a=o(e.manualDecorators);try{var r=function(){var o=t.value,a=new Wl(n.locale);a.set({name:o.id,label:o.label,withText:!0}),a.bind("isOn").toMany([o,e],"value",(function(e,t){return void 0===t&&void 0===e?o.defaultValue:e})),a.on("execute",(function(){o.set("value",!a.isOn)})),i.add(a)};for(a.s();!(t=a.n()).done;)r()}catch(s){a.e(s)}finally{a.f()}return i}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new gl;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}])}(gl);l(80);var Tf=function(e){function n(e){var t;c(this,n),t=f(this,n,[e]);var i=e.t;return t.focusTracker=new Hs,t.keystrokes=new As,t.previewButtonView=t._createPreviewButton(),t.unlinkButtonView=t._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),t.editButtonView=t._createButton(i("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),t.set("href"),t._focusables=new Qs,t._focusCycler=new Sl({focusables:t._focusables,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),t.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[t.previewButtonView,t.editButtonView,t.unlinkButtonView]}),t}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var i=new zl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.delegate("execute").to(this,n),i}},{key:"_createPreviewButton",value:function(){var e=new zl(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&Ad(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}])}(gl),Of=function(e){function n(){return c(this,n),f(this,n,arguments)}return p(n,e),d(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(Sf),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(_h),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:"link-ui",view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:"link-ui",view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){t(_(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new Tf(t.locale),i=t.commands.get("link"),o=t.commands.get("unlink");return n.bind("href").to(i,"value"),n.editButtonView.bind("isEnabled").to(i),n.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set("Ctrl+K",(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),i=t.config.get("link.defaultProtocol"),o=new Pf(t.locale,n);return o.urlInputView.fieldView.bind("value").to(n,"value"),o.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),o.saveButtonView.bind("isEnabled").to(n),this.listenTo(o,"submit",(function(){var n=Bd(o.urlInputView.fieldView.element.value,i);t.execute("link",n,o.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(o,"cancel",(function(){e._closeFormView()})),o.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),o}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),i=t.t;t.keystrokes.set("Ctrl+K",(function(t,i){i(),n.isEnabled&&e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var o=new zl(t);return o.isEnabled=!0,o.label=i("Link"),o.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',o.keystroke="Ctrl+K",o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(o,"execute",(function(){return e._showUI(!0)})),o}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this;this.listenTo(this.editor.editing.view.document,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Jl({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,i=this._getSelectedLinkElement(),o=r(),a=function(){var t=e._getSelectedLinkElement(),n=r();i&&!t||!i&&n!==o?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),i=t,o=n};function r(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",a),this.listenTo(this._balloon,"change:visibleView",a)}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=e.document,n=null;if(this.editor.model.markers.has("link-ui")){var i=Array.from(this.editor.editing.mapper.markerNameToElements("link-ui")),o=e.createRange(e.createPositionBefore(i[0]),e.createPositionAfter(i[i.length-1]));n=e.domConverter.viewRangeToDom(o)}else{var a=this._getSelectedLinkElement(),r=t.selection.getFirstRange();n=a?e.domConverter.mapViewToDom(a):e.domConverter.viewRangeToDom(r)}return{target:n}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return Lf(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),i=Lf(n.start),o=Lf(n.end);return i&&i==o&&e.createRangeIn(i).getTrimmed().isEqual(n)?i:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){var n=e.document.selection.getFirstRange();if(e.markers.has("link-ui"))t.updateMarker("link-ui",{range:n});else if(n.start.isAtEnd){var i=function e(t,n,i){var o=i.createPositionFromPath(t.start.root,[t.start.path[0]+1,0],"toNext"),a=i.createRange(o,t.end);return a.start.path[0]>t.end.path[0]?i.createRange(n):o.isAtStart&&o.isAtEnd?e(a,n,i):a}(n,e.document.selection.focus,t);t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:i})}else t.addMarker("link-ui",{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has("link-ui")&&e.change((function(e){e.removeMarker("link-ui")}))}}],[{key:"requires",get:function(){return[_h]}},{key:"pluginName",get:function(){return"LinkUI"}}])}(nc);function Lf(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}function Df(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,i){return i.is("$text")||i.is("$textProxy")?e+i.data:(n=t.createPositionAfter(i),"")}),""),range:t.createRange(n,e.end)}}var If=function(){return d((function e(t,n){var i=this;c(this,e),this.model=t,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){i.isEnabled?i._startListening():(i.stopListening(t.document.selection),i.stopListening(t.document))})),this._startListening()}),[{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,i){i.directChange&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e.hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){"transparent"!=n.type&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,i=n.document.selection,o=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),a=Df(o,n),r=a.text,s=a.range,l=this.testCallback(r);if(!l&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!l,l){var c=Object.assign(t,{text:r,range:s});"object"==typeof l&&Object.assign(c,l),this.fire("matched:"+e,c)}}}])}();Vt(If,Yn);var Ff=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),Af=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new If(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=Ef(e.substr(0,e.length-1));return t?{url:t}:void 0}})),i=t.plugins.get("Input");n.on("matched:data",(function(n,o){var a=o.batch,r=o.range,s=o.url;if(i.isInput(a)){var l=r.end.getShiftedBy(-1),c=l.getShiftedBy(-s.length),u=t.model.createRange(c,l);e._applyAutoLink(s,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,i=t.commands.get("enter");i&&i.on("execute",(function(){var t=n.document.selection.getFirstPosition();if(t.parent.previousSibling){var i=n.createRangeIn(t.parent.previousSibling);e._checkAndApplyAutoLinkOnRange(i)}}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,i=t.commands.get("shiftEnter");i&&i.on("execute",(function(){var t=n.document.selection.getFirstPosition(),i=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(i)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=Df(e,t),i=n.text,o=n.range,a=Ef(i);if(a){var r=t.createRange(o.end.getShiftedBy(-a.length),o.end);this._applyAutoLink(a,r)}}},{key:"_applyAutoLink",value:function(e,t){var n=this,i=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,i)&&i.enqueueChange((function(i){var o=n.editor.config.get("link.defaultProtocol"),a=Bd(e,o);i.setAttribute("linkHref",a,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}])}(nc);function Ef(e){var t=Ff.exec(e);return t?t[2]:null}var Bf=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).type=n,i}return p(t,e),d(t,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Array.from(t.document.selection.getSelectedBlocks()).filter((function(e){return Rf(e,t.schema)})),i=!0===this.value;t.change((function(t){if(i){for(var a=n[n.length-1].nextSibling,r=Number.POSITIVE_INFINITY,s=[];a&&"listItem"==a.name&&0!==a.getAttribute("listIndent");){var l=a.getAttribute("listIndent");l<r&&(r=l),s.push({element:a,listIndent:l-r}),a=a.nextSibling}var c,u=o(s=s.reverse());try{for(u.s();!(c=u.n()).done;){var d=c.value;t.setAttribute("listIndent",d.listIndent,d.element)}}catch(b){u.e(b)}finally{u.f()}}if(!i){var h,f=Number.POSITIVE_INFINITY,m=o(n);try{for(m.s();!(h=m.n()).done;){var p=h.value;p.is("element","listItem")&&p.getAttribute("listIndent")<f&&(f=p.getAttribute("listIndent"))}}catch(b){m.e(b)}finally{m.f()}Nf(n,!0,f=0===f?1:f),Nf(n,!1,f)}var g,v=o(n.reverse());try{for(v.s();!(g=v.n()).done;){var y=g.value;i&&"listItem"==y.name?t.rename(y,"paragraph"):i||"listItem"==y.name?i||"listItem"!=y.name||y.getAttribute("listType")==e.type||t.setAttribute("listType",e.type,y):(t.setAttributes({listType:e.type,listIndent:0},y),t.rename(y,"listItem"))}}catch(b){v.e(b)}finally{v.f()}e.fire("_executeCleanup",n)}))}},{key:"_getValue",value:function(){var e=pu(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.schema,t=pu(this.editor.model.document.selection.getSelectedBlocks());return!!t&&Rf(t,e)}}])}(cc);function Nf(e,t,n){var i=t?e[0]:e[e.length-1];if(i.is("element","listItem"))for(var o=i[t?"previousSibling":"nextSibling"],a=i.getAttribute("listIndent");o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=n;)a>o.getAttribute("listIndent")&&(a=o.getAttribute("listIndent")),o.getAttribute("listIndent")==a&&e[t?"unshift":"push"](o),o=o[t?"previousSibling":"nextSibling"]}function Rf(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var jf=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e]))._indentBy="forward"==n?1:-1,i}return p(t,e),d(t,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Array.from(t.document.selection.getSelectedBlocks());t.change((function(t){for(var i=n[n.length-1],a=i.nextSibling;a&&"listItem"==a.name&&a.getAttribute("listIndent")>i.getAttribute("listIndent");)n.push(a),a=a.nextSibling;e._indentBy<0&&(n=n.reverse());var r,s=o(n);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=l.getAttribute("listIndent")+e._indentBy;c<0?t.rename(l,"paragraph"):t.setAttribute("listIndent",c,l)}}catch(u){s.e(u)}finally{s.f()}e.fire("_executeCleanup",n)}))}},{key:"_checkEnabled",value:function(){var e=pu(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),i=e.previousSibling;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=t;){if(i.getAttribute("listIndent")==t)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}])}(cc);function zf(e,t,n,i){var a=t.parent,r=n.mapper,s=n.writer,l=r.toViewPosition(i.createPositionBefore(e)),c=Yf(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),u=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){var d=r.toViewElement(c);l=s.breakContainer(s.createPositionAfter(d))}else if(u&&"listItem"==u.name){l=r.toViewPosition(i.createPositionAt(u,"end"));var h=r.findMappedViewAncestor(l),f=function(e){var t,n=o(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name)return i}}catch(a){n.e(a)}finally{n.f()}return null}(h);l=f?s.createPositionBefore(f):s.createPositionAt(h,"end")}else l=r.toViewPosition(i.createPositionBefore(e));if(l=Hf(l),s.insert(l,a),u&&"listItem"==u.name){var m,p=r.toViewElement(u),g=s.createRange(s.createPositionAt(p,0),l).getWalker({ignoreElementEnd:!0}),v=o(g);try{for(v.s();!(m=v.n()).done;){var y=m.value;if(y.item.is("element","li")){var b=s.breakContainer(s.createPositionBefore(y.item)),_=y.item.parent,k=s.createPositionAt(t,"end");Vf(s,k.nodeBefore,k.nodeAfter),s.move(s.createRangeOn(_),k),g.position=b}}}catch(T){v.e(T)}finally{v.f()}}else{var C=a.nextSibling;if(C&&(C.is("element","ul")||C.is("element","ol"))){var w,x=null,M=o(C.getChildren());try{for(M.s();!(w=M.n()).done;){var S=w.value,P=r.toModelElement(S);if(!(P&&P.getAttribute("listIndent")>e.getAttribute("listIndent")))break;x=S}}catch(T){M.e(T)}finally{M.f()}x&&(s.breakContainer(s.createPositionAfter(x)),s.move(s.createRangeOn(x.parent),s.createPositionAt(t,"end")))}}Vf(s,a,a.nextSibling),Vf(s,a.previousSibling,a)}function Vf(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function Hf(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function Yf(e,t){for(var n=!!t.sameIndent,i=!!t.smallerIndent,o=t.listIndent,a=e;a&&"listItem"==a.name;){var r=a.getAttribute("listIndent");if(n&&o==r||i&&o>r)return a;a="forward"===t.direction?a.nextSibling:a.previousSibling}return null}function qf(e,t,n,i){e.ui.componentFactory.add(t,(function(o){var a=e.commands.get(t),r=new zl(o);return r.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(a,"value","isEnabled"),r.on("execute",(function(){e.execute(t),e.editing.view.focus()})),r}))}function Uf(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:Nn.call(this)}function Wf(e){return function(t,n,i){var o=i.consumable;if(o.test(n.item,"insert")&&o.test(n.item,"attribute:listType")&&o.test(n.item,"attribute:listIndent")){o.consume(n.item,"insert"),o.consume(n.item,"attribute:listType"),o.consume(n.item,"attribute:listIndent");var a=n.item;zf(a,function(e,t){var n=t.mapper,i=t.writer,o="numbered"==e.getAttribute("listType")?"ol":"ul",a=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=Uf,t}(i),r=i.createContainerElement(o,null);return i.insert(i.createPositionAt(r,0),a),n.bindElements(e,a),a}(a,i),i,e)}}}function Jf(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var i=n.mapper.toViewElement(t.item),o=n.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i)),o.rename("numbered"==t.attributeNewValue?"ol":"ul",i.parent)}}function Gf(e,t,n){var i=n.mapper.toViewElement(t.item).parent,a=n.writer;Vf(a,i,i.nextSibling),Vf(a,i.previousSibling,i);var r,s=o(t.item.getChildren());try{for(s.s();!(r=s.n()).done;){var l=r.value;n.consumable.consume(l,"insert")}}catch(c){s.e(c)}finally{s.f()}}function $f(e,t,n){if("listItem"!=t.item.name){for(var i=n.mapper.toViewPosition(t.range.start),o=n.writer,a=[];("ul"==i.parent.name||"ol"==i.parent.name)&&"li"==(i=o.breakContainer(i)).parent.name;){var r=i,s=o.createPositionAt(i.parent,"end");if(!r.isEqual(s)){var l=o.remove(o.createRange(r,s));a.push(l)}i=o.createPositionAfter(i.parent)}if(a.length>0){for(var c=0;c<a.length;c++){var u=i.nodeBefore;if(i=o.insert(i,a[c]).end,c>0){var d=Vf(o,u,u.nextSibling);d&&d.parent==u&&i.offset--}}Vf(o,i.nodeBefore,i.nodeAfter)}}}function Qf(e,t,n){var i=n.mapper.toViewPosition(t.position);Vf(n.writer,i.nodeBefore,i.nodeAfter)}function Kf(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var i=n.writer,a=i.createElement("listItem"),r=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var i=n.previousSibling;i&&i.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);if(i.setAttribute("listIndent",r,a),i.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",a),!n.safeInsert(a,t.modelCursor))return;var s=function(e,t,n){var i,a=n.writer,r=n.schema,s=a.createPositionAfter(e),l=o(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;if("ul"==c.name||"ol"==c.name)s=n.convertItem(c,s).modelCursor;else{var u=n.convertItem(c,a.createPositionAt(e,"end")),d=u.modelRange.start.nodeAfter;d&&d.is("element")&&!r.checkChild(e,d.name)&&(e=u.modelCursor.parent.is("element","listItem")?u.modelCursor.parent:nm(u.modelCursor),s=a.createPositionAfter(e))}}}catch(h){l.e(h)}finally{l.f()}return s}(a,t.viewItem.getChildren(),n);t.modelRange=i.createRange(t.modelCursor,s),n.updateConversionResult(a,t)}}function Zf(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var i=0,o=Array.from(t.viewItem.getChildren());i<o.length;i++){var a=o[i];!a.is("element","li")&&!om(a)&&a._remove()}}function Xf(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;var i,a=!1,s=!0,l=o(r(t.viewItem.getChildren()));try{for(l.s();!(i=l.n()).done;){var c=i.value;a&&!om(c)&&c._remove(),c.is("$text")?(s&&(c._data=c.data.replace(/^\s+/,"")),c.nextSibling&&!om(c.nextSibling)||(c._data=c.data.replace(/\s+$/,""))):om(c)&&(a=!0),s=!1}}catch(u){l.e(u)}finally{l.f()}}}function em(e){return function(t,n){if(!n.isPhantom){var i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){var a,r=n.mapper.toViewElement(i),s=r.getAncestors().find(om),l=o(e.createPositionAt(r,0).getWalker());try{for(l.s();!(a=l.n()).done;){var c=a.value;if("elementStart"==c.type&&c.item.is("element","li")){n.viewPosition=c.previousPosition;break}if("elementEnd"==c.type&&c.item==s){n.viewPosition=c.nextPosition;break}}}catch(u){l.e(u)}finally{l.f()}}}}}function tm(e,t){var n,o=i(t,2),a=o[0],r=o[1],s=a.is("documentFragment")?a.getChild(0):a;if(n=r?this.createSelection(r):this.document.selection,s&&s.is("element","listItem")){var l=n.getFirstPosition(),c=null;if(l.parent.is("element","listItem")?c=l.parent:l.nodeBefore&&l.nodeBefore.is("element","listItem")&&(c=l.nodeBefore),c){var u=c.getAttribute("listIndent");if(u>0)for(;s&&s.is("element","listItem");)s._setAttribute("listIndent",s.getAttribute("listIndent")+u),s=s.nextSibling}}}function nm(e){var t,n=new _a({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function im(e,t,n,i,o,a){var s,l=Yf(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),c=o.mapper,u=o.writer,d=l?l.getAttribute("listIndent"):null;if(l)if(d==e){var h=c.toViewElement(l).parent;s=u.createPositionAfter(h)}else{var f=a.createPositionAt(l,"end");s=c.toViewPosition(f)}else s=n;s=Hf(s);for(var m=0,p=r(i.getChildren());m<p.length;m++){var g=p[m];om(g)&&(s=u.move(u.createRangeOn(g),s).end,Vf(u,g,g.nextSibling),Vf(u,g.previousSibling,g))}}function om(e){return e.is("element","ol")||e.is("element","ul")}var am=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,i=t.data,a=t.editing;t.model.document.registerPostFixer((function(e){return function(e,t){var n,i=e.document.differ.getChanges(),a=new Map,r=!1,s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("insert"==l.type&&"listItem"==l.name)p(l.position);else if("insert"==l.type&&"listItem"!=l.name){if("$text"!=l.name){var c=l.position.nodeAfter;c.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",c),r=!0),c.hasAttribute("listType")&&(t.removeAttribute("listType",c),r=!0),c.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",c),r=!0);var u,d=o(Array.from(e.createRangeIn(c)).filter((function(e){return e.item.is("element","listItem")})));try{for(d.s();!(u=d.n()).done;){p(u.value.previousPosition)}}catch(y){d.e(y)}finally{d.f()}}p(l.position.getShiftedBy(l.length))}else"remove"==l.type&&"listItem"==l.name?p(l.position):("attribute"==l.type&&"listIndent"==l.attributeKey||"attribute"==l.type&&"listType"==l.attributeKey)&&p(l.range.start)}}catch(y){s.e(y)}finally{s.f()}var h,f=o(a.values());try{for(f.s();!(h=f.n()).done;){var m=h.value;g(m),v(m)}}catch(y){f.e(y)}finally{f.f()}return r;function p(e){var t=e.nodeBefore;if(t&&t.is("element","listItem")){var n=t;if(a.has(n))return;for(var i=n.previousSibling;i&&i.is("element","listItem");i=n.previousSibling)if(n=i,a.has(n))return;a.set(t,n)}else{var o=e.nodeAfter;o&&o.is("element","listItem")&&a.set(o,o)}}function g(e){for(var n=0,i=null;e&&e.is("element","listItem");){var o=e.getAttribute("listIndent");if(o>n){var a=void 0;null===i?(i=o-n,a=n):(i>o&&(i=o),a=o-i),t.setAttribute("listIndent",a,e),r=!0}else i=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function v(e){for(var n=[],i=null;e&&e.is("element","listItem");){var o=e.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>o&&(n=n.slice(0,o+1)),0!=o)if(n[o]){var a=n[o];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),r=!0)}else n[o]=e.getAttribute("listType");i=e,e=e.nextSibling}}}(t.model,e)})),a.mapper.registerViewToModelLength("li",rm),i.mapper.registerViewToModelLength("li",rm),a.mapper.on("modelToViewPosition",em(a.view)),a.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var i=t.viewPosition,o=i.parent,a=t.mapper;if("ul"==o.name||"ol"==o.name){if(i.isAtEnd){var r=a.toModelElement(i.nodeBefore),s=a.getModelLength(i.nodeBefore);t.modelPosition=n.createPositionBefore(r).getShiftedBy(s)}else{var l=a.toModelElement(i.nodeAfter);t.modelPosition=n.createPositionBefore(l)}e.stop()}else if("li"==o.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){for(var c=a.toModelElement(o),u=1,d=i.nodeBefore;d&&om(d);)u+=a.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(c).getShiftedBy(u),e.stop()}})),i.mapper.on("modelToViewPosition",em(a.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",$f,{priority:"high"}),e.on("insert:listItem",Wf(t.model)),e.on("attribute:listType:listItem",Jf,{priority:"high"}),e.on("attribute:listType:listItem",Gf,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,i){if(i.consumable.consume(n.item,"attribute:listIndent")){var a=i.mapper.toViewElement(n.item),r=i.writer;r.breakContainer(r.createPositionBefore(a)),r.breakContainer(r.createPositionAfter(a));var s=a.parent,l=s.previousSibling,c=r.createRangeOn(s);r.remove(c),l&&l.nextSibling&&Vf(r,l,l.nextSibling),im(n.attributeOldValue+1,n.range.start,c.start,a,i,e),zf(n.item,a,i,e);var u,d=o(n.item.getChildren());try{for(d.s();!(u=d.n()).done;){var h=u.value;i.consumable.consume(h,"insert")}}catch(f){d.e(f)}finally{d.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,i){var a=i.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,r=i.writer;r.breakContainer(r.createPositionBefore(a)),r.breakContainer(r.createPositionAfter(a));var s=a.parent,l=s.previousSibling,c=r.createRangeOn(s),u=r.remove(c);l&&l.nextSibling&&Vf(r,l,l.nextSibling),im(i.mapper.toModelElement(a).getAttribute("listIndent")+1,n.position,c.start,a,i,e);var d,h=o(r.createRangeIn(u).getItems());try{for(h.s();!(d=h.n()).done;){var f=d.value;i.mapper.unbindViewElement(f)}}catch(m){h.e(m)}finally{h.f()}t.stop()}}(t.model)),e.on("remove",Qf,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",$f,{priority:"high"}),e.on("insert:listItem",Wf(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",Zf,{priority:"high"}),e.on("element:ol",Zf,{priority:"high"}),e.on("element:li",Xf,{priority:"high"}),e.on("element:li",Kf)})),t.model.on("insertContent",tm,{priority:"high"}),t.commands.add("numberedList",new Bf(t,"numbered")),t.commands.add("bulletedList",new Bf(t,"bulleted")),t.commands.add("indentList",new jf(t,"forward")),t.commands.add("outdentList",new jf(t,"backward"));var r=a.view.document;this.listenTo(r,"enter",(function(t,n){var i=e.editor.model.document,o=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())})),this.listenTo(r,"delete",(function(t,n){if("backward"===n.direction){var i=e.editor.model.document.selection;if(i.isCollapsed){var o=i.getFirstPosition();if(o.isAtStart){var a=o.parent;"listItem"===a.name&&(a.previousSibling&&"listItem"===a.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{priority:"high"});var s=function(t){return function(n,i){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),i())}};t.keystrokes.set("Tab",s("indentList")),t.keystrokes.set("Shift+Tab",s("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[Wh]}}])}(nc);function rm(e){var t,n=1,i=o(e.getChildren());try{for(i.s();!(t=i.n()).done;){var a=t.value;if("ul"==a.name||"ol"==a.name){var r,s=o(a.getChildren());try{for(s.s();!(r=s.n()).done;){n+=rm(r.value)}}catch(l){s.e(l)}finally{s.f()}}}}catch(l){i.e(l)}finally{i.f()}return n}var sm=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor.t;qf(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),qf(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}])}(nc);function lm(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,i,o){if(o.consumable.consume(i.item,n.name)){var a=i.attributeNewValue,s=o.writer,l=o.mapper.toViewElement(i.item),c=r(l.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));s.remove(c);var u=e.getMediaViewElement(s,a,t);s.insert(s.createPositionAt(l,0),u)}}}function cm(e,t,n,i){var o=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(o,0),t.getMediaViewElement(e,n,i)),o}function um(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function dm(e,t,n){e.change((function(i){var o=i.createElement("media",{url:t});e.insertContent(o,n),i.setSelection(o,"on")}))}var hm=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,i=Qu(t,e),o=um(t),a=i.parent;a.isEmpty&&!e.schema.isLimit(a)&&(a=a.parent),this.value=o?o.getAttribute("url"):null,this.isEnabled=n.checkChild(a,"media")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,i=um(n);if(i)t.change((function(t){t.setAttribute("url",e,i)}));else{var o=Qu(n,t);dm(t,e,o)}}}])}(cc),fm=function(){return d((function e(t,n){c(this,e);var i=n.providers,o=n.extraProviders||[],a=new Set(n.removeProviders),r=i.concat(o).filter((function(e){var t=e.name;return t?!a.has(t):(Object(Lt.c)("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=t,this.providerDefinitions=r}),[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new mm(this.locale);e=e.trim();var t,n=o(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var i,a=t.value,r=a.html,s=o(qt(a.url));try{for(s.s();!(i=s.n()).done;){var l=i.value,c=this._getUrlMatches(e,l);if(c)return new mm(this.locale,e,c,r)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){n.e(u)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var i=e.replace(/^https?:\/\//,"");return(n=i.match(t))||((n=(i=i.replace(/^www\./,"")).match(t))||null)}}])}(),mm=function(){return d((function e(t,n,i,o){c(this,e),this.url=this._getValidUrl(n),this._t=t.t,this._match=i,this._previewRenderer=o}),[{key:"getViewElement",value:function(e,t){var n,i={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(i["data-oembed-url"]=this.url),t.renderForEditingView&&(i.class="ck-media__wrapper");var o=this._getPreviewHtml(t);n=e.createRawElement("div",i,(function(e){e.innerHTML=o}))}else this.url&&(i.url=this.url),n=e.createEmptyElement("oembed",i);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new jl,t=new Rl;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Ks({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}])}();l(82);var pm=function(e){function t(e){var n;return c(this,t),n=f(this,t,[e]),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),n.registry=new fm(e.locale,e.config.get("mediaEmbed")),n}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion,o=e.config.get("mediaEmbed.previewsInData"),a=this.registry;e.commands.add("mediaEmbed",new hm(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),i.for("dataDowncast").elementToElement({model:"media",view:function(e,t){var n=t.writer,i=e.getAttribute("url");return cm(n,a,i,{renderMediaPreview:i&&o})}}),i.for("dataDowncast").add(lm(a,{renderMediaPreview:o})),i.for("editingDowncast").elementToElement({model:"media",view:function(e,t){var i=t.writer,o=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),Wu(e,t,{label:n})}(cm(i,a,o,{renderForEditingView:!0}),i,n("media widget"))}}),i.for("editingDowncast").add(lm(a,{renderForEditingView:!0})),i.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(e,t){var n=t.writer,i=e.getAttribute("url");if(a.hasMedia(i))return n.createElement("media",{url:i})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,i=e.getAttribute("data-oembed-url");if(a.hasMedia(i))return n.createElement("media",{url:i})}})}}],[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}])}(nc),gm=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=%]+$/,vm=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e]))._timeoutId=null,n._positionToInsert=null,n}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get(lc),"inputTransformation",(function(){var t=n.selection.getFirstRange(),i=ys.fromPosition(t.start);i.stickiness="toPrevious";var o=ys.fromPosition(t.end);o.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(i,o),i.detach(),o.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(ro.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,i=this,a=this.editor,r=a.plugins.get(pm).registry,s=new ja(e,t),l=s.getWalker({ignoreElementEnd:!0}),c="",u=o(l);try{for(u.s();!(n=u.n()).done;){var d=n.value;d.item.is("$textProxy")&&(c+=d.item.data)}}catch(h){u.e(h)}finally{u.f()}(c=c.trim()).match(gm)&&r.hasMedia(c)&&a.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=ys.fromPosition(e),this._timeoutId=ro.window.setTimeout((function(){a.model.change((function(e){var t;i._timeoutId=null,e.remove(s),s.detach(),"$graveyard"!==i._positionToInsert.root.rootName&&(t=i._positionToInsert),dm(a.model,c,t),i._positionToInsert.detach(),i._positionToInsert=null}))}),100)):s.detach()}}],[{key:"requires",get:function(){return[lc,su]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}])}(nc);l(84);var ym=function(e){function n(e,t){var i;c(this,n),i=f(this,n,[t]);var o=t.t;return i.focusTracker=new Hs,i.keystrokes=new As,i.set("mediaURLInputValue",""),i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),gh,"ck-button-save"),i.saveButtonView.type="submit",i.saveButtonView.bind("isEnabled").to(i,"mediaURLInputValue",(function(e){return!!e})),i.cancelButtonView=i._createButton(o("Cancel"),vh,"ck-button-cancel","cancel"),i._focusables=new Qs,i._focusCycler=new Sl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=e,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),mh(i),i}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),ph({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var i=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",i),this.keystrokes.set("arrowleft",i),this.keystrokes.set("arrowup",i),this.keystrokes.set("arrowdown",i),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=o(this._validators);try{for(t.s();!(e=t.n()).done;){var n=(0,e.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(i){t.e(i)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new dh(this.locale,fh),i=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,i.on("input",(function(){n.infoText=i.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault,e.mediaURLInputValue=i.element.value.trim()})),n}},{key:"_createButton",value:function(e,t,n,i){var o=new zl(this.locale);return o.set({label:e,icon:t,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}}])}(gl),bm=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),i=t.plugins.get(pm).registry;t.ui.componentFactory.add("mediaEmbed",(function(o){var a=Gl(o),r=new ym(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,i),t.locale);return e._setUpDropdown(a,r,n,t),e._setUpForm(a,r,n),a}))}},{key:"_setUpDropdown",value:function(e,t,n){var i=this.editor,o=i.t,a=e.buttonView;function r(){i.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),a.set({label:o("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),a.on("open",(function(){t.disableCssTransitions(),t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus(),t.enableCssTransitions()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(i.execute("mediaEmbed",t.url),r())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){return r()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e}))}}],[{key:"requires",get:function(){return[pm]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}])}(nc);function _m(e){switch(e){case"arabic-leading-zero":return"decimal-leading-zero";case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return e;default:return null}}function km(e,t,n){var i=t.parent,o=n.createElement(e.type),a=i.getChildIndex(t)+1;return n.insertChild(a,o,i),e.style&&n.setStyle("list-style-type",e.style,o),o}function Cm(e){var t={},n=e.getStyle("mso-list");if(n){var i=n.match(/(^|\s+)l(\d+)/i),o=n.match(/\s*lfo(\d+)/i),a=n.match(/\s*level(\d+)/i);i&&o&&a&&(t.id=i[2],t.order=o[1],t.indent=a[1])}return t}l(86);var wm=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,xm=function(){return d((function e(t){c(this,e),this.document=t}),[{key:"isActive",value:function(e){return wm.test(e)}},{key:"execute",value:function(e){var t=new Nh(this.document);!function(e,t){var n,i=o(e.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.is("element","b")&&"normal"===a.getStyle("font-weight")){var r=e.getChildIndex(a);t.remove(a),t.insertChild(r,a.getChildren(),e)}}}catch(s){i.e(s)}finally{i.f()}}(e.content,t),function(e,t){var n,i=o(t.createRangeIn(e));try{for(i.s();!(n=i.n()).done;){var a=n.value.item;if(a.is("element","li")){var r=a.getChild(0);r&&r.is("element","p")&&t.unwrapElement(r)}}}catch(s){i.e(s)}finally{i.f()}}(e.content,t)}}])}();function Mm(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1===t.length?" ":Array(t.length+1).join("\xa0 ").substr(0,t.length)}))}var Sm=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Pm=/xmlns:o="urn:schemas-microsoft-com/i,Tm=function(){return d((function e(t){c(this,e),this.document=t}),[{key:"isActive",value:function(e){return Sm.test(e)||Pm.test(e)}},{key:"execute",value:function(e){var t=function(e,t){var n=new DOMParser,i=function(e){return Mm(Mm(e)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[\s]*?)[\r\n]+(\s*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g,"\xa0</").replace(/ <o:p><\/o:p>/g,"\xa0<o:p></o:p>").replace(/<o:p>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>(\s*[\r\n]\s*)</g,"><")}(function(e){var t=e.match(/<\/body>(.*?)(<\/html>|$)/);return t&&t[1]&&(e=e.slice(0,t.index)+e.slice(t.index).replace(t[1],"")),e}(e=e.replace(/<!--\[if gte vml 1]>/g,""))),o=n.parseFromString(i,"text/html");!function(e){e.querySelectorAll("span[style*=spacerun]").forEach((function(e){var t=e.innerText.length||0;e.innerHTML=Array(t+1).join("\xa0 ").substr(0,t)}))}(o);var a=o.body.innerHTML,r=function(e,t){for(var n=new ai(t),i=new uo(n,{blockFillerMode:"nbsp"}),o=e.createDocumentFragment(),a=e.body.childNodes;a.length>0;)o.appendChild(a[0]);return i.domToView(o)}(o,t),s=function(e){for(var t=[],n=[],i=0,o=Array.from(e.getElementsByTagName("style"));i<o.length;i++){var a=o[i];a.sheet&&a.sheet.cssRules&&a.sheet.cssRules.length&&(t.push(a.sheet),n.push(a.innerHTML))}return{styles:t,stylesString:n.join(" ")}}(o);return{body:r,bodyString:a,styles:s.styles,stylesString:s.stylesString}}(e.dataTransfer.getData("text/html"),this.document.stylesProcessor),n=t.body;(function(e,t){if(e.childCount){var n=new Nh(e.document),i=function(e,t){var n,i=t.createRangeIn(e),a=new tn({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),r=[],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;if("elementStart"===l.type&&a.match(l.item)){var c=Cm(l.item);r.push({element:l.item,id:c.id,order:c.order,indent:c.indent})}}}catch(u){s.e(u)}finally{s.f()}return r}(e,n);if(i.length){var a=null,r=1;i.forEach((function(e,s){var l,c,u=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;var n,i=t.element.previousSibling;return!i||!((n=i).is("element","ol")||n.is("element","ul"))}(i[s-1],e),d=(c=e,(l=u?null:i[s-1])?c.indent-l.indent:c.indent-1);if(u&&(a=null,r=1),!a||0!==d){var h=function(e,t){var n=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi").exec(t),i="decimal",o="ol";if(n&&n[1]){var a=/mso-level-number-format:([^;]*);/gi.exec(n[1]);if(a&&a[1]&&(o="bullet"!==(i=a[1].trim())&&"image"!==i?"ol":"ul"),"bullet"===i){var r=function(e){var t=function(e){if(e.getChild(0).is("$text"))return null;var t=e.getChild(0).getChild(0);return t.is("$text")?t:t.getChild(0)}(e);if(!t)return null;var n=t._data;return"o"===n?"circle":"\xb7"===n?"disc":"\xa7"===n?"square":null}(e.element);r&&(i=r)}}return{type:o,style:_m(i)}}(e,t);if(a)if(e.indent>r){var f=a.getChild(a.childCount-1),m=f.getChild(f.childCount-1);a=km(h,m,n),r+=1}else e.indent<r&&(a=function(e,t){var n,i=null,a=0,r=o(e.getAncestors({parentFirst:!0}));try{for(r.s();!(n=r.n()).done;){var s=n.value;if("ul"!==s.name&&"ol"!==s.name||a++,a===t){i=s;break}}}catch(l){r.e(l)}finally{r.f()}return i}(a,r-e.indent),r=parseInt(e.indent));else a=km(h,e.element,n);e.indent<=r&&(a.is("element",h.type)||(a=n.rename(h.type,a)))}var p=function(e,t){return function(e,t){var n,i=new tn({name:"span",styles:{"mso-list":"Ignore"}}),a=o(t.createRangeIn(e));try{for(a.s();!(n=a.n()).done;){var r=n.value;"elementStart"===r.type&&i.match(r.item)&&t.remove(r.item)}}catch(s){a.e(s)}finally{a.f()}}(e,t),t.rename("li",e)}(e.element,n);n.appendChild(p,a)}))}}})(n,t.stylesString),function(e,t){if(e.childCount){var n=new Nh;!function(e,t,n){var i,a=n.createRangeIn(t),r=new tn({name:"img"}),s=[],l=o(a);try{for(l.s();!(i=l.n()).done;){var c=i.value;if(r.match(c.item)){var u=c.item,d=u.getAttribute("v:shapes")?u.getAttribute("v:shapes").split(" "):[];d.length&&d.every((function(t){return e.indexOf(t)>-1}))?s.push(u):u.getAttribute("src")||s.push(u)}}}catch(p){l.e(p)}finally{l.f()}for(var h=0,f=s;h<f.length;h++){var m=f[h];n.remove(m)}}(function(e,t){var n,i=t.createRangeIn(e),a=new tn({name:/v:(.+)/}),r=[],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=l.item,u=c.previousSibling&&c.previousSibling.name||null;a.match(c)&&c.getAttribute("o:gfxdata")&&"v:shapetype"!==u&&r.push(l.item.getAttribute("id"))}}catch(d){s.e(d)}finally{s.f()}return r}(e,n),e,n),function(e,t){var n,i=t.createRangeIn(e),a=new tn({name:/v:(.+)/}),r=[],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;a.match(l.item)&&r.push(l.item)}}catch(h){s.e(h)}finally{s.f()}for(var c=0,u=r;c<u.length;c++){var d=u[c];t.remove(d)}}(e,n);var i=function(e,t){var n,i=t.createRangeIn(e),a=new tn({name:"img"}),r=[],s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value;a.match(l.item)&&l.item.getAttribute("src").startsWith("file://")&&r.push(l.item)}}catch(c){s.e(c)}finally{s.f()}return r}(e,n);i.length&&function(e,t,n){if(e.length===t.length)for(var i=0;i<e.length;i++){var o="data:".concat(t[i].type,";base64,").concat((a=t[i].hex,btoa(a.match(/\w{2}/g).map((function(e){return String.fromCharCode(parseInt(e,16))})).join(""))));n.setAttribute("src",o,e[i])}var a}(i,function(e){if(!e)return[];var t=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+t.source+"))([\\da-fA-F\\s]+)\\}","g"),i=e.match(n),a=[];if(i){var r,s=o(i);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=!1;l.includes("\\pngblip")?c="image/png":l.includes("\\jpegblip")&&(c="image/jpeg"),c&&a.push({hex:l.replace(t,"").replace(/[^\da-fA-F]/g,""),type:c})}}catch(u){s.e(u)}finally{s.f()}}return a}(t),n)}}(n,e.dataTransfer.getData("text/rtf")),e.content=n}}])}();function Om(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t>o?i.setAttribute(e,t,n):i.removeAttribute(e,n)}function Lm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.createElement("tableCell",n);return e.insertElement("paragraph",i),e.insert(i,t),i}function Dm(e,t){var n=parseInt(t.parent.parent.getAttribute("headingColumns")||0),i=e.getCellLocation(t).column;return!!n&&i<n}function Im(e){for(var t=0,n=0,i=Array.from(e.getChildren()).filter((function(e){return"th"===e.name||"td"===e.name}));n<i.length&&"th"===i[n].name;)t+=parseInt(i[n].getAttribute("colspan")||1),n++;return t}var Fm=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}),[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var e=this._table.getChild(this._row);if(!e||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();var t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{var i=e.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();var o=parseInt(i.getAttribute("colspan")||1),a=parseInt(i.getAttribute("rowspan")||1);(o>1||a>1)&&this._recordSpans(i,a,o),this._shouldSkipSlot()||(t=this._formatOutValue(i)),this._nextCellAtColumn=this._column+o}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}},{key:"skipRow",value:function(e){this._skipRows.add(e)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new Am(this,e,t,n)}}},{key:"_shouldSkipSlot",value:function(){return this._skipRows.has(this._row)||this._row<this._startRow||this._column<this._startColumn||void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_getSpanned",value:function(){var e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}},{key:"_recordSpans",value:function(e,t,n){for(var i={cell:e,row:this._row,column:this._column},o=this._row;o<this._row+t;o++)for(var a=this._column;a<this._column+n;a++)o==this._row&&a==this._column||this._markSpannedCell(o,a,i)}},{key:"_markSpannedCell",value:function(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}])}(),Am=function(){return d((function e(t,n,i,o){c(this,e),this.cell=n,this.row=t._row,this.column=t._column,this.cellAnchorRow=i,this.cellAnchorColumn=o,this._cellIndex=t._cellIndex,this._table=t._table}),[{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}},{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}])}();function Em(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t.on("insert:table",(function(t,n,i){var a=n.item;if(i.consumable.consume(a,"insert")){i.consumable.consume(a,"attribute:headingRows:table"),i.consumable.consume(a,"attribute:headingColumns:table");var r,s,l,c=e&&e.asWidget,u=i.writer.createContainerElement("figure",{class:"table"}),d=i.writer.createContainerElement("table");i.writer.insert(i.writer.createPositionAt(u,0),d),c&&((l=i.writer).setCustomProperty("table",!0,s=u),r=Wu(s,l,{hasSelectionHandle:!0}));var h,f=new Fm(a),m={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},p=new Map,g=o(f);try{for(g.s();!(h=g.n()).done;){var v=h.value,y=v.row,b=v.cell,_=a.getChild(y),k=p.get(y)||zm(d,_,y,m,i);p.set(y,k),i.consumable.consume(b,"insert"),jm(v,m,i.writer.createPositionAt(k,"end"),i,e)}}catch(P){g.e(P)}finally{g.f()}var C,w=o(a.getChildren());try{for(w.s();!(C=w.n()).done;){var x=C.value,M=x.index;p.has(M)||p.set(M,zm(d,x,M,m,i))}}catch(P){w.e(P)}finally{w.f()}var S=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(a,c?r:u),i.writer.insert(S,c?r:u)}}))}}function Bm(e,t){var n=t.writer;if(e.parent.is("element","tableCell"))return Nm(e)?n.createContainerElement("span",{style:"display:inline-block"}):n.createContainerElement("p")}function Nm(e){return 1===e.parent.childCount&&!qm(e)}function Rm(e,t,n){var i=e.cell,o=Vm(e,t),a=n.mapper.toViewElement(i);a&&a.name!==o&&function(e,t,n){var i=n.writer,o=n.mapper.toViewElement(e),a=$u(i.createEditableElement(t,o.getAttributes()),i);Ju(a,i,(function(e,t,n){return n.addClass(qt(t.classes),e)}),(function(e,t,n){return n.removeClass(qt(t.classes),e)})),i.insert(i.createPositionAfter(o),a),i.move(i.createRangeIn(o),i.createPositionAt(a,0)),i.remove(i.createRangeOn(o)),n.mapper.unbindViewElement(o),n.mapper.bindElements(e,a)}(i,o,n)}function jm(e,t,n,i,o){var a=o&&o.asWidget,r=Vm(e,t),s=a?$u(i.writer.createEditableElement(r),i.writer):i.writer.createContainerElement(r);a&&Ju(s,i.writer,(function(e,t,n){return n.addClass(qt(t.classes),e)}),(function(e,t,n){return n.removeClass(qt(t.classes),e)}));var l=e.cell,c=l.getChild(0),u=1===l.childCount&&"paragraph"===c.name;if(i.writer.insert(n,s),i.mapper.bindElements(l,s),!a&&!qm(c)&&u){var d=l.getChild(0);i.consumable.consume(d,"insert"),i.mapper.bindElements(d,s)}}function zm(e,t,n,i,o){o.consumable.consume(t,"insert");var a=t.isEmpty?o.writer.createEmptyElement("tr"):o.writer.createContainerElement("tr");o.mapper.bindElements(t,a);var r=i.headingRows,s=function(e,t,n){return Hm(e,t)||function(e,t,n){var i=n.writer.createContainerElement(e),o=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(o,i),i}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,i),e,o),l=o.writer.createPositionAt(s,r>0&&n>=r?n-r:n);return o.writer.insert(l,a),a}function Vm(e,t){var n=e.row,i=e.column,o=t.headingColumns,a=t.headingRows;return a&&a>n||o&&o>i?"th":"td"}function Hm(e,t){var n,i=o(t.getChildren());try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.name==e)return a}}catch(r){i.e(r)}finally{i.f()}}function Ym(e,t,n){var i=Hm(e,t);i&&0===i.childCount&&n.writer.remove(n.writer.createRangeOn(i))}function qm(e){return!!r(e.getAttributeKeys()).length}var Um=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model,t=e.schema,n=function(e){var t=e.parent;return t===t.root?t:t.parent}(e.document.selection.getFirstPosition());this.isEnabled=t.checkChild(n,"table")}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document.selection,i=this.editor.plugins.get("TableUtils"),o=Qu(n,t);t.change((function(n){var a=i.createTable(n,e);t.insertContent(a,o),n.setSelection(n.createPositionAt(a.getNodeByPath([0,0,0]),0))}))}}])}(cc);function Wm(e){var t,n=[],i=o(Zm(e.getRanges()));try{for(i.s();!(t=i.n()).done;){var a=t.value.getContainedElement();a&&a.is("element","tableCell")&&n.push(a)}}catch(r){i.e(r)}finally{i.f()}return n}function Jm(e){var t,n=[],i=o(e.getRanges());try{for(i.s();!(t=i.n()).done;){var a=t.value.start.findAncestor("tableCell");a&&n.push(a)}}catch(r){i.e(r)}finally{i.f()}return n}function Gm(e){var t=Wm(e);return t.length?t:Jm(e)}function $m(e){return Xm(e.map((function(e){return e.parent.index})))}function Qm(e){var t=e[0].findAncestor("table");return Xm(r(new Fm(t)).filter((function(t){return e.includes(t.cell)})).map((function(e){return e.column})))}function Km(e,t){if(e.length<2||!function(e){var t=e[0].findAncestor("table");if(!tp($m(e),parseInt(t.getAttribute("headingRows")||0)))return!1;var n=parseInt(t.getAttribute("headingColumns")||0);return tp(Qm(e),n)}(e))return!1;var n,i=new Set,a=new Set,r=0,s=o(e);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=t.getCellLocation(l),u=c.row,d=c.column,h=parseInt(l.getAttribute("rowspan")||1),f=parseInt(l.getAttribute("colspan")||1);i.add(u),a.add(d),h>1&&i.add(u+h-1),f>1&&a.add(d+f-1),r+=h*f}}catch(m){s.e(m)}finally{s.f()}return function(e,t){var n=Array.from(e.values()),i=Array.from(t.values());return(Math.max.apply(Math,n)-Math.min.apply(Math,n)+1)*(Math.max.apply(Math,i)-Math.min.apply(Math,i)+1)}(i,a)==r}function Zm(e){return Array.from(e).sort(ep)}function Xm(e){var t=e.sort((function(e,t){return e-t}));return{first:t[0],last:t[t.length-1]}}function ep(e,t){return e.start.isBefore(t.start)?-1:1}function tp(e,t){return e.first<t==e.last<t}var np=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,t),(n=f(this,t,[e])).order=i.order||"below",n}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="above"===this.order,o=Gm(t),a=$m(o),r=i?a.first:a.last,s=o[0].findAncestor("table");n.insertRows(s,{at:i?r:r+1,copyStructureFromAbove:!i})}}])}(cc),ip=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,t),(n=f(this,t,[e])).order=i.order||"right",n}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="left"===this.order,o=Gm(t),a=Qm(o),r=i?a.first:a.last,s=o[0].findAncestor("table");n.insertColumns(s,{columns:1,at:i?r:r+1})}}])}(cc),op=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,t),(n=f(this,t,[e])).direction=i.direction||"horizontally",n}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Gm(this.editor.model.document.selection);this.isEnabled=1===e.length}},{key:"execute",value:function(){var e=Gm(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}])}(cc);function ap(e,t,n){for(var i=t.startRow,a=t.startColumn,s=t.endRow,l=t.endColumn,c=n.createElement("table"),u=s-i+1,d=0;d<u;d++)n.insertElement("tableRow",c,"end");var h,f=o(r(new Fm(e,{startRow:i,endRow:s,startColumn:a,endColumn:l,includeAllSlots:!0})));try{for(f.s();!(h=f.n()).done;){var m=h.value,p=m.row,g=m.column,v=m.cell,y=m.isAnchor,b=m.cellAnchorRow,_=m.cellAnchorColumn,k=c.getChild(p-i);if(y){var C=n.cloneElement(v);n.append(C,k),up(C,p,g,s,l,n)}else(b<i||_<a)&&Lm(n,n.createPositionAt(k,"end"))}}catch(w){f.e(w)}finally{f.f()}return function(e,t,n,i,o){var a=parseInt(t.getAttribute("headingRows")||0);a>0&&Om("headingRows",a-n,e,o,0);var r=parseInt(t.getAttribute("headingColumns")||0);r>0&&Om("headingColumns",r-i,e,o,0)}(c,e,i,a,n),c}function rp(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=[],r=new Fm(e,{startRow:i,endRow:t-1}),s=o(r);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=l.row,u=l.cellHeight,d=c+u-1;c<t&&t<=d&&a.push(l)}}catch(h){s.e(h)}finally{s.f()}return a}function sp(e,t,n){var i=e.parent,a=i.parent,s=i.index,l=t-s,c={},u=parseInt(e.getAttribute("rowspan"))-l;u>1&&(c.rowspan=u);var d=parseInt(e.getAttribute("colspan")||1);d>1&&(c.colspan=d);var h,f,m=s+l,p=null,g=o(r(new Fm(a,{startRow:s,endRow:m,includeAllSlots:!0})));try{for(g.s();!(f=g.n()).done;){var v=f.value,y=v.row,b=v.column;v.cell===e&&void 0===h&&(h=b),void 0!==h&&h===b&&y===m&&(p=Lm(n,v.getPositionBefore(),c))}}catch(_){g.e(_)}finally{g.f()}return Om("rowspan",l,e,n),p}function lp(e,t){var n,i=[],a=o(new Fm(e));try{for(a.s();!(n=a.n()).done;){var r=n.value,s=r.column,l=r.cellWidth;s<t&&t<=s+l-1&&i.push(r)}}catch(c){a.e(c)}finally{a.f()}return i}function cp(e,t,n,i){var o=n-t,a={},r=parseInt(e.getAttribute("colspan"))-o;r>1&&(a.colspan=r);var s=parseInt(e.getAttribute("rowspan")||1);s>1&&(a.rowspan=s);var l=Lm(i,i.createPositionAfter(e),a);return Om("colspan",o,e,i),l}function up(e,t,n,i,o,a){var r=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+r-1>o&&Om("colspan",o-n+1,e,a,1),t+s-1>i&&Om("rowspan",i-t+1,e,a,1)}function dp(e,t){var n,i=t.getColumns(e),a=new Array(i).fill(0),s=o(new Fm(e));try{for(s.s();!(n=s.n()).done;){a[n.value.column]++}}catch(c){s.e(c)}finally{s.f()}var l=a.reduce((function(e,t,n){return t?e:[].concat(r(e),[n])}),[]);return l.length>0&&(t.removeColumns(e,{at:l[l.length-1]}),!0)}function hp(e,t){for(var n=[],i=0;i<e.childCount;i++)e.getChild(i).isEmpty&&n.push(i);return n.length>0&&(t.removeRows(e,{at:n[n.length-1]}),!0)}function fp(e,t){dp(e,t)||hp(e,t)}function mp(e,t){var n=Array.from(new Fm(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return n.every((function(e){return 1===e.cellHeight}))?t.lastRow:t.lastRow+(n[0].cellHeight-1)}function pp(e,t){var n=Array.from(new Fm(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return n.every((function(e){return 1===e.cellWidth}))?t.lastColumn:t.lastColumn+(n[0].cellWidth-1)}var gp=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).direction=n.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Jm(t.document.selection)[0],i=this.value,o=this.direction;t.change((function(t){var a="right"==o||"down"==o,r=a?n:i,s=a?i:n,l=s.parent;!function(e,t,n){vp(e)||(vp(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(s,r,t);var c=e.isHorizontal?"colspan":"rowspan",u=parseInt(n.getAttribute(c)||1),d=parseInt(i.getAttribute(c)||1);t.setAttribute(c,u+d,r),t.setSelection(t.createRangeIn(r));var h=e.editor.plugins.get("TableUtils");fp(l.findAncestor("table"),h)}))}},{key:"_getMergeableCell",value:function(){var e=Jm(this.editor.model.document.selection)[0];if(e){var t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){var i="right"==t?e.nextSibling:e.previousSibling,o=(e.parent.parent.getAttribute("headingColumns")||0)>0;if(i){var a="right"==t?e:i,r="right"==t?i:e,s=n.getCellLocation(a).column,l=n.getCellLocation(r).column,c=parseInt(a.getAttribute("colspan")||1),u=Dm(n,a),d=Dm(n,r);return o&&u!=d?void 0:s+c===l?i:void 0}}(e,this.direction,t):function(e,t){var n=e.parent,i=n.parent,o=i.getChildIndex(n);if(!("down"==t&&o===i.childCount-1||"up"==t&&0===o)){var a=parseInt(e.getAttribute("rowspan")||1),s=i.getAttribute("headingRows")||0;if(!s||!("down"==t&&o+a===s||"up"==t&&o===s)){var l=parseInt(e.getAttribute("rowspan")||1),c="down"==t?o+l:o,u=r(new Fm(i,{endRow:c})),d=u.find((function(t){return t.cell===e})).column,h=u.find((function(e){var n=e.row,i=e.cellHeight;return e.column===d&&("down"==t?n===c:c===n+i)}));return h&&h.cell}}}(e,this.direction);if(n){var i=this.isHorizontal?"rowspan":"colspan",o=parseInt(e.getAttribute(i)||1);return parseInt(n.getAttribute(i)||1)===o?n:void 0}}}}])}(cc);function vp(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}var yp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Gm(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),i=this.editor.plugins.get("TableUtils").getRows(n)-1,o=$m(e);this.isEnabled=!(0===o.first&&o.last===i)}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Gm(t.document.selection),i=$m(n),a=n[0],r=a.findAncestor("table"),s=this.editor.plugins.get("TableUtils").getCellLocation(a).column;t.change((function(t){var n=i.last-i.first+1;e.editor.plugins.get("TableUtils").removeRows(r,{at:i.first,rows:n});var a=function(e,t,n){var i,a=e.getChild(t)||e.getChild(e.childCount-1),r=a.getChild(0),s=0,l=o(a.getChildren());try{for(l.s();!(i=l.n()).done;){var c=i.value;if(s>n)return r;r=c,s+=parseInt(c.getAttribute("colspan")||1)}}catch(u){l.e(u)}finally{l.f()}return r}(r,i.first,s);t.setSelection(t.createPositionAt(a,0))}))}}])}(cc),bp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Gm(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),i=this.editor.plugins.get("TableUtils").getColumns(n),o=Qm(e),a=o.first,r=o.last;this.isEnabled=r-a<i-1}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=i(function(e){var t=Gm(e),n=t[0],i=t.pop(),o=[n,i];return n.isBefore(i)?o:o.reverse()}(this.editor.model.document.selection),2),n=t[0],o=t[1],a=n.parent.parent,s=r(new Fm(a)),l={first:s.find((function(e){return e.cell===n})).column,last:s.find((function(e){return e.cell===o})).column},c=function(e,t,n,i){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:i.first?e.reverse().find((function(e){return e.column<i.first})).cell:e.reverse().find((function(e){return e.column>i.last})).cell}(s,n,o,l);this.editor.model.change((function(t){var n=l.last-l.first+1;e.editor.plugins.get("TableUtils").removeColumns(a,{at:l.first,columns:n}),t.setSelection(t.createPositionAt(c,0))}))}}])}(cc),_p=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=this,t=Gm(this.editor.model.document.selection),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return e._isInHeading(t,t.parent.parent)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=Gm(t.document.selection),i=n[0].findAncestor("table"),a=$m(n),r=a.first,s=a.last,l=this.value?r:s+1,c=i.getAttribute("headingRows")||0;t.change((function(e){if(l){var t,n=o(rp(i,l,l>c?c:0));try{for(n.s();!(t=n.n()).done;){sp(t.value.cell,l,e)}}catch(a){n.e(a)}finally{n.f()}}Om("headingRows",l,i,e,0)}))}}},{key:"_isInHeading",value:function(e,t){var n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}])}(cc),kp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Gm(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return Dm(t,e)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=Gm(t.document.selection),i=n[0].findAncestor("table"),a=Qm(n),r=a.first,s=a.last,l=this.value?r:s+1;t.change((function(e){if(l){var t,n=o(lp(i,l));try{for(n.s();!(t=n.n()).done;){var a=t.value;cp(a.cell,a.column,l,e)}}catch(r){n.e(r)}finally{n.f()}}Om("headingColumns",l,i,e,0)}))}}}])}(cc),Cp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){this.decorate("insertColumns"),this.decorate("insertRows")}},{key:"getCellLocation",value:function(e){var t,n=e.parent,i=n.parent,a=i.getChildIndex(n),r=o(new Fm(i,{row:a}));try{for(r.s();!(t=r.n()).done;){var s=t.value,l=s.cell,c=s.row,u=s.column;if(l===e)return{row:c,column:u}}}catch(d){r.e(d)}finally{r.f()}}},{key:"createTable",value:function(e,t){var n=e.createElement("table");return wp(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&Om("headingRows",t.headingRows,n,e,0),t.headingColumns&&Om("headingColumns",t.headingColumns,n,e,0),n}},{key:"insertRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,i=t.at||0,a=t.rows||1,r=void 0!==t.copyStructureFromAbove,s=t.copyStructureFromAbove?i-1:i,l=this.getRows(e),c=this.getColumns(e);n.change((function(t){var n=e.getAttribute("headingRows")||0;if(n>i&&Om("headingRows",n+a,e,t,0),r||0!==i&&i!==l){var u,d=r?Math.max(i,s):i,h=new Fm(e,{endRow:d}),f=new Array(c).fill(1),m=o(h);try{for(m.s();!(u=m.n()).done;){var p=u.value,g=p.row,v=p.column,y=p.cellHeight,b=p.cellWidth,_=p.cell,k=g+y-1,C=g<=s&&s<=k;g<i&&i<=k?(t.setAttribute("rowspan",y+a,_),f[v]=-b):r&&C&&(f[v]=b)}}catch(T){m.e(T)}finally{m.f()}for(var w=0;w<a;w++){var x=t.createElement("tableRow");t.insert(x,e,i);for(var M=0;M<f.length;M++){var S=f[M],P=t.createPositionAt(x,"end");S>0&&Lm(t,P,S>1?{colspan:S}:null),M+=Math.abs(S)-1}}}else wp(t,e,i,a,c)}))}},{key:"insertColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.at||0,a=n.columns||1;this.editor.model.change((function(n){var r=e.getAttribute("headingColumns");i<r&&n.setAttribute("headingColumns",r+a,e);var s=t.getColumns(e);if(0!==i&&s!==i){var l,c=new Fm(e,{column:i,includeAllSlots:!0}),u=o(c);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=d.row,f=d.cell,m=d.cellAnchorColumn,p=d.cellAnchorRow,g=d.cellWidth,v=d.cellHeight;if(m<i){n.setAttribute("colspan",g+a,f);for(var y=p+v-1,b=h;b<=y;b++)c.skipRow(b)}else xp(a,n,d.getPositionBefore())}}catch(w){u.e(w)}finally{u.f()}}else{var _,k=o(e.getChildren());try{for(k.s();!(_=k.n()).done;){var C=_.value;xp(a,n,n.createPositionAt(C,i?"end":0))}}catch(w){k.e(w)}finally{k.f()}}}))}},{key:"removeRows",value:function(e,t){var n=this,i=t.at,a=i+(t.rows||1)-1;this.editor.model.change((function(t){var s=function(e,t,n){var i,a=new Map,r=[],s=o(new Fm(e,{endRow:n}));try{for(s.s();!(i=s.n()).done;){var l=i.value,c=l.row,u=l.column,d=l.cellHeight,h=l.cell,f=c+d-1;if(c>=t&&c<=n&&f>n&&a.set(u,{cell:h,rowspan:d-(n-c+1)}),c<t&&f>=t){var m;m=f>=n?n-t+1:f-t+1,r.push({cell:h,rowspan:d-m})}}}catch(p){s.e(p)}finally{s.f()}return{cellsToMove:a,cellsToTrim:r}}(e,i,a),l=s.cellsToMove,c=s.cellsToTrim;l.size&&function(e,t,n,i){var a,s,l=r(new Fm(e,{includeAllSlots:!0,row:t})),c=e.getChild(t),u=o(l);try{for(u.s();!(s=u.n()).done;){var d=s.value,h=d.column,f=d.cell,m=d.isAnchor;if(n.has(h)){var p=n.get(h),g=p.cell,v=p.rowspan,y=a?i.createPositionAfter(a):i.createPositionAt(c,0);i.move(i.createRangeOn(g),y),Om("rowspan",v,g,i),a=g}else m&&(a=f)}}catch(b){u.e(b)}finally{u.f()}}(e,a+1,l,t);for(var u=a;u>=i;u--)t.remove(e.getChild(u));var d,h=o(c);try{for(h.s();!(d=h.n()).done;){var f=d.value;Om("rowspan",f.rowspan,f.cell,t)}}catch(m){h.e(m)}finally{h.f()}!function(e,t,n,i){var o=e.getAttribute("headingRows")||0;t<o&&Om("headingRows",n<o?o-(n-t+1):t,e,i,0)}(e,i,a,t),dp(e,n)||hp(e,n)}))}},{key:"removeColumns",value:function(e,t){var n=this,i=t.at,o=t.at+(t.columns||1)-1;this.editor.model.change((function(t){!function(e,t,n){var i=e.getAttribute("headingColumns")||0;if(i&&t.first<i){var o=Math.min(i-1,t.last)-t.first+1;n.setAttribute("headingColumns",i-o,e)}}(e,{first:i,last:o},t);for(var a=o;a>=i;a--)for(var s=0,l=r(new Fm(e));s<l.length;s++){var c=l[s],u=c.cell,d=c.column,h=c.cellWidth;d<=a&&h>1&&d+h>a?Om("colspan",h-1,u,t):d===a&&t.remove(u)}hp(e,n)||dp(e,n)}))}},{key:"splitCellVertically",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=e.parent.parent,a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(s>1){var l=Mp(s,t),c=l.newCellsSpan;Om("colspan",l.updatedSpan,e,n);var u={};c>1&&(u.colspan=c),a>1&&(u.rowspan=a),xp(s>t?t-1:s-1,n,n.createPositionAfter(e),u)}if(s<t){var d,h=t-s,f=r(new Fm(i)),m=f.find((function(t){return t.cell===e})).column,p=o(f.filter((function(t){var n=t.cell,i=t.cellWidth,o=t.column;return n!==e&&o===m||o<m&&o+i>m})));try{for(p.s();!(d=p.n()).done;){var g=d.value,v=g.cell,y=g.cellWidth;n.setAttribute("colspan",y+h,v)}}catch(k){p.e(k)}finally{p.f()}var b={};a>1&&(b.rowspan=a),xp(h,n,n.createPositionAfter(e),b);var _=i.getAttribute("headingColumns")||0;_>m&&Om("headingColumns",_+h,i,n)}}))}},{key:"splitCellHorizontally",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=e.parent,a=i.parent,s=a.getChildIndex(i),l=parseInt(e.getAttribute("rowspan")||1),c=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(l>1){var i=r(new Fm(a,{startRow:s,endRow:s+l-1,includeAllSlots:!0})),u=Mp(l,t),d=u.newCellsSpan,h=u.updatedSpan;Om("rowspan",h,e,n);var f=i.find((function(t){return t.cell===e})).column,m={};d>1&&(m.rowspan=d),c>1&&(m.colspan=c);var p,g=o(i);try{for(g.s();!(p=g.n()).done;){var v=p.value,y=v.column,b=v.row;b>=s+h&&y===f&&(b+s+h)%d==0&&xp(1,n,v.getPositionBefore(),m)}}catch(O){g.e(O)}finally{g.f()}}if(l<t){var _,k=t-l,C=o(r(new Fm(a,{startRow:0,endRow:s})));try{for(C.s();!(_=C.n()).done;){var w=_.value,x=w.cell,M=w.cellHeight,S=w.row;x!==e&&S+M>s&&n.setAttribute("rowspan",M+k,x)}}catch(O){C.e(O)}finally{C.f()}var P={};c>1&&(P.colspan=c),wp(n,a,s+1,k,1,P);var T=a.getAttribute("headingRows")||0;T>s&&Om("headingRows",T+k,a,n)}}))}},{key:"getColumns",value:function(e){return r(e.getChild(0).getChildren()).reduce((function(e,t){return e+parseInt(t.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(e){return e.childCount}}],[{key:"pluginName",get:function(){return"TableUtils"}}])}(nc);function wp(e,t,n,i,o){for(var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=0;r<i;r++){var s=e.createElement("tableRow");e.insert(s,t,n),xp(o,e,e.createPositionAt(s,"end"),a)}}function xp(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=0;o<e;o++)Lm(t,n,i)}function Mp(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}var Sp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Wm(this.editor.model.document.selection);this.isEnabled=Km(e,this.editor.plugins.get(Cp))}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get(Cp);e.change((function(n){var i=Wm(e.document.selection),a=i.shift(),r=function(e,t,n){var i,a=0,r=0,s=o(t);try{for(s.s();!(i=s.n()).done;){var l=i.value,c=n.getCellLocation(l),u=c.row;a=Op(l,c.column,a,"colspan"),r=Op(l,u,r,"rowspan")}}catch(f){s.e(f)}finally{s.f()}var d=n.getCellLocation(e),h=d.row;return{mergeWidth:a-d.column,mergeHeight:r-h}}(a,i,t),s=r.mergeWidth,l=r.mergeHeight;Om("colspan",s,a,n),Om("rowspan",l,a,n);var c,u=o(i);try{for(u.s();!(c=u.n()).done;){Pp(c.value,a,n)}}catch(d){u.e(d)}finally{u.f()}fp(a.findAncestor("table"),t),n.setSelection(a,"in")}))}}])}(cc);function Pp(e,t,n){Tp(e)||(Tp(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function Tp(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function Op(e,t,n,i){var o=parseInt(e.getAttribute(i)||1);return Math.max(n,t+o)}var Lp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Gm(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){for(var e=this.editor.model,t=Gm(e.document.selection),n=$m(t),i=t[0].findAncestor("table"),a=[],r=n.first;r<=n.last;r++){var s,l=o(i.getChild(r).getChildren());try{for(l.s();!(s=l.n()).done;){var c=s.value;a.push(e.createRangeOn(c))}}catch(u){l.e(u)}finally{l.f()}}e.change((function(e){e.setSelection(a)}))}}])}(cc),Dp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"refresh",value:function(){var e=Gm(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){var e,t=this.editor.model,n=Gm(t.document.selection),i=n[0],a=n.pop(),r=i.findAncestor("table"),s=this.editor.plugins.get("TableUtils"),l=s.getCellLocation(i),c=s.getCellLocation(a),u=Math.min(l.column,c.column),d=Math.max(l.column,c.column),h=[],f=o(new Fm(r,{startColumn:u,endColumn:d}));try{for(f.s();!(e=f.n()).done;){var m=e.value;h.push(t.createRangeOn(m.cell))}}catch(p){f.e(p)}finally{f.f()}t.change((function(e){e.setSelection(h)}))}}])}(cc);function Ip(e,t){var n=!1,i=function(e){var t,n=parseInt(e.getAttribute("headingRows")||0),i=e.childCount,a=[],r=o(new Fm(e));try{for(r.s();!(t=r.n()).done;){var s=t.value,l=s.row,c=s.cell,u=s.cellHeight;if(!(u<2)){var d=l<n?n:i;l+u>d&&a.push({cell:c,rowspan:d-l})}}}catch(h){r.e(h)}finally{r.f()}return a}(e);if(i.length){n=!0;var a,r=o(i);try{for(r.s();!(a=r.n()).done;){var s=a.value;Om("rowspan",s.rowspan,s.cell,t,1)}}catch(l){r.e(l)}finally{r.f()}}return n}function Fp(e,t){var n,a=!1,r=function(e){var t,n=new Array(e.childCount).fill(0),i=o(new Fm(e,{includeAllSlots:!0}));try{for(i.s();!(t=i.n()).done;){n[t.value.row]++}}catch(a){i.e(a)}finally{i.f()}return n}(e),s=[],l=o(r.entries());try{for(l.s();!(n=l.n()).done;){var c=i(n.value,2),u=c[0];c[1]||s.push(u)}}catch(C){l.e(C)}finally{l.f()}if(s.length){a=!0;var d,h=o(s.reverse());try{for(h.s();!(d=h.n()).done;){var f=d.value;t.remove(e.getChild(f)),r.splice(f,1)}}catch(C){h.e(C)}finally{h.f()}}var m=r[0];if(!r.every((function(e){return e===m}))){var p,g=r.reduce((function(e,t){return t>e?t:e}),0),v=o(r.entries());try{for(v.s();!(p=v.n()).done;){var y=i(p.value,2),b=y[0],_=g-y[1];if(_){for(var k=0;k<_;k++)Lm(t,t.createPositionAt(e.getChild(b),"end"));a=!0}}}catch(C){v.e(C)}finally{v.f()}}return a}function Ap(e){var t=e.attributeKey;return"attribute"===e.type&&("headingRows"===t||"colspan"===t||"rowspan"===t)}function Ep(e,t){var n,i=!1,a=o(e.getChildren());try{for(a.s();!(n=a.n()).done;){i=Bp(n.value,t)||i}}catch(r){a.e(r)}finally{a.f()}return i}function Bp(e,t){var n,i=!1,a=o(e.getChildren());try{for(a.s();!(n=a.n()).done;){i=Np(n.value,t)||i}}catch(r){a.e(r)}finally{a.f()}return i}function Np(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;var n,i=Array.from(e.getChildren()).filter((function(e){return e.is("$text")})),a=o(i);try{for(a.s();!(n=a.n()).done;){var r=n.value;t.wrap(t.createRangeOn(r),"paragraph")}}catch(s){a.e(s)}finally{a.f()}return!!i.length}function Rp(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function jp(e,t){if(!e.is("element","paragraph"))return!1;var n=t.toViewElement(e);return!!n&&Nm(e)!==n.is("element","span")}l(88);var zp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.schema,i=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((function(e,t){if("table"==t.name&&Array.from(e.getNames()).includes("table"))return!1})),i.for("upcast").add((function(e){e.on("element:table",(function(e,t,n){var i=t.viewItem;if(n.consumable.test(i,{name:!0})){var a=function(e){for(var t,n={headingRows:0,headingColumns:0},i=[],a=[],r=0,s=Array.from(e.getChildren());r<s.length;r++){var l=s[r];if("tbody"===l.name||"thead"===l.name||"tfoot"===l.name){"thead"!==l.name||t||(t=l);var c,u=o(Array.from(l.getChildren()).filter((function(e){return e.is("element","tr")})));try{for(u.s();!(c=u.n()).done;){var d=c.value;if("thead"===d.parent.name&&d.parent===t)n.headingRows++,i.push(d);else{a.push(d);var h=Im(d);h>n.headingColumns&&(n.headingColumns=h)}}}catch(f){u.e(f)}finally{u.f()}}}return n.rows=[].concat(i,a),n}(i),r=a.rows,s=a.headingRows,l=a.headingColumns,c={};l&&(c.headingColumns=l),s&&(c.headingRows=s);var u=n.writer.createElement("table",c);if(n.safeInsert(u,t.modelCursor)){if(n.consumable.consume(i,{name:!0}),r.forEach((function(e){return n.convertItem(e,n.writer.createPositionAt(u,"end"))})),u.isEmpty){var d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(u,"end")),Lm(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(u,t)}}}))})),i.for("editingDowncast").add(Em({asWidget:!0})),i.for("dataDowncast").add(Em()),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add((function(e){e.on("element:tr",(function(e,t){t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),i.for("editingDowncast").add((function(e){return e.on("insert:tableRow",(function(e,t,n){var i=t.item;if(n.consumable.consume(i,"insert")){var a,r=i.parent,s=function(e){var t,n=o(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("table"===i.name)return i}}catch(a){n.e(a)}finally{n.f()}}(n.mapper.toViewElement(r)),l=r.getChildIndex(i),c=new Fm(r,{row:l}),u={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},d=new Map,h=o(c);try{for(h.s();!(a=h.n()).done;){var f=a.value,m=d.get(l)||zm(s,i,l,u,n);d.set(l,m),n.consumable.consume(f.cell,"insert"),jm(f,u,n.writer.createPositionAt(m,"end"),n,{asWidget:!0})}}catch(p){h.e(p)}finally{h.f()}}}))})),i.for("editingDowncast").add((function(e){return e.on("remove:tableRow",(function(e,t,n){e.stop();var i,a=n.writer,r=n.mapper,s=r.toViewPosition(t.position).getLastMatchingPosition((function(e){return!e.item.is("element","tr")})).nodeAfter,l=s.parent.parent,c=a.createRangeOn(s),u=a.remove(c),d=o(a.createRangeIn(u).getItems());try{for(d.s();!(i=d.n()).done;){var h=i.value;r.unbindViewElement(h)}}catch(f){d.e(f)}finally{d.f()}Ym("thead",l,n),Ym("tbody",l,n)}),{priority:"higher"})})),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("editingDowncast").add((function(e){return e.on("insert:tableCell",(function(e,t,n){var i=t.item;if(n.consumable.consume(i,"insert")){var a,r=i.parent,s=r.parent,l=s.getChildIndex(r),c=new Fm(s,{row:l}),u={headingRows:s.getAttribute("headingRows")||0,headingColumns:s.getAttribute("headingColumns")||0},d=o(c);try{for(d.s();!(a=d.n()).done;){var h=a.value;if(h.cell===i){var f=n.mapper.toViewElement(r);return void jm(h,u,n.writer.createPositionAt(f,r.getChildIndex(i)),n,{asWidget:!0})}}}catch(m){d.e(m)}finally{d.f()}}}))})),e.conversion.for("editingDowncast").elementToElement({model:"paragraph",view:Bm,converterPriority:"high"}),i.attributeToAttribute({model:"colspan",view:"colspan"}),i.attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("editingDowncast").add((function(e){return e.on("attribute:headingColumns:table",(function(e,t,n){var i=t.item;if(n.consumable.consume(t.item,e.name)){var a,r={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},s=t.attributeOldValue,l=t.attributeNewValue,c=o(new Fm(i,{endColumn:(s>l?s:l)-1}));try{for(c.s();!(a=c.n()).done;){Rm(a.value,r,n)}}catch(u){c.e(u)}finally{c.f()}}}))})),e.commands.add("insertTable",new Um(e)),e.commands.add("insertTableRowAbove",new np(e,{order:"above"})),e.commands.add("insertTableRowBelow",new np(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new ip(e,{order:"left"})),e.commands.add("insertTableColumnRight",new ip(e,{order:"right"})),e.commands.add("removeTableRow",new yp(e)),e.commands.add("removeTableColumn",new bp(e)),e.commands.add("splitTableCellVertically",new op(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new op(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Sp(e)),e.commands.add("mergeTableCellRight",new gp(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new gp(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new gp(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new gp(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new kp(e)),e.commands.add("setTableRowHeader",new _p(e)),e.commands.add("selectTableRow",new Lp(e)),e.commands.add("selectTableColumn",new Dp(e)),function(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,i=new Set,a=o(n.getChanges());try{for(a.s();!(t=a.n()).done;){var r=t.value;if("attribute"==r.type){var s=r.range.start.nodeAfter;s&&s.is("element","table")&&"headingRows"==r.attributeKey&&i.add(s)}}}catch(d){a.e(d)}finally{a.f()}if(i.size){var l,c=o(i.values());try{for(c.s();!(l=c.n()).done;){var u=l.value;n.refreshItem(u)}}catch(d){c.e(d)}finally{c.f()}return!0}return!1}(e)}))}(t),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.differ.getChanges(),a=!1,r=new Set,s=o(i);try{for(s.s();!(n=s.n()).done;){var l=n.value,c=void 0;"table"==l.name&&"insert"==l.type&&(c=l.position.nodeAfter),"tableRow"!=l.name&&"tableCell"!=l.name||(c=l.position.findAncestor("table")),Ap(l)&&(c=l.range.start.findAncestor("table")),c&&!r.has(c)&&(a=Ip(c,e)||a,a=Fp(c,e)||a,r.add(c))}}catch(u){s.e(u)}finally{s.f()}return a}(t,e)}))}(t),function(e,t){e.document.registerPostFixer((function(){return function(e,t){var n,i=new Set,a=o(e.getChanges());try{for(a.s();!(n=a.n()).done;){var s=n.value,l="attribute"==s.type?s.range.start.parent:s.position.parent;l.is("element","tableCell")&&i.add(l)}}catch(m){a.e(m)}finally{a.f()}var c,u=o(i.values());try{for(u.s();!(c=u.n()).done;){var d,h=o(r(c.value.getChildren()).filter((function(e){return jp(e,t)})));try{for(h.s();!(d=h.n()).done;){var f=d.value;e.refreshItem(f)}}catch(m){h.e(m)}finally{h.f()}}}catch(m){u.e(m)}finally{u.f()}return!1}(e.document.differ,t)}))}(t,e.editing.mapper),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=!1,a=o(t.document.differ.getChanges());try{for(a.s();!(n=a.n()).done;){var r=n.value;"insert"==r.type&&"table"==r.name&&(i=Ep(r.position.nodeAfter,e)||i),"insert"==r.type&&"tableRow"==r.name&&(i=Bp(r.position.nodeAfter,e)||i),"insert"==r.type&&"tableCell"==r.name&&(i=Np(r.position.nodeAfter,e)||i),Rp(r)&&(i=Np(r.position.parent,e)||i)}}catch(s){a.e(s)}finally{a.f()}return i}(t,e)}))}(t)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Cp]}}])}(nc);l(90);var Vp=function(e){function n(e){var t;c(this,n);var i=(t=f(this,n,[e])).bindTemplate;return t.set("icon"),t.set("isEnabled",!0),t.set("isOn",!1),t.set("isToggleable",!1),t.set("isVisible",!0),t.set("keystroke"),t.set("label"),t.set("tabindex",-1),t.set("tooltip"),t.set("tooltipPosition","s"),t.set("type","button"),t.set("withText",!1),t.children=t.createCollection(),t.actionView=t._createActionView(),t.arrowView=t._createArrowView(),t.keystrokes=new As,t.focusTracker=new Hs,t.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.if("isVisible","ck-hidden",(function(e){return!e})),t.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:t.children}),t}return p(n,e),d(n,[{key:"render",value:function(){var e=this;t(_(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new zl;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new zl,t=e.bindTemplate;return e.icon=Vl,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}])}(gl);l(92);var Hp=function(e){function t(e){var n;c(this,t);var i=(n=f(this,t,[e])).bindTemplate;return n.items=n._createGridCollection(),n.set("rows",0),n.set("columns",0),n.bind("label").to(n,"columns",n,"rows",(function(e,t){return"".concat(t," \xd7 ").concat(e)})),n.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:n.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(){n.fire("execute")}))}}),n.on("boxover",(function(e,t){var i=t.target.dataset,o=i.row,a=i.column;n.set({rows:parseInt(o),columns:parseInt(a)})})),n.on("change:columns",(function(){n._highlightGridBoxes()})),n.on("change:rows",(function(){n._highlightGridBoxes()})),n}return p(t,e),d(t,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var e=this.rows,t=this.columns;this.items.map((function(n,i){var o=Math.floor(i/10)<e&&i%10<t;n.set("isOn",o)}))}},{key:"_createGridCollection",value:function(){for(var e=[],t=0;t<100;t++){var n=Math.floor(t/10);e.push(new Yp(this.locale,n+1,t%10+1))}return this.createCollection(e)}}])}(gl),Yp=function(e){function t(e,n,i){var o;c(this,t);var a=(o=f(this,t,[e])).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":n,"data-column":i}}),o}return p(t,e),d(t)}(gl),qp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.t,i="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(function(e){var i,o=t.commands.get("insertTable"),a=Gl(e);return a.bind("isEnabled").to(o),a.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),a.on("change:isOpen",(function(){i||(i=new Hp(e),a.panelView.children.add(i),i.delegate("execute").to(a),a.buttonView.on("open",(function(){i.rows=0,i.columns=0})),a.on("execute",(function(){t.execute("insertTable",{rows:i.rows,columns:i.columns}),t.editing.view.focus()})))})),a})),t.ui.componentFactory.add("tableColumn",(function(t){var o=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return e._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',o,t)})),t.ui.componentFactory.add("tableRow",(function(t){var i=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return e._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',i,t)})),t.ui.componentFactory.add("mergeTableCells",(function(t){var o=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return e._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',o,t)}))}},{key:"_prepareDropdown",value:function(e,t,n,i){var o=this.editor,a=Gl(i),r=this._fillDropdownWithListOptions(a,n);return a.buttonView.set({label:e,icon:t,tooltip:!0}),a.bind("isEnabled").toMany(r,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(a,"execute",(function(e){o.execute(e.source.commandName),o.editing.view.focus()})),a}},{key:"_prepareMergeSplitButtonDropdown",value:function(e,t,n,i){var o=this.editor,a=Gl(i,Vp);return this._fillDropdownWithListOptions(a,n),a.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),this.listenTo(a.buttonView,"execute",(function(){o.execute("mergeTableCells"),o.editing.view.focus()})),this.listenTo(a,"execute",(function(e){o.execute(e.source.commandName),o.editing.view.focus()})),a}},{key:"_fillDropdownWithListOptions",value:function(e,t){var n,i=this.editor,a=[],r=new Ht,s=o(t);try{for(s.s();!(n=s.n()).done;){Up(n.value,i,a,r)}}catch(l){s.e(l)}finally{s.f()}return $l(e,r),a}}])}(nc);function Up(e,t,n,i){var o=e.model=new Qh(e.model),a=e.model,r=a.commandName,s=a.bindIsOn;if("button"===e.type||"switchbutton"===e.type){var l=t.commands.get(r);n.push(l),o.set({commandName:r}),o.bind("isEnabled").to(l),s&&o.bind("isOn").to(l,"value")}o.set({withText:!0}),i.add(e)}l(94);var Wp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this;this.listenTo(this.editor.model,"deleteContent",(function(t,n){return e._handleDeleteContent(t,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var e=Wm(this.editor.model.document.selection);return 0==e.length?null:e}},{key:"getSelectionAsFragment",value:function(){var e=this,t=this.getSelectedTableCells();return t?this.editor.model.change((function(n){var i=n.createDocumentFragment(),o=e.editor.plugins.get("TableUtils"),a=Qm(t),r=a.first,s=a.last,l=$m(t),c=l.first,u=l.last,d=t[0].findAncestor("table"),h=u,f=s;if(Km(t,o)){var m={firstColumn:r,lastColumn:s,firstRow:c,lastRow:u};h=mp(d,m),f=pp(d,m)}var p=ap(d,{startRow:c,startColumn:r,endRow:h,endColumn:f},n);return n.insert(p,i,0),i})):null}},{key:"setCellSelection",value:function(e,t){var n=this._getCellsToSelect(e,t);this.editor.model.change((function(e){e.setSelection(n.cells.map((function(t){return e.createRangeOn(t)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var e=r(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"getAnchorCell",value:function(){var e=pu(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"_defineSelectionConverter",value:function(){var e=this,t=this.editor,n=new Set;t.conversion.for("editingDowncast").add((function(t){return t.on("selection",(function(t,i,a){var r=a.writer;!function(e){var t,i=o(n);try{for(i.s();!(t=i.n()).done;){var a=t.value;e.removeClass("ck-editor__editable_selected",a)}}catch(r){i.e(r)}finally{i.f()}n.clear()}(r);var s=e.getSelectedTableCells();if(s){var l,c=o(s);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=a.mapper.toViewElement(u);r.addClass("ck-editor__editable_selected",d),n.add(d)}}catch(f){c.e(f)}finally{c.f()}var h=a.mapper.toViewElement(s[s.length-1]);r.setSelection(h,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var e=this,t=this.editor;this.on("change:isEnabled",(function(){if(!e.isEnabled){var n=e.getSelectedTableCells();if(!n)return;t.model.change((function(e){var i=e.createPositionAt(n[0],0),o=t.model.schema.getNearestSelectionRange(i);e.setSelection(o)}))}}))}},{key:"_handleDeleteContent",value:function(e,t){var n=i(t,2),a=n[0],r=n[1],s=this.editor.model,l=!r||"backward"==r.direction,c=Wm(a);c.length&&(e.stop(),s.change((function(e){var t=c[l?c.length-1:0];s.change((function(e){var t,n=o(c);try{for(n.s();!(t=n.n()).done;){var i=t.value;s.deleteContent(e.createSelection(i,"in"))}}catch(a){n.e(a)}finally{n.f()}}));var n=s.schema.getNearestSelectionRange(e.createPositionAt(t,0));a.is("documentSelection")?e.setSelection(n):a.setTo(n)})))}},{key:"_getCellsToSelect",value:function(e,t){var n,i=this.editor.plugins.get("TableUtils"),a=i.getCellLocation(e),r=i.getCellLocation(t),s=Math.min(a.row,r.row),l=Math.max(a.row,r.row),c=Math.min(a.column,r.column),u=Math.max(a.column,r.column),d=new Array(l-s+1).fill(null).map((function(){return[]})),h={startRow:s,endRow:l,startColumn:c,endColumn:u},f=o(new Fm(e.findAncestor("table"),h));try{for(f.s();!(n=f.n()).done;){var m=n.value,p=m.row,g=m.cell;d[p-s].push(g)}}catch(b){f.e(b)}finally{f.f()}var v=r.row<a.row,y=r.column<a.column;return v&&d.reverse(),y&&d.forEach((function(e){return e.reverse()})),{cells:d.flat(),backward:v||y}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Cp]}}])}(nc),Jp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"copy",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(n,"cut",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(t.model,"insertContent",(function(t,n){return e._onInsertContent.apply(e,[t].concat(r(n)))}),{priority:"high"}),this.decorate("_replaceTableSlotCell")}},{key:"_onCopyCut",value:function(e,t){var n=this.editor.plugins.get(Wp);if(n.getSelectedTableCells()&&("cut"!=e.name||!this.editor.isReadOnly)){t.preventDefault(),e.stop();var i=this.editor.editing.view.document,o=this.editor.data.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:o,method:e.name})}}},{key:"_onInsertContent",value:function(e,t,n){var i=this;if(!n||n.is("documentSelection")){var a=this.editor.model,r=this.editor.plugins.get(Cp),s=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);var n,i=t.createRangeIn(e),a=o(i.getItems());try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.is("element","table")){var s=t.createRange(i.start,t.createPositionBefore(r));if(t.hasContent(s,{ignoreWhitespaces:!0}))return null;var l=t.createRange(t.createPositionAfter(r),i.end);return t.hasContent(l,{ignoreWhitespaces:!0})?null:r}}}catch(c){a.e(c)}finally{a.f()}return null}(t,a);if(s){var l=Gm(a.document.selection);l.length?(e.stop(),a.change((function(e){var t={width:r.getColumns(s),height:r.getRows(s)},n=function(e,t,n,i){var o=e[0].findAncestor("table"),a=Qm(e),r=$m(e),s={firstColumn:a.first,lastColumn:a.last,firstRow:r.first,lastRow:r.last},l=1===e.length;return l&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,i){var o=i.getColumns(e),a=i.getRows(e);n>o&&i.insertColumns(e,{at:o,columns:n-o}),t>a&&i.insertRows(e,{at:a,rows:t-a})}(o,s.lastRow+1,s.lastColumn+1,i)),l||!Km(e,i)?function(e,t,n){var i=t.firstRow,o=t.lastRow,a=t.firstColumn,r=t.lastColumn,s={first:i,last:o},l={first:a,last:r};$p(e,a,s,n),$p(e,r+1,s,n),Gp(e,i,l,n),Gp(e,o+1,l,n,i)}(o,s,n):(s.lastRow=mp(o,s),s.lastColumn=pp(o,s)),s}(l,t,e,r),o=n.lastColumn-n.firstColumn+1,a={startRow:0,startColumn:0,endRow:Math.min(n.lastRow-n.firstRow+1,t.height)-1,endColumn:Math.min(o,t.width)-1};s=ap(s,a,e);var c=l[0].findAncestor("table"),u=i._replaceSelectedCellsWithPasted(s,t,c,n,e);if(i.editor.plugins.get("TableSelection").isEnabled){var d=Zm(u.map((function(t){return e.createRangeOn(t)})));e.setSelection(d)}else e.setSelection(u[0],0)}))):fp(s,r)}}}},{key:"_replaceSelectedCellsWithPasted",value:function(e,t,n,i,a){var s,l,c=t.width,u=t.height,d=function(e,t,n){var i,a=new Array(n).fill(null).map((function(){return new Array(t).fill(null)})),r=o(new Fm(e));try{for(r.s();!(i=r.n()).done;){var s=i.value,l=s.column,c=s.row,u=s.cell;a[c][l]=u}}catch(d){r.e(d)}finally{r.f()}return a}(e,c,u),h=[],f=o(r(new Fm(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})));try{for(f.s();!(l=f.n()).done;){var m=l.value,p=m.row,g=m.column;g===i.firstColumn&&(s=m.getPositionBefore());var v=d[(p-i.firstRow)%u][(g-i.firstColumn)%c],y=v?a.cloneElement(v):null,b=this._replaceTableSlotCell(m,y,s,a);b&&(up(b,p,g,i.lastRow,i.lastColumn,a),h.push(b),s=a.createPositionAfter(b))}}catch(M){f.e(M)}finally{f.f()}var _=parseInt(n.getAttribute("headingRows")||0),k=parseInt(n.getAttribute("headingColumns")||0),C=i.firstColumn<k&&k<=i.lastColumn;if(i.firstRow<_&&_<=i.lastRow){var w=Gp(n,_,{first:i.firstColumn,last:i.lastColumn},a,i.firstRow);h.push.apply(h,r(w))}if(C){var x=$p(n,k,{first:i.firstRow,last:i.lastRow},a);h.push.apply(h,r(x))}return h}},{key:"_replaceTableSlotCell",value:function(e,t,n,i){var o=e.cell;return e.isAnchor&&i.remove(o),t?(i.insert(t,n),t):null}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[Wp,Cp]}}])}(nc);function Gp(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(t<1))return rp(e,t,o).filter((function(e){return Qp(e.column,e.cellWidth,n)})).map((function(e){return sp(e.cell,t,i)}))}function $p(e,t,n,i){if(!(t<1))return lp(e,t).filter((function(e){return Qp(e.row,e.cellHeight,n)})).map((function(e){return cp(e.cell,e.column,t,i)}))}function Qp(e,t,n){var i=e+t-1,o=n.first,a=n.last;return e>=o&&e<=a||e<o&&i>=o}var Kp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable.apply(e,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"keydown",(function(){return e._onKeydown.apply(e,arguments)}),{priority:Ot.get("high")-10})}},{key:"_handleTabOnSelectedTable",value:function(e,t){var n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(t(),n.model.change((function(e){e.setSelection(e.createRangeIn(i.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(e){var t=this,n=this.editor;return function(i,o){var a=Jm(n.model.document.selection)[0];if(a||(a=t.editor.plugins.get("TableSelection").getFocusCell()),a){o();var r=a.parent,s=r.parent,l=s.getChildIndex(r),c=r.getChildIndex(a),u=0===c;if(e||!u||0!==l){var d=c===r.childCount-1;if(e&&l===s.childCount-1&&d&&(n.execute("insertTableRowBelow"),l===s.childCount-1))n.model.change((function(e){e.setSelection(e.createRangeOn(s))}));else{var h;if(e&&d){var f=s.getChild(l+1);h=f.getChild(0)}else if(!e&&u){var m=s.getChild(l-1);h=m.getChild(m.childCount-1)}else h=r.getChild(c+(e?1:-1));n.model.change((function(e){e.setSelection(e.createRangeIn(h))}))}}else n.model.change((function(e){e.setSelection(e.createRangeOn(s))}))}}}},{key:"_onKeydown",value:function(e,t){var n=this.editor,i=t.keyCode;if(Ci(i)){var o=wi(i,n.locale.contentLanguageDirection);this._handleArrowKeys(o,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}}},{key:"_handleArrowKeys",value:function(e,t){var n,i=this.editor.model.document.selection,o=["right","down"].includes(e),a=Wm(i);if(a.length)return n=t?this.editor.plugins.get("TableSelection").getFocusCell():o?a[a.length-1]:a[0],this._navigateFromCellInDirection(n,e,t),!0;var r=i.focus.findAncestor("tableCell");return!(!r||t&&!i.isCollapsed&&i.isBackward==o||!this._isSelectionAtCellEdge(i,r,o)||(this._navigateFromCellInDirection(r,e,t),0))}},{key:"_isSelectionAtCellEdge",value:function(e,t,n){var i=this.editor.model,o=this.editor.model.schema,a=n?e.getLastPosition():e.getFirstPosition();if(!o.getLimitElement(a).is("element","tableCell"))return i.createPositionAt(t,n?"end":0).isTouching(a);var r=i.createSelection(a);return i.modifySelection(r,{direction:n?"forward":"backward"}),a.isEqual(r.focus)}},{key:"_navigateFromCellInDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.editor.model,o=e.findAncestor("table"),a=r(new Fm(o,{includeAllSlots:!0})),s=a[a.length-1],l=s.row,c=s.column,u=a.find((function(t){return t.cell==e})),d=u.row,h=u.column;switch(t){case"left":h--;break;case"up":d--;break;case"right":h+=u.cellWidth;break;case"down":d+=u.cellHeight}if(d<0||d>l||h<0&&d<=0||h>c&&d>=l)i.change((function(e){e.setSelection(e.createRangeOn(o))}));else{h<0?(h=n?0:c,d--):h>c&&(h=n?c:0,d++);var f=a.find((function(e){return e.row==d&&e.column==h})).cell,m=["right","down"].includes(t),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){var g=p.getAnchorCell()||e;p.setCellSelection(g,f)}else{var v=i.createPositionAt(f,m?0:"end");i.change((function(e){e.setSelection(v)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[Wp]}}])}(nc),Zp=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).domEventType=["mousemove","mouseup","mouseleave"],n}return p(t,e),d(t,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}])}(Eo),Xp=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){this.editor.editing.view.addObserver(Zp),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var e=this,t=this.editor,n=!1,i=t.plugins.get(Wp);this.listenTo(t.editing.view.document,"mousedown",(function(o,a){if(e.isEnabled&&i.isEnabled&&a.domEvent.shiftKey){var r=i.getAnchorCell()||Jm(t.model.document.selection)[0];if(r){var s=e._getModelTableCellFromDomEvent(a);s&&eg(r,s)&&(n=!0,i.setCellSelection(r,s),a.preventDefault())}}})),this.listenTo(t.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(function(e){n&&e.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var e,t,n=this,i=this.editor,o=!1,a=!1,r=i.plugins.get(Wp);this.listenTo(i.editing.view.document,"mousedown",(function(t,i){n.isEnabled&&r.isEnabled&&(i.domEvent.shiftKey||i.domEvent.ctrlKey||i.domEvent.altKey||(e=n._getModelTableCellFromDomEvent(i)))})),this.listenTo(i.editing.view.document,"mousemove",(function(i,s){if(s.domEvent.buttons&&e){var l=n._getModelTableCellFromDomEvent(s);l&&eg(e,l)&&(t=l,o||t==e||(o=!0)),o&&(a=!0,r.setCellSelection(e,t),s.preventDefault())}})),this.listenTo(i.editing.view.document,"mouseup",(function(){o=!1,a=!1,e=null,t=null})),this.listenTo(i.editing.view.document,"selectionChange",(function(e){a&&e.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(e){var t=this.editor.editing.view.createPositionAt(e.target,0);return this.editor.editing.mapper.toModelPosition(t).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[Wp]}}])}(nc);function eg(e,t){return e.parent.parent==t.parent.parent}function tg(e){var t=e.getSelectedElement();return t&&ig(t)?t:null}function ng(e){var t=function(e,t){for(var n=t.parent;n;){if("table"===n.name)return n;n=n.parent}}(0,e.getFirstPosition());return t&&ig(t.parent)?t.parent:null}function ig(e){return!!e.getCustomProperty("table")&&Uu(e)}l(96);var og=/[\\^$.*+?()[\]{}|]/g,ag=RegExp(og.source),rg={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:"1/2",to:"\xbd"},oneThird:{from:"1/3",to:"\u2153"},twoThirds:{from:"2/3",to:"\u2154"},oneForth:{from:"1/4",to:"\xbc"},threeQuarters:{from:"3/4",to:"\xbe"},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:hg('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:hg("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:hg("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:hg('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:hg('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:hg("'"),to:[null,"\u201a",null,"\u2019"]}},sg={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},lg=["symbols","mathematical","typography","quotes"];function cg(e){return"string"==typeof e?new RegExp("(".concat(function(e){return(e=mn(e))&&ag.test(e)?e.replace(og,"\\$&"):e}(e),")$")):e}function ug(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function dg(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function hg(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}var fg=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t)}(tc);fg.builtinPlugins=[function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[lc,pc,Mc,bc,zc,su]}},{key:"pluginName",get:function(){return"Essentials"}}])}(nc),fu,function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"afterInit",value:function(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats()}},{key:"_addListAutoformats",value:function(){var e=this.editor.commands;e.get("bulletedList")&&gu(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&gu(this.editor,this,/^1[.|)]\s$/,"numberedList")}},{key:"_addBasicStylesAutoformats",value:function(){var e=this.editor.commands;if(e.get("bold")){var t=bu(this.editor,"bold");vu(this.editor,this,/(\*\*)([^*]+)(\*\*)$/g,t),vu(this.editor,this,/(__)([^_]+)(__)$/g,t)}if(e.get("italic")){var n=bu(this.editor,"italic");vu(this.editor,this,/(?:^|[^*])(\*)([^*_]+)(\*)$/g,n),vu(this.editor,this,/(?:^|[^_])(_)([^_]+)(_)$/g,n)}if(e.get("code")){var i=bu(this.editor,"code");vu(this.editor,this,/(`)([^`]+)(`)$/g,i)}if(e.get("strikethrough")){var o=bu(this.editor,"strikethrough");vu(this.editor,this,/(~~)([^~]+)(~~)$/g,o)}}},{key:"_addHeadingAutoformats",value:function(){var e=this,t=this.editor.commands.get("heading");t&&t.modelElements.filter((function(e){return e.match(/^heading[1-6]$/)})).forEach((function(n){var i=new RegExp("^(#{".concat(n[7],"})\\s$"));gu(e.editor,e,i,(function(){if(!t.isEnabled||t.value===n)return!1;e.editor.execute("heading",{value:n})}))}))}},{key:"_addBlockQuoteAutoformats",value:function(){this.editor.commands.get("blockQuote")&&gu(this.editor,this,/^>\s$/,"blockQuote")}},{key:"_addCodeBlockAutoformats",value:function(){this.editor.commands.get("codeBlock")&&gu(this.editor,this,/^```$/,"codeBlock")}}],[{key:"pluginName",get:function(){return"Autoformat"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[ku,Cu]}},{key:"pluginName",get:function(){return"Bold"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[wu,xu]}},{key:"pluginName",get:function(){return"Italic"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[Ou,Lu]}},{key:"pluginName",get:function(){return"BlockQuote"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"pluginName",get:function(){return"CKFinder"}},{key:"requires",get:function(){return[Jd,Du,fu]}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[eh,Sh,Hh]}},{key:"pluginName",get:function(){return"EasyImage"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[$h,Kh]}},{key:"pluginName",get:function(){return"Heading"}}])}(nc),Sh,function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[ef]}},{key:"pluginName",get:function(){return"ImageCaption"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[gf,vf]}},{key:"pluginName",get:function(){return"ImageStyle"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(yf).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Xu})}}],[{key:"requires",get:function(){return[yf]}},{key:"pluginName",get:function(){return"ImageToolbar"}}])}(nc),Hh,function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[Cf,Mf]}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[Vd,Of,Af]}},{key:"pluginName",get:function(){return"Link"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[am,sm]}},{key:"pluginName",get:function(){return"List"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[pm,bm,vm,sh]}},{key:"pluginName",get:function(){return"MediaEmbed"}}])}(nc),Wh,function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document,n=[];n.push(new Tm(t)),n.push(new xm(t)),e.plugins.get("Clipboard").on("inputTransformation",(function(e,t){if(!t.isTransformedWithPasteFromOffice){var i=t.dataTransfer.getData("text/html"),o=n.find((function(e){return e.isActive(i)}));o&&(o.execute(t),t.isTransformedWithPasteFromOffice=!0)}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PasteFromOffice"}},{key:"requires",get:function(){return[lc]}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,null,[{key:"requires",get:function(){return[zp,qp,Wp,Xp,Kp,Jp,sh]}},{key:"pluginName",get:function(){return"Table"}}])}(nc),function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"afterInit",value:function(){var e=this.editor,t=e.t,n=e.plugins.get(yf),i=e.config.get("table.contentToolbar"),o=e.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:ng}),o&&n.register("table",{ariaLabel:t("Table toolbar"),items:o,getRelatedElement:tg})}}],[{key:"requires",get:function(){return[yf]}},{key:"pluginName",get:function(){return"TableToolbar"}}])}(nc),function(e){function t(e){var n;return c(this,t),n=f(this,t,[e]),e.config.define("typing",{transformations:{include:lg}}),n}return p(t,e),d(t,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("Input"),i=function(e){var t=e.remove||[],n=function(e){return!t.includes(e)};return function(e){var t,n=new Set,i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(sg[a]){var r,s=o(sg[a]);try{for(s.s();!(r=s.n()).done;){var l=r.value;n.add(l)}}catch(c){s.e(c)}finally{s.f()}}else n.add(a)}}catch(c){i.e(c)}finally{i.f()}return Array.from(n)}(e.include.concat(e.extra||[]).filter(n)).filter(n).map((function(e){return rg[e]||e})).map((function(e){return{from:cg(e.from),to:ug(e.to)}}))}(e.config.get("typing.transformations")),a=new If(e.model,(function(e){var t,n=o(i);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(a.from.test(e))return{normalizedTransformation:a}}}catch(r){n.e(r)}finally{n.f()}}));a.on("matched:data",(function(e,i){if(n.isInput(i.batch)){var o=i.normalizedTransformation,a=o.from,r=o.to,s=a.exec(i.text),l=r(s.slice(1)),c=i.range,u=s.index;t.enqueueChange((function(e){for(var n=1;n<s.length;n++){var i=s[n],o=l[n-1];if(null!=o){var a=c.start.getShiftedBy(u),r=t.createRange(a,a.getShiftedBy(i.length)),d=dg(a);t.insertContent(e.createText(o,d),r),u+=o.length}else u+=i.length}}))}})),a.bind("isEnabled").to(this)}}],[{key:"pluginName",get:function(){return"TextTransformation"}}])}(nc)],fg.defaultConfig={toolbar:{items:["heading","|","bold","italic","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","blockQuote","insertTable","mediaEmbed","undo","redo"]},image:{toolbar:["imageStyle:full","imageStyle:side","|","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"}}]).default},"//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_\u0f63\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"))},"1gqn":function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},"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"))},"1uat":function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("MlIO"),function(){var e=i,t=e.lib.Hasher,n=e.x64,o=n.Word,a=n.WordArray,r=e.algo;function s(){return o.create.apply(o,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var u=r.SHA512=t.extend({_doReset:function(){this._hash=new a.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],a=n[2],r=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=i.high,m=i.low,p=o.high,g=o.low,v=a.high,y=a.low,b=r.high,_=r.low,k=s.high,C=s.low,w=u.high,x=u.low,M=d.high,S=d.low,P=h.high,T=h.low,O=f,L=m,D=p,I=g,F=v,A=y,E=b,B=_,N=k,R=C,j=w,z=x,V=M,H=S,Y=P,q=T,U=0;U<80;U++){var W=c[U];if(U<16)var J=W.high=0|e[t+2*U],G=W.low=0|e[t+2*U+1];else{var $=c[U-15],Q=$.high,K=$.low,Z=(K>>>1|Q<<31)^(K>>>8|Q<<24)^(K>>>7|Q<<25),X=c[U-2],ee=X.high,te=X.low,ne=(te>>>19|ee<<13)^(te<<3|ee>>>29)^(te>>>6|ee<<26),ie=c[U-7],oe=c[U-16],ae=oe.low;W.high=J=(J=(J=((Q>>>1|K<<31)^(Q>>>8|K<<24)^Q>>>7)+ie.high+((G=Z+ie.low)>>>0<Z>>>0?1:0))+((ee>>>19|te<<13)^(ee<<3|te>>>29)^ee>>>6)+((G+=ne)>>>0<ne>>>0?1:0))+oe.high+((G+=ae)>>>0<ae>>>0?1:0),W.low=G}var re,se=N&j^~N&V,le=R&z^~R&H,ce=O&D^O&F^D&F,ue=(L>>>28|O<<4)^(L<<30|O>>>2)^(L<<25|O>>>7),de=l[U],he=de.low,fe=Y+((N>>>14|R<<18)^(N>>>18|R<<14)^(N<<23|R>>>9))+((re=q+((R>>>14|N<<18)^(R>>>18|N<<14)^(R<<23|N>>>9)))>>>0<q>>>0?1:0),me=ue+(L&I^L&A^I&A);Y=V,q=H,V=j,H=z,j=N,z=R,N=E+(fe=(fe=(fe=fe+se+((re+=le)>>>0<le>>>0?1:0))+de.high+((re+=he)>>>0<he>>>0?1:0))+J+((re+=G)>>>0<G>>>0?1:0))+((R=B+re|0)>>>0<B>>>0?1:0)|0,E=F,B=A,F=D,A=I,D=O,I=L,O=fe+(((O>>>28|L<<4)^(O<<30|L>>>2)^(O<<25|L>>>7))+ce+(me>>>0<ue>>>0?1:0))+((L=re+me|0)>>>0<re>>>0?1:0)|0}m=i.low=m+L,i.high=f+O+(m>>>0<L>>>0?1:0),g=o.low=g+I,o.high=p+D+(g>>>0<I>>>0?1:0),y=a.low=y+A,a.high=v+F+(y>>>0<A>>>0?1:0),_=r.low=_+B,r.high=b+E+(_>>>0<B>>>0?1:0),C=s.low=C+R,s.high=k+N+(C>>>0<R>>>0?1:0),x=u.low=x+z,u.high=w+j+(x>>>0<z>>>0?1:0),S=d.low=S+H,d.high=M+V+(S>>>0<H>>>0?1:0),T=h.low=T+q,h.high=P+Y+(T>>>0<q>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(i+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),i.SHA512)},"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:"%d 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"))},"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],o=/^(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:o,monthsShortRegex:o,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/"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,r=a&&a.exports===o?i.a.Buffer:void 0,s=r?r.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))},"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\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,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"))},"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}},"3hpD":function(e,t){var n,i;n=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(i=n["pt-br"]=n["pt-br"]||{}).dictionary=Object.assign(i.dictionary||{},{"%0 of %1":"%0 de %1","Block quote":"Bloco de cita\xe7\xe3o",Bold:"Negrito","Bulleted List":"Lista com marcadores",Cancel:"Cancelar","Cannot upload file:":"N\xe3o foi poss\xedvel enviar o arquivo:","Centered image":"Imagem centralizada","Change image text alternative":"Alterar texto alternativo da imagem","Choose heading":"Escolha o t\xedtulo",Column:"Coluna","Could not insert image at the current position.":"N\xe3o foi poss\xedvel inserir a imagem na posi\xe7\xe3o atual","Could not obtain resized image URL.":"N\xe3o foi poss\xedvel obter o endere\xe7o da imagem redimensionada","Decrease indent":"Diminuir indenta\xe7\xe3o","Delete column":"Excluir coluna","Delete row":"Excluir linha",Downloadable:"Pode ser baixado","Dropdown toolbar":"Barra de Ferramentas da Lista Suspensa","Edit link":"Editar link","Editor toolbar":"Ferramentas do Editor","Enter image caption":"Inserir legenda da imagem","Full size image":"Imagem completa","Header column":"Coluna de cabe\xe7alho","Header row":"Linha de cabe\xe7alho",Heading:"Titulo","Heading 1":"T\xedtulo 1","Heading 2":"T\xedtulo 2","Heading 3":"T\xedtulo 3","Heading 4":"T\xedtulo 4","Heading 5":"T\xedtulo 5","Heading 6":"T\xedtulo 6","Image toolbar":"Ferramentas de Imagem","image widget":"Ferramenta de imagem","Increase indent":"Aumentar indenta\xe7\xe3o","Insert column left":"Inserir coluna \xe0 esquerda","Insert column right":"Inserir coluna \xe0 direita","Insert image":"Inserir imagem","Insert image or file":"Inserir imagem ou arquivo","Insert media":"Inserir m\xeddia","Insert paragraph after block":"Inserir par\xe1grafo ap\xf3s o bloco","Insert paragraph before block":"Inserir par\xe1grafo antes do bloco","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Insert table":"Inserir tabela","Inserting image failed":"Falha ao inserir imagem",Italic:"It\xe1lico","Left aligned image":"Imagem alinhada \xe0 esquerda",Link:"Link","Link URL":"URL","Media URL":"URL da m\xeddia","media widget":"Ferramenta de m\xeddia","Merge cell down":"Mesclar abaixo","Merge cell left":"Mesclar \xe0 esquerda","Merge cell right":"Mesclar \xe0 direita","Merge cell up":"Mesclar acima","Merge cells":"Mesclar c\xe9lulas",Next:"Pr\xf3ximo","Numbered List":"Lista numerada","Open in a new tab":"Abrir em nova aba","Open link in new tab":"Abrir link em nova aba",Paragraph:"Par\xe1grafo","Paste the media URL in the input.":"Cole o endere\xe7o da m\xeddia no campo.",Previous:"Anterior",Redo:"Refazer","Rich Text Editor":"Editor de Formata\xe7\xe3o","Rich Text Editor, %0":"Editor de Formata\xe7\xe3o, %0","Right aligned image":"Imagem alinhada \xe0 direita",Row:"Linha",Save:"Salvar","Select all":"Selecionar tudo","Select column":"Selecionar coluna","Select row":"Selecionar linha","Selecting resized image failed":"Sele\xe7\xe3o da imagem redimensionada falhou","Show more items":"Exibir mais itens","Side image":"Imagem lateral","Split cell horizontally":"Dividir horizontalmente","Split cell vertically":"Dividir verticalmente","Table toolbar":"Ferramentas de Tabela","Text alternative":"Texto alternativo","The URL must not be empty.":"A URL n\xe3o pode ficar em branco.","This link has no URL":"Este link n\xe3o possui uma URL","This media URL is not supported.":"A URL desta m\xeddia n\xe3o \xe9 suportada.","Tip: Paste the URL into the content to embed faster.":"Cole o endere\xe7o dentro do conte\xfado para embutir mais rapidamente.",Undo:"Desfazer",Unlink:"Remover link","Upload failed":"Falha ao subir arquivo","Upload in progress":"Enviando dados","Widget toolbar":"Ferramentas de Widgets"}),i.getPluralForm=function(e){return e>1}},"3y9D":function(e,t,n){var i,o,a,r,s,l,c;e.exports=(c=n("Ib8C"),a=(o=(i=c).lib).WordArray,s=[],l=i.algo.SHA1=(r=o.Hasher).extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],a=n[2],r=n[3],l=n[4],c=0;c<80;c++){if(c<16)s[c]=0|e[t+c];else{var u=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=u<<1|u>>>31}var d=(i<<5|i>>>27)+l+s[c];d+=c<20?1518500249+(o&a|~o&r):c<40?1859775393+(o^a^r):c<60?(o&a|o&r|a&r)-1894007588:(o^a^r)-899497514,l=r,r=a,a=o<<30|o>>>2,o=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+r|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=r._createHelper(l),i.HmacSHA1=r._createHmacHelper(l),c.SHA1)},"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:"%d \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"))},"5hvy":function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("MlIO"),function(e){var t=i,n=t.lib,o=n.WordArray,a=n.Hasher,r=t.x64.Word,s=t.algo,l=[],c=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){l[e+5*t]=(n+1)*(n+2)/2%64;var i=(2*e+3*t)%5;e=t%5,t=i}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var o=1,a=0;a<24;a++){for(var s=0,d=0,h=0;h<7;h++){if(1&o){var f=(1<<h)-1;f<32?d^=1<<f:s^=1<<f-32}128&o?o=o<<1^113:o<<=1}u[a]=r.create(s,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=r.create()}();var h=s.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new r.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,i=this.blockSize/2,o=0;o<i;o++){var a=e[t+2*o],r=e[t+2*o+1];a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(D=n[o]).high^=r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),D.low^=a}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var f=0,m=0,p=0;p<5;p++)f^=(D=n[h+5*p]).high,m^=D.low;var g=d[h];g.high=f,g.low=m}for(h=0;h<5;h++){var v=d[(h+4)%5],y=d[(h+1)%5],b=y.high,_=y.low;for(f=v.high^(b<<1|_>>>31),m=v.low^(_<<1|b>>>31),p=0;p<5;p++)(D=n[h+5*p]).high^=f,D.low^=m}for(var k=1;k<25;k++){var C=(D=n[k]).high,w=D.low,x=l[k];x<32?(f=C<<x|w>>>32-x,m=w<<x|C>>>32-x):(f=w<<x-32|C>>>64-x,m=C<<x-32|w>>>64-x);var M=d[c[k]];M.high=f,M.low=m}var S=d[0],P=n[0];for(S.high=P.high,S.low=P.low,h=0;h<5;h++)for(p=0;p<5;p++){var T=d[k=h+5*p],O=d[(h+1)%5+5*p],L=d[(h+2)%5+5*p];(D=n[k]).high=T.high^~O.high&L.high,D.low=T.low^~O.low&L.low}var D,I=u[s];(D=n[0]).high^=I.high,D.low^=I.low}},_doFinalize:function(){var t=this._data,n=t.words,i=8*t.sigBytes,a=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/a)*a>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var r=this._state,s=this.cfg.outputLength/8,l=s/8,c=[],u=0;u<l;u++){var d=r[u],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),c.push(f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)),c.push(h)}return new o.init(c,s)},clone:function(){for(var e=a.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=a._createHelper(h),t.HmacSHA3=a._createHmacHelper(h)}(Math),i.SHA3)},"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:"\u17a2\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 o={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?o[n][2]?o[n][2]:o[n][1]:i?o[n][0]:o[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"))},"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"))},"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\u0a35\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},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"))},"9OqN":function(e,t,n){var i,o,a;e.exports=(a=n("Ib8C"),n("OLod"),a.mode.CTR=(o=(i=a.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0);var r=a.slice(0);n.encryptBlock(r,0),a[i-1]=a[i-1]+1|0;for(var s=0;s<i;s++)e[t+s]^=r[s]}}),i.Decryptor=o,i),a.mode.CTR)},"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"))},"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"))},ALsQ:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.mode.CFB=function(){var e=i.lib.BlockCipherMode.extend();function t(e,t,n,i){var o=this._iv;if(o){var a=o.slice(0);this._iv=void 0}else a=this._prevBlock;i.encryptBlock(a,0);for(var r=0;r<n;r++)e[t+r]^=a[r]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize;t.call(this,e,n,o,i),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize,a=e.slice(n,n+o);t.call(this,e,n,o,i),this._prevBlock=a}}),e}(),i.mode.CFB)},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:"%d \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,o){var a=e+" ";switch(i){case"s":return n||o?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?a+(n||o?"sek\xfandur":"sek\xfandum"):a+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?a+(n||o?"m\xedn\xfatur":"m\xedn\xfatum"):n?a+"m\xedn\xfata":a+"m\xedn\xfatu";case"hh":return t(e)?a+(n||o?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(o?"daga":"d\xf6gum"):n?a+"dagur":a+(o?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":o?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?a+"m\xe1nu\xf0ir":a+(o?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?a+"m\xe1nu\xf0ur":a+(o?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||o?"\xe1r":"\xe1ri";case"yy":return t(e)?a+(n||o?"\xe1r":"\xe1rum"):a+(n||o?"\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"))},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],o=/^(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:o,monthsShortRegex:o,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"))},"DKr+":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={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?o[n][0]:o[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){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return 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},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:"%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"))},"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,o){var a,r=t.words[i];return 1===i.length?"y"===i&&n?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":o||n?r[0]:r[1]:(a=t.correctGrammaticalCase(e,r),"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"))},E4JC:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=i,t=e.lib.StreamCipher,n=[],o=[],a=[],r=e.algo.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var i=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)s.call(this);for(n=0;n<8;n++)o[n]^=i[n+4&7];if(t){var a=t.words,r=a[0],l=a[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(o[0]^=c,o[1]^=d,o[2]^=u,o[3]^=h,o[4]^=c,o[5]^=d,o[6]^=u,o[7]^=h,n=0;n<4;n++)s.call(this)}},_doProcessBlock:function(e,t){var i=this._X;s.call(this),n[0]=i[0]^i[5]>>>16^i[3]<<16,n[1]=i[2]^i[7]>>>16^i[5]<<16,n[2]=i[4]^i[1]>>>16^i[7]<<16,n[3]=i[6]^i[3]>>>16^i[1]<<16;for(var o=0;o<4;o++)n[o]=16711935&(n[o]<<8|n[o]>>>24)|4278255360&(n[o]<<24|n[o]>>>8),e[t+o]^=n[o]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,s=i>>>16;a[n]=((r*r>>>17)+r*s>>>15)+s*s^((4294901760&i)*i|0)+((65535&i)*i|0)}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(r)}(),i.Rabbit)},ELcG:function(e,t,n){var i;e.exports=(i=n("Ib8C"),function(e){var t=i,n=t.lib,o=n.WordArray,a=n.Hasher,r=t.algo,s=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=o.create([0,1518500249,1859775393,2400959708,2840853838]),h=o.create([1352829926,1548603684,1836072691,2053994217,0]),f=r.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a,r,f,_,k,C,w,x,M,S,P,T=this._hash.words,O=d.words,L=h.words,D=s.words,I=l.words,F=c.words,A=u.words;for(C=a=T[0],w=r=T[1],x=f=T[2],M=_=T[3],S=k=T[4],n=0;n<80;n+=1)P=a+e[t+D[n]]|0,P+=n<16?m(r,f,_)+O[0]:n<32?p(r,f,_)+O[1]:n<48?g(r,f,_)+O[2]:n<64?v(r,f,_)+O[3]:y(r,f,_)+O[4],P=(P=b(P|=0,F[n]))+k|0,a=k,k=_,_=b(f,10),f=r,r=P,P=C+e[t+I[n]]|0,P+=n<16?y(w,x,M)+L[0]:n<32?v(w,x,M)+L[1]:n<48?g(w,x,M)+L[2]:n<64?p(w,x,M)+L[3]:m(w,x,M)+L[4],P=(P=b(P|=0,A[n]))+S|0,C=S,S=M,M=b(x,10),x=w,w=P;P=T[1]+f+M|0,T[1]=T[2]+_+S|0,T[2]=T[3]+k+C|0,T[3]=T[4]+a+w|0,T[4]=T[0]+r+x|0,T[0]=P},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,a=o.words,r=0;r<5;r++){var s=a[r];a[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function g(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=a._createHelper(f),t.HmacRIPEMD160=a._createHmacHelper(f)}(Math),i.RIPEMD160)},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"))},ETIr:function(e,t,n){var i,o;e.exports=(o=n("Ib8C"),i=o.lib.WordArray,o.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var o=[],a=0;a<n;a+=3)for(var r=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<n;s++)o.push(i.charAt(r>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var r=n.charAt(64);if(r){var s=e.indexOf(r);-1!==s&&(t=s)}return function(e,t,n){for(var o=[],a=0,r=0;r<t;r++)if(r%4){var s=n[e.charCodeAt(r-1)]<<r%4*2,l=n[e.charCodeAt(r)]>>>6-r%4*2;o[a>>>2]|=(s|l)<<24-a%4*8,a++}return i.create(o,a)}(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},"F+F2":function(e,t,n){var i;e.exports=(i=n("Ib8C"),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,i=[],o=0;o<n;o++)i[o>>>2]|=e[o]<<24-o%4*8;t.call(this,i,n)}else t.apply(this,arguments)}).prototype=e}}(),i.lib.WordArray)},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:"%d 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"))},GRuw:function(e,t,n){var i,o,a,r,s,l;e.exports=(l=n("Ib8C"),n("lPiR"),o=(i=l).lib.WordArray,s=(a=i.algo).SHA224=(r=a.SHA256).extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}}),i.SHA224=r._createHelper(s),i.HmacSHA224=r._createHmacHelper(s),l.SHA224)},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;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,o={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?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}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".split("_"),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"))},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"]},o=function(e){return function(t,o,a,r){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[o?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:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("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"))},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:"\u10d9\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"))},Ib8C:function(e,t,n){var i;e.exports=i=i||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},o=i.lib={},a=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=o.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,o=e.sigBytes;if(this.clamp(),i%4)for(var a=0;a<o;a++)t[i+a>>>2]|=(n[a>>>2]>>>24-a%4*8&255)<<24-(i+a)%4*8;else for(a=0;a<o;a+=4)t[i+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],o=function(t){t=t;var n=987654321,i=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=o(4294967296*(n||e.random()));n=987654071*s(),i.push(4294967296*s()|0)}return new r.init(i,t)}}),s=i.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var a=t[o>>>2]>>>24-o%4*8&255;i.push((a>>>4).toString(16)),i.push((15&a).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new r.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++)i.push(String.fromCharCode(t[o>>>2]>>>24-o%4*8&255));return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new r.init(n,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,o=n.sigBytes,a=this.blockSize,s=o/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*l,o);if(l){for(var u=0;u<l;u+=a)this._doProcessBlock(i,u);var d=i.splice(0,l);n.sigBytes-=c}return new r.init(d,c)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(o.Hasher=d.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}}),i.algo={});return i}(Math)},"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"))},"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"))},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){switch(n){case"m":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"),o="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||o||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_dien\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?o(n)[0]:i?o(n)[1]:o(n)[2]}function i(e){return e%10==0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,a,r){var s=e+" ";return 1===e?s+n(0,t,a[0],r):t?s+(i(e)?o(a)[1]:o(a)[0]):r?s+o(a)[1]:s+(i(e)?o(a)[1]:o(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"))},K3mO:function(e,t,n){var i,o,a,r,s,l,c;e.exports=(c=n("Ib8C"),n("3y9D"),n("WYAk"),r=(o=(i=c).lib).WordArray,l=(s=i.algo).EvpKDF=(a=o.Base).extend({cfg:a.extend({keySize:4,hasher:s.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=n.hasher.create(),o=r.create(),a=o.words,s=n.keySize,l=n.iterations;a.length<s;){c&&i.update(c);var c=i.update(e).finalize(t);i.reset();for(var u=1;u<l;u++)c=i.finalize(c),i.reset();o.concat(c)}return o.sigBytes=4*s,o}}),i.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)},c.EvpKDF)},KKCa:function(e,t){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},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 o=t.words[i];return 1===i.length?n?o[0]:o[1]:e+" "+t.correctGrammaticalCase(e,o)}};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"))},KmYQ:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},i.pad.ZeroPadding)},L3Qv:function(e,t,n){"use strict";t.a=function(){return!1}},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"))},MCLT:function(e,t,n){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(r(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,a=o.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(t){return"[Circular]"}default:return e}})),l=o[n];n<a;l=o[++n])m(l)||!b(l)?s+=" "+l:s+=" "+r(l);return s},t.deprecate=function(e,n){if(v(global.process))return function(){return t.deprecate(e,n).apply(this,arguments)};if(!0===process.noDeprecation)return e;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var o,a={};function r(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&t._extend(i,n),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=s),c(i,e,i.depth)}function s(e,t){var n=r.styles[t];return n?"\x1b["+r.colors[n][0]+"m"+e+"\x1b["+r.colors[n][1]+"m":e}function l(e,t){return e}function c(e,n,i){if(e.customInspect&&n&&C(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,e);return g(o)||(o=c(e,o,i)),o}var a=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return p(t)?e.stylize(""+t,"number"):f(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(a)return a;var r=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(r);if(e.showHidden&&(r=Object.getOwnPropertyNames(n)),k(n)&&(r.indexOf("message")>=0||r.indexOf("description")>=0))return u(n);if(0===r.length){if(C(n))return e.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(y(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return u(n)}var l,b="",w=!1,x=["{","}"];return h(n)&&(w=!0,x=["[","]"]),C(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),y(n)&&(b=" "+RegExp.prototype.toString.call(n)),_(n)&&(b=" "+Date.prototype.toUTCString.call(n)),k(n)&&(b=" "+u(n)),0!==r.length||w&&0!=n.length?i<0?y(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=w?function(e,t,n,i,o){for(var a=[],r=0,s=t.length;r<s;++r)P(t,String(r))?a.push(d(e,t,n,i,String(r),!0)):a.push("");return o.forEach((function(o){o.match(/^\d+$/)||a.push(d(e,t,n,i,o,!0))})),a}(e,n,i,s,r):r.map((function(t){return d(e,n,i,s,t,w)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,b,x)):x[0]+b+x[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,i,o,a){var r,s,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=e.stylize(l.set?"[Getter/Setter]":"[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),P(i,o)||(r="["+o+"]"),s||(e.seen.indexOf(l.value)<0?(s=m(n)?c(e,l.value,null):c(e,l.value,n-1)).indexOf("\n")>-1&&(s=a?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),v(r)){if(a&&o.match(/^\d+$/))return s;(r=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=e.stylize(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=e.stylize(r,"string"))}return r+": "+s}function h(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function p(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function y(e){return b(e)&&"[object RegExp]"===w(e)}function b(e){return"object"==typeof e&&null!==e}function _(e){return b(e)&&"[object Date]"===w(e)}function k(e){return b(e)&&("[object Error]"===w(e)||e instanceof Error)}function C(e){return"function"==typeof e}function w(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(o)&&(o=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=process.pid;a[e]=function(){var i=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,i)}}else a[e]=function(){};return a[e]},t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=f,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=p,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=y,t.isObject=b,t.isDate=_,t.isError=k,t.isFunction=C,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n("1gqn");var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",S(),t.format.apply(t,arguments))},t.inherits=n("KKCa"),t._extend=function(e,t){if(!t||!b(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},"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],olive:[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 o=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 o)if(o.hasOwnProperty(a)){if(!("channels"in o[a]))throw new Error("missing channels property: "+a);if(!("labels"in o[a]))throw new Error("missing channel labels property: "+a);if(o[a].labels.length!==o[a].channels)throw new Error("channel and label counts mismatch: "+a);var r=o[a].channels,s=o[a].labels;delete o[a].channels,delete o[a].labels,Object.defineProperty(o[a],"channels",{value:r}),Object.defineProperty(o[a],"labels",{value:s})}o.rgb.hsl=function(e){var t,n,i=e[0]/255,o=e[1]/255,a=e[2]/255,r=Math.min(i,o,a),s=Math.max(i,o,a),l=s-r;return s===r?t=0:i===s?t=(o-a)/l:o===s?t=2+(a-i)/l:a===s&&(t=4+(i-o)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(r+s)/2,[t,100*(s===r?0:n<=.5?l/(s+r):l/(2-s-r)),100*n]},o.rgb.hsv=function(e){var t,n,i,o,a,r=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(r,s,l),u=c-Math.min(r,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?o=a=0:(a=u/c,t=d(r),n=d(s),i=d(l),r===c?o=i-n:s===c?o=1/3+t-i:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*a,100*c]},o.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[o.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)))]},o.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-o)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-o-t)/(1-t)||0),100*t]},o.rgb.keyword=function(e){var i=n[e];if(i)return i;var o,a,r,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var c=(a=e,r=t[l],Math.pow(a[0]-r[0],2)+Math.pow(a[1]-r[1],2)+Math.pow(a[2]-r[2],2));c<s&&(s=c,o=l)}return o},o.keyword.rgb=function(e){return t[e]},o.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)]},o.rgb.lab=function(e){var t=o.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))]},o.hsl.rgb=function(e){var t,n,i,o,a,r=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),o=[0,0,0];for(var c=0;c<3;c++)(i=r+1/3*-(c-1))<0&&i++,i>1&&i--,o[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 o},o.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,o=n,a=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,o*=a<=1?a:2-a,[t,100*(0===i?2*o/(a+o):2*n/(i+n)),(i+n)/2*100]},o.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(t)%6,a=t-Math.floor(t),r=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,o){case 0:return[i,l,r];case 1:return[s,i,r];case 2:return[r,i,l];case 3:return[r,s,i];case 4:return[l,r,i];case 5:return[i,r,s]}},o.hsv.hsl=function(e){var t,n,i,o=e[0],a=e[1]/100,r=e[2]/100,s=Math.max(r,.01);return i=(2-a)*r,n=a*s,[o,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(i/=2)]},o.hwb.rgb=function(e){var t,n,i,o,a,r,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)),0!=(1&t)&&(i=1-i),o=c+i*((n=1-u)-c),t){default:case 6:case 0:a=n,r=o,s=c;break;case 1:a=o,r=n,s=c;break;case 2:a=c,r=n,s=o;break;case 3:a=c,r=o,s=n;break;case 4:a=o,r=c,s=n;break;case 5:a=n,r=c,s=o}return[255*a,255*r,255*s]},o.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))]},o.xyz.rgb=function(e){var t,n,i,o=e[0]/100,a=e[1]/100,r=e[2]/100;return n=-.9689*o+1.8758*a+.0415*r,i=.0557*o+-.204*a+1.057*r,t=(t=3.2406*o+-1.5372*a+-.4986*r)>.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))]},o.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))]},o.lab.xyz=function(e){var t,n,i;t=e[1]/500+(n=(e[0]+16)/116),i=n-e[2]/200;var o=Math.pow(n,3),a=Math.pow(t,3),r=Math.pow(i,3);return n=o>.008856?o:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=r>.008856?r:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},o.lab.lch=function(e){var t,n=e[0],i=e[1],o=e[2];return(t=360*Math.atan2(o,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+o*o),t]},o.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)]},o.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],a=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var r=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(r+=60),r},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.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)},o.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]},o.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]},o.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},o.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]},o.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.max(Math.max(n,i),o),r=Math.min(Math.min(n,i),o),s=a-r;return t=s<=0?0:a===n?(i-o)/s%6:a===i?2+(o-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?r/(1-s):0)]},o.hsl.hcg=function(e){var t,n=e[1]/100,i=e[2]/100,o=0;return(t=i<.5?2*n*i:2*n*(1-i))<1&&(o=(i-.5*t)/(1-t)),[e[0],100*t,100*o]},o.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]},o.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,o=[0,0,0],a=e[0]/360%1*6,r=a%1,s=1-r;switch(Math.floor(a)){case 0:o[0]=1,o[1]=r,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=r;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=r,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return[255*(t*o[0]+(i=(1-t)*n)),255*(t*o[1]+i),255*(t*o[2]+i)]},o.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]},o.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]},o.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)]},o.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]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]},o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.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},o.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 o(e,t){for(var o=[t[e].parent,e],a=n[t[e].parent][e],r=t[e].parent;t[r].parent;)o.unshift(t[r].parent),a=i(n[t[r].parent][r],a),r=t[r].parent;return a.conversion=o,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,o=0;o<i;o++)e[t[o]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var o=i.pop(),a=Object.keys(n[o]),r=a.length,s=0;s<r;s++){var l=a[s],c=t[l];-1===c.distance&&(c.distance=t[o].distance+1,c.parent=o,i.unshift(l))}return t}(e),i={},a=Object.keys(t),r=a.length,s=0;s<r;s++){var l=a[s];null!==t[l].parent&&(i[l]=o(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,o=0;o<i;o++)n[o]=Math.round(n[o]);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 r=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],olive:[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?m(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:m,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),o="";if(i){o=(i=i[1])[3];for(var a=0;a<t.length;a++)t[a]=parseInt(i[a]+i[a],16);o&&(n=Math.round(parseInt(o+o,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(o=i[2],i=i[1],a=0;a<t.length;a++)t[a]=parseInt(i.slice(2*a,2*a+2),16);o&&(n=Math.round(parseInt(o,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]=p(t[a],0,255);return n=n||0==n?p(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[p(parseInt(t[1]),0,360),p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(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[p(parseInt(t[1]),0,360),p(parseFloat(t[2]),0,100),p(parseFloat(t[3]),0,100),p(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 m(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function p(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])},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,o=2*i-1,a=this.alpha()-n.alpha(),r=((o*a==-1?o:(o+a)/(1+o*a))+1)/2,s=1-r;return this.rgb(r*this.red()+s*n.red(),r*this.green()+s*n.green(),r*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,o=n.values;for(var a in i)i.hasOwnProperty(a)&&("[object Array]"===(t={}.toString.call(e=i[a]))?o[a]=e.slice(0):"[object Number]"===t?o[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,o=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)o[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++)o[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++)o[e][n]=t[c[n]];l=t.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===l?o.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(s[e][n],o[e][n])),o[e][n]=Math.round(i);for(var u in a)u!==e&&(o[u]=r[e][u](o[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),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 k(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var C,w={noop:function(){},uid:(C=0,function(){return C++}),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 w.valueOrDefault(w.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 o,a,r;if(w.isArray(e))if(a=e.length,i)for(o=a-1;o>=0;o--)t.call(n,e[o],o);else for(o=0;o<a;o++)t.call(n,e[o],o);else if(w.isObject(e))for(a=(r=Object.keys(e)).length,o=0;o<a;o++)t.call(n,e[r[o]],r[o])},arrayEquals:function(e,t){var n,i,o,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(a=t[n],(o=e[n])instanceof Array&&a instanceof Array){if(!w.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},clone:function(e){if(w.isArray(e))return e.map(w.clone);if(w.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,o=0;o<i;++o)t[n[o]]=w.clone(e[n[o]]);return t}return e},_merger:function(e,t,n,i){if(k(e)){var o=t[e],a=n[e];w.isObject(o)&&w.isObject(a)?w.merge(o,a,i):t[e]=w.clone(a)}},_mergerIf:function(e,t,n){if(k(e)){var i=t[e],o=n[e];w.isObject(i)&&w.isObject(o)?w.mergeIf(i,o):t.hasOwnProperty(e)||(t[e]=w.clone(o))}},merge:function(e,t,n){var i,o,a,r,s,l=w.isArray(t)?t:[t],c=l.length;if(!w.isObject(e))return e;for(i=(n=n||{}).merger||w._merger,o=0;o<c;++o)if(w.isObject(t=l[o]))for(s=0,r=(a=Object.keys(t)).length;s<r;++s)i(a[s],e,t,n);return e},mergeIf:function(e,t){return w.merge(e,t,{merger:w._mergerIf})},extend:Object.assign||function(e){return w.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=w.inherits,e&&w.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=w;w.callCallback=w.callback,w.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},w.getValueOrDefault=w.valueOrDefault,w.getValueAtIndexOrDefault=w.valueAtIndexOrDefault;var M={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-M.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*M.easeInBounce(2*e):.5*M.easeOutBounce(2*e-1)+.5}},S={effects:M};x.easingEffects=M;var P=Math.PI,T=P/180,O=2*P,L=P/2,D=P/4,I=2*P/3,F={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,o,a){if(a){var r=Math.min(a,o/2,i/2),s=t+r,l=n+r,c=t+i-r,u=n+o-r;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,r,-P,-L),e.arc(c,l,r,-L,0),e.arc(c,u,r,0,L),e.arc(s,u,r,L,P)):s<c?(e.moveTo(s,n),e.arc(c,l,r,-L,L),e.arc(s,l,r,L,P+L)):l<u?(e.arc(s,l,r,-P,0),e.arc(s,u,r,0,P)):e.arc(s,l,r,-P,P),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,o)},drawPoint:function(e,t,n,i,o,a){var r,s,l,c,u,d=(a||0)*T;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(r=t.toString())||"[object HTMLCanvasElement]"===r))return e.save(),e.translate(i,o),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,o,n,0,O),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,o-Math.cos(d)*n),d+=I,e.lineTo(i+Math.sin(d)*n,o-Math.cos(d)*n),d+=I,e.lineTo(i+Math.sin(d)*n,o-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+D)*c,l=Math.sin(d+D)*c,e.arc(i-s,o-l,u,d-P,d-L),e.arc(i+l,o-s,u,d-L,d),e.arc(i+s,o+l,u,d,d+L),e.arc(i-l,o+s,u,d+L,d+P),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*n,e.rect(i-c,o-c,2*c,2*c);break}d+=D;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,o-l),e.lineTo(i+l,o-s),e.lineTo(i+s,o+l),e.lineTo(i-l,o+s),e.closePath();break;case"crossRot":d+=D;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i+l,o-s),e.lineTo(i-l,o+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i+l,o-s),e.lineTo(i-l,o+s),d+=D,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l),e.moveTo(i+l,o-s),e.lineTo(i-l,o+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,o-l),e.lineTo(i+s,o+l);break;case"dash":e.moveTo(i,o),e.lineTo(i+Math.cos(d)*n,o+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 o=n.steppedLine;if(o){if("middle"===o){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"===o&&!i||"after"!==o&&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)}},A=F;x.clear=F.clear,x.drawRoundedRectangle=function(e){e.beginPath(),F.roundedRect.apply(F,arguments)};var E={_set:function(e,t){return x.merge(this[e]||(this[e]={}),t)}};E._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 B=E,N=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,o;return x.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,o=+e.left||0):t=n=i=o=+e||0,{top:t,right:n,bottom:i,left:o,height:t+i,width:o+n}},_parseFont:function(e){var t=B.global,n=N(e.fontSize,t.defaultFontSize),i={family:N(e.fontFamily,t.defaultFontFamily),lineHeight:x.options.toLineHeight(N(e.lineHeight,t.defaultLineHeight),n),size:n,style:N(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 o,a,r,s=!0;for(o=0,a=e.length;o<a;++o)if(void 0!==(r=e[o])&&(void 0!==t&&"function"==typeof r&&(r=r(t),s=!1),void 0!==n&&x.isArray(r)&&(r=r[n],s=!1),void 0!==r))return i&&!s&&(i.cacheable=!1),r}},j={_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}},z=j;x.log10=j.log10;var V=x,H=A,Y=R,q=z;V.easing=S,V.canvas=H,V.options=Y,V.math=q,V.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 U=function(e){V.extend(this,e),this.initialize.apply(this,arguments)};V.extend(U.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=V.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,o=t._view;return n&&1!==e?(o||(o=t._view={}),i||(i=t._start={}),function(e,t,n,i){var o,a,r,s,l,c,u,d,h,f=Object.keys(n);for(o=0,a=f.length;o<a;++o)if(c=n[r=f[o]],t.hasOwnProperty(r)||(t[r]=c),(s=t[r])!==c&&"_"!==r[0]){if(e.hasOwnProperty(r)||(e[r]=s),(u=typeof c)==typeof(l=e[r]))if("string"===u){if((d=_(l)).valid&&(h=_(c)).valid){t[r]=h.mix(d,i).rgbString();continue}}else if(V.isFinite(l)&&V.isFinite(c)){t[r]=l+(c-l)*i;continue}t[r]=c}}(i,o,n,e),t):(t._view=V.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return V.isNumber(this._model.x)&&V.isNumber(this._model.y)}}),U.extend=V.inherits;var W=U,J=W.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),G=J;Object.defineProperty(J.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(J.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),B._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:V.noop,onComplete:V.noop}});var $={animations:[],request:null,addAnimation:function(e,t,n,i){var o,a,r=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),o=0,a=r.length;o<a;++o)if(r[o].chart===e)return void(r[o]=t);r.push(t),1===r.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=V.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=V.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,o=this.animations,a=0;a<o.length;)t=(e=o[a]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),V.callback(e.render,[t,e],t),V.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(V.callback(e.onAnimationComplete,[e],t),t.animating=!1,o.splice(a,1)):++a}},Q=V.options.resolve,K=["push","pop","shift","splice","unshift"];function Z(e,t){var n=e._chartjs;if(n){var i=n.listeners,o=i.indexOf(t);-1!==o&&i.splice(o,1),i.length>0||(K.forEach((function(t){delete e[t]})),delete e._chartjs)}}var X=function(e,t){this.initialize(e,t)};V.extend(X.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(),o=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!i.xAxisID||(e.xAxisID=i.xAxisID||o.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!i.yAxisID||(e.yAxisID=i.yAxisID||o.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||[],o=n.data;for(e=0,t=i.length;e<t;++e)o[e]=o[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(),o=i.data||(i.data=[]);n._data!==o&&(n._data&&Z(n._data,n),o&&Object.isExtensible(o)&&(t=n,(e=o)._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),o=i.apply(this,t);return V.each(e._chartjs.listeners,(function(e){"function"==typeof e[n]&&e[n].apply(e,t)})),o}})})))),n._data=o),n.resyncElements()},_configure:function(){this._config=V.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&V._merger(e,t,n)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:V.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,o=0;o<i;++o)n[o].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,o,a,r=this,s=r.chart,l=r._config,c=e.custom||{},u=s.options.elements[r.datasetElementType.prototype._type]||{},d=r._datasetElementOptions,h={},f={chart:s,dataset:r.getDataset(),datasetIndex:r.index,hover:t};for(n=0,i=d.length;n<i;++n)o=d[n],a=t?"hover"+o.charAt(0).toUpperCase()+o.slice(1):o,h[o]=Q([c[a],l[a],u[a]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,o=n._cachedDataOpts;if(o&&!i)return o;var a,r,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},m={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},p={cacheable:!i};if(i=i||{},V.isArray(h))for(r=0,s=h.length;r<s;++r)f[l=h[r]]=Q([i[l],u[l],d[l]],m,t,p);else for(r=0,s=(a=Object.keys(h)).length;r<s;++r)f[l=a[r]]=Q([i[l],u[h[l]],u[l],d[l]],m,t,p);return p.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){V.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||{},o=e._model,a=V.getHoverColor;e.$previousStyle={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderWidth:o.borderWidth},o.backgroundColor=Q([i.hoverBackgroundColor,t.hoverBackgroundColor,a(o.backgroundColor)],void 0,n),o.borderColor=Q([i.hoverBorderColor,t.hoverBorderColor,a(o.borderColor)],void 0,n),o.borderWidth=Q([i.hoverBorderWidth,t.hoverBorderWidth,o.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,o,a,r=this.getMeta().dataset,s={};if(r){for(a=r._model,o=this._resolveDatasetElementOptions(r,!0),e=0,t=(i=Object.keys(o)).length;e<t;++e)s[n=i[e]]=a[n],a[n]=o[n];r.$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)}}),X.extend=V.inherits;var ee=X,te=2*Math.PI;function ne(e,t){var n=t.startAngle,i=t.endAngle,o=t.pixelMargin,a=o/t.outerRadius,r=t.x,s=t.y;e.beginPath(),e.arc(r,s,t.outerRadius,n-a,i+a),t.innerRadius>o?e.arc(r,s,t.innerRadius-o,i+(a=o/t.innerRadius),n-a,!0):e.arc(r,s,o,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}B._set("global",{elements:{arc:{backgroundColor:B.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=V.getAngleFromPoint(n,{x:e,y:t}),o=i.angle,a=i.distance,r=n.startAngle,s=n.endAngle;s<r;)s+=te;for(;o>s;)o-=te;for(;o<r;)o+=te;return o>=r&&o<=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,o={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,o.fullCircles){for(o.endAngle=o.startAngle+te,t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.startAngle,!0),t.closePath(),e=0;e<o.fullCircles;++e)t.fill();o.endAngle=o.startAngle+n.circumference%te}t.beginPath(),t.arc(o.x,o.y,o.outerRadius,o.startAngle,o.endAngle),t.arc(o.x,o.y,o.innerRadius,o.endAngle,o.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 o,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),o=0;o<n.fullCircles;++o)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+te),o=0;o<n.fullCircles;++o)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,o),t.restore()}}),oe=V.valueOrDefault,ae=B.global.defaultColor;B._set("global",{elements:{line:{tension:.4,backgroundColor:ae,borderWidth:3,borderColor:ae,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var re=W.extend({_type:"line",draw:function(){var e,t,n,i=this,o=i._view,a=i._chart.ctx,r=o.spanGaps,s=i._children.slice(),l=B.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=V.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=r;break}d&&s.push(s[0])}for(a.save(),a.lineCap=o.borderCapStyle||c.borderCapStyle,a.setLineDash&&a.setLineDash(o.borderDash||c.borderDash),a.lineDashOffset=oe(o.borderDashOffset,c.borderDashOffset),a.lineJoin=o.borderJoinStyle||c.borderJoinStyle,a.lineWidth=oe(o.borderWidth,c.borderWidth),a.strokeStyle=o.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?V.previousItem(s,e):s[u],n.skip||(u!==e-1&&!r||-1===u?a.moveTo(n.x,n.y):V.canvas.lineTo(a,t._view,n),u=e);d&&a.closePath(),a.stroke(),a.restore()}}}),se=V.valueOrDefault,le=B.global.defaultColor;function ce(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}B._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,o=t.rotation,a=t.radius,r=t.x,s=t.y,l=B.global,c=l.defaultColor;t.skip||(void 0===e||V.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=se(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,V.canvas.drawPoint(n,i,a,r,s,o))}}),de=B.global.defaultColor;function he(e){return e&&void 0!==e.width}function fe(e){var t,n,i,o,a;return he(e)?(t=e.x-(a=e.width/2),n=e.x+a,i=Math.min(e.y,e.base),o=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,o=e.y+a),{left:t,top:i,right:n,bottom:o}}function me(e,t,n){return e===t?n:e===n?t:e}function pe(e,t,n){var i=null===t,o=null===n,a=!(!e||i&&o)&&fe(e);return a&&(i||t>=a.left&&t<=a.right)&&(o||n>=a.top&&n<=a.bottom)}B._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,o=function(e,t,n){var i,o,a,r,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=me(t,"left","right")):e.base<e.y&&(t=me(t,"bottom","top")),n[t]=!0,n):n}(e);return V.isObject(s)?(i=+s.top||0,o=+s.right||0,a=+s.bottom||0,r=+s.left||0):i=o=a=r=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||o<0?0:o>t?t:o,b:l.bottom||a<0?0:a>n?n:a,l:l.left||r<0?0:r>t?t:r}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+o.l,y:t.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b}}}(t),i=n.outer,o=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===o.w&&i.h===o.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(o.x,o.y,o.w,o.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return pe(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return he(n)?pe(n,e,null):pe(n,null,t)},inXRange:function(e){return pe(this._view,e,null)},inYRange:function(e){return pe(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=re,be=ue,_e=ge;ve.Arc=ie,ve.Line=ye,ve.Point=be,ve.Rectangle=_e;var ke=V._deprecated,Ce=V.valueOrDefault;B._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),B._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var we=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,ke("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),ke("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),ke("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),ke("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),ke("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,o=i.getMeta(),a=i.getDataset(),r=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(o.xAxisID),e._yScale=i.getScaleForId(o.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderSkipped:r.borderSkipped,borderWidth:r.borderWidth,datasetLabel:a.label,label:i.chart.data.labels[t]},V.isArray(a.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,r),e.pivot()},_updateElementGeometry:function(e,t,n,i){var o=this,a=e._model,r=o._getValueScale(),s=r.getBasePixel(),l=r.isHorizontal(),c=o._ruler||o.getRuler(),u=o.calculateBarValuePixels(o.index,t,i),d=o.calculateBarIndexPixels(o.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(),o=i._getMatchingVisibleMetas(this._type),a=i.options.stacked,r=o.length,s=[];for(t=0;t<r&&(n=o[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,o,a,r,s,l,c,u=this.chart,d=this._getValueScale(),h=d.isHorizontal(),f=u.data.datasets,m=d._getMatchingVisibleMetas(this._type),p=d._parseValue(f[e].data[t]),g=n.minBarLength,v=d.options.stacked,y=this.getMeta().stack,b=void 0===p.start?0:p.max>=0&&p.min>=0?p.min:p.max,_=void 0===p.start?p.end:p.max>=0&&p.min>=0?p.max-p.min:p.min-p.max,k=m.length;if(v||void 0===v&&void 0!==y)for(i=0;i<k&&(o=m[i]).index!==e;++i)o.stack===y&&(a=void 0===(c=d._parseValue(f[o.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(p.min<0&&a<0||p.max>=0&&a>0)&&(b+=a));return r=d.getPixelForValue(b),l=(s=d.getPixelForValue(b+_))-r,void 0!==g&&Math.abs(l)<g&&(l=g,s=_>=0&&!h||_<0&&h?r-g:r+g),{size:l,base:r,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var o="flex"===i.barThickness?function(e,t,n){var i,o=t.pixels,a=o[e],r=e>0?o[e-1]:null,s=e<o.length-1?o[e+1]:null,l=n.categoryPercentage;return null===r&&(r=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-r),i=a-(a-Math.min(r,s))/2*l,{chunk:Math.abs(s-r)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):function(e,t,n){var i,o,a=n.barThickness,r=t.stackCount,s=t.pixels[e],l=V.isNullOrUndef(a)?function(e,t){var n,i,o,a,r=e._length;for(o=1,a=t.length;o<a;++o)r=Math.min(r,Math.abs(t[o]-t[o-1]));for(o=0,a=e.getTicks().length;o<a;++o)i=e.getPixelForTick(o),r=o>0?Math.min(r,Math.abs(i-n)):r,n=i;return r}(t.scale,t.pixels):-1;return V.isNullOrUndef(a)?(i=l*n.categoryPercentage,o=n.barPercentage):(i=a*r,o=1),{chunk:i/r,ratio:o,start:s-i/2}}(t,n,i),a=this.getStackIndex(e,this.getMeta().stack),r=o.start+o.chunk*a+o.chunk/2,s=Math.min(Ce(i.maxBarThickness,1/0),o.chunk*o.ratio);return{base:r-s/2,head:r+s/2,center:r,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),o=n.length,a=0;for(V.canvas.clipArea(e.ctx,e.chartArea);a<o;++a){var r=t._parseValue(i.data[a]);isNaN(r.min)||isNaN(r.max)||n[a].draw()}V.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=this,t=V.extend({},ee.prototype._resolveDataElementOptions.apply(e,arguments)),n=e._getIndexScale().options,i=e._getValueScale().options;return t.barPercentage=Ce(n.barPercentage,t.barPercentage),t.barThickness=Ce(n.barThickness,t.barThickness),t.categoryPercentage=Ce(n.categoryPercentage,t.categoryPercentage),t.maxBarThickness=Ce(n.maxBarThickness,t.maxBarThickness),t.minBarLength=Ce(i.minBarLength,t.minBarLength),t}}),xe=V.valueOrDefault,Me=V.options.resolve;B._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 Se=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();V.each(n.data,(function(n,i){t.updateElement(n,i,e)}))},updateElement:function(e,t,n){var i=this,o=i.getMeta(),a=e.custom||{},r=i.getScaleForId(o.xAxisID),s=i.getScaleForId(o.yAxisID),l=i._resolveDataElementOptions(e,t),c=i.getDataset().data[t],u=i.index,d=n?r.getPixelForDecimal(.5):r.getPixelForValue("object"==typeof c?c:NaN,t,u),h=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=r,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=V.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,o=n.getDataset(),a=e.custom||{},r=o.data[t]||{},s=ee.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:o,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=V.extend({},s)),s.radius=Me([a.radius,r.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),Pe=V.valueOrDefault,Te=Math.PI,Oe=2*Te,Le=Te/2;B._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,o=document.createElement("ul"),a=e.data,r=a.datasets,s=a.labels;if(o.setAttribute("class",e.id+"-legend"),r.length)for(t=0,n=r[0].data.length;t<n;++t)(i=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var o=e.getDatasetMeta(0),a=o.controller.getStyle(i);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[i])||o.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,o,a=t.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n<i;++n)(o=r.getDatasetMeta(n)).data[a]&&(o.data[a].hidden=!o.data[a].hidden);r.update()}},cutoutPercentage:50,rotation:-Le,circumference:Oe,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return V.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var De=ee.extend({dataElementType:ve.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","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,o=i.chart,a=o.chartArea,r=o.options,s=1,l=1,c=0,u=0,d=i.getMeta(),h=d.data,f=r.cutoutPercentage/100||0,m=r.circumference,p=i._getRingWeight(i.index);if(m<Oe){var g=r.rotation%Oe,v=(g+=g>=Te?-Oe:g<-Te?Oe:0)+m,y=Math.cos(g),b=Math.sin(g),_=Math.cos(v),k=Math.sin(v),C=g<=0&&v>=0||v>=Oe,w=g<=Le&&v>=Le||v>=Oe+Le,x=g<=-Le&&v>=-Le||v>=Te+Le,M=g===-Te||v>=Te?-1:Math.min(y,y*f,_,_*f),S=x?-1:Math.min(b,b*f,k,k*f),P=C?1:Math.max(y,y*f,_,_*f),T=w?1:Math.max(b,b*f,k,k*f);s=(P-M)/2,l=(T-S)/2,c=-(P+M)/2,u=-(T+S)/2}for(t=0,n=h.length;t<n;++t)h[t]._options=i._resolveDataElementOptions(h[t],t);for(o.borderWidth=i.getMaxBorderWidth(),o.outerRadius=Math.max(Math.min((a.right-a.left-o.borderWidth)/s,(a.bottom-a.top-o.borderWidth)/l)/2,0),o.innerRadius=Math.max(o.outerRadius*f,0),o.radiusLength=(o.outerRadius-o.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),o.offsetX=c*o.outerRadius,o.offsetY=u*o.outerRadius,d.total=i.calculateTotal(),i.outerRadius=o.outerRadius-o.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-o.radiusLength*p,0),t=0,n=h.length;t<n;++t)i.updateElement(h[t],t,e)},updateElement:function(e,t,n){var i=this,o=i.chart,a=o.chartArea,r=o.options,s=r.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=r.rotation,d=r.rotation,h=i.getDataset(),f=n&&s.animateRotate||e.hidden?0:i.calculateCircumference(h.data[t])*(r.circumference/Oe),m=e._options||{};V.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+o.offsetX,y:c+o.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:n&&s.animateScale?0:i.outerRadius,innerRadius:n&&s.animateScale?0:i.innerRadius,label:V.valueAtIndexOrDefault(h.label,t,o.data.labels[t])}});var p=e._model;n&&s.animateRotate||(p.startAngle=0===t?r.rotation:i.getMeta().data[t-1]._model.endAngle,p.endAngle=p.startAngle+p.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return V.each(n.data,(function(n,o){e=t.data[o],isNaN(e)||n.hidden||(i+=Math.abs(e))})),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Oe*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,o,a,r,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)o=e[t],a?(a._configure(),r=a._resolveDataElementOptions(o,t)):r=o._options,"inner"!==r.borderAlign&&(c=(l=r.hoverBorderWidth)>(c=(s=r.borderWidth)>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,i=V.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Pe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Pe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Pe(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(Pe(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});B._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"}}),B._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Ie=we.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Fe=V.valueOrDefault,Ae=V.options.resolve,Ee=V.canvas._isPointInArea;function Be(e,t){var n=e&&e.options.ticks||{},i=n.reverse,o=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:i?a:o,end:i?o:a}}function Ne(e,t,n){var i=n/2,o=Be(e,i),a=Be(t,i);return{top:a.end,right:o.end,bottom:a.start,left:o.start}}function Re(e){var t,n,i,o;return V.isObject(e)?(t=e.top,n=e.right,i=e.bottom,o=e.left):t=n=i=o=e,{top:t,right:n,bottom:i,left:o}}B._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 je=ee.extend({datasetElementType:ve.Line,dataElementType:ve.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",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,o=i.getMeta(),a=o.dataset,r=o.data||[],s=i._config,l=i._showLine=Fe(s.showLine,i.chart.options.showLines);for(i._xScale=i.getScaleForId(o.xAxisID),i._yScale=i.getScaleForId(o.yAxisID),l&&(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a._scale=i._yScale,a._datasetIndex=i.index,a._children=r,a._model=i._resolveDatasetElementOptions(a),a.pivot()),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e);for(l&&0!==a._model.tension&&i.updateBezierControlPoints(),t=0,n=r.length;t<n;++t)r[t].pivot()},updateElement:function(e,t,n){var i,o,a=this,r=a.getMeta(),s=e.custom||{},l=a.getDataset(),c=a.index,u=l.data[t],d=a._xScale,h=a._yScale,f=r.dataset._model,m=a._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof u?u:NaN,t,c),o=n?h.getBasePixel():a.calculatePointY(u,t,c),e._xScale=d,e._yScale=h,e._options=m,e._datasetIndex=c,e._index=t,e._model={x:i,y:o,skip:s.skip||isNaN(i)||isNaN(o),radius:m.radius,pointStyle:m.pointStyle,rotation:m.rotation,backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,tension:Fe(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:m.hitRadius}},_resolveDatasetElementOptions:function(e){var t=this,n=t._config,i=e.custom||{},o=t.chart.options,a=o.elements.line,r=ee.prototype._resolveDatasetElementOptions.apply(t,arguments);return r.spanGaps=Fe(n.spanGaps,o.spanGaps),r.tension=Fe(n.lineTension,a.tension),r.steppedLine=Ae([i.steppedLine,n.steppedLine,a.stepped]),r.clip=Re(Fe(n.clip,Ne(t._xScale,t._yScale,r.borderWidth))),r},calculatePointY:function(e,t,n){var i,o,a,r,s,l,c=this.chart,u=this._yScale,d=0,h=0;if(u.options.stacked){for(r=+u.getRightValue(e),l=(s=c._getSortedVisibleDatasetMetas()).length,i=0;i<l&&(o=s[i]).index!==n;++i)"line"===o.type&&o.yAxisID===u.id&&((a=+u.getRightValue(c.data.datasets[o.index].data[t]))<0?h+=a||0:d+=a||0);return u.getPixelForValue(r<0?h+r:d+r)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,o=this.chart,a=this.getMeta(),r=a.dataset._model,s=o.chartArea,l=a.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(r.spanGaps&&(l=l.filter((function(e){return!e._model.skip}))),"monotone"===r.cubicInterpolationMode)V.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,i=V.splineCurve(V.previousItem(l,e)._model,n,V.nextItem(l,e)._model,r.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(o.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)Ee(n=l[e]._model,s)&&(e>0&&Ee(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&&Ee(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||[],o=t.chartArea,a=t.canvas,r=0,s=i.length;for(this._showLine&&(V.canvas.clipArea(t.ctx,{left:!1===(e=n.dataset._model.clip).left?0:o.left-e.left,right:!1===e.right?a.width:o.right+e.right,top:!1===e.top?0:o.top-e.top,bottom:!1===e.bottom?a.height:o.bottom+e.bottom}),n.dataset.draw(),V.canvas.unclipArea(t.ctx));r<s;++r)i[r].draw(o)},setHoverStyle:function(e){var t=e._model,n=e._options,i=V.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Fe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Fe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Fe(n.hoverBorderWidth,n.borderWidth),t.radius=Fe(n.hoverRadius,n.radius)}}),ze=V.options.resolve;B._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,o=document.createElement("ul"),a=e.data,r=a.datasets,s=a.labels;if(o.setAttribute("class",e.id+"-legend"),r.length)for(t=0,n=r[0].data.length;t<n;++t)(i=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=r[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return o.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map((function(n,i){var o=e.getDatasetMeta(0),a=o.controller.getStyle(i);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[i])||o.data[i].hidden,index:i}})):[]}},onClick:function(e,t){var n,i,o,a=t.index,r=this.chart;for(n=0,i=(r.data.datasets||[]).length;n<i;++n)(o=r.getDatasetMeta(n)).data[a].hidden=!o.data[a].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Ve=ee.extend({dataElementType:ve.Arc,linkScales:V.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,o=this,a=o.getDataset(),r=o.getMeta(),s=o.chart.options.startAngle||0,l=o._starts=[],c=o._angles=[],u=r.data;for(o._updateRadius(),r.count=o.countVisibleElements(),t=0,n=a.data.length;t<n;t++)l[t]=s,i=o._computeAngle(t),c[t]=i,s+=i;for(t=0,n=u.length;t<n;++t)u[t]._options=o._resolveDataElementOptions(u[t],t),o.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,o=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(o/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,o=i.chart,a=i.getDataset(),r=o.options,s=r.animation,l=o.scale,c=o.data.labels,u=l.xCenter,d=l.yCenter,h=r.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(a.data[t]),m=i._starts[t],p=m+(e.hidden?0:i._angles[t]),g=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[t]),v=e._options||{};V.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:m,endAngle:n&&s.animateRotate?h:p,label:V.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return V.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=V.getHoverColor,o=V.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=o(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=o(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=o(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),o=t.getMeta();return isNaN(i.data[e])||o.data[e].hidden?0:ze([t.chart.options.elements.arc.angle,2*Math.PI/n],{chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index},e)}});B._set("pie",V.clone(B.doughnut)),B._set("pie",{cutoutPercentage:0});var He=De,Ye=V.valueOrDefault;B._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var qe=ee.extend({datasetElementType:ve.Line,dataElementType:ve.Point,linkScales:V.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",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,o=i.getMeta(),a=o.dataset,r=o.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=r,a._loop=!0,a._model=i._resolveDatasetElementOptions(a),a.pivot(),t=0,n=r.length;t<n;++t)i.updateElement(r[t],t,e);for(i.updateBezierControlPoints(),t=0,n=r.length;t<n;++t)r[t].pivot()},updateElement:function(e,t,n){var i=this,o=e.custom||{},a=i.getDataset(),r=i.chart.scale,s=r.getPointPositionForValue(t,a.data[t]),l=i._resolveDataElementOptions(e,t),c=i.getMeta().dataset._model,u=n?r.xCenter:s.x,d=n?r.yCenter:s.y;e._scale=r,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:u,y:d,skip:o.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(o.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this,t=e._config,n=e.chart.options,i=ee.prototype._resolveDatasetElementOptions.apply(e,arguments);return i.spanGaps=Ye(t.spanGaps,n.spanGaps),i.tension=Ye(t.lineTension,n.elements.line.tension),i},updateBezierControlPoints:function(){var e,t,n,i,o=this.getMeta(),a=this.chart.chartArea,r=o.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(o.dataset._model.spanGaps&&(r=r.filter((function(e){return!e._model.skip}))),e=0,t=r.length;e<t;++e)n=r[e]._model,i=V.splineCurve(V.previousItem(r,e,!0)._model,n,V.nextItem(r,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=V.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)}});B._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+")"}}}}),B._set("global",{datasets:{scatter:{showLine:!1}}});var Ue={bar:we,bubble:Se,doughnut:De,horizontalBar:Ie,line:je,polarArea:Ve,pie:He,radar:qe,scatter:je};function We(e,t){return e.native?{x:e.x,y:e.y}:V.getRelativePosition(e,t)}function Je(e,t){var n,i,o,a,r,s,l=e._getSortedVisibleDatasetMetas();for(i=0,a=l.length;i<a;++i)for(o=0,r=(n=l[i].data).length;o<r;++o)(s=n[o])._view.skip||t(s)}function Ge(e,t){var n=[];return Je(e,(function(e){e.inRange(t.x,t.y)&&n.push(e)})),n}function $e(e,t,n,i){var o=Number.POSITIVE_INFINITY,a=[];return Je(e,(function(e){if(!n||e.inRange(t.x,t.y)){var r=e.getCenterPoint(),s=i(t,r);s<o?(a=[e],o=s):s===o&&a.push(e)}})),a}function Qe(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var o=t?Math.abs(e.x-i.x):0,a=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}function Ke(e,t,n){var i=We(t,e);n.axis=n.axis||"x";var o=Qe(n.axis),a=n.intersect?Ge(e,i):$e(e,i,!1,o),r=[];return a.length?(e._getSortedVisibleDatasetMetas().forEach((function(e){var t=e.data[a[0]._index];t&&!t._view.skip&&r.push(t)})),r):[]}var Ze={modes:{single:function(e,t){var n=We(t,e),i=[];return Je(e,(function(e){if(e.inRange(n.x,n.y))return i.push(e),i})),i.slice(0,1)},label:Ke,index:Ke,dataset:function(e,t,n){var i=We(t,e);n.axis=n.axis||"xy";var o=Qe(n.axis),a=n.intersect?Ge(e,i):$e(e,i,!1,o);return a.length>0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return Ke(e,t,{intersect:!1})},point:function(e,t){return Ge(e,We(t,e))},nearest:function(e,t,n){var i=We(t,e);n.axis=n.axis||"xy";var o=Qe(n.axis);return $e(e,i,n.intersect,o)},x:function(e,t,n){var i=We(t,e),o=[],a=!1;return Je(e,(function(e){e.inXRange(i.x)&&o.push(e),e.inRange(i.x,i.y)&&(a=!0)})),n.intersect&&!a&&(o=[]),o},y:function(e,t,n){var i=We(t,e),o=[],a=!1;return Je(e,(function(e){e.inYRange(i.y)&&o.push(e),e.inRange(i.x,i.y)&&(a=!0)})),n.intersect&&!a&&(o=[]),o}}},Xe=V.extend;function et(e,t){return V.where(e,(function(e){return e.pos===t}))}function tt(e,t){return e.sort((function(e,n){var i=t?n:e,o=t?e:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight}))}function nt(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function it(e,t,n){var i,o,a=n.box,r=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();r.top=Math.max(r.top,s.top),r.left=Math.max(r.left,s.left),r.bottom=Math.max(r.bottom,s.bottom),r.right=Math.max(r.right,s.right)}if(i=t.outerWidth-nt(r,e,"left","right"),o=t.outerHeight-nt(r,e,"top","bottom"),i!==e.w||o!==e.h){e.w=i,e.h=o;var l=n.horizontal?[i,e.w]:[o,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function ot(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 at(e,t,n){var i,o,a,r,s,l,c=[];for(i=0,o=e.length;i<o;++i)(r=(a=e[i]).box).update(a.width||t.w,a.height||t.h,ot(a.horizontal,t)),it(t,n,a)&&(l=!0,c.length&&(s=!0)),r.fullWidth||c.push(a);return s&&at(c,t,n)||l}function rt(e,t,n){var i,o,a,r,s=n.padding,l=t.x,c=t.y;for(i=0,o=e.length;i<o;++i)r=(a=e[i]).box,a.horizontal?(r.left=r.fullWidth?s.left:t.left,r.right=r.fullWidth?n.outerWidth-s.right:t.left+t.w,r.top=c,r.bottom=c+r.height,r.width=r.right-r.left,c=r.bottom):(r.left=l,r.right=l+r.width,r.top=t.top,r.bottom=t.top+t.h,r.height=r.bottom-r.top,l=r.right);t.x=l,t.y=c}B._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var st,lt={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,o=["fullWidth","position","weight"],a=o.length,r=0;r<a;++r)n.hasOwnProperty(i=o[r])&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=V.options.toPadding((e.options.layout||{}).padding),o=t-i.width,a=n-i.height,r=function(e){var t=function(e){var t,n,i,o=[];for(t=0,n=(e||[]).length;t<n;++t)o.push({index:t,box:i=e[t],pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return o}(e),n=tt(et(t,"left"),!0),i=tt(et(t,"right")),o=tt(et(t,"top"),!0),a=tt(et(t,"bottom"));return{leftAndTop:n.concat(o),rightAndBottom:i.concat(a),chartArea:et(t,"chartArea"),vertical:n.concat(i),horizontal:o.concat(a)}}(e.boxes),s=r.vertical,l=r.horizontal,c=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,vBoxMaxWidth:o/2/s.length,hBoxMaxHeight:a/2}),u=Xe({maxPadding:Xe({},i),w:o,h:a,x:i.left,y:i.top},i);!function(e,t){var n,i,o;for(n=0,i=e.length;n<i;++n)(o=e[n]).width=o.horizontal?o.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,o.height=o.horizontal&&t.hBoxMaxHeight}(s.concat(l),c),at(s,u,c),at(l,u,c)&&at(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(r.leftAndTop,u,c),u.x+=u.w,u.y+=u.h,rt(r.rightAndBottom,u,c),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},V.each(r.chartArea,(function(t){var n=t.box;Xe(n,e.chartArea),n.update(u.w,u.h)}))}}},ct=(st=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"}))&&st.default||st,ut=["animationstart","webkitAnimationStart"],dt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ht(e,t){var n=V.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var ft=!!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 mt(e,t,n){e.addEventListener(t,n,ft)}function pt(e,t,n){e.removeEventListener(t,n,ft)}function gt(e,t,n,i,o){return{type:e,chart:t,native:o||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function vt(e){var t=document.createElement("div");return t.className=e||"",t}var yt={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,ct)}},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"),o=e.getAttribute("width");if(e.$chartjs={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===o||""===o){var a=ht(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 r=ht(e,"height");void 0!==a&&(e.height=r)}}(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];V.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)})),V.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 o=n.$chartjs||(n.$chartjs={});mt(i,t,(o.proxies||(o.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=dt[e.type]||e.type,i=V.getRelativePosition(e,t);return gt(n,t,i.x,i.y,e)}(t,e))})}else!function(e,t,n){var i,o,a,r,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=vt("chartjs-size-monitor"),n=vt("chartjs-size-monitor-expand"),i=vt("chartjs-size-monitor-shrink");n.appendChild(vt()),i.appendChild(vt()),t.appendChild(n),t.appendChild(i),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var o=function(){t._reset(),e()};return mt(n,"scroll",o.bind(n,"expand")),mt(i,"scroll",o.bind(i,"shrink")),t}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,o=i?i.clientWidth:0;t(gt("resize",n)),i&&i.clientWidth<o&&n.canvas&&t(gt("resize",n))}},a=!1,r=[],function(){r=Array.prototype.slice.call(arguments),o=o||this,a||(a=!0,V.requestAnimFrame.call(window,(function(){a=!1,i.apply(o,r)})))}));!function(e,t){var n=e.$chartjs||(e.$chartjs={}),i=n.renderProxy=function(e){"chartjs-render-animation"===e.animationName&&t()};V.each(ut,(function(t){mt(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,o,a,r=e.canvas;if("resize"!==t){var s=((n.$chartjs||{}).proxies||{})[e.id+"_"+t];s&&pt(r,t,s)}else a=(o=(i=r).$chartjs||{}).resizer,delete o.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(V.each(ut,(function(t){pt(e,t,n)})),delete t.renderProxy),e.classList.remove("chartjs-render-monitor")}(i),a&&a.parentNode&&a.parentNode.removeChild(a)}};V.addEvent=mt,V.removeEvent=pt;var bt=V.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},yt._enabled?yt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});B._set("global",{plugins:{}});var _t={_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,o,a,r,s,l=this.descriptors(e),c=l.length;for(i=0;i<c;++i)if("function"==typeof(s=(a=(o=l[i]).plugin)[t])&&((r=[e].concat(n||[])).push(o.options),!1===s.apply(a,r)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],o=e&&e.config||{},a=o.options&&o.options.plugins||{};return this._plugins.concat(o.plugins||[]).forEach((function(e){if(-1===n.indexOf(e)){var t=e.id,o=a[t];!1!==o&&(!0===o&&(o=V.clone(B.global.plugins[t])),n.push(e),i.push({plugin:e,options:o||{}}))}})),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},kt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=V.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?V.merge(Object.create(null),[B.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=V.extend(this.defaults[e],t))},addScalesToLayout:function(e){V.each(e.scales,(function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,lt.addBox(e,t)}))}},Ct=V.valueOrDefault,wt=V.rtl.getRtlAdapter;B._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:V.noop,title:function(e,t){var n="",i=t.labels,o=i?i.length:0;if(e.length>0){var a=e[0];a.label?n=a.label:a.xLabel?n=a.xLabel:o>0&&a.index<o&&(n=i[a.index])}return n},afterTitle:V.noop,beforeBody:V.noop,beforeLabel:V.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),V.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:V.noop,afterBody:V.noop,beforeFooter:V.noop,footer:V.noop,afterFooter:V.noop}}});var xt={average:function(e){if(!e.length)return!1;var t,n,i=0,o=0,a=0;for(t=0,n=e.length;t<n;++t){var r=e[t];if(r&&r.hasValue()){var s=r.tooltipPosition();i+=s.x,o+=s.y,++a}}return{x:i/a,y:o/a}},nearest:function(e,t){var n,i,o,a=t.x,r=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=V.distanceBetweenPoints(t,c);u<s&&(s=u,o=l)}}if(o){var d=o.tooltipPosition();a=d.x,r=d.y}return{x:a,y:r}}};function Mt(e,t){return t&&(V.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function St(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Pt(e){var t=B.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Ct(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Ct(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Ct(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Ct(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Ct(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Ct(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Ct(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Ct(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Ct(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 Tt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Ot(e){return Mt([],St(e))}var Lt=W.extend({initialize:function(){this._model=Pt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,i=n.beforeTitle.apply(e,arguments),o=n.title.apply(e,arguments),a=n.afterTitle.apply(e,arguments),r=[];return r=Mt(r,St(i)),r=Mt(r,St(o)),Mt(r,St(a))},getBeforeBody:function(){return Ot(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,o=[];return V.each(e,(function(e){var a={before:[],lines:[],after:[]};Mt(a.before,St(i.beforeLabel.call(n,e,t))),Mt(a.lines,i.label.call(n,e,t)),Mt(a.after,St(i.afterLabel.call(n,e,t))),o.push(a)})),o},getAfterBody:function(){return Ot(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),i=t.footer.apply(e,arguments),o=t.afterFooter.apply(e,arguments),a=[];return a=Mt(a,St(n)),a=Mt(a,St(i)),Mt(a,St(o))},update:function(e){var t,n,i,o,a,r,s,l,c,u,d=this,h=d._options,f=d._model,m=d._model=Pt(h),p=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};if(p.length){m.opacity=1;var k=[],C=[];_=xt[h.position].call(d,p,d._eventPosition);var w=[];for(t=0,n=p.length;t<n;++t)w.push((o=void 0,a=void 0,l=void 0,c=void 0,u=void 0,o=(i=p[t])._xScale,a=i._yScale||i._scale,r=i._index,c=(l=i._chart.getDatasetMeta(s=i._datasetIndex).controller)._getIndexScale(),u=l._getValueScale(),{xLabel:o?o.getLabelForIndex(r,s):"",yLabel:a?a.getLabelForIndex(r,s):"",label:c?""+c.getLabelForIndex(r,s):"",value:u?""+u.getLabelForIndex(r,s):"",index:r,datasetIndex:s,x:i._model.x,y:i._model.y}));h.filter&&(w=w.filter((function(e){return h.filter(e,g)}))),h.itemSort&&(w=w.sort((function(e,t){return h.itemSort(e,t,g)}))),V.each(w,(function(e){k.push(h.callbacks.labelColor.call(d,e,d._chart)),C.push(h.callbacks.labelTextColor.call(d,e,d._chart))})),m.title=d.getTitle(w,g),m.beforeBody=d.getBeforeBody(w,g),m.body=d.getBody(w,g),m.afterBody=d.getAfterBody(w,g),m.footer=d.getFooter(w,g),m.x=_.x,m.y=_.y,m.caretPadding=h.caretPadding,m.labelColors=k,m.labelTextColors=C,m.dataPoints=w,b=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,o=0,a=t.body,r=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+=(r+=t.beforeBody.length+t.afterBody.length)*u,i+=r?(r-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){o=Math.max(o,n.measureText(e).width+h)};return n.font=V.fontString(c,t._titleFontStyle,t._titleFontFamily),V.each(t.title,f),n.font=V.fontString(u,t._bodyFontStyle,t._bodyFontFamily),V.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,V.each(a,(function(e){V.each(e.before,f),V.each(e.lines,f),V.each(e.after,f)})),h=0,n.font=V.fontString(d,t._footerFontStyle,t._footerFontFamily),V.each(t.footer,f),{width:o+=2*t.xPadding,height:i}}(this,m),y=function(e,t,n,i){var o=e.x,a=e.y,r=e.caretPadding,s=n.xAlign,l=n.yAlign,c=e.caretSize+r,u=e.cornerRadius+r;return"right"===s?o-=t.width:"center"===s&&((o-=t.width/2)+t.width>i.width&&(o=i.width-t.width),o<0&&(o=0)),"top"===l?a+=c:a-="bottom"===l?t.height+c:t.height/2,"center"===l?"left"===s?o+=c:"right"===s&&(o-=c):"left"===s?o-=u:"right"===s&&(o+=u),{x:o,y:a}}(m,b,v=function(e,t){var n,i,o,a,r,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}),o=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},r=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",o(s.x)&&(u="center",d=r(s.y))):i(s.x)&&(u="right",a(s.x)&&(u="center",d=r(s.y)));var m=e._options;return{xAlign:m.xAlign?m.xAlign:u,yAlign:m.yAlign?m.yAlign:d}}(this,b),d._chart)}else m.opacity=0;return m.xAlign=v.xAlign,m.yAlign=v.yAlign,m.x=y.x,m.y=y.y,m.width=b.width,m.height=b.height,m.caretX=_.x,m.caretY=_.y,d._model=m,e&&h.custom&&h.custom.call(d,m),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,o,a,r,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,m=e.y,p=t.width,g=t.height;if("center"===h)s=m+g/2,"left"===d?(o=(i=f)-c,a=i,r=s+c,l=s-c):(o=(i=f+p)+c,a=i,r=s-c,l=s+c);else if("left"===d?(i=(o=f+u+c)-c,a=o+c):"right"===d?(i=(o=f+p-u-c)-c,a=o+c):(i=(o=n.caretX)-c,a=o+c),"top"===h)s=(r=m)-c,l=r;else{s=(r=m+g)+c,l=r;var v=a;a=i,i=v}return{x1:i,x2:o,x3:a,y1:r,y2:s,y3:l}},drawTitle:function(e,t,n){var i,o,a,r=t.title,s=r.length;if(s){var l=wt(t.rtl,t.x,t.width);for(e.x=Tt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,o=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=V.fontString(i,t._titleFontStyle,t._titleFontFamily),a=0;a<s;++a)n.fillText(r[a],l.x(e.x),e.y+i/2),e.y+=i+o,a+1===s&&(e.y+=t.titleMarginBottom-o)}},drawBody:function(e,t,n){var i,o,a,r,s,l,c,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,m=t.body,p=t.displayColors,g=0,v=p?Tt(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=V.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Tt(t,_),n.fillStyle=t.bodyFontColor,V.each(t.beforeBody,b),g=p&&"right"!==_?"center"===f?d/2+1:d+2:0,s=0,c=m.length;s<c;++s){for(i=m[s],a=t.labelColors[s],n.fillStyle=o=t.labelTextColors[s],V.each(i.before,b),l=0,u=(r=i.lines).length;l<u;++l){if(p){var k=y.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(y.leftForLtr(k,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=a.borderColor,n.strokeRect(y.leftForLtr(k,d),e.y,d,d),n.fillStyle=a.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(k,1),d-2),e.y+1,d-2,d-2),n.fillStyle=o}b(r[l])}V.each(i.after,b)}g=0,V.each(t.afterBody,b),e.y-=h},drawFooter:function(e,t,n){var i,o,a=t.footer,r=a.length;if(r){var s=wt(t.rtl,t.x,t.width);for(e.x=Tt(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=V.fontString(i,t._footerFontStyle,t._footerFontFamily),o=0;o<r;++o)n.fillText(a[o],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 o=t.xAlign,a=t.yAlign,r=e.x,s=e.y,l=i.width,c=i.height,u=t.cornerRadius;n.beginPath(),n.moveTo(r+u,s),"top"===a&&this.drawCaret(e,i),n.lineTo(r+l-u,s),n.quadraticCurveTo(r+l,s,r+l,s+u),"center"===a&&"right"===o&&this.drawCaret(e,i),n.lineTo(r+l,s+c-u),n.quadraticCurveTo(r+l,s+c,r+l-u,s+c),"bottom"===a&&this.drawCaret(e,i),n.lineTo(r+u,s+c),n.quadraticCurveTo(r,s+c,r,s+c-u),"center"===a&&"left"===o&&this.drawCaret(e,i),n.lineTo(r,s+u),n.quadraticCurveTo(r,s,r+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},o=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=o,this.drawBackground(i,t,e,n),i.y+=t.yPadding,V.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),V.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=!V.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}});Lt.positioners=xt;var Dt=V.valueOrDefault;function It(){return V.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var o,a,r,s=n[e].length;for(t[e]||(t[e]=[]),o=0;o<s;++o)a=Dt((r=n[e][o]).type,"xAxes"===e?"category":"linear"),o>=t[e].length&&t[e].push({}),V.merge(t[e][o],!t[e][o].type||r.type&&r.type!==t[e][o].type?[kt.getScaleDefaults(a),r]:r)}else V._merger(e,t,n,i)}})}function Ft(){return V.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var o=t[e]||Object.create(null),a=n[e];"scales"===e?t[e]=It(o,a):"scale"===e?t[e]=V.merge(o,[kt.getScaleDefaults(a.type),a]):V._merger(e,t,n,i)}})}function At(e){var t=e.options;V.each(e.scales,(function(t){lt.removeBox(e,t)})),t=Ft(B.global,B[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function Et(e,t,n){var i,o=function(e){return e.id===i};do{i=t+n++}while(V.findIndex(e,o)>=0);return i}function Bt(e){return"top"===e||"bottom"===e}function Nt(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}B._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 Rt=function(e,t){return this.construct(e,t),this};V.extend(Rt.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=Ft(B.global,B[e.type],e.options||{}),e}(t);var i=bt.acquireContext(e,t),o=i&&i.canvas,a=o&&o.height,r=o&&o.width;n.id=V.uid(),n.ctx=i,n.canvas=o,n.config=t,n.width=r,n.height=a,n.aspectRatio=a?r/a:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Rt.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&o?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return _t.notify(e,"beforeInit"),V.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),_t.notify(e,"afterInit"),e},clear:function(){return V.canvas.clear(this),this},stop:function(){return $.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,o=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(V.getMaximumWidth(i))),r=Math.max(0,Math.floor(o?a/o:V.getMaximumHeight(i)));if((t.width!==a||t.height!==r)&&(i.width=t.width=a,i.height=t.height=r,i.style.width=a+"px",i.style.height=r+"px",V.retinaScale(t,n.devicePixelRatio),!e)){var s={width:a,height:r};_t.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;V.each(t.xAxes,(function(e,n){e.id||(e.id=Et(t.xAxes,"x-axis-",n))})),V.each(t.yAxes,(function(e,n){e.id||(e.id=Et(t.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],o=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"}),V.each(i,(function(t){var i=t.options,a=i.id,r=Dt(i.type,t.dtype);Bt(i.position)!==Bt(t.dposition)&&(i.position=t.dposition),o[a]=!0;var s=null;if(a in n&&n[a].type===r)(s=n[a]).options=i,s.ctx=e.ctx,s.chart=e;else{var l=kt.getScaleConstructor(r);if(!l)return;s=new l({id:a,type:r,options:i,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)})),V.each(o,(function(e,t){e||delete n[t]})),e.scales=n,kt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],o=n.data.datasets;for(e=0,t=o.length;e<t;e++){var a=o[e],r=n.getDatasetMeta(e),s=a.type||n.config.type;if(r.type&&r.type!==s&&(n.destroyDatasetMeta(e),r=n.getDatasetMeta(e)),r.type=s,r.order=a.order||0,r.index=e,r.controller)r.controller.updateIndex(e),r.controller.linkScales();else{var l=Ue[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(n,e),i.push(r.controller)}}return i},resetElements:function(){var e=this;V.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=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),At(i),_t._invalidate(i),!1!==_t.notify(i,"beforeUpdate")){i.tooltip._data=i.data;var o=i.buildOrUpdateControllers();for(t=0,n=i.data.datasets.length;t<n;t++)i.getDatasetMeta(t).controller.buildOrUpdateElements();i.updateLayout(),i.options.animation&&i.options.animation.duration&&V.each(o,(function(e){e.reset()})),i.updateDatasets(),i.tooltip.initialize(),i.lastActive=[],_t.notify(i,"afterUpdate"),i._layers.sort(Nt("z","_idx")),i._bufferedRender?i._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:i.render(e)}},updateLayout:function(){var e=this;!1!==_t.notify(e,"beforeLayout")&&(lt.update(this,this.width,this.height),e._layers=[],V.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})),_t.notify(e,"afterScaleUpdate"),_t.notify(e,"afterLayout"))},updateDatasets:function(){if(!1!==_t.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);_t.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==_t.notify(this,"beforeDatasetUpdate",[n])&&(t.controller._update(),_t.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=Dt(e.duration,n&&n.duration),o=e.lazy;if(!1!==_t.notify(t,"beforeRender")){var a=function(e){_t.notify(t,"afterRender"),V.callback(n&&n.onComplete,[e],t)};if(n&&i){var r=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,V.easing.effects[t.easing])(i),i,n)},onAnimationProgress:n.onProgress,onAnimationComplete:a});$.addAnimation(t,r,i,o)}else t.draw(),a(new G({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),V.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==_t.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),_t.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(Nt("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n;if(!1!==_t.notify(this,"beforeDatasetsDraw",[e])){for(n=(t=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(t[n],e);_t.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==_t.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),_t.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==_t.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),_t.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return Ze.modes.single(this,e)},getElementsAtEvent:function(e){return Ze.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Ze.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=Ze.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return Ze.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(),V.canvas.clear(n),bt.releaseContext(n.ctx),n.canvas=null,n.ctx=null),_t.notify(n,"destroy"),delete Rt.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Lt({_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)};V.each(e.options.events,(function(i){bt.addEventListener(e,i,n),t[i]=n})),e.options.responsive&&(n=function(){e.resize()},bt.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,V.each(t,(function(t,n){bt.removeEventListener(e,n,t)})))},updateHoverStyle:function(e,t,n){var i,o,a,r=n?"set":"remove";for(o=0,a=e.length;o<a;++o)(i=e[o])&&this.getDatasetMeta(i._datasetIndex).controller[r+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+r+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==_t.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)),_t.notify(t,"afterEvent",[e]);var o=t._bufferedRequest;return o?t.render(o):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||{},o=i.hover;return n.lastActive=n.lastActive||[],n.active="mouseout"===e.type?[]:n.getElementsAtEventForMode(e,o.mode,o),V.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,o.mode,!1),n.active.length&&o.mode&&n.updateHoverStyle(n.active,o.mode,!0),t=!V.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Rt.instances={};var jt=Rt;function zt(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Vt(e){this.options=e||{}}Rt.Controller=Rt,Rt.types={},V.configMerge=Ft,V.scaleMerge=It,V.extend(Vt.prototype,{formats:zt,parse:zt,format:zt,add:zt,diff:zt,startOf:zt,endOf:zt,_create:function(e){return e}}),Vt.override=function(e){V.extend(Vt.prototype,e)};var Ht={_date:Vt},Yt={formatters:{values:function(e){return V.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 o=V.log10(Math.abs(i)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var r=V.log10(Math.abs(e)),s=Math.floor(r)-Math.floor(o);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(o);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(V.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},qt=V.isArray,Ut=V.isNullOrUndef,Wt=V.valueOrDefault,Jt=V.valueAtIndexOrDefault;function Gt(e,t,n){var i,o=e.getTicks().length,a=Math.min(t,o-1),r=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel;if(!(n&&(i=1===o?Math.max(r-s,l-r):0===t?(e.getPixelForTick(1)-r)/2:(r-e.getPixelForTick(a-1))/2,(r+=a<t?i:-i)<s-1e-6||r>l+1e-6)))return r}function $t(e){return e.drawTicks?e.tickMarkLength:0}function Qt(e){var t,n;return e.display?(t=V.options._parseFont(e),n=V.options.toPadding(e.padding),t.lineHeight+n.height):0}function Kt(e,t){return V.extend(V.options._parseFont({fontFamily:Wt(t.fontFamily,e.fontFamily),fontSize:Wt(t.fontSize,e.fontSize),fontStyle:Wt(t.fontStyle,e.fontStyle),lineHeight:Wt(t.lineHeight,e.lineHeight)}),{color:V.options.resolve([t.fontColor,e.fontColor,B.global.defaultFontColor])})}function Zt(e){var t=Kt(e,e.minor);return{minor:t,major:e.major.enabled?Kt(e,e.major):t}}function Xt(e){var t,n,i,o=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&o.push(t);return o}function en(e,t,n,i){var o,a,r,s,l=Wt(n,0),c=Math.min(Wt(i,e.length),e.length),u=0;for(t=Math.ceil(t),i&&(t=(o=i-n)/Math.floor(o/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(a=Math.max(l,0);a<c;a++)r=e[a],a===s?(r._index=a,u++,s=Math.round(l+u*t)):delete r.label}B._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:Yt.formatters.values,minor:{},major:{}}});var tn=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(){V.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,o,a,r,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=V.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(),r=l.buildTicks()||[],(!(r=l.afterBuildTicks(r)||r)||!r.length)&&l.ticks)for(r=[],i=0,o=l.ticks.length;i<o;++i)r.push({value:l.ticks[i],major:!1});return l._ticks=r,a=l._convertTicksToLabels((s=u<r.length)?function(e,t){for(var n=[],i=e.length/t,o=0,a=e.length;o<a;o+=i)n.push(e[Math.floor(o)]);return n}(r,u):r),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(r):r,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(){V.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){V.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(){V.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){V.callback(this.options.beforeDataLimits,[this])},determineDataLimits:V.noop,afterDataLimits:function(){V.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){V.callback(this.options.beforeBuildTicks,[this])},buildTicks:V.noop,afterBuildTicks:function(e){var t=this;return qt(e)&&e.length?V.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=V.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){V.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){V.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){V.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,o,a,r,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>(o=l.offset?s.maxWidth/u:i/(u-1))&&(o=i/(u-(l.offset?.5:1)),a=s.maxHeight-$t(l.gridLines)-c.padding-Qt(l.scaleLabel),r=Math.sqrt(t*t+n*n),f=V.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/o,1)),Math.asin(Math.min(a/r,1))-Math.asin(n/r))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){V.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){V.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,o=i.ticks,a=i.scaleLabel,r=i.gridLines,s=e._isVisible(),l="bottom"===i.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=$t(r)+Qt(a)),c?s&&(t.height=$t(r)+Qt(a)):t.height=e.maxHeight,o.display&&s){var u=Zt(o),d=e._getLabelSizes(),h=d.first,f=d.last,m=d.widest,p=d.highest,g=.4*u.minor.lineHeight,v=o.padding;if(c){var y=0!==e.labelRotation,b=V.toRadians(e.labelRotation),_=Math.cos(b),k=Math.sin(b);t.height=Math.min(e.maxHeight,t.height+(k*m.width+_*(p.height-(y?p.offset:0))+(y?0:g))+v);var C,w,x=e.getPixelForTick(0)-e.left,M=e.right-e.getPixelForTick(e.getTicks().length-1);y?(C=l?_*h.width+k*h.offset:k*(h.height-h.offset),w=l?k*(f.height-f.offset):_*f.width+k*f.offset):(C=h.width/2,w=f.width/2),e.paddingLeft=Math.max((C-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((w-M)*e.width/(e.width-M),0)+3}else t.width=Math.min(e.maxWidth,t.width+(o.mirror?0:m.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(){V.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(Ut(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,o=this;for(o.ticks=e.map((function(e){return e.value})),o.beforeTickToLabelConversion(),t=o.convertTicksToLabels(e)||o.ticks,o.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 o,a,r,s,l,c,u,d,h,f,m,p,g,v=n.length,y=[],b=[],_=[],k=0,C=0;for(o=0;o<v;++o){if(s=n[o].label,e.font=c=(l=n[o].major?t.major:t.minor).string,u=i[c]=i[c]||{data:{},gc:[]},d=l.lineHeight,h=f=0,Ut(s)||qt(s)){if(qt(s))for(a=0,r=s.length;a<r;++a)Ut(m=s[a])||qt(m)||(h=V.measureText(e,u.data,u.gc,h,m),f+=d)}else h=V.measureText(e,u.data,u.gc,h,s),f=d;y.push(h),b.push(f),_.push(d/2),k=Math.max(h,k),C=Math.max(f,C)}function w(e){return{width:y[e]||0,height:b[e]||0,offset:_[e]||0}}return function(e,t){V.each(e,(function(e){var n,i=e.gc,o=i.length/2;if(o>t){for(n=0;n<o;++n)delete e.data[i[n]];i.splice(0,o)}}))}(i,v),p=y.indexOf(k),g=b.indexOf(C),{first:w(0),last:w(v-1),widest:w(p),highest:w(g)}}(e.ctx,Zt(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,o;return qt(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),o=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,o=e),{min:i,max:o,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:V.noop,getPixelForValue:V.noop,getValueForPixel:V.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,o,a=this.options.ticks,r=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>r)return function(e,t,n){var i,o,a=0,r=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)o=e[i],i===r?(o._index=i,r=t[++a*n]):delete o.label}(e,s,l/r),Xt(e);if(i=function(e,t,n,i){var o,a,r,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(r=0,s=(o=V.math._factorize(l)).length-1;r<s;r++)if((a=o[r])>c)return a;return Math.max(c,1)}(s,e,0,r),l>0){for(t=0,n=l-1;t<n;t++)en(e,i,s[t],s[t+1]);return en(e,i,V.isNullOrUndef(o=l>1?(u-c)/(l-1):null)?0:c-o,c),en(e,i,u,V.isNullOrUndef(o)?e.length:u+o),Xt(e)}return en(e,i),Xt(e)},_tickSize:function(){var e=this.options.ticks,t=V.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),o=this._getLabelSizes(),a=e.autoSkipPadding||0,r=o?o.widest.width+a:0,s=o?o.highest.height+a:0;return this.isHorizontal()?s*n>r*i?r/n:s/i:s*i<r*n?s/n:r/i},_isVisible:function(){var e,t,n,i=this.chart,o=this.options.display;if("auto"!==o)return!!o;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,o,a,r,s,l,c,u,d,h,f,m,p,g,v,y=this,b=y.chart,_=y.options,k=_.gridLines,C=_.position,w=k.offsetGridLines,x=y.isHorizontal(),M=y._ticksToDraw,S=M.length+(w?1:0),P=$t(k),T=[],O=k.drawBorder?Jt(k.lineWidth,0,0):0,L=O/2,D=V._alignPixel,I=function(e){return D(b,e,O)};for("top"===C?(t=I(y.bottom),s=y.bottom-P,c=t-L,d=I(e.top)+L,f=e.bottom):"bottom"===C?(t=I(y.top),d=e.top,f=I(e.bottom)-L,s=t+L,c=y.top+P):"left"===C?(t=I(y.right),r=y.right-P,l=t-L,u=I(e.left)+L,h=e.right):(t=I(y.left),u=e.left,h=I(e.right)-L,r=t+L,l=y.left+P),n=0;n<S;++n)Ut((i=M[n]||{}).label)&&n<M.length||(n===y.zeroLineIndex&&_.offset===w?(m=k.zeroLineWidth,p=k.zeroLineColor,g=k.zeroLineBorderDash||[],v=k.zeroLineBorderDashOffset||0):(m=Jt(k.lineWidth,n,1),p=Jt(k.color,n,"rgba(0,0,0,0.1)"),g=k.borderDash||[],v=k.borderDashOffset||0),void 0!==(o=Gt(y,i._index||n,w))&&(a=D(b,o,m),x?r=l=u=h=a:s=c=d=f=a,T.push({tx1:r,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:h,y2:f,width:m,color:p,borderDash:g,borderDashOffset:v})));return T.ticksLength=S,T.borderValue=t,T},_computeLabelItems:function(){var e,t,n,i,o,a,r,s,l,c,u,d,h=this,f=h.options,m=f.ticks,p=f.position,g=m.mirror,v=h.isHorizontal(),y=h._ticksToDraw,b=Zt(m),_=m.padding,k=$t(f.gridLines),C=-V.toRadians(h.labelRotation),w=[];for("top"===p?(a=h.bottom-k-_,r=C?"left":"center"):"bottom"===p?(a=h.top+k+_,r=C?"right":"center"):"left"===p?(o=h.right-(g?0:k)-_,r=g?"left":"right"):(o=h.left+(g?0:k)+_,r=g?"right":"left"),e=0,t=y.length;e<t;++e)Ut(i=(n=y[e]).label)||(s=h.getPixelForTick(n._index||e)+m.labelOffset,c=(l=n.major?b.major:b.minor).lineHeight,u=qt(i)?i.length:1,v?(o=s,d="top"===p?((C?1:.5)-u)*c:(C?0:.5)*c):(a=s,d=(1-u)*c/2),w.push({x:o,y:a,rotation:C,label:i,font:l,textOffset:d,textAlign:r}));return w},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,o,a,r,s,l=t.ctx,c=t.chart,u=V._alignPixel,d=n.drawBorder?Jt(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(a=0,r=h.length;a<r;++a)o=(s=h[a]).color,(i=s.width)&&o&&(l.save(),l.lineWidth=i,l.strokeStyle=o,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,m,p,g,v=d,y=Jt(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=u(c,t.left,v)-v/2,m=u(c,t.right,y)+y/2,p=g=b):(p=u(c,t.top,v)-v/2,g=u(c,t.bottom,y)+y/2,f=m=b),l.lineWidth=d,l.strokeStyle=Jt(n.color,0),l.beginPath(),l.moveTo(f,p),l.lineTo(m,g),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,o,a,r,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(r=(a=u[t]).font,c.save(),c.translate(a.x,a.y),c.rotate(a.rotation),c.font=r.string,c.fillStyle=r.color,c.textBaseline="middle",c.textAlign=a.textAlign,l=a.textOffset,qt(s=a.label))for(n=0,o=s.length;n<o;++n)c.fillText(""+s[n],0,l),l+=r.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 o,a,r=Wt(i.fontColor,B.global.defaultFontColor),s=V.options._parseFont(i),l=V.options.toPadding(i.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())o=e.left+e.width/2,a="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var h="left"===u;o=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(o,a),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=r,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)}))}});tn.prototype._draw=tn.prototype.draw;var nn=tn,on=V.isNullOrUndef,an=nn.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,o=i.min,a=i.max,r=0,s=n.length-1;void 0!==o&&(e=n.indexOf(o))>=0&&(r=e),void 0!==a&&(e=n.indexOf(a))>=0&&(s=e),t.minIndex=r,t.maxIndex=s,t.min=n[r],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;nn.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,o,a,r=this;return on(t)||on(n)||(e=r.chart.data.datasets[n].data[t]),on(e)||(i=r.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(o=r._getLabels(),e=V.valueOrDefault(i,e),t=-1!==(a=o.indexOf(e))?a:t,isNaN(t)&&(t=e)),r.getPixelForDecimal((t-r._startValue)/r._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}});an._defaults={position:"bottom"};var rn=V.isNullOrUndef,sn=nn.extend({getRightValue:function(e){return"string"==typeof e?+e:nn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=V.sign(e.min),i=V.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var o=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)),o!==a&&e.min>=e.max&&(o?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:V.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:V.valueOrDefault(t.fixedStepSize,t.stepSize)},o=e.ticks=function(e,t){var n,i,o,a,r=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,f=t.min,m=t.max,p=V.niceNum((m-f)/c/l)*l;if(p<1e-14&&rn(u)&&rn(d))return[f,m];(a=Math.ceil(m/p)-Math.floor(f/p))>c&&(p=V.niceNum(a*p/c/l)*l),s||rn(h)?n=Math.pow(10,V._decimalPlaces(p)):(n=Math.pow(10,h),p=Math.ceil(p*n)/n),i=Math.floor(f/p)*p,o=Math.ceil(m/p)*p,s&&(!rn(u)&&V.almostWhole(u/p,p/1e3)&&(i=u),!rn(d)&&V.almostWhole(d/p,p/1e3)&&(o=d)),a=V.almostEquals(a=(o-i)/p,Math.round(a),p/1e3)?Math.round(a):Math.ceil(a),i=Math.round(i*n)/n,o=Math.round(o*n)/n,r.push(rn(u)?i:u);for(var g=1;g<a;++g)r.push(Math.round((i+g*p)*n)/n);return r.push(rn(d)?o:d),r}(i,e);e.handleDirectionalChanges(),e.max=V.max(o),e.min=V.min(o),t.reverse?(o.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),nn.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,o=t.max;nn.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(o-i)/Math.max(n.length-1,1)/2,o+=e),t._startValue=i,t._endValue=o,t._valueRange=o-i}}),ln={position:"left",ticks:{callback:Yt.formatters.linear}};function cn(e,t,n,i){var o,a,r=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,r.stacked,n),l=s.pos,c=s.neg,u=i.length;for(o=0;o<u;++o)a=e._parseValue(i[o]),isNaN(a.min)||isNaN(a.max)||n.data[o].hidden||(l[o]=l[o]||0,c[o]=c[o]||0,r.relativePoints?l[o]=100:a.min<0||a.max<0?c[o]+=a.min:l[o]+=a.max)}function un(e,t,n){var i,o,a=n.length;for(i=0;i<a;++i)o=e._parseValue(n[i]),isNaN(o.min)||isNaN(o.max)||t.data[i].hidden||(e.min=Math.min(e.min,o.min),e.max=Math.max(e.max,o.max))}var dn=sn.extend({determineDataLimits:function(){var e,t,n,i,o=this,a=o.options,r=o.chart.data.datasets,s=o._getMatchingVisibleMetas(),l=a.stacked,c={},u=s.length;if(o.min=Number.POSITIVE_INFINITY,o.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=r[(t=s[e]).index].data,l?cn(o,c,t,n):un(o,t,n);V.each(c,(function(e){i=e.pos.concat(e.neg),o.min=Math.min(o.min,V.min(i)),o.max=Math.max(o.max,V.max(i))})),o.min=V.isFinite(o.min)&&!isNaN(o.min)?o.min:0,o.max=V.isFinite(o.max)&&!isNaN(o.max)?o.max:1,o.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=V.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])}});dn._defaults=ln;var hn=V.valueOrDefault,fn=V.math.log10,mn={position:"left",ticks:{callback:Yt.formatters.logarithmic}};function pn(e,t){return V.isFinite(e)&&e>=0?e:t}var gn=nn.extend({determineDataLimits:function(){var e,t,n,i,o,a,r=this,s=r.options,l=r.chart,c=l.data.datasets,u=r.isHorizontal();function d(e){return u?e.xAxisID===r.id:e.yAxisID===r.id}r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,r.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 m=[(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[m]&&(f[m]=[]),o=0,a=(i=c[e].data).length;o<a;o++){var p=f[m];n=r._parseValue(i[o]),isNaN(n.min)||isNaN(n.max)||t.data[o].hidden||n.min<0||n.max<0||(p[o]=p[o]||0,p[o]+=n.max)}}V.each(f,(function(e){if(e.length>0){var t=V.min(e),n=V.max(e);r.min=Math.min(r.min,t),r.max=Math.max(r.max,n)}}))}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(o=0,a=(i=c[e].data).length;o<a;o++)n=r._parseValue(i[o]),isNaN(n.min)||isNaN(n.max)||t.data[o].hidden||n.min<0||n.max<0||(r.min=Math.min(n.min,r.min),r.max=Math.max(n.max,r.max),0!==n.min&&(r.minNotZero=Math.min(n.min,r.minNotZero)));r.min=V.isFinite(r.min)?r.min:null,r.max=V.isFinite(r.max)?r.max:null,r.minNotZero=V.isFinite(r.minNotZero)?r.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=pn(t.min,e.min),e.max=pn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(fn(e.min))-1),e.max=Math.pow(10,Math.floor(fn(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(fn(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(fn(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(fn(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:pn(t.min),max:pn(t.max)},o=e.ticks=function(e,t){var n,i,o=[],a=hn(e.min,Math.pow(10,Math.floor(fn(t.min)))),r=Math.floor(fn(t.max)),s=Math.ceil(t.max/Math.pow(10,r));0===a?(n=Math.floor(fn(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),o.push(a),a=i*Math.pow(10,n)):(n=Math.floor(fn(a)),i=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{o.push(a),10==++i&&(i=1,l=++n>=0?1:l),a=Math.round(i*Math.pow(10,n)*l)/l}while(n<r||n===r&&i<s);var c=hn(e.max,a);return o.push(c),o}(i,e);e.max=V.max(o),e.min=V.min(o),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&o.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),nn.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(fn(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;nn.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=hn(e.options.ticks.fontSize,B.global.defaultFontSize)/e._length),e._startValue=fn(t),e._valueOffset=n,e._valueRange=(fn(e.max)-fn(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(fn(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)}});gn._defaults=mn;var vn=V.valueOrDefault,yn=V.valueAtIndexOrDefault,bn=V.options.resolve,_n={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:Yt.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function kn(e){var t=e.ticks;return t.display&&e.display?vn(t.fontSize,B.global.defaultFontSize)+2*t.backdropPaddingY:0}function Cn(e,t,n,i,o){return e===i||e===o?{start:t-n/2,end:t+n/2}:e<i||e>o?{start:t-n,end:t}:{start:t,end:t+n}}function wn(e){return 0===e||180===e?"center":e<180?"left":"right"}function xn(e,t,n,i){var o,a,r=n.y+i/2;if(V.isArray(t))for(o=0,a=t.length;o<a;++o)e.fillText(t[o],n.x,r),r+=i;else e.fillText(t,n.x,r)}function Mn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Sn(e){return V.isNumber(e)?e:0}var Pn=sn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=kn(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;V.each(t.data.datasets,(function(o,a){if(t.isDatasetVisible(a)){var r=t.getDatasetMeta(a);V.each(o.data,(function(t,o){var a=+e.getRightValue(t);isNaN(a)||r.data[o].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/kn(this.options))},convertTicksToLabels:function(){var e=this;sn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map((function(){var t=V.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,o=V.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},r={};e.ctx.font=o.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=o.lineHeight,n=V.isArray(c=e.pointLabels[t])?{w:V.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=V.toDegrees(d)%360,f=Cn(h,i.x,n.w,0,180),m=Cn(h,i.y,n.h,90,270);f.start<a.l&&(a.l=f.start,r.l=d),f.end>a.r&&(a.r=f.end,r.r=d),m.start<a.t&&(a.t=m.start,r.t=d),m.end>a.b&&(a.b=m.end,r.b=d)}e.setReductions(e.drawingArea,a,r)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,o=t.l/Math.sin(n.l),a=Math.max(t.r-i.width,0)/Math.sin(n.r),r=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);o=Sn(o),a=Sn(a),r=Sn(r),s=Sn(s),i.drawingArea=Math.min(Math.floor(e-(o+a)/2),Math.floor(e-(r+s)/2)),i.setCenterPoint(o,a,r,s)},setCenterPoint:function(e,t,n,i){var o=this,a=n+o.drawingArea,r=o.height-o.paddingTop-i-o.drawingArea;o.xCenter=Math.floor((e+o.drawingArea+(o.width-t-o.drawingArea))/2+o.left),o.yCenter=Math.floor((a+r)/2+o.top+o.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(V.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,o=i.ctx,a=i.options,r=a.gridLines,s=a.angleLines,l=vn(s.lineWidth,r.lineWidth),c=vn(s.color,r.color);if(a.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,o=kn(n),a=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),r=V.options._parseFont(i);t.save(),t.font=r.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=e.getPointPosition(s,a+(0===s?o/2:0)+5),c=yn(i.fontColor,s,B.global.defaultFontColor);t.fillStyle=c;var u=e.getIndexAngle(s),d=V.toDegrees(u);t.textAlign=wn(d),Mn(d,e._pointLabelSizes[s],l),xn(t,e.pointLabels[s],l,r.lineHeight)}t.restore()}(i),r.display&&V.each(i.ticks,(function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var o,a=e.ctx,r=t.circular,s=e.chart.data.labels.length,l=yn(t.color,i-1),c=yn(t.lineWidth,i-1);if((r||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(),r)a.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{o=e.getPointPosition(0,n),a.moveTo(o.x,o.y);for(var u=1;u<s;u++)o=e.getPointPosition(u,n),a.lineTo(o.x,o.y)}a.closePath(),a.stroke(),a.restore()}}(i,r,t,n))})),s.display&&l&&c){for(o.save(),o.lineWidth=l,o.strokeStyle=c,o.setLineDash&&(o.setLineDash(bn([s.borderDash,r.borderDash,[]])),o.lineDashOffset=bn([s.borderDashOffset,r.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),o.beginPath(),o.moveTo(i.xCenter,i.yCenter),o.lineTo(n.x,n.y),o.stroke();o.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,o,a=e.getIndexAngle(0),r=V.options._parseFont(n),s=vn(n.fontColor,B.global.defaultFontColor);t.save(),t.font=r.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",V.each(e.ticks,(function(a,l){(0!==l||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(o=t.measureText(a).width,t.fillStyle=n.backdropColor,t.fillRect(-o/2-n.backdropPaddingX,-i-r.size/2-n.backdropPaddingY,o+2*n.backdropPaddingX,r.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-i))})),t.restore()}},_drawTitle:V.noop});Pn._defaults=_n;var Tn=V._deprecated,On=V.options.resolve,Ln=V.valueOrDefault,Dn=Number.MIN_SAFE_INTEGER||-9007199254740991,In=Number.MAX_SAFE_INTEGER||9007199254740991,Fn={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}},An=Object.keys(Fn);function En(e,t){return e-t}function Bn(e){return V.valueOrDefault(e.time.min,e.ticks.min)}function Nn(e){return V.valueOrDefault(e.time.max,e.ticks.max)}function Rn(e,t,n,i){var o=function(e,t,n){for(var i,o,a,r=0,s=e.length-1;r>=0&&r<=s;){if(a=e[i=r+s>>1],!(o=e[i-1]||null))return{lo:null,hi:a};if(a[t]<n)r=i+1;else{if(!(o[t]>n))return{lo:o,hi:a};s=i-1}}return{lo:a,hi:null}}(e,t,n),a=o.lo?o.hi?o.lo:e[e.length-2]:e[0],r=o.lo?o.hi?o.hi:e[e.length-1]:e[1],s=r[t]-a[t];return a[i]+(r[i]-a[i])*(s?(n-a[t])/s:0)}function jn(e,t){var n=e._adapter,i=e.options.time,o=i.parser,a=o||i.format,r=t;return"function"==typeof o&&(r=o(r)),V.isFinite(r)||(r="string"==typeof a?n.parse(r,a):n.parse(r)),null!==r?+r:(o||"function"!=typeof a||(r=a(t),V.isFinite(r)||(r=n.parse(r))),r)}function zn(e,t){if(V.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 Vn(e,t,n,i){var o,a,r=An.length;for(o=An.indexOf(e);o<r-1;++o)if((a=Fn[An[o]]).common&&Math.ceil((n-t)/((a.steps?a.steps:In)*a.size))<=i)return An[o];return An[r-1]}function Hn(e,t,n){var i,o,a=[],r={},s=t.length;for(i=0;i<s;++i)r[o=t[i]]=i,a.push({value:o,major:!1});return 0!==s&&n?function(e,t,n,i){var o,a,r=e._adapter,s=+r.startOf(t[0].value,i),l=t[t.length-1].value;for(o=s;o<=l;o=+r.add(o,1,i))(a=n[o])>=0&&(t[a].major=!0);return t}(e,a,r,n):a}var Yn=nn.extend({initialize:function(){this.mergeTicksOptions(),nn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),i=e._adapter=new Ht._date(t.adapters.date);return Tn("time scale",n.format,"time.format","time.parser"),Tn("time scale",n.min,"time.min","ticks.min"),Tn("time scale",n.max,"time.max","ticks.max"),V.mergeIf(n.displayFormats,i.formats()),nn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),nn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,o,a,r,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=In,f=Dn,m=[],p=[],g=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)g.push(zn(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(V.isObject((o=l.data.datasets[e].data)[0]))for(p[e]=[],t=0,i=o.length;t<i;++t)a=zn(s,o[t]),m.push(a),p[e][t]=a;else p[e]=g.slice(0),r||(m=m.concat(g),r=!0);else p[e]=[];g.length&&(h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),m.length&&(m=n>1?function(e){var t,n,i,o={},a=[];for(t=0,n=e.length;t<n;++t)o[i=e[t]]||(o[i]=!0,a.push(i));return a}(m).sort(En):m.sort(En),h=Math.min(h,m[0]),f=Math.max(f,m[m.length-1])),h=zn(s,Bn(u))||h,f=zn(s,Nn(u))||f,h=h===In?+c.startOf(Date.now(),d):h,f=f===Dn?+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:m,datasets:p,labels:g}},buildTicks:function(){var e,t,n,i=this,o=i.min,a=i.max,r=i.options,s=r.ticks,l=r.time,c=i._timestamps,u=[],d=i.getLabelCapacity(o),h=s.source,f=r.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:function(e,t,n,i){var o,a=e._adapter,r=e.options,s=r.time,l=s.unit||Vn(s.minUnit,t,n,i),c=On([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(o=d;o<n;o=+a.add(o,c,l))h.push(o);return o!==n&&"ticks"!==r.bounds||h.push(o),h}(i,o,a,d),"ticks"===r.bounds&&c.length&&(o=c[0],a=c[c.length-1]),o=zn(i,Bn(r))||o,a=zn(i,Nn(r))||a,e=0,t=c.length;e<t;++e)(n=c[e])>=o&&n<=a&&u.push(n);return i.min=o,i.max=a,i._unit=l.unit||(s.autoSkip?Vn(l.minUnit,i.min,i.max,d):function(e,t,n,i,o){var a,r;for(a=An.length-1;a>=An.indexOf(n);a--)if(Fn[r=An[a]].common&&e._adapter.diff(o,i,r)>=t-1)return r;return An[n?An.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=An.indexOf(e)+1,n=An.length;t<n;++t)if(Fn[An[t]].common)return An[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 o,a,r,s,l,c=[],u=[t];for(o=0,a=e.length;o<a;++o)(s=e[o])>t&&s<n&&u.push(s);for(u.push(n),o=0,a=u.length;o<a;++o)l=u[o+1],s=u[o],void 0!==(r=u[o-1])&&void 0!==l&&Math.round((l+r)/2)===s||c.push({time:s,pos:o/(a-1)});return c}(i._timestamps.data,o,a,f),i._offsets=function(e,t,n,i,o){var a,r,s=0,l=0;return o.offset&&t.length&&(a=Rn(e,"time",t[0],"pos"),s=1===t.length?1-a:(Rn(e,"time",t[1],"pos")-a)/2,r=Rn(e,"time",t[t.length-1],"pos"),l=1===t.length?r:(r-Rn(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,u,0,0,r),s.reverse&&u.reverse(),Hn(i,u,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,o=n.chart.data,a=n.options.time,r=o.labels&&e<o.labels.length?o.labels[e]:"",s=o.datasets[t].data[e];return V.isObject(s)&&(r=n.getRightValue(s)),a.tooltipFormat?i.format(jn(n,r),a.tooltipFormat):"string"==typeof r?r:i.format(jn(n,r),a.displayFormats.datetime)},tickFormatFunction:function(e,t,n,i){var o=this.options,a=o.time.displayFormats,r=this._majorUnit,s=a[r],l=n[t],c=o.ticks,u=r&&s&&l&&l.major,d=this._adapter.format(e,i||(u?s:a[this._unit])),h=u?c.major:c.minor,f=On([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=Rn(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=zn(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=Rn(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=V.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),o=Math.cos(i),a=Math.sin(i),r=Ln(t.fontSize,B.global.defaultFontSize);return{w:n*o+r*a,h:n*a+r*o}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,o=i[n.unit]||i.millisecond,a=t.tickFormatFunction(e,0,Hn(t,[e],t._majorUnit),o),r=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/r.w:t.height/r.h);return t.options.offset&&s--,s>0?s:1}});Yn._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 qn={category:an,linear:dn,logarithmic:gn,radialLinear:Pn,time:Yn},Un={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"};Ht._date.override("function"==typeof e?{_id:"moment",formats:function(){return Un},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)}}:{}),B._set("global",{plugins:{filler:{propagate:!0}}});var Wn={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),o=i&&n.isDatasetVisible(t)&&i.dataset._children||[],a=o.length||0;return a?function(e,t){return t<a&&o[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return V.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function Jn(e,t,n){var i,o=e._model||{},a=o.fill;if(void 0===a&&(a=!!o.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 Gn(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,o,a,r=e.el._scale,s=r.options,l=r.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(n=s.ticks.reverse?r.min:r.max,i=r.getPointPositionForValue(0,t=s.ticks.reverse?r.max:r.min),o=0;o<l;++o)a="start"===c||"end"===c?r.getPointPositionForValue(o,"start"===c?t:n):r.getBasePosition(o),s.gridLines.circular&&(a.cx=i.x,a.cy=i.y,a.angle=r.getIndexAngle(o)-Math.PI/2),u.push(a);return u}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},o=e.fill,a=null;if(isFinite(o))return null;if("start"===o?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===o?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePixel&&(a=i.getBasePixel()),null!=a){if(void 0!==a.x&&void 0!==a.y)return a;if(V.isFinite(a))return{x:(t=i.isHorizontal())?a:null,y:t?null:a}}return null}(e)}function $n(e,t,n){var i,o=e[t].fill,a=[t];if(!n)return o;for(;!1!==o&&-1===a.indexOf(o);){if(!isFinite(o))return o;if(!(i=e[o]))return!1;if(i.visible)return o;a.push(o),o=i.fill}return!1}function Qn(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Wn[n](e))}function Kn(e){return e&&!e.skip}function Zn(e,t,n,i,o){var a,r,s,l;if(i&&o){for(e.moveTo(t[0].x,t[0].y),a=1;a<i;++a)V.canvas.lineTo(e,t[a-1],t[a]);if(void 0===n[0].angle)for(e.lineTo(n[o-1].x,n[o-1].y),a=o-1;a>0;--a)V.canvas.lineTo(e,n[a],n[a-1],!0);else for(r=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-r,2)+Math.pow(n[0].y-s,2)),a=o-1;a>0;--a)e.arc(r,s,l,n[a].angle,n[a-1].angle,!0)}}function Xn(e,t,n,i,o,a){var r,s,l,c,u,d,h,f,m=t.length,p=i.spanGaps,g=[],v=[],y=0,b=0;for(e.beginPath(),r=0,s=m;r<s;++r)u=n(c=t[l=r%m]._view,l,i),d=Kn(c),h=Kn(u),a&&void 0===f&&d&&(s=m+(f=r+1)),d&&h?(y=g.push(c),b=v.push(u)):y&&b&&(p?(d&&g.push(c),h&&v.push(u)):(Zn(e,g,v,y,b),y=b=0,g=[],v=[]));Zn(e,g,v,y,b),e.closePath(),e.fillStyle=o,e.fill()}var ei={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,o,a,r=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<r;++i)a=null,(o=(n=e.getDatasetMeta(i)).dataset)&&o._model&&o instanceof ve.Line&&(a={visible:e.isDatasetVisible(i),fill:Jn(o,i,r),chart:e,el:o}),n.$filler=a,l.push(a);for(i=0;i<r;++i)(a=l[i])&&(a.fill=$n(l,i,s),a.boundary=Gn(a),a.mapper=Qn(a))},beforeDatasetsDraw:function(e){var t,n,i,o,a,r,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=(o=i._view).backgroundColor||B.global.defaultColor,(r=t.mapper)&&s&&a.length&&(V.canvas.clipArea(c,e.chartArea),Xn(c,a,r,o,s,i._loop),V.canvas.unclipArea(c)))}},ti=V.rtl.getRtlAdapter,ni=V.noop,ii=V.valueOrDefault;function oi(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}B._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,o=i.getDatasetMeta(n);o.hidden=null===o.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 o=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:o.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:o.borderWidth,strokeStyle:o.borderColor,pointStyle:o.pointStyle,rotation:o.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(e){var t,n,i,o=document.createElement("ul"),a=e.data.datasets;for(o.setAttribute("class",e.id+"-legend"),t=0,n=a.length;t<n;t++)(i=o.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[t].backgroundColor,a[t].label&&i.appendChild(document.createTextNode(a[t].label));return o.outerHTML}});var ai=W.extend({initialize:function(e){V.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:ni,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:ni,beforeSetDimensions:ni,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:ni,beforeBuildLabels:ni,buildLabels:function(){var e=this,t=e.options.labels||{},n=V.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:ni,beforeFit:ni,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,o=e.ctx,a=V.options._parseFont(n),r=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(o.font=a.string,c){var u=e.lineWidths=[0],d=0;o.textAlign="left",o.textBaseline="middle",V.each(e.legendItems,(function(e,t){var i=oi(n,r)+r/2+o.measureText(e.text).width;(0===t||u[u.length-1]+i+2*n.padding>l.width)&&(d+=r+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:r},u[u.length-1]+=i+n.padding})),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],m=e.columnHeights=[],p=n.padding,g=0,v=0;V.each(e.legendItems,(function(e,t){var i=oi(n,r)+r/2+o.measureText(e.text).width;t>0&&v+r+2*h>l.height&&(p+=g+n.padding,f.push(g),m.push(v),g=0,v=0),g=Math.max(g,i),v+=r+h,s[t]={left:0,top:0,width:i,height:r}})),p+=g,f.push(g),m.push(v),l.width+=p}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:ni,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=B.global,o=i.defaultColor,a=i.elements.line,r=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=ti(t.rtl,e.left,e.minSize.width),h=e.ctx,f=ii(n.fontColor,i.defaultFontColor),m=V.options._parseFont(n),p=m.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=m.string;var g=oi(n,p),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(r,s[0]),line:0},V.rtl.overrideTextDirection(e.ctx,t.textDirection);var _=p+n.padding;V.each(e.legendItems,(function(t,i){var f=h.measureText(t.text).width,m=g+p/2+f,k=u.x,C=u.y;d.setWidth(e.minSize.width),b?i>0&&k+m+n.padding>e.left+e.minSize.width&&(C=u.y+=_,u.line++,k=u.x=e.left+y(l,c[u.line])):i>0&&C+_>e.top+e.minSize.height&&(k=u.x=k+e.columnWidths[u.line]+n.padding,u.line++,C=u.y=e.top+y(r,s[u.line]));var w=d.x(k);!function(e,t,i){if(!(isNaN(g)||g<=0)){h.save();var r=ii(i.lineWidth,a.borderWidth);if(h.fillStyle=ii(i.fillStyle,o),h.lineCap=ii(i.lineCap,a.borderCapStyle),h.lineDashOffset=ii(i.lineDashOffset,a.borderDashOffset),h.lineJoin=ii(i.lineJoin,a.borderJoinStyle),h.lineWidth=r,h.strokeStyle=ii(i.strokeStyle,o),h.setLineDash&&h.setLineDash(ii(i.lineDash,a.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,l=d.xPlus(e,g/2);V.canvas.drawPoint(h,i.pointStyle,s,l,t+p/2,i.rotation)}else h.fillRect(d.leftForLtr(e,g),t,g,p),0!==r&&h.strokeRect(d.leftForLtr(e,g),t,g,p);h.restore()}}(w,C,t),v[i].left=d.leftForLtr(w,v[i].width),v[i].top=C,function(e,t,n,i){var o=p/2,a=d.xPlus(e,g+o),r=t+o;h.fillText(n.text,a,r),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,r),h.lineTo(d.xPlus(a,i),r),h.stroke())}(w,C,t,f),b?u.x+=m+n.padding:u.y+=_})),V.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,o,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(o=a.legendHitBoxes,n=0;n<o.length;++n)if(e>=(i=o[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,o="mouseup"===e.type?"click":e.type;if("mousemove"===o){if(!i.onHover&&!i.onLeave)return}else{if("click"!==o)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===o?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 ri(e,t){var n=new ai({ctx:e.ctx,options:t,chart:e});lt.configure(e,n,t),lt.addBox(e,n),e.legend=n}var si={id:"legend",_element:ai,beforeInit:function(e){var t=e.options.legend;t&&ri(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(V.mergeIf(t,B.global.legend),n?(lt.configure(e,n,t),n.options=t):ri(e,t)):n&&(lt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},li=V.noop;B._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var ci=W.extend({initialize:function(e){V.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:li,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:li,beforeSetDimensions:li,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:li,beforeBuildLabels:li,buildLabels:li,afterBuildLabels:li,beforeFit:li,fit:function(){var e,t=this,n=t.options,i=t.minSize={},o=t.isHorizontal();n.display?(e=(V.isArray(n.text)?n.text.length:1)*V.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=o?t.maxWidth:e,t.height=i.height=o?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:li,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,o,a,r=V.options._parseFont(n),s=r.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=V.valueOrDefault(n.fontColor,B.global.defaultFontColor),t.font=r.string,e.isHorizontal()?(o=d+(f-d)/2,a=u+l,i=f-d):(o="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(o,a),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var m=n.text;if(V.isArray(m))for(var p=0,g=0;g<m.length;++g)t.fillText(m[g],0,p,i),p+=s;else t.fillText(m,0,0,i);t.restore()}}});function ui(e,t){var n=new ci({ctx:e.ctx,options:t,chart:e});lt.configure(e,n,t),lt.addBox(e,n),e.titleBlock=n}var di={},hi=ei,fi=si,mi={id:"title",_element:ci,beforeInit:function(e){var t=e.options.title;t&&ui(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(V.mergeIf(t,B.global.title),n?(lt.configure(e,n,t),n.options=t):ui(e,t)):n&&(lt.removeBox(e,n),delete e.titleBlock)}};for(var pi in di.filler=hi,di.legend=fi,di.title=mi,jt.helpers=V,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,o){var a=document.defaultView,r=V._getParentNode(n),s=a.getComputedStyle(n)[i],l=a.getComputedStyle(r)[i],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,o):d,u?e(l,r,o):d):"none"}V.where=function(e,t){if(V.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return V.each(e,(function(e){t(e)&&n.push(e)})),n},V.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,o=e.length;i<o;++i)if(t.call(n,e[i],i,e))return i;return-1},V.findNextWhere=function(e,t,n){V.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var o=e[i];if(t(o))return o}},V.findPreviousWhere=function(e,t,n){V.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var o=e[i];if(t(o))return o}},V.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},V.almostEquals=function(e,t,n){return Math.abs(e-t)<n},V.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},V.max=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.max(e,t)}),Number.NEGATIVE_INFINITY)},V.min=function(e){return e.reduce((function(e,t){return isNaN(t)?e:Math.min(e,t)}),Number.POSITIVE_INFINITY)},V.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},V.toRadians=function(e){return e*(Math.PI/180)},V.toDegrees=function(e){return e*(180/Math.PI)},V._decimalPlaces=function(e){if(V.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},V.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,o=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:o}},V.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},V.aliasPixel=function(e){return e%2==0?0:.5},V._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,o=n/2;return Math.round((t-o)*i)/i+o},V.splineCurve=function(e,t,n,i){var o=e.skip?t:e,a=t,r=n.skip?t:n,s=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),l=Math.sqrt(Math.pow(r.x-a.x,2)+Math.pow(r.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*(r.x-o.x),y:a.y-d*(r.y-o.y)},next:{x:a.x+h*(r.x-o.x),y:a.y+h*(r.y-o.y)}}},V.EPSILON=Number.EPSILON||1e-14,V.splineCurveMonotone=function(e){var t,n,i,o,a,r,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,(o=t<d-1?u[t+1]:null)&&!o.model.skip){var h=o.model.x-i.model.x;i.deltaK=0!==h?(o.model.y-i.model.y)/h:0}i.mK=!n||n.model.skip?i.deltaK:!o||o.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)o=u[t+1],(i=u[t]).model.skip||o.model.skip||(V.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=o.mK=0:(a=i.mK/i.deltaK,r=o.mK/i.deltaK,(l=Math.pow(a,2)+Math.pow(r,2))<=9||(s=3/Math.sqrt(l),i.mK=a*s*i.deltaK,o.mK=r*s*i.deltaK)));for(t=0;t<d;++t)(i=u[t]).model.skip||(o=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),o&&!o.model.skip&&(i.model.controlPointNextX=i.model.x+(c=(o.model.x-i.model.x)/3),i.model.controlPointNextY=i.model.y+c*i.mK))},V.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]},V.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},V.niceNum=function(e,t){var n=Math.floor(V.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)},V.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)},V.getRelativePosition=function(e,t){var n,i,o=e.originalEvent||e,a=e.target||e.srcElement,r=a.getBoundingClientRect(),s=o.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=o.clientX,i=o.clientY);var l=parseFloat(V.getStyle(a,"padding-left")),c=parseFloat(V.getStyle(a,"padding-top")),u=parseFloat(V.getStyle(a,"padding-right")),d=parseFloat(V.getStyle(a,"padding-bottom")),h=r.bottom-r.top-c-d;return{x:n=Math.round((n-r.left-l)/(r.right-r.left-l-u)*a.width/t.currentDevicePixelRatio),y:i=Math.round((i-r.top-c)/h*a.height/t.currentDevicePixelRatio)}},V.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},V.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},V._calculatePadding=function(e,t,n){return(t=V.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},V._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},V.getMaximumWidth=function(e){var t=V._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-V._calculatePadding(t,"padding-left",n)-V._calculatePadding(t,"padding-right",n),o=V.getConstraintWidth(e);return isNaN(o)?i:Math.min(i,o)},V.getMaximumHeight=function(e){var t=V._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-V._calculatePadding(t,"padding-top",n)-V._calculatePadding(t,"padding-bottom",n),o=V.getConstraintHeight(e);return isNaN(o)?i:Math.min(i,o)},V.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},V.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,o=e.height,a=e.width;i.height=o*n,i.width=a*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=o+"px",i.style.width=a+"px")}},V.fontString=function(e,t,n){return t+" "+e+"px "+n},V.longestText=function(e,t,n,i){var o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(o=i.data={},a=i.garbageCollect=[],i.font=t),e.font=t;var r,s,l,c,u,d=0,h=n.length;for(r=0;r<h;r++)if(null!=(c=n[r])&&!0!==V.isArray(c))d=V.measureText(e,o,a,d,c);else if(V.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||V.isArray(u)||(d=V.measureText(e,o,a,d,u));var f=a.length/2;if(f>n.length){for(r=0;r<f;r++)delete o[a[r]];a.splice(0,f)}return d},V.measureText=function(e,t,n,i,o){var a=t[o];return a||(a=t[o]=e.measureText(o).width,n.push(o)),a>i&&(i=a),i},V.numberOfLabelLines=function(e){var t=1;return V.each(e,(function(e){V.isArray(e)&&e.length>t&&(t=e.length)})),t},V.color=_?function(e){return e instanceof CanvasGradient&&(e=B.global.defaultColor),_(e)}:function(e){return console.error("Color.js not found!"),e},V.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:V.color(e).saturate(.5).darken(.1).rgbString()}}(),jt._adapters=Ht,jt.Animation=G,jt.animationService=$,jt.controllers=Ue,jt.DatasetController=ee,jt.defaults=B,jt.Element=W,jt.elements=ve,jt.Interaction=Ze,jt.layouts=lt,jt.platform=bt,jt.plugins=_t,jt.Scale=nn,jt.scaleService=kt,jt.Ticks=Yt,jt.Tooltip=Lt,jt.helpers.each(qn,(function(e,t){jt.scaleService.registerScaleType(t,e,e._defaults)})),di)di.hasOwnProperty(pi)&&jt.plugins.register(di[pi]);jt.platform.initialize();var gi=jt;return"undefined"!=typeof window&&(window.Chart=jt),jt.Chart=jt,jt.Legend=di.legend._element,jt.Title=di.title._element,jt.pluginService=jt.plugins,jt.PluginBase=jt.Element.extend({}),jt.canvasHelpers=jt.helpers.canvas,jt.layoutService=jt.layouts,jt.LinearScaleBase=sn,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)}))}})),gi}(function(){try{return n("wd/R")}catch(e){}}())},MlIO:function(e,t,n){var i,o,a,r,s;e.exports=(s=n("Ib8C"),o=(i=s.lib).Base,a=i.WordArray,(r=s.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),r.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],i=0;i<t;i++){var o=e[i];n.push(o.high),n.push(o.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}}),s)},NFKh:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("MlIO"),n("F+F2"),n("qM6L"),n("ETIr"),n("cv67"),n("3y9D"),n("lPiR"),n("GRuw"),n("1uat"),n("uGsb"),n("5hvy"),n("ELcG"),n("WYAk"),n("e7zE"),n("K3mO"),n("OLod"),n("ALsQ"),n("9OqN"),n("qu8F"),n("S6kV"),n("gb/T"),n("qBft"),n("oRuE"),n("jO9C"),n("KmYQ"),n("uGxW"),n("bQjk"),n("wZgz"),n("pA7S"),n("w7YG"),n("E4JC"),n("PVpz"),i)},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",LTS:"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"))},OLod:function(e,t,n){var i,o,a,r,s,l,c,u,d,h,f,m,p,g,v,y,b,_,k;e.exports=(i=n("Ib8C"),n("K3mO"),void(i.lib.Cipher||(o=i,a=o.lib,r=a.Base,s=a.WordArray,l=a.BufferedBlockAlgorithm,c=o.enc,u=c.Base64,d=o.algo.EvpKDF,h=a.Cipher=l.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){l.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?k:b}return function(t){return{encrypt:function(n,i,o){return e(i).encrypt(t,n,i,o)},decrypt:function(n,i,o){return e(i).decrypt(t,n,i,o)}}}}()}),a.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),f=o.mode={},m=a.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var e=m.extend();function t(e,t,n){var i=this._iv;if(i){var o=i;this._iv=void 0}else o=this._prevBlock;for(var a=0;a<n;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize;t.call(this,e,n,o),i.encryptBlock(e,n),this._prevBlock=e.slice(n,n+o)}}),e.Decryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize,a=e.slice(n,n+o);i.decryptBlock(e,n),t.call(this,e,n,o),this._prevBlock=a}}),e}(),g=(o.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,o=i<<24|i<<16|i<<8|i,a=[],r=0;r<i;r+=4)a.push(o);var l=s.create(a,i);e.concat(l)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},a.BlockCipher=h.extend({cfg:h.cfg.extend({mode:p,padding:g}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var i=n.createEncryptor;else i=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==i?this._mode.init(this,t&&t.words):(this._mode=i.call(n,this,t&&t.words),this._mode.__creator=i)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),v=a.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),y=(o.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var i=s.create([1398893684,1701076831]).concat(n).concat(t);else i=t;return i.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var i=s.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:i})}},b=a.SerializableCipher=r.extend({cfg:r.extend({format:y}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var o=e.createEncryptor(n,i),a=o.finalize(t),r=o.cfg;return v.create({ciphertext:a,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),_=(o.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var o=d.create({keySize:t+n}).compute(e,i),a=s.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:i})}},k=a.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:_}),encrypt:function(e,t,n,i){var o=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=o.iv;var a=b.encrypt.call(this,e,t,o.key,i);return a.mixIn(o),a},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var o=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=o.iv,b.decrypt.call(this,e,t,o.key,i)}}))))},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 o="";if(t)switch(n){case"s":o="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":o="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":o="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":o="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":o="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":o="%d \u0924\u093e\u0938";break;case"d":o="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":o="%d \u0926\u093f\u0935\u0938";break;case"M":o="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":o="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":o="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":o="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":o="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":o="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":o="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":o="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":o="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":o="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":o="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":o="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":o="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":o="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":o="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":o="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return o.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>=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],o=/^(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 r(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?o+(a(e)?"sekundy":"sekund"):o+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?o+(a(e)?"minuty":"minut"):o+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(a(e)?"hodiny":"hodin"):o+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?o+(a(e)?"dny":"dn\xed"):o+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?o+(a(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):o+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?o+(a(e)?"roky":"let"):o+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:o,monthsShortRegex:o,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: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"))},PVpz:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=i,t=e.lib.StreamCipher,n=[],o=[],a=[],r=e.algo.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var o=0;o<4;o++)s.call(this);for(o=0;o<8;o++)i[o]^=n[o+4&7];if(t){var a=t.words,r=a[0],l=a[1],c=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),u=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),d=c>>>16|4294901760&u,h=u<<16|65535&c;for(i[0]^=c,i[1]^=d,i[2]^=u,i[3]^=h,i[4]^=c,i[5]^=d,i[6]^=u,i[7]^=h,o=0;o<4;o++)s.call(this)}},_doProcessBlock:function(e,t){var i=this._X;s.call(this),n[0]=i[0]^i[5]>>>16^i[3]<<16,n[1]=i[2]^i[7]>>>16^i[5]<<16,n[2]=i[4]^i[1]>>>16^i[7]<<16,n[3]=i[6]^i[3]>>>16^i[1]<<16;for(var o=0;o<4;o++)n[o]=16711935&(n[o]<<8|n[o]>>>24)|4278255360&(n[o]<<24|n[o]>>>8),e[t+o]^=n[o]},blockSize:4,ivSize:2});function s(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=e[n]+t[n],r=65535&i,s=i>>>16;a[n]=((r*r>>>17)+r*s>>>15)+s*s^((4294901760&i)*i|0)+((65535&i)*i|0)}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(r)}(),i.RabbitLegacy)},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}\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}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n("wd/R"))},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 o={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?o[n][0]:o[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:"%d 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 o(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]}o.keys=function(){return Object.keys(i)},o.resolve=a,e.exports=o,o.id="RnhZ"},S6kV:function(e,t,n){var i,o,a;e.exports=(a=n("Ib8C"),n("OLod"),a.mode.OFB=(o=(i=a.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,a=this._keystream;o&&(a=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var r=0;r<i;r++)e[t+r]^=a[r]}}),i.Decryptor=o,i),a.mode.OFB)},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\u0259nb\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"))},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\u0641\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"))},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],o=/^(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:o,monthsShortRegex:o,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"))},WOAq:function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),o=n("L3Qv"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,r=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=r&&r.exports===a?i.a.Buffer:void 0;t.a=(s?s.isBuffer:void 0)||o.a}).call(this,n("3UD+")(e))},WYAk:function(e,t,n){var i,o;e.exports=(i=n("Ib8C"),o=i.enc.Utf8,void(i.algo.HMAC=i.lib.Base.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),r=this._iKey=t.clone(),s=a.words,l=r.words,c=0;c<n;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=r.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},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";var 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 o=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return o+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return o+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return o+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return o+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return o+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return o+(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"))},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}\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"))},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:"%d \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"))},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"))},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)}var n=[/^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],i=/^(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,o=[/^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:o,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:o,monthsRegex:i,monthsShortRegex:i,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:n,longMonthsParse:n,shortMonthsParse:n,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(function e(t){return t>9?e(t%10):t}(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:"%d 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"))},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"))},bQjk:function(e,t,n){var i,o,a;e.exports=(a=n("Ib8C"),n("OLod"),i=a.lib.CipherParams,o=a.enc.Hex,a.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},a.format.Hex)},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\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("_"),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(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[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(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[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:"%d 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"))},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"))},cv67:function(e,t,n){var i;e.exports=(i=n("Ib8C"),function(e){var t=i,n=t.lib,o=n.WordArray,a=n.Hasher,r=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=r.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var a=this._hash.words,r=e[t+0],l=e[t+1],f=e[t+2],m=e[t+3],p=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],k=e[t+10],C=e[t+11],w=e[t+12],x=e[t+13],M=e[t+14],S=e[t+15],P=a[0],T=a[1],O=a[2],L=a[3];P=c(P,T,O,L,r,7,s[0]),L=c(L,P,T,O,l,12,s[1]),O=c(O,L,P,T,f,17,s[2]),T=c(T,O,L,P,m,22,s[3]),P=c(P,T,O,L,p,7,s[4]),L=c(L,P,T,O,g,12,s[5]),O=c(O,L,P,T,v,17,s[6]),T=c(T,O,L,P,y,22,s[7]),P=c(P,T,O,L,b,7,s[8]),L=c(L,P,T,O,_,12,s[9]),O=c(O,L,P,T,k,17,s[10]),T=c(T,O,L,P,C,22,s[11]),P=c(P,T,O,L,w,7,s[12]),L=c(L,P,T,O,x,12,s[13]),O=c(O,L,P,T,M,17,s[14]),P=u(P,T=c(T,O,L,P,S,22,s[15]),O,L,l,5,s[16]),L=u(L,P,T,O,v,9,s[17]),O=u(O,L,P,T,C,14,s[18]),T=u(T,O,L,P,r,20,s[19]),P=u(P,T,O,L,g,5,s[20]),L=u(L,P,T,O,k,9,s[21]),O=u(O,L,P,T,S,14,s[22]),T=u(T,O,L,P,p,20,s[23]),P=u(P,T,O,L,_,5,s[24]),L=u(L,P,T,O,M,9,s[25]),O=u(O,L,P,T,m,14,s[26]),T=u(T,O,L,P,b,20,s[27]),P=u(P,T,O,L,x,5,s[28]),L=u(L,P,T,O,f,9,s[29]),O=u(O,L,P,T,y,14,s[30]),P=d(P,T=u(T,O,L,P,w,20,s[31]),O,L,g,4,s[32]),L=d(L,P,T,O,b,11,s[33]),O=d(O,L,P,T,C,16,s[34]),T=d(T,O,L,P,M,23,s[35]),P=d(P,T,O,L,l,4,s[36]),L=d(L,P,T,O,p,11,s[37]),O=d(O,L,P,T,y,16,s[38]),T=d(T,O,L,P,k,23,s[39]),P=d(P,T,O,L,x,4,s[40]),L=d(L,P,T,O,r,11,s[41]),O=d(O,L,P,T,m,16,s[42]),T=d(T,O,L,P,v,23,s[43]),P=d(P,T,O,L,_,4,s[44]),L=d(L,P,T,O,w,11,s[45]),O=d(O,L,P,T,S,16,s[46]),P=h(P,T=d(T,O,L,P,f,23,s[47]),O,L,r,6,s[48]),L=h(L,P,T,O,y,10,s[49]),O=h(O,L,P,T,M,15,s[50]),T=h(T,O,L,P,g,21,s[51]),P=h(P,T,O,L,w,6,s[52]),L=h(L,P,T,O,m,10,s[53]),O=h(O,L,P,T,k,15,s[54]),T=h(T,O,L,P,l,21,s[55]),P=h(P,T,O,L,b,6,s[56]),L=h(L,P,T,O,S,10,s[57]),O=h(O,L,P,T,v,15,s[58]),T=h(T,O,L,P,x,21,s[59]),P=h(P,T,O,L,p,6,s[60]),L=h(L,P,T,O,C,10,s[61]),O=h(O,L,P,T,f,15,s[62]),T=h(T,O,L,P,_,21,s[63]),a[0]=a[0]+P|0,a[1]=a[1]+T|0,a[2]=a[2]+O|0,a[3]=a[3]+L|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var a=e.floor(i/4294967296),r=i;n[15+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,o,a,r){var s=e+(t&n|~t&i)+o+r;return(s<<a|s>>>32-a)+t}function u(e,t,n,i,o,a,r){var s=e+(t&i|n&~i)+o+r;return(s<<a|s>>>32-a)+t}function d(e,t,n,i,o,a,r){var s=e+(t^n^i)+o+r;return(s<<a|s>>>32-a)+t}function h(e,t,n,i,o,a,r){var s=e+(n^(t|~i))+o+r;return(s<<a|s>>>32-a)+t}t.MD5=a._createHelper(l),t.HmacMD5=a._createHmacHelper(l)}(Math),i.MD5)},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 o={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?o[n][0]:o[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"},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 o(e,t,n,o){var a=e+" ";switch(n){case"s":return t||o?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||o?a+(i(e)?"sekundy":"sek\xfand"):a+"sekundami";case"m":return t?"min\xfata":o?"min\xfatu":"min\xfatou";case"mm":return t||o?a+(i(e)?"min\xfaty":"min\xfat"):a+"min\xfatami";case"h":return t?"hodina":o?"hodinu":"hodinou";case"hh":return t||o?a+(i(e)?"hodiny":"hod\xedn"):a+"hodinami";case"d":return t||o?"de\u0148":"d\u0148om";case"dd":return t||o?a+(i(e)?"dni":"dn\xed"):a+"d\u0148ami";case"M":return t||o?"mesiac":"mesiacom";case"MM":return t||o?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||o?"rok":"rokom";case"yy":return t||o?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:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 4:case 5:return"[minul\xfd] dddd [o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %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"))},e7zE:function(e,t,n){var i,o,a,r,s,l,c,u;e.exports=(u=n("Ib8C"),n("3y9D"),n("WYAk"),r=(o=(i=u).lib).WordArray,l=(s=i.algo).HMAC,c=s.PBKDF2=(a=o.Base).extend({cfg:a.extend({keySize:4,hasher:s.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=l.create(n.hasher,e),o=r.create(),a=r.create([1]),s=o.words,c=a.words,u=n.keySize,d=n.iterations;s.length<u;){var h=i.update(t).finalize(a);i.reset();for(var f=h.words,m=f.length,p=h,g=1;g<d;g++){p=i.finalize(p),i.reset();for(var v=p.words,y=0;y<m;y++)f[y]^=v[y]}o.concat(h),c[0]++}return o.sigBytes=4*u,o}}),i.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)},u.PBKDF2)},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}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n("wd/R"))},gVVK:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return o+(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 o+(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 o+(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 o+(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 o+(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 o+(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"))},"gb/T":function(e,t,n){var i,o;e.exports=(o=n("Ib8C"),n("OLod"),o.mode.ECB=((i=o.lib.BlockCipherMode.extend()).Encryptor=i.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),i.Decryptor=i.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),i),o.mode.ECB)},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,o,a){var r="";switch(o){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":r=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":r=a?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+r}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"))},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:"\u1014\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],o=/^(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:o,monthsShortRegex:o,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:"%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},invalidDate:"Fecha inv\xe1lida"})}(n("wd/R"))},jO9C:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.pad.Iso97971={pad:function(e,t){e.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(e,t)},unpad:function(e){i.pad.ZeroPadding.unpad(e),e.sigBytes--}},i.pad.Iso97971)},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:"\u0399\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(){switch(this.day()){case 6:return"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT";default:return"[\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],o=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("{}",o%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 o(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+(o(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(o(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(o(e)?"godziny":"godzin");case"ww":return i+(o(e)?"tygodnie":"tygodni");case"MM":return i+(o(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(o(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"))},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"},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},o={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,r){var s=i(t),l=o[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},r=["\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: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: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_\u09ae\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"))},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";e.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"))},lPiR:function(e,t,n){var i;e.exports=(i=n("Ib8C"),function(e){var t=i,n=t.lib,o=n.WordArray,a=n.Hasher,r=t.algo,s=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,o=0;o<64;)t(i)&&(o<8&&(s[o]=n(e.pow(i,.5))),l[o]=n(e.pow(i,1/3)),o++),i++}();var c=[],u=r.SHA256=a.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],a=n[2],r=n[3],s=n[4],u=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)c[f]=0|e[t+f];else{var m=c[f-15],p=c[f-2];c[f]=((m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3)+c[f-7]+((p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10)+c[f-16]}var g=i&o^i&a^o&a,v=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+l[f]+c[f];h=d,d=u,u=s,s=r+v|0,r=a,a=o,o=i,i=v+(((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+g)|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+a|0,n[3]=n[3]+r|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(i/4294967296),n[15+(o+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(u),t.HmacSHA256=a._createHmacHelper(u)}(Math),i.SHA256)},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i,o;return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,o={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?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}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?\.|\u043c\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\u0445\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_\u09ae\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\u0103",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"))},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,o,a,r){var s=t(i),l=n[e][t(i)];return 2===s&&(l=l[o?0:1]),l.replace(/%d/i,i)}},o=["\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: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: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"))},oRuE:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.pad.Iso10126={pad:function(e,t){var n=4*t,o=n-e.sigBytes%n;e.concat(i.lib.WordArray.random(o-1)).concat(i.lib.WordArray.create([o<<24],1))},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},i.pad.Iso10126)},"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"))},pA7S:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=i,t=e.lib,n=t.WordArray,o=t.BlockCipher,a=e.algo,r=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=a.DES=o.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var i=r[n]-1;t[n]=e[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],a=0;a<16;a++){var c=o[a]=[],u=l[a];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var o=n[i],a=this._lBlock,r=this._rBlock,s=0,l=0;l<8;l++)s|=c[l][((r^o[l])&u[l])>>>0];this._lBlock=r,this._rBlock=a^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=o._createHelper(d);var m=a.TripleDES=o.extend({_doReset:function(){var e=this._key.words;this._des1=d.createEncryptor(n.create(e.slice(0,2))),this._des2=d.createEncryptor(n.create(e.slice(2,4))),this._des3=d.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(m)}(),i.TripleDES)},qBft:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,i=4*t,o=i-n%i,a=n+o-1;e.clamp(),e.words[a>>>2]|=o<<24-a%4*8,e.sigBytes+=o},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},i.pad.Ansix923)},qM6L:function(e,t,n){var i;e.exports=(i=n("Ib8C"),function(){var e=i.lib.WordArray,t=i.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}t.Utf16=t.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2)i.push(String.fromCharCode(t[o>>>2]>>>16-o%4*8&65535));return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=t.charCodeAt(o)<<16-o%2*16;return e.create(i,2*n)}},t.Utf16LE={stringify:function(e){for(var t=e.words,i=e.sigBytes,o=[],a=0;a<i;a+=2){var r=n(t[a>>>2]>>>16-a%4*8&65535);o.push(String.fromCharCode(r))}return o.join("")},parse:function(t){for(var i=t.length,o=[],a=0;a<i;a++)o[a>>>1]|=n(t.charCodeAt(a)<<16-a%2*16);return e.create(o,2*i)}}}(),i.enc.Utf16)},qu8F:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.mode.CTRGladman=function(){var e=i.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,i=255&e;255===t?(t=0,255===n?(n=0,255===i?i=0:++i):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=i}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var i=this._cipher,o=i.blockSize,a=this._iv,r=this._counter;a&&(r=this._counter=a.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(r);var s=r.slice(0);i.encryptBlock(s,0);for(var l=0;l<o;l++)e[n+l]^=s[l]}});return e.Decryptor=n,e}(),i.mode.CTRGladman)},qvJo:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={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?o[n][0]:o[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\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:"\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){switch(t){case"D":return e+"\u0935\u0947\u0930";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return 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){var i,o;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,o={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?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}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 6: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 o={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?o[n][0]:o[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"))},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:"%d \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"))},tGlX:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={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?o[n][0]:o[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:"%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"))},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\u02e4wbr\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],o=/^(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:o,monthsShortRegex:o,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:"%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:4},invalidDate:"Fecha inv\xe1lida"})}(n("wd/R"))},u3GI:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={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?o[n][0]:o[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"))},uGsb:function(e,t,n){var i,o,a,r,s,l,c,u;e.exports=(u=n("Ib8C"),n("MlIO"),n("1uat"),a=(o=(i=u).x64).Word,r=o.WordArray,c=(s=i.algo).SHA384=(l=s.SHA512).extend({_doReset:function(){this._hash=new r.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var e=l._doFinalize.call(this);return e.sigBytes-=16,e}}),i.SHA384=l._createHelper(c),i.HmacSHA384=l._createHmacHelper(c),u.SHA384)},uGxW:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("OLod"),i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding)},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,o){return e+" "+n(t[o],e,i)}function o(e,i,o){return n(t[o],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:o,mm:i,h:o,hh:i,d:o,dd:i,M:o,MM:i,y:o,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},vT00:function(e,t,n){var i,o,a;!function(r){if("object"==typeof e.exports){var s=r(0,t);void 0!==s&&(e.exports=s)}else o=[n,t],void 0===(a="function"==typeof(i=r)?i.apply(t,o):i)||(e.exports=a)}((function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=void 0;t.default=["pt",[["AM","PM"],n,n],n,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],n,[["a.C.","d.C."],n,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",n,n,n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],JPY:["JP\xa5","\xa5"],PTE:["Esc."],RON:[n,"L"],SYP:[n,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function(e){var t=Math.floor(Math.abs(e));return t===Math.floor(t)&&t>=0&&t<=1?1:5}]}))},w7YG:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=i,t=e.lib.StreamCipher,n=e.algo,o=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;o=0;for(var a=0;o<256;o++){var r=o%n,s=i[o];i[o]=i[a=(a+i[o]+(t[r>>>2]>>>24-r%4*8&255))%256],i[a]=s}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var e=this._S,t=this._i,n=this._j,i=0,o=0;o<4;o++){var a=e[t=(t+1)%256];e[t]=e[n=(n+e[t])%256],e[n]=a,i|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,i}e.RC4=t._createHelper(o);var r=n.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)a.call(this)}});e.RC4Drop=t._createHelper(r)}(),i.RC4)},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"))},wZgz:function(e,t,n){var i;e.exports=(i=n("Ib8C"),n("ETIr"),n("cv67"),n("K3mO"),n("OLod"),function(){var e=i,t=e.lib.BlockCipher,n=e.algo,o=[],a=[],r=[],s=[],l=[],c=[],u=[],d=[],h=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var m=i^i<<1^i<<2^i<<3^i<<4;o[n]=m=m>>>8^255&m^99,a[m]=n;var p,g=e[n],v=e[g],y=e[v];r[n]=(p=257*e[m]^16843008*m)<<24|p>>>8,s[n]=p<<16|p>>>16,l[n]=p<<8|p>>>24,c[n]=p,u[m]=(p=16843009*y^65537*v^257*g^16843008*n)<<24|p>>>8,d[m]=p<<16|p>>>16,h[m]=p<<8|p>>>24,f[m]=p,n?(n=g^e[e[e[y^g]]],i^=e[e[i]]):n=i=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],p=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],r=0;r<i;r++)if(r<n)a[r]=t[r];else{var s=a[r-1];r%n?n>6&&r%n==4&&(s=o[s>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s]):(s=o[(s=s<<8|s>>>24)>>>24]<<24|o[s>>>16&255]<<16|o[s>>>8&255]<<8|o[255&s],s^=m[r/n|0]<<24),a[r]=a[r-n]^s}for(var l=this._invKeySchedule=[],c=0;c<i;c++)r=i-c,s=c%4?a[r]:a[r-4],l[c]=c<4||r<=4?s:u[o[s>>>24]]^d[o[s>>>16&255]]^h[o[s>>>8&255]]^f[o[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,s,l,c,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,f,a),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,o,a,r,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],f=4,m=1;m<l;m++){var p=i[c>>>24]^o[u>>>16&255]^a[d>>>8&255]^r[255&h]^n[f++],g=i[u>>>24]^o[d>>>16&255]^a[h>>>8&255]^r[255&c]^n[f++],v=i[d>>>24]^o[h>>>16&255]^a[c>>>8&255]^r[255&u]^n[f++],y=i[h>>>24]^o[c>>>16&255]^a[u>>>8&255]^r[255&d]^n[f++];c=p,u=g,d=v,h=y}p=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[f++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[f++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[f++],e[t]=p,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});e.AES=t._createHelper(p)}(),i.AES)},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(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=[],o=e.length;for(n=0;n<o;++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 m(e,t,n,i){return xt(e,t,n,i,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth: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,o=e._d&&!isNaN(e._d.getTime());return o&&(t=p(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),o=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&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=m(NaN);return null!=e?f(p(t),e):p(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=o.momentProperties=[],b=!1;function _(e,t){var n,i,o,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=p(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(o=t[i=y[n]])||(e[i]=o);return e}function k(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,o.updateOffset(this),b=!1)}function C(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function w(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return f((function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){var i,a,r,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(r in i+="\n["+a+"] ",arguments[0])s(arguments[0],r)&&(i+=r+": "+arguments[0][r]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,S={};function P(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),S[e]||(w(t),S[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,i=f({},e);for(n in t)s(t,n)&&(r(e[n])&&r(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)&&r(e[n])&&(i[n]=f({},i[n]));return i}function L(e){null!=e&&this.set(e)}function D(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}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var I=/(\[[^\[]*\])|(\\)?([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,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},E={};function B(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(E[e]=o),t&&(E[t[0]]=function(){return D(o.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=R(t,e.localeData()),A[t]=A[t]||function(e){var t,n,i,o=e.match(I);for(t=0,n=o.length;t<n;t++)o[t]=E[o[t]]?E[o[t]]:(i=o[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,a="";for(i=0;i<n;i++)a+=T(o[i])?o[i].call(t,e):o[i];return a}}(t),A[t](e)):e.localeData().invalidDate()}function R(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(F.lastIndex=0;n>=0&&F.test(e);)e=e.replace(F,i),F.lastIndex=0,n-=1;return e}var j={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 z(e){return"string"==typeof e?j[e]||j[e.toLowerCase()]:void 0}function V(e){var t,n,i={};for(n in e)s(e,n)&&(t=z(n))&&(i[t]=e[n]);return i}var H,Y={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},q=/\d/,U=/\d\d/,W=/\d{3}/,J=/\d{4}/,G=/[+-]?\d{6}/,$=/\d\d?/,Q=/\d\d\d\d?/,K=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,X=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,oe=/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,re=/^[1-9]\d?/,se=/^([1-9]\d|\d)/;function le(e,t,n){H[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ce(e,t){return s(H,e)?H[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,o){return t||n||i||o}))))}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}H={};var fe={};function me(e,t){var n,i,o=t;for("string"==typeof e&&(e=[e]),u(t)&&(o=function(e,n){n[t]=he(e)}),i=e.length,n=0;n<i;n++)fe[e[n]]=o}function pe(e,t){me(e,(function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)}))}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}B("Y",0,0,(function(){var e=this.year();return e<=9999?D(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",$,U),le("YYYY",X,J),le("YYYYY",ee,G),le("YYYYYY",ee,G),me(["YYYYY","YYYYYY"],0),me("YYYY",(function(e,t){t[0]=2===e.length?o.parseTwoDigitYear(e):he(e)})),me("YY",(function(e,t){t[0]=o.parseTwoDigitYear(e)})),me("Y",(function(e,t){t[0]=parseInt(e,10)})),o.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var be,_e=ke("FullYear",!0);function ke(e,t){return function(n){return null!=n?(we(this,e,n),o.updateOffset(this,t),this):Ce(this,e)}}function Ce(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 we(e,t,n){var i,o,a,r,s;if(e.isValid()&&!isNaN(n)){switch(i=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(o?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(o?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(o?i.setUTCHours(n):i.setHours(n));case"Date":return void(o?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}a=n,r=e.month(),s=29!==(s=e.date())||1!==r||ve(a)?s:28,o?i.setUTCFullYear(a,r,s):i.setFullYear(a,r,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},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),le("M",$,re),le("MM",$,U),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),me(["M","MM"],(function(e,t){t[1]=he(e)-1})),me(["MMM","MMMM"],(function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[1]=o:p(n).invalidMonth=e}));var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Pe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=ae,Oe=ae;function Le(e,t,n){var i,o,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=m([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=be.call(this._shortMonthsParse,r))?o:null:-1!==(o=be.call(this._longMonthsParse,r))?o:null:"MMM"===t?-1!==(o=be.call(this._shortMonthsParse,r))||-1!==(o=be.call(this._longMonthsParse,r))?o:null:-1!==(o=be.call(this._longMonthsParse,r))||-1!==(o=be.call(this._shortMonthsParse,r))?o:null}function De(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 Ie(e){return null!=e?(De(this,e),o.updateOffset(this,!0),this):Ce(this,"Month")}function Fe(){function e(e,t){return t.length-e.length}var t,n,i,o,a=[],r=[],s=[];for(t=0;t<12;t++)n=m([2e3,t]),i=ue(this.monthsShort(n,"")),o=ue(this.months(n,"")),a.push(i),r.push(o),s.push(o),s.push(i);a.sort(e),r.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ae(e,t,n,i,o,a,r){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,o,a,r),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,o,a,r),s}function Ee(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 Be(e,t,n){var i=7+t-n;return-(7+Ee(e,0,i).getUTCDay()-t)%7+i-1}function Ne(e,t,n,i,o){var a,r,s=1+7*(t-1)+(7+n-i)%7+Be(e,i,o);return s<=0?r=ye(a=e-1)+s:s>ye(e)?(a=e+1,r=s-ye(e)):(a=e,r=s),{year:a,dayOfYear:r}}function Re(e,t,n){var i,o,a=Be(e.year(),t,n),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?i=r+je(o=e.year()-1,t,n):r>je(e.year(),t,n)?(i=r-je(e.year(),t,n),o=e.year()+1):(o=e.year(),i=r),{week:i,year:o}}function je(e,t,n){var i=Be(e,t,n),o=Be(e+1,t,n);return(ye(e)-i+o)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),le("w",$,re),le("ww",$,U),le("W",$,re),le("WW",$,U),pe(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=he(e)})),B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),le("d",$),le("e",$),le("E",$),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)})),pe(["dd","ddd","dddd"],(function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:p(n).invalidWeekday=e})),pe(["d","e","E"],(function(e,t,n,i){t[i]=he(e)}));var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),He="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ye="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),qe=ae,Ue=ae,We=ae;function Je(e,t,n){var i,o,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=m([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!==(o=be.call(this._weekdaysParse,r))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,r))?o:null:-1!==(o=be.call(this._minWeekdaysParse,r))?o:null:"dddd"===t?-1!==(o=be.call(this._weekdaysParse,r))||-1!==(o=be.call(this._shortWeekdaysParse,r))||-1!==(o=be.call(this._minWeekdaysParse,r))?o:null:"ddd"===t?-1!==(o=be.call(this._shortWeekdaysParse,r))||-1!==(o=be.call(this._weekdaysParse,r))||-1!==(o=be.call(this._minWeekdaysParse,r))?o:null:-1!==(o=be.call(this._minWeekdaysParse,r))||-1!==(o=be.call(this._weekdaysParse,r))||-1!==(o=be.call(this._shortWeekdaysParse,r))?o:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,i,o,a,r=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),i=ue(this.weekdaysMin(n,"")),o=ue(this.weekdaysShort(n,"")),a=ue(this.weekdays(n,"")),r.push(i),s.push(o),l.push(a),c.push(i),c.push(o),c.push(a);r.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("^("+r.join("|")+")","i")}function $e(){return this.hours()%12||12}function Qe(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Ke(e,t){return t._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,$e),B("k",["kk",2],0,(function(){return this.hours()||24})),B("hmm",0,0,(function(){return""+$e.apply(this)+D(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+$e.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),Qe("a",!0),Qe("A",!1),le("a",Ke),le("A",Ke),le("H",$,se),le("h",$,re),le("k",$,re),le("HH",$,U),le("hh",$,U),le("kk",$,U),le("hmm",Q),le("hmmss",K),le("Hmm",Q),le("Hmmss",K),me(["H","HH"],3),me(["k","kk"],(function(e,t,n){var i=he(e);t[3]=24===i?0:i})),me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),me(["h","hh"],(function(e,t,n){t[3]=he(e),p(n).bigHour=!0})),me("hmm",(function(e,t,n){var i=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i)),p(n).bigHour=!0})),me("hmmss",(function(e,t,n){var i=e.length-4,o=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i,2)),t[5]=he(e.substr(o)),p(n).bigHour=!0})),me("Hmm",(function(e,t,n){var i=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i))})),me("Hmmss",(function(e,t,n){var i=e.length-4,o=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i,2)),t[5]=he(e.substr(o))}));var Ze,Xe=ke("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:Me,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:Ye,weekdaysShort:He,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 ot(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),rt(i)}catch(o){tt[t]=null}return tt[t]}function rt(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])P("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 L(O(i,t)),nt[e]&&nt[e].forEach((function(e){st(e.name,e.config)})),rt(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,o,a=0;a<e.length;){for(t=(o=ot(e[a]).split("-")).length,n=(n=ot(e[a+1]))?n.split("-"):null;t>0;){if(i=at(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&it(o,n)>=t-1)break;t--}a++}return Ze}(e)}function ct(e){var t,n=e._a;return n&&-2===p(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,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(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]],mt=[["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/]],pt=/^\/?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,o,a,r,s=e._i,l=ut.exec(s)||dt.exec(s),c=ft.length,u=mt.length;if(l){for(p(e).iso=!0,t=0,n=c;t<n;t++)if(ft[t][1].exec(l[1])){o=ft[t][0],i=!1!==ft[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(mt[t][1].exec(l[3])){a=(l[2]||" ")+mt[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);r="Z"}e._f=o+(a||"")+(r||""),Ct(e)}else e._isValid=!1}function bt(e){var t,n,i,o,a,r,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],o=u[5],a=u[6],r=u[7],s=[(l=u[4],c=parseInt(l,10),c<=49?2e3+c:c<=999?1900+c:c),Se.indexOf(n),parseInt(i,10),parseInt(o,10),parseInt(a,10)],r&&s.push(parseInt(r,10)),!function(e,t,n){return!e||He.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(p(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),o=i%100;return(i-o)/100*60+o}(u[8],u[9],u[10]),e._d=Ee.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function _t(e,t,n){return null!=e?e:null!=t?t:n}function kt(e){var t,n,i,a,r,s=[];if(!e._d){for(i=function(e){var t=new Date(o.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,o,a,r,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,r=4,n=_t(t.GG,e._a[0],Re(Mt(),1,4).year),i=_t(t.W,1),((o=_t(t.E,1))<1||o>7)&&(l=!0)):(a=e._locale._week.dow,r=e._locale._week.doy,c=Re(Mt(),a,r),n=_t(t.gg,e._a[0],c.year),i=_t(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),i<1||i>je(n,a,r)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=Ne(n,i,o,a,r),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(r=_t(e._a[0],i[0]),(e._dayOfYear>ye(r)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Ee(r,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?Ee:Ae).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&&(p(e).weekdayMismatch=!0)}}function Ct(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],p(e).empty=!0;var t,n,i,a,r,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=R(e._f,e._locale).match(I)||[]).length,t=0;t<l;t++)(n=(c.match(ce(a=i[t],e))||[])[0])&&((r=c.substr(0,c.indexOf(n))).length>0&&p(e).unusedInput.push(r),c=c.slice(c.indexOf(n)+n.length),d+=n.length),E[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=u-d,c.length>0&&p(e).unusedInput.push(c),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(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=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),kt(e),ct(e)}else bt(e);else yt(e)}function wt(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)),C(t)?new k(ct(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,i,o,a,r,s=!1,l=e._f.length;if(0===l)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)a=0,r=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Ct(t),g(t)&&(r=!0),a+=p(t).charsLeftOver,a+=10*p(t).unusedTokens.length,p(t).score=a,s?a<i&&(i=a,n=t):(null==i||a<i||r)&&(i=a,n=t,r&&(s=!0));f(e,n||t)}(e):n?Ct(e):function(e){var t=e._i;c(t)?e._d=new Date(o.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=pt.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:o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),kt(e)):r(t)?function(e){if(!e._d){var t=V(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)})),kt(e)}}(e):u(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function xt(e,t,n,i,o){var s,c={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(r(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=o,c._l=n,c._i=e,c._f=t,c._strict=i,(s=new k(ct(wt(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Mt(e,t,n,i){return xt(e,t,n,i,!1)}o.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":""))})),o.ISO_8601=function(){},o.RFC_2822=function(){};var St=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Mt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Pt=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Mt.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 Mt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Lt(e){var t=V(e),n=t.year||0,i=t.quarter||0,o=t.month||0,a=t.week||t.isoWeek||0,r=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,o=Ot.length;for(t in e)if(s(e,t)&&(-1===be.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[Ot[n]]){if(i)return!1;parseFloat(e[Ot[n]])!==he(e[Ot[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+r+7*a,this._months=+o+3*i+12*n,this._data={},this._locale=lt(),this._bubble()}function Dt(e){return e instanceof Lt}function It(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)}))}Ft("Z",":"),Ft("ZZ",""),le("Z",oe),le("ZZ",oe),me(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Et(oe,e)}));var At=/([\+\-]|\d\d)/gi;function Et(e,t){var n,i,o=(t||"").match(e);return null===o?null:0===(i=60*(n=((o[o.length-1]||[])+"").match(At)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?i:-i}function Bt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(C(e)||d(e)?e.valueOf():Mt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),o.updateOffset(n,!1),n):Mt(e).local()}function Nt(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vt(e,t){var n,i,o,a,r,l,c=e,d=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=jt.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(It(1e3*d[6]))*n}):(d=zt.exec(e))?c={y:Ht(d[2],n="-"===d[1]?-1:1),M:Ht(d[3],n),w:Ht(d[4],n),d:Ht(d[5],n),h:Ht(d[6],n),m:Ht(d[7],n),s:Ht(d[8],n)}:null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(a=Mt(c.from),r=Mt(c.to),o=a.isValid()&&r.isValid()?(r=Bt(r,a),a.isBefore(r)?l=Yt(a,r):((l=Yt(r,a)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),i=new Lt(c),Dt(e)&&s(e,"_locale")&&(i._locale=e._locale),Dt(e)&&s(e,"_isValid")&&(i._isValid=e._isValid),i}function Ht(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Yt(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 qt(e,t){return function(n,i){var o;return null===i||isNaN(+i)||(P(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."),o=n,n=i,i=o),Ut(this,Vt(n,i),e),this}}function Ut(e,t,n,i){var a=t._milliseconds,r=It(t._days),s=It(t._months);e.isValid()&&(i=null==i||i,s&&De(e,Ce(e,"Month")+s*n),r&&we(e,"Date",Ce(e,"Date")+r*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&o.updateOffset(e,r||s))}Vt.fn=Lt.prototype,Vt.invalid=function(){return Vt(NaN)};var Wt=qt(1,"add"),Jt=qt(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function $t(e){return C(e)||d(e)||Gt(e)||u(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&Gt(e)})).length),t&&n}(e)||function(e){var t,n=r(e)&&!l(e),i=!1,o=["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=o.length;for(t=0;t<a;t+=1)i=i||s(e,o[t]);return n&&i}(e)||null==e}function Qt(e){var t,n=r(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)i=i||s(e,o[t]);return n&&i}function Kt(e,t){if(e.date()<t.date())return-Kt(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 Zt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xt=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 en(){return this._locale}function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function rn(){var e,t,n,i,o,a=[],r=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ue(c[e].name),i=ue(c[e].abbr),o=ue(c[e].narrow),r.push(n),a.push(i),s.push(o),l.push(n),l.push(i),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function sn(e,t){B(0,[e,e.length],0,t)}function ln(e,t,n,i,o){var a;return null==e?Re(this,i,o).year:(t>(a=je(e,i,o))&&(t=a),cn.call(this,e,t,n,i,o))}function cn(e,t,n,i,o){var a=Ne(e,t,n,i,o),r=Ee(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),le("N",an),le("NN",an),le("NNN",an),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),me(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var o=n._locale.erasParse(e,i,n._strict);o?p(n).era=o:p(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),me(["y","yy","yyy","yyyy"],0),me(["yo"],(function(e,t,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,o):parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",$,U),le("gg",$,U),le("GGGG",X,J),le("gggg",X,J),le("GGGGG",ee,G),le("ggggg",ee,G),pe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=he(e)})),pe(["gg","GG"],(function(e,t,n,i){t[i]=o.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),le("Q",q),me("Q",(function(e,t){t[1]=3*(he(e)-1)})),B("D",["DD",2],"Do","date"),le("D",$,re),le("DD",$,U),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),me(["D","DD"],2),me("Do",(function(e,t){t[2]=he(e.match($)[0])}));var un=ke("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Z),le("DDDD",W),me(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),B("m",["mm",2],0,"minute"),le("m",$,se),le("mm",$,U),me(["m","mm"],4);var dn=ke("Minutes",!1);B("s",["ss",2],0,"second"),le("s",$,se),le("ss",$,U),me(["s","ss"],5);var hn,fn,mn=ke("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",Z,q),le("SS",Z,U),le("SSS",Z,W),hn="SSSS";hn.length<=9;hn+="S")le(hn,te);function pn(e,t){t[6]=he(1e3*("0."+e))}for(hn="S";hn.length<=9;hn+="S")me(hn,pn);fn=ke("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var gn=k.prototype;function vn(e){return e}gn.add=Wt,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?$t(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Mt(),i=Bt(n,this).startOf("day"),a=o.calendarFormat(this,i)||"sameElse",r=t&&(T(t[a])?t[a].call(this,n):t[a]);return this.format(r||this.localeData().calendar(a,this,Mt(n)))},gn.clone=function(){return new k(this)},gn.diff=function(e,t,n){var i,o,a;if(!this.isValid())return NaN;if(!(i=Bt(e,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),t=z(t)){case"year":a=Kt(this,i)/12;break;case"month":a=Kt(this,i);break;case"quarter":a=Kt(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-o)/864e5;break;case"week":a=(this-i-o)/6048e5;break;default:a=this-i}return n?a:de(a)},gn.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:nn,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;case"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-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Mt(e).isValid())?Vt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(Mt(),e)},gn.to=function(e,t){return this.isValid()&&(C(e)&&e.isValid()||Mt(e).isValid())?Vt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(Mt(),e)},gn.get=function(e){return T(this[e=z(e)])?this[e]():this},gn.invalidAt=function(){return p(this).overflow},gn.isAfter=function(e,t){var n=C(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},gn.isBefore=function(e,t){var n=C(e)?e:Mt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},gn.isBetween=function(e,t,n,i){var o=C(e)?e:Mt(e),a=C(t)?t:Mt(t);return!!(this.isValid()&&o.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))},gn.isSame=function(e,t){var n,i=C(e)?e:Mt(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},gn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gn.isValid=function(){return g(this)},gn.lang=Xt,gn.locale=Zt,gn.localeData=en,gn.max=Pt,gn.min=St,gn.parsingFlags=function(){return f({},p(this))},gn.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:Y[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=V(e)),o=i.length;for(n=0;n<o;n++)this[i[n].unit](e[i[n].unit])}else if(T(this[e=z(e)]))return this[e](t);return this},gn.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:nn,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-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}return this._d.setTime(t),o.updateOffset(this,!0),this},gn.subtract=Jt,gn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gn.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()}},gn.toDate=function(){return new Date(this.valueOf())},gn.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?N(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",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.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&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.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""},gn.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""},gn.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""},gn.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()-o(a[e].since).year())*n+a[e].offset;return this.year()},gn.year=_e,gn.isLeapYear=function(){return ve(this.year())},gn.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},gn.isoWeekYear=function(e){return ln.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gn.quarter=gn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gn.month=Ie,gn.daysInMonth=function(){return xe(this.year(),this.month())},gn.week=gn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gn.isoWeek=gn.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gn.weeksInYear=function(){var e=this.localeData()._week;return je(this.year(),e.dow,e.doy)},gn.weeksInWeekYear=function(){var e=this.localeData()._week;return je(this.weekYear(),e.dow,e.doy)},gn.isoWeeksInYear=function(){return je(this.year(),1,4)},gn.isoWeeksInISOWeekYear=function(){return je(this.isoWeekYear(),1,4)},gn.date=un,gn.day=gn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Ce(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},gn.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")},gn.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},gn.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")},gn.hour=gn.hours=Xe,gn.minute=gn.minutes=dn,gn.second=gn.seconds=mn,gn.millisecond=gn.milliseconds=fn,gn.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=Et(oe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Nt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Ut(this,Vt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Nt(this)},gn.utc=function(e){return this.utcOffset(0,e)},gn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},gn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Et(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Mt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=Rt,gn.isUTC=Rt,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=x("dates accessor is deprecated. Use date instead.",un),gn.months=x("months accessor is deprecated. Use month instead",Ie),gn.years=x("years accessor is deprecated. Use year instead",_e),gn.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()})),gn.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=wt(t))._a?(e=t._isUTC?m(t._a):Mt(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(i=0;i<o;i++)he(e[i])!==he(t[i])&&r++;return r+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=L.prototype;function bn(e,t,n,i){var o=lt(),a=m().set(i,t);return o[n](a,e)}function _n(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=bn(e,i,n,"month");return o}function kn(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 o,a=lt(),r=e?a._week.dow:0,s=[];if(null!=n)return bn(t,(n+r)%7,i,"day");for(o=0;o<7;o++)s[o]=bn(t,(o+r)%7,i,"day");return s}yn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=vn,yn.postformat=vn,yn.relativeTime=function(e,t,n,i){var o=this._relativeTime[n];return T(o)?o(e,t,n,i):o.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},yn.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)},yn.eras=function(e,t){var n,i,a,r=this._eras||lt("en")._eras;for(n=0,i=r.length;n<i;++n){switch(typeof r[n].since){case"string":a=o(r[n].since).startOf("day"),r[n].since=a.valueOf()}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":a=o(r[n].until).startOf("day").valueOf(),r[n].until=a.valueOf()}}return r},yn.erasParse=function(e,t,n){var i,o,a,r,s,l=this.eras();for(e=e.toUpperCase(),i=0,o=l.length;i<o;++i)if(a=l[i].name.toUpperCase(),r=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(r===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,r,s].indexOf(e)>=0)return l[i]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||rn.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||rn.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||rn.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var i,o,a;if(this._monthsParseExact)return Le.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=m([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),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}},yn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Oe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Re(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.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?ze(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var i,o,a;if(this._weekdaysParseExact)return Je.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),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}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.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)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},rt("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")}}),o.lang=x("moment.lang is deprecated. Use moment.locale instead.",rt),o.langData=x("moment.langData is deprecated. Use moment.localeData instead.",lt);var Cn=Math.abs;function wn(e,t,n,i){var o=Vt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function xn(e){return e<0?Math.floor(e):Math.ceil(e)}function Mn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function Pn(e){return function(){return this.as(e)}}var Tn=Pn("ms"),On=Pn("s"),Ln=Pn("m"),Dn=Pn("h"),In=Pn("d"),Fn=Pn("w"),An=Pn("M"),En=Pn("Q"),Bn=Pn("y"),Nn=Tn;function Rn(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=Rn("milliseconds"),zn=Rn("seconds"),Vn=Rn("minutes"),Hn=Rn("hours"),Yn=Rn("days"),qn=Rn("months"),Un=Rn("years"),Wn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Gn(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}var $n=Math.abs;function Qn(e){return(e>0)-(e<0)||+e}function Kn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,o,a,r,s,l=$n(this._milliseconds)/1e3,c=$n(this._days),u=$n(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+$/,""):"",o=d<0?"-":"",a=Qn(this._months)!==Qn(d)?"-":"",r=Qn(this._days)!==Qn(d)?"-":"",s=Qn(this._milliseconds)!==Qn(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?r+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var Zn=Lt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=Cn(this._milliseconds),this._days=Cn(this._days),this._months=Cn(this._months),e.milliseconds=Cn(e.milliseconds),e.seconds=Cn(e.seconds),e.minutes=Cn(e.minutes),e.hours=Cn(e.hours),e.months=Cn(e.months),e.years=Cn(e.years),this},Zn.add=function(e,t){return wn(this,e,t,1)},Zn.subtract=function(e,t){return wn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(n=this._months+Mn(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(Sn(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)}},Zn.asMilliseconds=Tn,Zn.asSeconds=On,Zn.asMinutes=Ln,Zn.asHours=Dn,Zn.asDays=In,Zn.asWeeks=Fn,Zn.asMonths=An,Zn.asQuarters=En,Zn.asYears=Bn,Zn.valueOf=Nn,Zn._bubble=function(){var e,t,n,i,o,a=this._milliseconds,r=this._days,s=this._months,l=this._data;return a>=0&&r>=0&&s>=0||a<=0&&r<=0&&s<=0||(a+=864e5*xn(Sn(s)+r),r=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,r+=de(n/24),s+=o=de(Mn(r)),r-=xn(Sn(o)),i=de(s/12),s%=12,l.days=r,l.months=s,l.years=i,this},Zn.clone=function(){return Vt(this)},Zn.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=jn,Zn.seconds=zn,Zn.minutes=Vn,Zn.hours=Hn,Zn.days=Yn,Zn.weeks=function(){return de(this.days()/7)},Zn.months=qn,Zn.years=Un,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,o=!1,a=Jn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},Jn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=function(e,t,n,i){var o=Vt(e).abs(),a=Wn(o.as("s")),r=Wn(o.as("m")),s=Wn(o.as("h")),l=Wn(o.as("d")),c=Wn(o.as("M")),u=Wn(o.as("w")),d=Wn(o.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||r<=1&&["m"]||r<n.m&&["mm",r]||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,Gn.apply(null,h)}(this,!o,a,n=this.localeData()),o&&(i=n.pastFuture(+this,i)),n.postformat(i)},Zn.toISOString=Kn,Zn.toString=Kn,Zn.toJSON=Kn,Zn.locale=Zt,Zn.localeData=en,Zn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Kn),Zn.lang=Xt,B("X",0,0,"unix"),B("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),me("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),me("x",(function(e,t,n){n._d=new Date(he(e))})),o.version="2.30.1",t=Mt,o.fn=gn,o.min=function(){var e=[].slice.call(arguments,0);return Tt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return Tt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=m,o.unix=function(e){return Mt(1e3*e)},o.months=function(e,t){return _n(e,t,"months")},o.isDate=d,o.locale=rt,o.invalid=v,o.duration=Vt,o.isMoment=C,o.weekdays=function(e,t,n){return kn(e,t,n,"weekdays")},o.parseZone=function(){return Mt.apply(null,arguments).parseZone()},o.localeData=lt,o.isDuration=Dt,o.monthsShort=function(e,t){return _n(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return kn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,i,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(O(tt[e]._config,t)):(null!=(i=at(e))&&(o=i._config),t=O(o,t),null==i&&(t.abbr=e),(n=new L(t)).parentLocale=tt[e],tt[e]=n),rt(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===rt()&&rt(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return M(tt)},o.weekdaysShort=function(e,t,n){return kn(e,t,n,"weekdaysShort")},o.normalizeUnits=z,o.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},o.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"},o.prototype=gn,o.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"},o}()}).call(this,n("YuTi")(e))},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"))},xutz:function(e,t,n){"use strict";(function(e){var i=n("XqMk"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,r=a&&a.exports===o&&i.a.process,s=function(){try{return a&&a.require&&a.require("util").types||r&&r.binding&&r.binding("util")}catch(e){}}();t.a=s}).call(this,n("3UD+")(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"))},z1FC:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var o={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?o[n][0]:o[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,o){var a=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),o=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),o>0&&(a+=(""!==a?" ":"")+t[o]),""===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_jar 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"))},zUnb:function(n,s,l){"use strict";function u(e){return"function"==typeof e}l.r(s);var h=!1,g={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 h&&console.log("RxJS: Back to a better error behavior. Thank you. <3");h=e},get useDeprecatedSynchronousErrorHandling(){return h}};function y(e){setTimeout((function(){throw e}),0)}var b={closed:!0,next:function(e){},error:function(e){if(g.useDeprecatedSynchronousErrorHandling)throw e;y(e)},complete:function(){}},k=Array.isArray||function(e){return e&&"number"==typeof e.length};function C(e){return null!==e&&"object"==typeof e}var w,x=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}(),M=((w=function(){function e(t){c(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return d(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var a=0;a<n.length;++a)n[a].remove(this);if(u(i))try{i.call(this)}catch(c){t=c instanceof x?S(c.errors):[c]}if(k(o))for(var r=-1,s=o.length;++r<s;){var l=o[r];if(C(l))try{l.unsubscribe()}catch(c){t=t||[],c instanceof x?t=t.concat(S(c.errors)):t.push(c)}}if(t)throw new x(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 o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof e){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.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)}}}])}()).EMPTY=function(e){return e.closed=!0,e}(new w),w);function S(e){return e.reduce((function(e,t){return e.concat(t instanceof x?t.errors:t)}),[])}var P="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),T=function(e){function n(e,t,i){var o;switch(c(this,n),(o=f(this,n)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=b;break;case 1:if(!e){o.destination=b;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(m(o))):(o.syncErrorThrowable=!0,o.destination=new O(m(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new O(m(o),e,t,i)}return o}return p(n,e),d(n,[{key:P,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,t(_(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 o=new n(e,t,i);return o.syncErrorThrowable=!1,o}}])}(M),O=function(e){function t(e,n,i,o){var a,r;c(this,t),(a=f(this,t))._parentSubscriber=e;var s=a;return u(n)?r=n:n&&(r=n.next,i=n.error,o=n.complete,n!==b&&(u((s=Object.create(n)).unsubscribe)&&a.add(s.unsubscribe.bind(s)),s.unsubscribe=a.unsubscribe.bind(a))),a._context=s,a._next=r,a._error=i,a._complete=o,a}return p(t,e),d(t,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;g.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=g.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):y(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;y(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)};g.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(),g.useDeprecatedSynchronousErrorHandling)throw n;y(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!g.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return g.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(y(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}])}(T),L="function"==typeof Symbol&&Symbol.observable||"@@observable";function D(e){return e}function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F(t)}function F(e){return 0===e.length?D:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var A,E=((A=function(){function e(t){c(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return d(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,o=function(e,t,n){if(e){if(e instanceof T)return e;if(e[P])return e[P]()}return e||t||n?new T(e,t,n):new T(b)}(e,t,n);if(o.add(i?i.call(o,this.source):this.source||g.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),g.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){g.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,o=t.isStopped;if(n||o)return!1;e=i&&i instanceof T?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=B(t))((function(t,i){var o;o=n.subscribe((function(t){try{e(t)}catch(n){i(n),o&&o.unsubscribe()}}),i,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:L,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:F(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=B(e))((function(e,n){var i;t.subscribe((function(e){return i=e}),(function(e){return n(e)}),(function(){return e(i)}))}))}}])}()).create=function(e){return new A(e)},A);function B(e){if(e||(e=g.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var N,R=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),j=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t)).subject=e,i.subscriber=n,i.closed=!1,i}return p(t,e),d(t,[{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)}}}}])}(M),z=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).destination=e,n}return p(t,e),d(t)}(T),V=((N=function(e){function n(){var e;return c(this,n),(e=f(this,n)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return p(n,e),d(n,[{key:P,value:function(){return new z(this)}},{key:"lift",value:function(e){var t=new H(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new R;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),o=0;o<n;o++)i[o].next(e)}},{key:"error",value:function(e){if(this.closed)throw new R;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),o=0;o<n;o++)i[o].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new R;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 R;return t(_(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new R;return this.hasError?(e.error(this.thrownError),M.EMPTY):this.isStopped?(e.complete(),M.EMPTY):(this.observers.push(e),new j(this,e))}},{key:"asObservable",value:function(){var e=new E;return e.source=this,e}}])}(E)).create=function(e,t){return new H(e,t)},N),H=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t)).destination=e,i.source=n,i}return p(t,e),d(t,[{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):M.EMPTY}}])}(V);function Y(e){return e&&"function"==typeof e.schedule}var q=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t)).parent=e,o.outerValue=n,o.outerIndex=i,o.index=0,o}return p(t,e),d(t,[{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()}}])}(T),U=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}};var W="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",J=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function G(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var $=function(e){if(e&&"function"==typeof e[L])return i=e,function(e){var t=i[L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(J(e))return U(e);if(G(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,y),e};if(e&&"function"==typeof e[W])return t=e,function(e){for(var n=t[W]();;){var i=n.next();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};var t,n,i,o=C(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(o," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function Q(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new q(e,n,i);if(!o.closed)return t instanceof E?t.subscribe(o):$(t)(o)}var K=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"notifyNext",value:function(e,t,n,i,o){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}])}(T);function Z(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 X(e,t))}}var X=function(){return d((function e(t,n){c(this,e),this.project=t,this.thisArg=n}),[{key:"call",value:function(e,t){return t.subscribe(new ee(e,this.project,this.thisArg))}}])}(),ee=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[e])).project=n,o.count=0,o.thisArg=i||m(o),o}return p(t,e),d(t,[{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)}}])}(T);function te(e,t){return new E((function(n){var i=new M,o=0;return i.add(t.schedule((function(){o!==e.length?(n.next(e[o++]),n.closed||i.add(this.schedule())):n.complete()}))),i}))}function ne(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[L]}(e))return function(e,t){return new E((function(n){var i=new M;return i.add(t.schedule((function(){var o=e[L]();i.add(o.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()})))}}))}))),i}))}(e,t);if(G(e))return function(e,t){return new E((function(n){var i=new M;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(J(e))return te(e,t);if(function(e){return e&&"function"==typeof e[W]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new E((function(n){var i,o=new M;return o.add((function(){i&&"function"==typeof i.return&&i.return()})),o.add(t.schedule((function(){i=e[W](),o.add(t.schedule((function(){if(!n.closed){var e,t;try{var o=i.next();e=o.value,t=o.done}catch(a){return void n.error(a)}t?n.complete():(n.next(e),this.schedule())}})))}))),o}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof E?e:new E($(e))}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(i){return i.pipe(ie((function(n,i){return ne(e(n,i)).pipe(Z((function(e,o){return t(n,e,i,o)})))}),n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new oe(e,n))})}var oe=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;c(this,e),this.project=t,this.concurrent=n}),[{key:"call",value:function(e,t){return t.subscribe(new ae(e,this.project,this.concurrent))}}])}(),ae=function(e){function t(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return c(this,t),(i=f(this,t,[e])).project=n,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return p(t,e),d(t,[{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,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=new q(this,t,n),o=this.destination;o.add(i);var a=Q(this,e,void 0,void 0,i);a!==i&&o.add(a)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,i,o){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}])}(K);function re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return ie(D,e)}function se(e,t){return t?te(e,t):new E(U(e))}function le(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=Number.POSITIVE_INFINITY,o=null,a=t[t.length-1];return Y(a)?(o=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof a&&(i=t.pop()),null===o&&1===t.length&&t[0]instanceof E?t[0]:re(i)(se(t,o))}function ce(){return function(e){return e.lift(new de(e))}}var ue,de=function(){return d((function e(t){c(this,e),this.connectable=t}),[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new he(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o}}])}(),he=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).connectable=n,i}return p(t,e),d(t,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(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}}])}(T),fe={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(ue=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t)).source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return p(t,e),d(t,[{key:"_subscribe",value:function(e){return this.getSubject().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 M).add(this.source.subscribe(new me(this.getSubject(),this))),e.closed&&(this._connection=null,e=M.EMPTY)),e}},{key:"refCount",value:function(){return ce()(this)}}])}(E).prototype)._subscribe},_isComplete:{value:ue._isComplete,writable:!0},getSubject:{value:ue.getSubject},connect:{value:ue.connect},refCount:{value:ue.refCount}},me=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[e])).connectable=t,i}return p(n,e),d(n,[{key:"_error",value:function(e){this._unsubscribe(),t(_(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),t(_(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()}}}])}(z);function pe(){return new V}function ge(){return function(e){return ce()((t=pe,function(e){var n;n="function"==typeof t?t:function(){return t};var i=Object.create(e,fe);return i.source=e,i.subjectFactory=n,i})(e));var t}}function ve(e){return{toString:e}.toString()}function ye(e,t,n){return ve((function(){var i=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(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 i.apply(this,t),this;var a=v(o,t);return r.annotation=a,r;function r(e,t,n){for(var i=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}))}var be=ye("Inject",(function(e){return{token:e}})),_e=ye("Optional"),ke=ye("Self"),Ce=ye("SkipSelf"),we=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 xe(e){for(var t in e)if(e[t]===xe)return t;throw Error("Could not find renamed property on target object.")}function Me(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Se(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Pe(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function Te(e){return Oe(e,e[De])||Oe(e,e[Ae])}function Oe(e,t){return t&&t.token===e?t:null}function Le(e){return e&&(e.hasOwnProperty(Ie)||e.hasOwnProperty(Ee))?e[Ie]:null}var De=xe({"\u0275prov":xe}),Ie=xe({"\u0275inj":xe}),Fe=xe({"\u0275provFallback":xe}),Ae=xe({ngInjectableDef:xe}),Ee=xe({ngInjectorDef:xe});function Be(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Be).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+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 Ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var Re=xe({__forward_ref__:xe});function je(e){return e.__forward_ref__=je,e.toString=function(){return Be(this())},e}function ze(e){return Ve(e)?e():e}function Ve(e){return"function"==typeof e&&e.hasOwnProperty(Re)&&e.__forward_ref__===je}var He,Ye="undefined"!=typeof globalThis&&globalThis,qe="undefined"!=typeof window&&window,Ue="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We="undefined"!=typeof global&&global,Je=Ye||We||qe||Ue,Ge=xe({"\u0275cmp":xe}),$e=xe({"\u0275dir":xe}),Qe=xe({"\u0275pipe":xe}),Ke=xe({"\u0275mod":xe}),Ze=xe({"\u0275loc":xe}),Xe=xe({"\u0275fac":xe}),et=xe({__NG_ELEMENT_ID__:xe}),tt=function(){return d((function e(t,n){c(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=Se({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}),[{key:"toString",value:function(){return"InjectionToken "+this._desc}}])}(),nt=new tt("INJECTOR",-1),it={},ot=/\n/gm,at=xe({provide:String,useValue:xe}),rt=void 0;function st(e){var t=rt;return rt=e,t}function lt(e){var t=He;return He=e,t}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we.Default;if(void 0===rt)throw new Error("inject() must be called from an injection context");return null===rt?ht(e,void 0,t):rt.get(e,t&we.Optional?null:void 0,t)}function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we.Default;return(He||ct)(ze(e),t)}var dt=ut;function ht(e,t,n){var i=Te(e);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&we.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(Be(e),"]"))}function ft(e){for(var t=[],n=0;n<e.length;n++){var i=ze(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var o=void 0,a=we.Default,r=0;r<i.length;r++){var s=i[r];s instanceof _e||"Optional"===s.ngMetadataName||s===_e?a|=we.Optional:s instanceof Ce||"SkipSelf"===s.ngMetadataName||s===Ce?a|=we.SkipSelf:s instanceof ke||"Self"===s.ngMetadataName||s===ke?a|=we.Self:o=s instanceof be||s===be?s.token:s}t.push(ut(o,a))}else t.push(ut(i))}return t}var mt=function(){return d((function e(){c(this,e)}),[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it;if(t===it){var n=new Error("NullInjectorError: No provider for ".concat(Be(e),"!"));throw n.name="NullInjectorError",n}return t}}])}(),pt=d((function e(){c(this,e)})),gt=d((function e(){c(this,e)}));function vt(e,t){e.forEach((function(e){return Array.isArray(e)?vt(e,t):t(e)}))}function yt(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function bt(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function _t(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function kt(e,t,n){var i=wt(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var o=e.length;if(o==t)e.push(n,i);else if(1===o)e.push(i,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Ct(e,t){var n=wt(e,t);if(n>=0)return e[1|n]}function wt(e,t){return function(e,t,n){for(var i=0,o=e.length>>1;o!==i;){var a=i+(o-i>>1),r=e[a<<1];if(t===r)return a<<1;r>t?o=a:i=a+1}return~(o<<1)}(e,t)}var xt=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),Mt=function(){var e={Emulated:0,Native:1,None:2,ShadowDom:3};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e[e.ShadowDom]="ShadowDom",e}(),St={},Pt=[],Tt=0;function Ot(e){return ve((function(){var t=e.type,n=t.prototype,i={},o={type:t,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:i,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===xt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Pt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Mt.Emulated,id:"c",styles:e.styles||Pt,_:null,setInput:null,schemas:e.schemas||null,tView:null},a=e.directives,r=e.features,s=e.pipes;return o.id+=Tt++,o.inputs=At(e.inputs,i),o.outputs=At(e.outputs),r&&r.forEach((function(e){return e(o)})),o.directiveDefs=a?function(){return("function"==typeof a?a():a).map(Lt)}:null,o.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Dt)}:null,o}))}function Lt(e){return Nt(e)||function(e){return e[$e]||null}(e)}function Dt(e){return function(e){return e[Qe]||null}(e)}var It={};function Ft(e){var t={type:e.type,bootstrap:e.bootstrap||Pt,declarations:e.declarations||Pt,imports:e.imports||Pt,exports:e.exports||Pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&ve((function(){It[e.id]=e.type})),t}function At(e,t){if(null==e)return St;var n={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a=o;Array.isArray(o)&&(a=o[1],o=o[0]),n[o]=i,t&&(t[o]=a)}return n}var Et=Ot;function Bt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Nt(e){return e[Ge]||null}function Rt(e,t){return e.hasOwnProperty(Xe)?e[Xe]:null}function jt(e,t){var n=e[Ke]||null;if(!n&&!0===t)throw new Error("Type ".concat(Be(e)," does not have '\u0275mod' property."));return n}function zt(e){return Array.isArray(e)&&"object"==typeof e[1]}function Vt(e){return Array.isArray(e)&&!0===e[1]}function Ht(e){return 0!=(8&e.flags)}function Yt(e){return 2==(2&e.flags)}function qt(e){return 1==(1&e.flags)}function Ut(e){return null!==e.template}function Wt(e){return 0!=(512&e[2])}var Jt=void 0;function Gt(){return void 0!==Jt?Jt:"undefined"!=typeof document?document:void 0}function $t(e){return!!e.listen}var Qt={createRenderer:function(e,t){return Gt()}};function Kt(e){for(;Array.isArray(e);)e=e[0];return e}function Zt(e,t){return Kt(t[e+20])}function Xt(e,t){return Kt(t[e.index])}function en(e,t){return e.data[t+20]}function tn(e,t){return e[t+20]}function nn(e,t){var n=t[e];return zt(n)?n:n[0]}function on(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function an(e){return 4==(4&e[2])}function rn(e){return 128==(128&e[2])}function sn(e,t){return null===e||null==t?null:e[t]}function ln(e){e[18]=0}function cn(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 un={lFrame:Fn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function dn(){return un.bindingsEnabled}function hn(){return un.lFrame.lView}function fn(){return un.lFrame.tView}function mn(e){un.lFrame.contextLView=e}function pn(){return un.lFrame.previousOrParentTNode}function gn(e,t){un.lFrame.previousOrParentTNode=e,un.lFrame.isParent=t}function vn(){return un.lFrame.isParent}function yn(){un.lFrame.isParent=!1}function bn(){return un.checkNoChangesMode}function _n(e){un.checkNoChangesMode=e}function kn(){var e=un.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Cn(){return un.lFrame.bindingIndex}function wn(){return un.lFrame.bindingIndex++}function xn(e){var t=un.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Mn(e,t){var n=un.lFrame;n.bindingIndex=n.bindingRootIndex=e,Sn(t)}function Sn(e){un.lFrame.currentDirectiveIndex=e}function Pn(e){var t=un.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Tn(){return un.lFrame.currentQueryIndex}function On(e){un.lFrame.currentQueryIndex=e}function Ln(e,t){var n=In();un.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function Dn(e,t){var n=In(),i=e[1];un.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=i,n.contextLView=e,n.bindingIndex=i.bindingStartIndex}function In(){var e=un.lFrame,t=null===e?null:e.child;return null===t?Fn(e):t}function Fn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function An(){var e=un.lFrame;return un.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var En=An;function Bn(){var e=An();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.currentSanitizer=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Nn(){return un.lFrame.selectedIndex}function Rn(e){un.lFrame.selectedIndex=e}function jn(){var e=un.lFrame;return en(e.tView,e.selectedIndex)}function zn(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var o=e.data[n];o.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,o.afterContentInit),o.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,o.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,o.afterContentChecked)),o.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,o.afterViewInit),o.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,o.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o.afterViewChecked)),null!=o.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,o.onDestroy)}}function Vn(e,t,n){qn(e,t,3,n)}function Hn(e,t,n,i){(3&e[2])===n&&qn(e,t,n,i)}function Yn(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function qn(e,t,n,i){for(var o=null!=i?i:-1,a=0,r=void 0!==i?65535&e[18]:0;r<t.length;r++)if("number"==typeof t[r+1]){if(a=t[r],null!=i&&a>=i)break}else t[r]<0&&(e[18]+=65536),(a<o||-1==o)&&(Un(e,n,t,r),e[18]=(4294901760&e[18])+r+2),r++}function Un(e,t,n,i){var o=n[i]<0,a=n[i+1],r=e[o?-n[i]:n[i]];o?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,a.call(r)):a.call(r)}var Wn=d((function e(t,n,i){c(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}));function Jn(e,t,n){for(var i=$t(e),o=0;o<n.length;){var a=n[o];if("number"==typeof a){if(0!==a)break;o++;var r=n[o++],s=n[o++],l=n[o++];i?e.setAttribute(t,s,l,r):t.setAttributeNS(r,s,l)}else{var c=a,u=n[++o];$n(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),o++}}return o}function Gn(e){return 3===e||4===e||6===e}function $n(e){return 64===e.charCodeAt(0)}function Qn(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 o=t[i];"number"==typeof o?n=o:0===n||Kn(e,n,o,null,-1===n||2===n?t[++i]:null)}return e}function Kn(e,t,n,i,o){var a=0,r=e.length;if(-1===t)r=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===t){r=-1;break}if(s>t){r=a-1;break}}}for(;a<e.length;){var l=e[a];if("number"==typeof l)break;if(l===n){if(null===i)return void(null!==o&&(e[a+1]=o));if(i===e[a+1])return void(e[a+2]=o)}a++,null!==i&&a++,null!==o&&a++}-1!==r&&(e.splice(r,0,t),a=r+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==o&&e.splice(a++,0,o)}function Zn(e){return-1!==e}function Xn(e){return 32767&e}function ei(e){return e>>16}function ti(e,t){for(var n=ei(e),i=t;n>0;)i=i[15],n--;return i}function ni(e){return"string"==typeof e?e:null==e?"":""+e}function ii(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ni(e)}var oi=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Je);function ai(e){return e instanceof Function?e():e}var ri=!0;function si(e){var t=ri;return ri=e,t}var li=0;function ci(e,t){var n=di(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,ui(i.data,e),ui(t,null),ui(i.blueprint,null));var o=hi(e,t),a=e.injectorIndex;if(Zn(o))for(var r=Xn(o),s=ti(o,t),l=s[1].data,c=0;c<8;c++)t[a+c]=s[r+c]|l[r+c];return t[a+8]=o,a}function ui(e,t){e.push(0,0,0,0,0,0,0,0,t)}function di(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function hi(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],i=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function fi(e,t,n){!function(e,t,n){var i="string"!=typeof n?n[et]:n.charCodeAt(0)||0;null==i&&(i=n[et]=li++);var o=255&i,a=1<<o,r=64&o,s=32&o,l=t.data;128&o?r?s?l[e+7]|=a:l[e+6]|=a:s?l[e+5]|=a:l[e+4]|=a:r?s?l[e+3]|=a:l[e+2]|=a:s?l[e+1]|=a:l[e]|=a}(e,t,n)}function mi(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:we.Default,o=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[et];return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof a){Ln(t,e);try{var r=a();if(null!=r||i&we.Optional)return r;throw new Error("No provider for ".concat(ii(n),"!"))}finally{En()}}else if("number"==typeof a){if(-1===a)return new ki(e,t);var s=null,l=di(e,t),c=-1,u=i&we.Host?t[16][6]:null;for((-1===l||i&we.SkipSelf)&&(c=-1===l?hi(e,t):t[l+8],_i(i,!1)?(s=t[1],l=Xn(c),t=ti(c,t)):l=-1);-1!==l;){c=t[l+8];var d=t[1];if(bi(a,l,d.data)){var h=gi(l,t,n,s,i,u);if(h!==pi)return h}_i(i,t[1].data[l+8]===u)&&bi(a,l,t)?(s=d,l=Xn(c),t=ti(c,t)):l=-1}}}if(i&we.Optional&&void 0===o&&(o=null),0==(i&(we.Self|we.Host))){var f=t[9],m=lt(void 0);try{return f?f.get(n,o,i&we.Optional):ht(n,o,i&we.Optional)}finally{lt(m)}}if(i&we.Optional)return o;throw new Error("NodeInjector: NOT_FOUND [".concat(ii(n),"]"))}var pi={};function gi(e,t,n,i,o,a){var r=t[1],s=r.data[e+8],l=vi(s,r,n,null==i?Yt(s)&&ri:i!=r&&3===s.type,o&we.Host&&a===s);return null!==l?yi(t,r,l,s):pi}function vi(e,t,n,i,o){for(var a=e.providerIndexes,r=t.data,s=65535&a,l=e.directiveStart,c=a>>16,u=o?s+c:e.directiveEnd,d=i?s:s+c;d<u;d++){var h=r[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(o){var f=r[l];if(f&&Ut(f)&&f.type===n)return l}return null}function yi(e,t,n,i){var o=e[n],a=t.data;if(o instanceof Wn){var r=o;if(r.resolving)throw new Error("Circular dep for "+ii(a[n]));var s,l=si(r.canSeeViewProviders);r.resolving=!0,r.injectImpl&&(s=lt(r.injectImpl)),Ln(e,i);try{o=e[n]=r.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.onChanges,o=t.onInit,a=t.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i)),o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{r.injectImpl&&lt(s),si(l),r.resolving=!1,En()}}return o}function bi(e,t,n){var i=64&e,o=32&e;return!!((128&e?i?o?n[t+7]:n[t+6]:o?n[t+5]:n[t+4]:i?o?n[t+3]:n[t+2]:o?n[t+1]:n[t])&1<<e)}function _i(e,t){return!(e&we.Self||e&we.Host&&t)}var ki=function(){return d((function e(t,n){c(this,e),this._tNode=t,this._lView=n}),[{key:"get",value:function(e,t){return mi(this._tNode,this._lView,e,void 0,t)}}])}();function Ci(e){var t=e;if(Ve(e))return function(){var e=Ci(ze(t));return e?e():null};var n=Rt(t);if(null===n){var i=Le(t);n=i&&i.factory}return n||null}function wi(e){return ve((function(){for(var t=e.prototype.constructor,n=t[Xe]||Ci(t),i=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;o&&o!==i;){var a=o[Xe]||Ci(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return function(e){return new e}}))}function xi(e){return e.ngDebugContext}function Mi(e){return e.ngOriginalError}function Si(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 Pi=function(){return d((function e(){c(this,e),this._console=console}),[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||Si}(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?xi(e)?xi(e):this._findContext(Mi(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=Mi(e);t&&Mi(t);)t=Mi(t);return t}}])}(),Ti=function(){return d((function e(t){c(this,e),this.changingThisBreaksApplicationSecurity=t}),[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}])}(),Oi=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getTypeName",value:function(){return"HTML"}}])}(Ti),Li=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getTypeName",value:function(){return"Style"}}])}(Ti),Di=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getTypeName",value:function(){return"Script"}}])}(Ti),Ii=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getTypeName",value:function(){return"URL"}}])}(Ti),Fi=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getTypeName",value:function(){return"ResourceURL"}}])}(Ti);function Ai(e){return e instanceof Ti?e.changingThisBreaksApplicationSecurity:e}function Ei(e,t){var n=Bi(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 http://g.co/ng/security#xss)"))}return n===t}function Bi(e){return e instanceof Ti&&e.getTypeName()||null}var Ni=!0,Ri=!1;function ji(){return Ri=!0,Ni}var zi=function(){return d((function e(t){c(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var n=this.inertDocument.body;if(null==n){var i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i),n=this.inertDocument.createElement("body"),i.appendChild(n)}n.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!n.querySelector||n.querySelector("svg")?(n.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=n.querySelector&&n.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}),[{key:"getInertBodyElement_XHR",value:function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(i){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n}},{key:"getInertBodyElement_DOMParser",value:function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}}},{key:"getInertBodyElement_InertDocument",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=e,t;var n=this.inertDocument.createElement("body");return n.innerHTML=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 o=e.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling}}])}(),Vi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Hi=/^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(Vi)||e.match(Hi)?e:(ji()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(e," (see http://g.co/ng/security#xss)")),"unsafe:"+e)}function qi(e){var t,n={},i=o(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(a){i.e(a)}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 o=0,a=n;o<a.length;o++){var r=a[o];for(var s in r)r.hasOwnProperty(s)&&(e[s]=!0)}return e}var Wi,Ji=qi("area,br,col,hr,img,wbr"),Gi=qi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$i=qi("rp,rt"),Qi=Ui($i,Gi),Ki=Ui(Ji,Ui(Gi,qi("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($i,qi("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")),Qi),Zi=qi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Xi=qi("srcset"),eo=Ui(Zi,Xi,qi("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"),qi("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")),to=qi("script,style,template"),no=function(){return d((function e(){c(this,e),this.sanitizedSomething=!1,this.buf=[]}),[{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(!Ki.hasOwnProperty(t))return this.sanitizedSomething=!0,!to.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n,i=e.attributes,o=0;o<i.length;o++){var a=i.item(o),r=a.name,s=r.toLowerCase();if(eo.hasOwnProperty(s)){var l=a.value;Zi[s]&&(l=Yi(l)),Xi[s]&&(n=l,l=(n=String(n)).split(",").map((function(e){return Yi(e.trim())})).join(", ")),this.buf.push(" ",r,'="',ao(l),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Ki.hasOwnProperty(t)&&!Ji.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(ao(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: "+e.outerHTML);return t}}])}(),io=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,oo=/([^\#-~ |!])/g;function ao(e){return e.replace(/&/g,"&amp;").replace(io,(function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"})).replace(oo,(function(e){return"&#"+e.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ro(e,t){var n=null;try{Wi=Wi||new zi(e);var i=t?String(t):"";n=Wi.getInertBodyElement(i);var o=5,a=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=a,a=n.innerHTML,n=Wi.getInertBodyElement(i)}while(i!==a);var r=new no,s=r.sanitizeChildren(so(n)||n);return ji()&&r.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var l=so(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}function so(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var lo=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),co=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),uo=/^url\(([^)]+)\)$/;function ho(e){if(!(e=String(e).trim()))return"";var t=e.match(uo);return t&&Yi(t[1])===t[1]||e.match(co)&&function(e){for(var t=!0,n=!0,i=0;i<e.length;i++){var o=e.charAt(i);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}(e)?e:(ji()&&console.warn("WARNING: sanitizing unsafe style value ".concat(e," (see http://g.co/ng/security#xss).")),"unsafe")}function fo(e){var t=go();return t?t.sanitize(lo.HTML,e)||"":Ei(e,"HTML")?Ai(e):ro(Gt(),ni(e))}function mo(e){var t=go();return t?t.sanitize(lo.URL,e)||"":Ei(e,"URL")?Ai(e):Yi(ni(e))}function po(e){var t=go();if(t)return t.sanitize(lo.RESOURCE_URL,e)||"";if(Ei(e,"ResourceURL"))return Ai(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)")}function go(){var e=hn();return e&&e[12]}function vo(e,t){e.__ngContext__=t}function yo(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function bo(){throw new Error("Cannot mix multi providers and regular providers")}function _o(e,t,n){for(var i=e.length;;){var o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){var a=t.length;if(o+a===i||e.charCodeAt(o+a)<=32)return o}n=o+1}}function ko(e,t,n){for(var i=0;i<e.length;){var o=e[i++];if(n&&"class"===o){if(-1!==_o((o=e[i]).toLowerCase(),t,0))return!0}else if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function Co(e){return 0===e.type&&"ng-template"!==e.tagName}function wo(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function xo(e,t,n){for(var i=4,o=e.attrs||[],a=function(e){for(var t=0;t<e.length;t++)if(Gn(e[t]))return t;return e.length}(o),r=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!r)if(4&i){if(i=2|1&i,""!==l&&!wo(e,l,n)||""===l&&1===t.length){if(Mo(i))return!1;r=!0}}else{var c=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!ko(e.attrs,c,n)){if(Mo(i))return!1;r=!0}continue}var u=So(8&i?"class":l,o,Co(e),n);if(-1===u){if(Mo(i))return!1;r=!0;continue}if(""!==c){var d;d=u>a?"":o[u+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==_o(h,c,0)||2&i&&c!==d){if(Mo(i))return!1;r=!0}}}}else{if(!r&&!Mo(i)&&!Mo(l))return!1;if(r&&Mo(l))continue;r=!1,i=l|1&i}}return Mo(i)||r}function Mo(e){return 0==(1&e)}function So(e,t,n,i){if(null===t)return-1;var o=0;if(i||!n){for(var a=!1;o<t.length;){var r=t[o];if(r===e)return o;if(3===r||6===r)a=!0;else{if(1===r||2===r){for(var s=t[++o];"string"==typeof s;)s=t[++o];continue}if(4===r)break;if(0===r){o+=4;continue}}o+=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 Po(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(xo(e,t[i],n))return!0;return!1}function To(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var o=0;o<e.length;o++)if(e[o]!==i[o])continue e;return!0}}return!1}function Oo(e,t){return e?":not("+t.trim()+")":t}function Lo(e){for(var t=e[0],n=1,i=2,o="",a=!1;n<e.length;){var r=e[n];if("string"==typeof r)if(2&i){var s=e[++n];o+="["+r+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?o+="."+r:4&i&&(o+=" "+r);else""===o||Mo(r)||(t+=Oo(a,o),o=""),i=r,a=a||!Mo(i);n++}return""!==o&&(t+=Oo(a,o)),t}var Do={};function Io(e){var t=e[3];return Vt(t)?t[3]:t}function Fo(e){return Eo(e[13])}function Ao(e){return Eo(e[4])}function Eo(e){for(;null!==e&&!Vt(e);)e=e[4];return e}function Bo(e){No(fn(),hn(),Nn()+e,bn())}function No(e,t,n,i){if(!i)if(3==(3&t[2])){var o=e.preOrderCheckHooks;null!==o&&Vn(t,o,n)}else{var a=e.preOrderHooks;null!==a&&Hn(t,a,0,n)}Rn(n)}function Ro(e,t){return e<<17|t<<2}function jo(e){return e>>17&32767}function zo(e){return 2|e}function Vo(e){return(131068&e)>>2}function Ho(e,t){return-131069&e|t<<2}function Yo(e){return 1|e}function qo(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var o=n[i],a=n[i+1];if(-1!==a){var r=e.data[a];On(o),r.contentQueries(2,t[a],a)}}}function Uo(e,t,n){return $t(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Wo(e,t,n,i,o,a,r,s,l,c){var u=t.blueprint.slice();return u[0]=o,u[2]=140|i,ln(u),u[3]=u[15]=e,u[8]=n,u[10]=r||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 Jo(e,t,n,i,o,a){var r=n+20,s=e.data[r]||function(e,t,n,i,o,a){var r=pn(),s=vn(),l=s?r:r&&r.parent,c=e.data[n]=ia(0,l&&l!==t?l:null,i,n,o,a);return null===e.firstChild&&(e.firstChild=c),r&&(!s||null!=r.child||null===c.parent&&2!==r.type?s||(r.next=c):r.child=c),c}(e,t,r,i,o,a);return gn(s,!0),s}function Go(e,t,n){Dn(t,t[6]);try{var i=e.viewQuery;null!==i&&Ma(1,i,n);var o=e.template;null!==o&&Ko(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&qo(e,t),e.staticViewQueries&&Ma(2,e.viewQuery,n);var a=e.components;null!==a&&function(e,t){for(var n=0;n<t.length;n++)_a(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,Bn()}}function $o(e,t,n,i){var o=t[2];if(256!=(256&o)){Dn(t,t[6]);var a=bn();try{ln(t),un.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Ko(e,t,n,2,i);var r=3==(3&o);if(!a)if(r){var s=e.preOrderCheckHooks;null!==s&&Vn(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Hn(t,l,0,null),Yn(t,0)}if(function(e){for(var t=Fo(e);null!==t;t=Ao(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var o=n[i],a=o[3];0==(1024&o[2])&&cn(a,1),o[2]|=1024}}(t),function(e){for(var t=Fo(e);null!==t;t=Ao(t))for(var n=10;n<t.length;n++){var i=t[n],o=i[1];rn(i)&&$o(o,i,o.template,i[8])}}(t),null!==e.contentQueries&&qo(e,t),!a)if(r){var c=e.contentCheckHooks;null!==c&&Vn(t,c)}else{var u=e.contentHooks;null!==u&&Hn(t,u,1),Yn(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var i=e.expandoStartIndex,o=-1,a=0;a<n.length;a++){var r=n[a];"number"==typeof r?r<=0?(Rn(0-r),o=i+=9+n[++a]):i+=r:(null!==r&&(Mn(i,o),r(2,t[o])),o++)}}finally{Rn(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)ba(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&Ma(2,h,i),!a)if(r){var f=e.viewCheckHooks;null!==f&&Vn(t,f)}else{var m=e.viewHooks;null!==m&&Hn(t,m,2),Yn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,cn(t[3],-1))}finally{Bn()}}}function Qo(e,t,n,i){var o=t[10],a=!bn(),r=an(t);try{a&&!r&&o.begin&&o.begin(),r&&Go(e,t,i),$o(e,t,n,i)}finally{a&&!r&&o.end&&o.end()}}function Ko(e,t,n,i,o){var a=Nn();try{Rn(-1),2&i&&t.length>20&&No(e,t,0,bn()),n(i,o)}finally{Rn(a)}}function Zo(e,t,n){if(Ht(t))for(var i=t.directiveEnd,o=t.directiveStart;o<i;o++){var a=e.data[o];a.contentQueries&&a.contentQueries(1,n[o],o)}}function Xo(e,t,n){dn()&&(function(e,t,n,i){var o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||ci(n,t),vo(i,t);for(var r=n.initialInputs,s=o;s<a;s++){var l=e.data[s],c=Ut(l);c&&pa(t,n,l);var u=yi(t,e,s,n);vo(u,t),null!==r&&ga(0,s-o,u,l,0,r),c&&(nn(n.index,t)[8]=u)}}(e,t,n,Xt(n,t)),128==(128&n.flags)&&function(e,t,n){var i=n.directiveStart,o=n.directiveEnd,a=e.expandoInstructions,r=e.firstCreatePass,s=n.index-20,l=un.lFrame.currentDirectiveIndex;try{Rn(s);for(var c=i;c<o;c++){var u=e.data[c],d=t[c];Sn(c),null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs?ca(u,d):r&&a.push(null)}}finally{Rn(-1),Sn(l)}}(e,t,n))}function ea(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xt,i=t.localNames;if(null!==i)for(var o=t.index+1,a=0;a<i.length;a+=2){var r=i[a+1],s=-1===r?n(t,e):e[r];e[o++]=s}}function ta(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=na(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function na(e,t,n,i,o,a,r,s,l,c){var u=20+i,d=u+o,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Do);return n}(u,d);return h[1]={type:e,id:t,blueprint:h,template:n,queries:null,viewQuery:s,node:null,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof r?r():r,firstChild:null,schemas:l,consts:c,incompleteFirstPass:!1}}function ia(e,t,n,i,o,a){return{type:n,index:i,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:o,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}}function oa(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,o):n[i]=[t,o]}return n}function aa(e,t,n,i,o,a,r,s){var l,c,u=Xt(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(Da(e,n,l,i,o),Yt(t)&&function(e,t){var n=nn(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,o=null!=r?r(o,t.tagName||"",i):o,$t(a)?a.setProperty(u,i,o):$n(i)||(u.setProperty?u.setProperty(i,o):u[i]=o))}function ra(e,t,n,i){var o=!1;if(dn()){var a=function(e,t,n){var i=e.directiveRegistry,o=null;if(i)for(var a=0;a<i.length;a++){var r=i[a];Po(n,r.selectors,!1)&&(o||(o=[]),fi(ci(n,t),e,r.type),Ut(r)?(2&n.flags&&yo(n),da(e,n),o.unshift(r)):o.push(r))}return o}(e,t,n),r=null===i?null:{"":-1};if(null!==a){var s=0;o=!0,fa(n,e.data.length,a.length);for(var l=0;l<a.length;l++){var c=a[l];c.providersResolver&&c.providersResolver(c)}ua(e,n,a.length);for(var u=!1,d=!1,h=0;h<a.length;h++){var f=a[h];n.mergedAttrs=Qn(n.mergedAttrs,f.hostAttrs),ma(e,t,f),ha(e.data.length-1,f,r),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128),!u&&(f.onChanges||f.onInit||f.doCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-20),u=!0),d||!f.onChanges&&!f.doCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-20),d=!0),sa(e,f),s+=f.hostVars}!function(e,t){for(var n=t.directiveEnd,i=e.data,o=t.attrs,a=[],r=null,s=null,l=t.directiveStart;l<n;l++){var c=i[l],u=c.inputs,d=null===o||Co(t)?null:va(u,o);a.push(d),r=oa(u,l,r),s=oa(c.outputs,l,s)}null!==r&&(r.hasOwnProperty("class")&&(t.flags|=16),r.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=r,t.outputs=s}(e,n),la(e,t,s)}r&&function(e,t,n){if(t)for(var i=e.localNames=[],o=0;o<t.length;o+=2){var a=n[t[o+1]];if(null==a)throw new Error("Export of name '".concat(t[o+1],"' not found!"));i.push(t[o],a)}}(n,i,r)}return n.mergedAttrs=Qn(n.mergedAttrs,n.attrs),o}function sa(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function la(e,t,n){for(var i=0;i<n;i++)t.push(Do),e.blueprint.push(Do),e.data.push(null)}function ca(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ua(e,t,n){var i=20-t.index,o=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(i,o,n)}function da(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ha(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;Ut(t)&&(n[""]=e)}}function fa(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ma(e,t,n){e.data.push(n);var i=n.factory||(n.factory=Rt(n.type)),o=new Wn(i,Ut(n),null);e.blueprint.push(o),t.push(o)}function pa(e,t,n){var i=Xt(t,e),o=ta(n),a=e[10],r=ka(e,Wo(e,o,null,n.onPush?64:16,i,t,a,a.createRenderer(i,n)));e[t.index]=r}function ga(e,t,n,i,o,a){var r=a[t];if(null!==r)for(var s=i.setInput,l=0;l<r.length;){var c=r[l++],u=r[l++],d=r[l++];null!==s?i.setInput(n,d,c,u):n[u]=d}}function va(e,t){for(var n=null,i=0;i<t.length;){var o=t[i];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[i+1])),i+=2}else i+=2;else i+=4}return n}function ya(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ba(e,t){var n=nn(t,e);if(rn(n)){var i=n[1];80&n[2]?$o(i,n,i.template,n[8]):n[5]>0&&function e(t){for(var n=Fo(t);null!==n;n=Ao(n))for(var i=10;i<n.length;i++){var o=n[i];if(1024&o[2]){var a=o[1];$o(a,o,a.template,o[8])}else o[5]>0&&e(o)}var r=t[1].components;if(null!==r)for(var s=0;s<r.length;s++){var l=nn(r[s],t);rn(l)&&l[5]>0&&e(l)}}(n)}}function _a(e,t){var n=nn(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),Go(i,n,n[8])}function ka(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Ca(e){for(;e;){e[2]|=64;var t=Io(e);if(Wt(e)&&!t)return e;e=t}return null}function wa(e,t,n){var i=t[10];i.begin&&i.begin();try{$o(e,t,e.template,n)}catch(o){throw La(t,o),o}finally{i.end&&i.end()}}function xa(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=on(n),o=i[1];Qo(o,i,o.template,n)}}(e[8])}function Ma(e,t,n){On(0),t(e,n)}var Sa=Promise.resolve(null);function Pa(e){return e[7]||(e[7]=[])}function Ta(e){return e.cleanup||(e.cleanup=[])}function Oa(e,t,n){return(null===e||Ut(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 La(e,t){var n=e[9],i=n?n.get(Pi,null):null;i&&i.handleError(t)}function Da(e,t,n,i,o){for(var a=0;a<n.length;){var r=n[a++],s=n[a++],l=t[r],c=e.data[r];null!==c.setInput?c.setInput(l,o,i,s):l[s]=o}}function Ia(e,t,n){var i=Zt(t,e),o=e[11];$t(o)?o.setValue(i,n):i.textContent=n}function Fa(e,t){var n=t[3];return-1===e.index?Vt(n)?n:null:n}function Aa(e,t){var n=Fa(e,t);return n?Wa(t[11],n[7]):null}function Ea(e,t,n,i,o){if(null!=i){var a,r=!1;Vt(i)?a=i:zt(i)&&(r=!0,i=i[0]);var s=Kt(i);0===e&&null!==n?null==o?qa(t,n,s):Ya(t,n,s,o||null):1===e&&null!==n?Ya(t,n,s,o||null):2===e?function(e,t,n){var i=Wa(e,t);i&&function(e,t,n,i){$t(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}(t,s,r):3===e&&t.destroyNode(s),null!=a&&function(e,t,n,i,o){var a=n[7];a!==Kt(n)&&Ea(t,e,i,a,o);for(var r=10;r<n.length;r++){var s=n[r];Ka(s[1],s,e,t,i,a)}}(t,e,a,n,o)}}function Ba(e,t,n,i){var o=Aa(e.node,t);o&&Ka(e,t,t[11],n?1:2,o,i)}function Na(e,t){var n=e[9],i=n.indexOf(t);1024&t[2]&&cn(t[3],-1),n.splice(i,1)}function Ra(e,t){if(!(e.length<=10)){var n=10+t,i=e[n];if(i){var o=i[17];null!==o&&o!==e&&Na(o,i),t>0&&(e[n-1][4]=i[4]);var a=bt(e,10+t);Ba(i[1],i,!1,null);var r=a[19];null!==r&&r.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function ja(e,t){if(!(256&t[2])){var n=t[11];$t(n)&&n.destroyNode&&Ka(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Va(e[1],e);for(;t;){var n=null;if(zt(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)zt(t)&&Va(t[1],t),t=za(t,e);null===t&&(t=e),zt(t)&&Va(t[1],t),n=t&&t[4]}t=n}}(t)}}function za(e,t){var n;return zt(e)&&(n=e[6])&&2===n.type?Fa(n,e):e[3]===t?null:e[3]}function Va(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 o=t[n[i]];if(!(o instanceof Wn)){var a=n[i+1];if(Array.isArray(a))for(var r=0;r<a.length;r+=2)a[r+1].call(o[a[r]]);else a.call(o)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var i=t[7],o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){var a=n[o+1],r="function"==typeof a?a(t):Kt(t[a]),s=i[n[o+2]],l=n[o+3];"boolean"==typeof l?r.removeEventListener(n[o],s,l):l>=0?i[l]():i[-l].unsubscribe(),o+=2}else n[o].call(i[n[o+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&$t(t[11])&&t[11].destroy();var i=t[17];if(null!==i&&Vt(t[3])){i!==t[3]&&Na(i,t);var o=t[19];null!==o&&o.detachView(e)}}}function Ha(e,t,n){for(var i=t.parent;null!=i&&(4===i.type||5===i.type);)i=(t=i).parent;if(null==i){var o=n[6];return 2===o.type?Aa(o,n):n[0]}if(t&&5===t.type&&4&t.flags)return Xt(t,n).parentNode;if(2&i.flags){var a=e.data,r=a[a[i.index].directiveStart].encapsulation;if(r!==Mt.ShadowDom&&r!==Mt.Native)return null}return Xt(i,n)}function Ya(e,t,n,i){$t(e)?e.insertBefore(t,n,i):t.insertBefore(n,i,!0)}function qa(e,t,n){$t(e)?e.appendChild(t,n):t.appendChild(n)}function Ua(e,t,n,i){null!==i?Ya(e,t,n,i):qa(e,t,n)}function Wa(e,t){return $t(e)?e.parentNode(t):t.parentNode}function Ja(e,t){if(2===e.type){var n=Fa(e,t);return null===n?null:$a(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?Xt(e,t):null}function Ga(e,t,n,i){var o=Ha(e,i,t);if(null!=o){var a=t[11],r=Ja(i.parent||t[6],t);if(Array.isArray(n))for(var s=0;s<n.length;s++)Ua(a,o,n[s],r);else Ua(a,o,n,r)}}function $a(e,t){var n=10+e+1;if(n<t.length){var i=t[n],o=i[1].firstChild;if(null!==o)return function e(t,n){if(null!==n){var i=n.type;if(3===i)return Xt(n,t);if(0===i)return $a(-1,t[n.index]);if(4===i||5===i){var o=n.child;if(null!==o)return e(t,o);var a=t[n.index];return Vt(a)?$a(-1,a):Kt(a)}var r=t[16],s=r[6],l=Io(r),c=s.projection[n.projection];return null!=c?e(l,c):e(t,n.next)}return null}(i,o)}return t[7]}function Qa(e,t,n,i,o,a,r){for(;null!=n;){var s=i[n.index],l=n.type;r&&0===t&&(s&&vo(Kt(s),i),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Qa(e,t,n.child,i,o,a,!1),Ea(t,e,o,s,a)):1===l?Za(e,t,i,n,o,a):Ea(t,e,o,s,a)),n=r?n.projectionNext:n.next}}function Ka(e,t,n,i,o,a){Qa(n,i,e.node.child,t,o,a,!1)}function Za(e,t,n,i,o,a){var r=n[16],s=r[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)Ea(t,e,o,s[l],a);else Qa(e,t,s,r[3],o,a,!0)}function Xa(e,t,n){$t(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function er(e,t,n){$t(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var tr,nr,ir,or=function(){return d((function e(t,n){c(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}),[{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,i,o){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var s=n[i.index];if(null!==s&&o.push(Kt(s)),Vt(s))for(var l=10;l<s.length;l++){var c=s[l],u=c[1].firstChild;null!==u&&e(c[1],c,u,o)}var d=i.type;if(4===d||5===d)e(t,n,i.child,o);else if(1===d){var h=n[16],f=h[6].projection[i.projection];if(Array.isArray(f))o.push.apply(o,r(f));else{var m=Io(h);e(m[1],m,f,o,!0)}}i=a?i.projectionNext:i.next}return o}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ja(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,i;t=this._lView[1],i=e,Pa(n=this._lView).push(i),t.firstCreatePass&&Ta(t).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Ca(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){wa(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){_n(!0);try{wa(e,t,n)}finally{_n(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Ka(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}])}(),ar=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e]))._view=e,n}return p(t,e),d(t,[{key:"detectChanges",value:function(){xa(this._view)}},{key:"checkNoChanges",value:function(){!function(e){_n(!0);try{xa(e)}finally{_n(!1)}}(this._view)}},{key:"context",get:function(){return null}}])}(or);function rr(e,t,n){return tr||(tr=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t)}(e)),new tr(Xt(t,n))}function sr(e,t,n,i){return nr||(nr=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t))._declarationView=e,o._declarationTContainer=n,o.elementRef=i,o}return p(t,e),d(t,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Wo(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Go(t,n,e),new or(n)}}])}(e)),0===n.type?new nr(i,n,rr(t,n,i)):null}function lr(e,t,n,i){var o;ir||(ir=function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n))._lContainer=e,o._hostTNode=t,o._hostView=i,o}return p(n,e),d(n,[{key:"element",get:function(){return rr(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new ki(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=hi(this._hostTNode,this._hostView),t=ti(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,o=n.parent;null!=o.parent&&i==o.parent.injectorIndex;)o=o.parent;return o}for(var a=ei(e),r=t,s=t[6];a>1;)s=(r=r[15])[6],a--;return s}(e,this._hostView,this._hostTNode);return Zn(e)&&null!=n?new ki(n,t):new ki(null,this._hostView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{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,o){var a=n||this.parentInjector;if(!o&&null==e.ngModule&&a){var r=a.get(pt,null);r&&(o=r)}var s=e.create(a,i,void 0,o);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,i=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Vt(n[3])){var o=this.indexOf(e);if(-1!==o)this.detach(o);else{var a=n[3],r=new ir(a,a[6],a[3]);r.detach(r.indexOf(e))}}var s=this._adjustIndex(t);return function(e,t,n,i){var o=10+i,a=n.length;i>0&&(n[o-1][4]=t),i<a-10?(t[4]=n[o],yt(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;var r=t[17];null!==r&&n!==r&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(r,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(i,n,this._lContainer,s),Ba(i,n,!0,$a(s,this._lContainer)),e.attachToViewContainerRef(this),yt(this._lContainer[8],s,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1);!function(e,t){var n=Ra(e,t);n&&ja(n[1],n)}(this._lContainer,t),bt(this._lContainer[8],t)}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=Ra(this._lContainer,t);return n&&null!=bt(this._lContainer[8],t)?new or(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}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}}])}(e));var a=i[n.index];if(Vt(a))o=a;else{var r;if(4===n.type)r=Kt(a);else if(r=i[11].createComment(""),Wt(i)){var s=i[11],l=Xt(n,i);Ya(s,Wa(s,l),r,function(e,t){return $t(e)?e.nextSibling(t):t.nextSibling}(s,l))}else Ga(i[1],i,r,n);i[n.index]=o=ya(a,i,r,n),ka(i,o)}return new ir(o,n,i)}function cr(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(e,t,n){if(!n&&Yt(e)){var i=nn(e.index,t);return new or(i,i)}return 3===e.type||0===e.type||4===e.type||5===e.type?new or(t[16],t):null}(pn(),hn(),e)}var ur=function(){var e=d((function e(){c(this,e)}));return e.__NG_ELEMENT_ID__=function(){return dr()},e}(),dr=cr,hr=new tt("Set Injector scope."),fr={},mr={},pr=[],gr=void 0;function vr(){return void 0===gr&&(gr=new mt),gr}function yr(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 br(e,n,t||vr(),i)}var br=function(){return d((function e(t,n,i){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var r=[];n&&vt(n,(function(e){return o.processProvider(e,t,n)})),vt([t],(function(e){return o.processInjectorType(e,[],r)})),this.records.set(nt,Cr(void 0,this));var s=this.records.get(hr);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:Be(t))}),[{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]:it,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:we.Default;this.assertNotDestroyed();var i,o=st(this);try{if(!(n&we.SkipSelf)){var a=this.records.get(e);if(void 0===a){var r=("function"==typeof(i=e)||"object"==typeof i&&i instanceof tt)&&Te(e);a=r&&this.injectableDefInScope(r)?Cr(_r(e),fr):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&we.Self?vr():this.parent).get(e,t=n&we.Optional&&t===it?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(Be(e)),o)throw s;return function(e,t,n,i){var o=e.ngTempTokenPath;throw t.__source&&o.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 o=Be(t);if(Array.isArray(t))o=t.map(Be).join(" -> ");else if("object"==typeof t){var a=[];for(var r in t)if(t.hasOwnProperty(r)){var s=t[r];a.push(r+":"+("string"==typeof s?JSON.stringify(s):Be(s)))}o="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(o,"]: ").concat(e.replace(ot,"\n  "))}("\n"+e.message,o,"R3InjectorError",i),e.ngTokenPath=o,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{st(o)}}},{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(Be(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=ze(e)))return!1;var o=Le(e),a=null==o&&e.ngModule||void 0,r=void 0===a?e:a,s=-1!==n.indexOf(r);if(void 0!==a&&(o=Le(a)),null==o)return!1;if(null!=o.imports&&!s){var l;n.push(r);try{vt(o.imports,(function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))}))}finally{}if(void 0!==l)for(var c=function(){var e=l[u],t=e.ngModule,n=e.providers;vt(n,(function(e){return i.processProvider(e,t,n||pr)}))},u=0;u<l.length;u++)c()}this.injectorDefTypes.add(r),this.records.set(r,Cr(o.factory,fr));var d=o.providers;if(null!=d&&!s){var h=e;vt(d,(function(e){return i.processProvider(e,h,d)}))}return void 0!==a&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=xr(e=ze(e))?e:ze(e&&e.provide),o=function(e,t,n){return wr(e)?Cr(void 0,e.useValue):Cr(kr(e,t,n),fr)}(e,t,n);if(xr(e)||!0!==e.multi){var a=this.records.get(i);a&&void 0!==a.multi&&bo()}else{var r=this.records.get(i);r?void 0===r.multi&&bo():((r=Cr(void 0,fr,!0)).factory=function(){return ft(r.multi)},this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,o)}},{key:"hydrate",value:function(e,t){var n;return t.value===mr?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(Be(e)):t.value===fr&&(t.value=mr,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){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}])}();function _r(e){var t=Te(e),n=null!==t?t.factory:Rt(e);if(null!==n)return n;var i=Le(e);if(null!==i)return i.factory;if(e instanceof tt)throw new Error("Token ".concat(Be(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=_t(t,"?");throw new Error("Can't resolve all parameters for ".concat(Be(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[De]||e[Ae]||e[Fe]&&e[Fe]());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 v10. 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 kr(e,t,n){var i,o=void 0;if(xr(e)){var a=ze(e);return Rt(a)||_r(a)}if(wr(e))o=function(){return ze(e.useValue)};else if((i=e)&&i.useFactory)o=function(){return e.useFactory.apply(e,r(ft(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return ut(ze(e.useExisting))};else{var s=ze(e&&(e.useClass||e.provide));if(s||function(e,t,n){var i="";throw e&&t&&(i=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(Be(e),"'")+i)}(t,n,e),!function(e){return!!e.deps}(e))return Rt(s)||_r(s);o=function(){return v(s,r(ft(e.deps)))}}return o}function Cr(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function wr(e){return null!==e&&"object"==typeof e&&at in e}function xr(e){return"function"==typeof e}var Mr=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,o=yr(e,t,n,i);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)},Sr=function(){var e=function(){return d((function e(){c(this,e)}),null,[{key:"create",value:function(e,t){return Array.isArray(e)?Mr(e,t,""):Mr(e.providers,e.parent,e.name||"")}}])}();return e.THROW_IF_NOT_FOUND=it,e.NULL=new mt,e.\u0275prov=Se({token:e,providedIn:"any",factory:function(){return ut(nt)}}),e.__NG_ELEMENT_ID__=-1,e}(),Pr=new tt("AnalyzeForEntryComponents"),Tr=new Map,Or=new Set;function Lr(e){return"string"==typeof e?e:e.text()}function Dr(e,t,n){var i=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(var r=0;r<t.length;r++){var s=t[r];"number"==typeof s?a=s:1==a?o=Ne(o,s):2==a&&(i=Ne(i,s+": "+t[++r]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=o:e.classesWithoutHost=o}var Ir=null;function Fr(){if(!Ir){var e=Je.Symbol;if(e&&e.iterator)Ir=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&&(Ir=i)}}return Ir}function Ar(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}var Er=function(){function e(t){c(this,e),this.wrapped=t}return d(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}}])}();function Br(e){return!!Nr(e)&&(Array.isArray(e)||!(e instanceof Map)&&Fr()in e)}function Nr(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Rr(e,t,n){return e[t]=n}function jr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function zr(e,t,n,i){var o=jr(e,t,n);return jr(e,t+1,i)||o}function Vr(e,t,n,i,o){var a=zr(e,t,n,i);return jr(e,t+2,o)||a}function Hr(e,t,n,i,o,a){var r=zr(e,t,n,i);return zr(e,t+2,o,a)||r}function Yr(e,t,n,i){var o=hn();return jr(o,wn(),t)&&(fn(),function(e,t,n,i,o,a){var r=Xt(e,t),s=t[11];if(null==i)$t(s)?s.removeAttribute(r,n,a):r.removeAttribute(n);else{var l=null==o?ni(i):o(i,e.tagName||"",n);$t(s)?s.setAttribute(r,n,l,a):a?r.setAttributeNS(a,n,l):r.setAttribute(n,l)}}(jn(),o,e,t,n,i)),Yr}function qr(e,t,n,i){return jr(e,wn(),n)?t+ni(n)+i:Do}function Ur(e,t,n,i,o,a){var r=zr(e,Cn(),n,o);return xn(2),r?t+ni(n)+i+ni(o)+a:Do}function Wr(e,t,n,i,o,a,r,s){var l=Vr(e,Cn(),n,o,r);return xn(3),l?t+ni(n)+i+ni(o)+a+ni(r)+s:Do}function Jr(e,t,n,i,o,a,r,s){var l=hn(),c=fn(),u=e+20,d=c.firstCreatePass?function(e,t,n,i,o,a,r,s,l){var c=t.consts,u=Jo(t,n[6],e,0,r||null,sn(c,s));ra(t,n,u,sn(c,l)),zn(t,u);var d=u.tViews=na(2,-1,i,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c),h=ia(0,null,2,-1,null,null);return h.injectorIndex=u.injectorIndex,d.node=h,null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(e,c,l,t,n,i,o,a,r):c.data[u];gn(d,!1);var h=l[11].createComment("");Ga(c,l,h,d),vo(h,l),ka(l,l[u]=ya(h,l,h,d)),qt(d)&&Xo(c,l,d),null!=r&&ea(l,d,s)}function Gr(e){return tn(un.lFrame.contextLView,e)}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we.Default,n=hn();return null==n?ut(e,t):mi(pn(),n,ze(e),t)}function Qr(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,o=0;o<i;){var a=n[o];if(Gn(a))break;if(0===a)o+=2;else if("number"==typeof a)for(o++;o<i&&"string"==typeof n[o];)o++;else{if(a===t)return n[o+1];o+=2}}return null}(pn(),e)}function Kr(){throw new Error("invalid")}function Zr(e,t,n){var i=hn();return jr(i,wn(),t)&&aa(fn(),jn(),i,e,t,i[11],n,!1),Zr}function Xr(e,t,n,i,o){var a=o?"class":"style";Da(e,n,t.inputs[a],a,i)}function es(e,t,n,i){var o=hn(),a=fn(),r=20+e,s=o[11],l=o[r]=Uo(t,s,un.lFrame.currentNamespace),c=a.firstCreatePass?function(e,t,n,i,o,a,r){var s=t.consts,l=sn(s,a),c=Jo(t,n[6],e,3,o,l);return ra(t,n,c,sn(s,r)),null!==c.attrs&&Dr(c,c.attrs,!1),null!==c.mergedAttrs&&Dr(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(e,a,o,0,t,n,i):a.data[r];gn(c,!0);var u=c.mergedAttrs;null!==u&&Jn(s,l,u);var d=c.classes;null!==d&&er(s,l,d);var h=c.styles;null!==h&&Xa(s,l,h),Ga(a,o,l,c),0===un.lFrame.elementDepthCount&&vo(l,o),un.lFrame.elementDepthCount++,qt(c)&&(Xo(a,o,c),Zo(a,c,o)),null!==i&&ea(o,c)}function ts(){var e=pn();vn()?yn():gn(e=e.parent,!1);var t=e;un.lFrame.elementDepthCount--;var n=fn();n.firstCreatePass&&(zn(n,e),Ht(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Xr(n,t,hn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Xr(n,t,hn(),t.stylesWithoutHost,!1)}function ns(e,t,n,i){es(e,t,n,i),ts()}function is(e,t,n){var i=hn(),o=fn(),a=e+20,r=o.firstCreatePass?function(e,t,n,i,o){var a=t.consts,r=sn(a,i),s=Jo(t,n[6],e,4,"ng-container",r);return null!==r&&Dr(s,r,!0),ra(t,n,s,sn(a,o)),null!==t.queries&&t.queries.elementStart(t,s),s}(e,o,i,t,n):o.data[a];gn(r,!0);var s=i[a]=i[11].createComment("");Ga(o,i,s,r),vo(s,i),qt(r)&&(Xo(o,i,r),Zo(o,r,i)),null!=n&&ea(i,r)}function os(){var e=pn(),t=fn();vn()?yn():gn(e=e.parent,!1),t.firstCreatePass&&(zn(t,e),Ht(e)&&t.queries.elementEnd(e))}function as(){return hn()}function rs(e){return!!e&&"function"==typeof e.then}function ss(e){return!!e&&"function"==typeof e.subscribe}function ls(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,o=hn(),a=fn(),r=pn();return us(a,o,o[11],r,e,t,n,i),ls}function cs(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,o=pn(),a=hn(),r=fn();return us(r,a,Oa(Pn(r.data),o,a),o,e,t,n,i),cs}function us(e,t,n,i,o,a){var r=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=qt(i),c=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),u=Pa(t),d=!0;if(3===i.type){var h=Xt(i,t),f=s?s(h):St,m=f.target||h,p=u.length,g=s?function(e){return s(Kt(e[i.index])).target}:i.index;if($t(n)){var v=null;if(!s&&l&&(v=function(e,t,n,i){var o=e.cleanup;if(null!=o)for(var a=0;a<o.length-1;a+=2){var r=o[a];if(r===n&&o[a+1]===i){var s=t[7],l=o[a+2];return s.length>l?s[l]:null}"string"==typeof r&&(a+=2)}return null}(e,t,o,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=a,v.__ngLastListenerFn__=a,d=!1;else{a=hs(i,t,a,!1);var y=n.listen(f.name||m,o,a);u.push(a,y),c&&c.push(o,g,p,p+1)}}else a=hs(i,t,a,!0),m.addEventListener(o,a,r),u.push(a),c&&c.push(o,g,p,r)}var b,_=i.outputs;if(d&&null!==_&&(b=_[o])){var k=b.length;if(k)for(var C=0;C<k;C+=2){var w=t[b[C]][b[C+1]].subscribe(a),x=u.length;u.push(a,w),c&&c.push(o,i.index,x,-(x+1))}}}function ds(e,t,n){try{return!1!==t(n)}catch(i){return La(e,i),!1}}function hs(e,t,n,i){return function o(a){if(a===Function)return n;var r=2&e.flags?nn(e.index,t):t;0==(32&t[2])&&Ca(r);for(var s=ds(t,n,a),l=o.__ngNextListenerFn__;l;)s=ds(t,l,a)&&s,l=l.__ngNextListenerFn__;return i&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function fs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(un.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,un.lFrame.contextLView))[8]}(e)}function ms(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),o=0;o<t.length;o++){var a=t[o];if("*"!==a){if(null===i?Po(e,a,!0):To(i,a))return o}else n=o}return n}function ps(e){var t=hn()[16][6];if(!t.projection)for(var n=t.projection=_t(e?e.length:1,null),i=n.slice(),o=t.child;null!==o;){var a=e?ms(o,e):0;null!==a&&(i[a]?i[a].projectionNext=o:n[a]=o,i[a]=o),o=o.next}}function gs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=hn(),o=fn(),a=Jo(o,i[6],e,1,null,n||null);null===a.projection&&(a.projection=t),yn(),function(e,t,n){Za(t[11],0,t,n,Ha(e,n,t),Ja(n.parent||t[6],t))}(o,i,a)}function vs(e,t,n){return ys(e,"",t,"",n),vs}function ys(e,t,n,i,o){var a=hn(),r=qr(a,t,n,i);return r!==Do&&aa(fn(),jn(),a,e,r,a[11],o,!1),ys}function bs(e,t,n,i,o,a,r){var s=hn(),l=Ur(s,t,n,i,o,a);return l!==Do&&aa(fn(),jn(),s,e,l,s[11],r,!1),bs}var _s=[];function ks(e,t,n,i,o){for(var a=e[n+1],r=null===t,s=i?jo(a):Vo(a),l=!1;0!==s&&(!1===l||r);){var c=e[s+1];Cs(e[s],t)&&(l=!0,e[s+1]=i?Yo(c):zo(c)),s=i?jo(c):Vo(c)}l&&(e[n+1]=i?zo(a):Yo(a))}function Cs(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wt(e,t)>=0}var ws={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xs(e){return e.substring(ws.key,ws.keyEnd)}function Ms(e){return e.substring(ws.value,ws.valueEnd)}function Ss(e,t){var n=ws.textEnd;return n===t?-1:(t=ws.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ws.key=t,n),Os(e,t,n))}function Ps(e,t){var n=ws.textEnd,i=ws.key=Os(e,t,n);return n===i?-1:(i=ws.keyEnd=function(e,t,n){for(var i;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90);)t++;return t}(e,i,n),i=Ls(e,i,n),i=ws.value=Os(e,i,n),i=ws.valueEnd=function(e,t,n){for(var i=-1,o=-1,a=-1,r=t,s=r;r<n;){var l=e.charCodeAt(r++);if(59===l)return s;34===l||39===l?s=r=Ds(e,l,r,n):t===r-4&&85===a&&82===o&&76===i&&40===l?s=r=Ds(e,41,r,n):l>32&&(s=r),a=o,o=i,i=-33&l}return s}(e,i,n),Ls(e,i,n))}function Ts(e){ws.key=0,ws.keyEnd=0,ws.value=0,ws.valueEnd=0,ws.textEnd=e.length}function Os(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Ls(e,t,n,i){return(t=Os(e,t,n))<n&&t++,t}function Ds(e,t,n,i){for(var o=-1,a=n;a<i;){var r=e.charCodeAt(a++);if(r==t&&92!==o)return a;o=92==r&&92===o?0:r}throw new Error}function Is(e,t,n){return Ns(e,t,n,!1),Is}function Fs(e,t){return Ns(e,t,null,!0),Fs}function As(e,t){for(var n=function(e){return Ts(e),Ps(e,Os(e,0,ws.textEnd))}(t);n>=0;n=Ps(t,n))Ys(e,xs(t),Ms(t))}function Es(e){Rs(kt,Bs,e,!0)}function Bs(e,t){for(var n=function(e){return Ts(e),Ss(e,Os(e,0,ws.textEnd))}(t);n>=0;n=Ss(t,n))kt(e,xs(t),!0)}function Ns(e,t,n,i){var o,a,r=hn(),s=fn(),l=xn(2);(s.firstUpdatePass&&zs(s,e,l,i),t!==Do&&jr(r,l,t))&&(null==n&&(o=null===(a=un.lFrame)?null:a.currentSanitizer)&&(n=o),qs(s,s.data[Nn()+20],r,r[11],e,r[l+1]=function(e,t){return null==e||("function"==typeof t?e=t(e):"string"==typeof t?e+=t:"object"==typeof e&&(e=Be(Ai(e)))),e}(t,n),i,l))}function Rs(e,t,n,i){var o=fn(),a=xn(2);o.firstUpdatePass&&zs(o,null,a,i);var r=hn();if(n!==Do&&jr(r,a,n)){var s=o.data[Nn()+20];if(Js(s,i)&&!js(o,a)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=Ne(l,n||"")),Xr(o,s,r,n,i)}else!function(e,t,n,i,o,a,r,s){o===Do&&(o=_s);for(var l=0,c=0,u=0<o.length?o[0]:null,d=0<a.length?a[0]:null;null!==u||null!==d;){var h=l<o.length?o[l+1]:void 0,f=c<a.length?a[c+1]:void 0,m=null,p=void 0;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&&qs(e,t,n,i,m,p,r,s),u=l<o.length?o[l]:null,d=c<a.length?a[c]:null}}(o,s,r,r[11],r[a+1],r[a+1]=function(e,t,n){if(null==n||""===n)return _s;var i=[],o=Ai(n);if(Array.isArray(o))for(var a=0;a<o.length;a++)e(i,o[a],!0);else if("object"==typeof o)for(var r in o)o.hasOwnProperty(r)&&e(i,r,o[r]);else"string"==typeof o&&t(i,o);return i}(e,t,n),i,a)}}function js(e,t){return t>=e.expandoStartIndex}function zs(e,t,n,i){var o=e.data;if(null===o[n+1]){var a=o[Nn()+20],r=js(e,n);Js(a,i)&&null===t&&!r&&(t=!1),t=function(e,t,n,i){var o=Pn(e),a=i?t.residualClasses:t.residualStyles;if(null===o)0===(i?t.classBindings:t.styleBindings)&&(n=Hs(n=Vs(null,e,t,n,i),t.attrs,i),a=null);else{var r=t.directiveStylingLast;if(-1===r||e[r]!==o)if(n=Vs(o,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==Vo(i))return e[jo(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[jo(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Hs(s=Vs(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i=void 0,o=t.directiveEnd,a=1+t.directiveStylingLast;a<o;a++)i=Hs(i,e[a].hostAttrs,n);return Hs(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,i),function(e,t,n,i,o,a){var r=a?t.classBindings:t.styleBindings,s=jo(r),l=Vo(r);e[i]=n;var c,u=!1;if(Array.isArray(n)){var d=n;(null===(c=d[1])||wt(d,c)>0)&&(u=!0)}else c=n;if(o)if(0!==l){var h=jo(e[s+1]);e[i+1]=Ro(h,s),0!==h&&(e[h+1]=Ho(e[h+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ro(s,0),0!==s&&(e[s+1]=Ho(e[s+1],i)),s=i;else e[i+1]=Ro(l,0),0===s?s=i:e[l+1]=Ho(e[l+1],i),l=i;u&&(e[i+1]=zo(e[i+1])),ks(e,c,i,!0),ks(e,c,i,!1),function(e,t,n,i,o){var a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&wt(a,t)>=0&&(n[i+1]=Yo(n[i+1]))}(t,c,e,i,a),r=Ro(s,l),a?t.classBindings=r:t.styleBindings=r}(o,a,t,n,r,i)}}function Vs(e,t,n,i,o){var a=null,r=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<r&&(i=Hs(i,(a=t[s]).hostAttrs,o),a!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Hs(e,t,n){var i=n?1:2,o=-1;if(null!==t)for(var a=0;a<t.length;a++){var r=t[a];"number"==typeof r?o=r:o===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),kt(e,r,!!n||t[++a]))}return void 0===e?null:e}function Ys(e,t,n){var i,o,a;("background-image"===(i=t)||"backgroundImage"===i||"background"===i||"border-image"===i||"borderImage"===i||"border-image-source"===i||"borderImageSource"===i||"filter"===i||"list-style"===i||"listStyle"===i||"list-style-image"===i||"listStyleImage"===i||"clip-path"===i||"clipPath"===i)&&(o=n,n=(a=go())?a.sanitize(lo.STYLE,o)||"":Ei(o,"Style")?Ai(o):ho(ni(o))),kt(e,t,n)}function qs(e,t,n,i,o,a,r,s){if(3===t.type){var l=e.data,c=l[s+1];Ws(1==(1&c)?Us(l,t,n,o,Vo(c),r):void 0)||(Ws(a)||2==(2&c)&&(a=Us(l,null,n,o,s,r)),function(e,t,n,i,o){var a=$t(e);if(t)o?a?e.addClass(n,i):n.classList.add(i):a?e.removeClass(n,i):n.classList.remove(i);else{var r=-1==i.indexOf("-")?void 0:2;null==o?a?e.removeStyle(n,i,r):n.style.removeProperty(i):a?e.setStyle(n,i,o,r):n.style.setProperty(i,o)}}(i,r,Zt(Nn(),n),o,a))}}function Us(e,t,n,i,o,a){for(var r=null===t,s=void 0;o>0;){var l=e[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u,h=n[o+1];h===Do&&(h=d?_s:void 0);var f=d?Ct(h,i):u===i?h:void 0;if(c&&!Ws(f)&&(f=Ct(l,i)),Ws(f)&&(s=f,r))return s;var m=e[o+1];o=r?jo(m):Vo(m)}if(null!==t){var p=a?t.residualClasses:t.residualStyles;null!=p&&(s=Ct(p,i))}return s}function Ws(e){return void 0!==e}function Js(e,t){return 0!=(e.flags&(t?16:32))}function Gs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=hn(),i=fn(),o=e+20,a=i.firstCreatePass?Jo(i,n[6],e,3,null,null):i.data[o],r=n[o]=function(e,t){return $t(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Ga(i,n,r,a),gn(a,!1)}function $s(e){return Qs("",e,""),$s}function Qs(e,t,n){var i=hn(),o=qr(i,e,t,n);return o!==Do&&Ia(i,Nn(),o),Qs}function Ks(e,t,n,i,o){var a=hn(),r=Ur(a,e,t,n,i,o);return r!==Do&&Ia(a,Nn(),r),Ks}function Zs(e,t,n,i,o,a,r){var s=hn(),l=Wr(s,e,t,n,i,o,a,r);return l!==Do&&Ia(s,Nn(),l),Zs}function Xs(e,t,n){Rs(kt,Bs,qr(hn(),e,t,n),!0)}function el(e,t,n,i,o){Rs(kt,Bs,Ur(hn(),e,t,n,i,o),!0)}function tl(e,t,n,i,o,a,r){Rs(kt,Bs,Wr(hn(),e,t,n,i,o,a,r),!0)}function nl(e,t,n){var i=hn();return jr(i,wn(),t)&&aa(fn(),jn(),i,e,t,i[11],n,!0),nl}function il(e,t,n){var i=hn();if(jr(i,wn(),t)){var o=fn(),a=jn();aa(o,a,i,e,t,Oa(Pn(o.data),a,i),n,!0)}return il}function ol(e,t){var n=on(e)[1],i=n.data.length-1;zn(n,{directiveStart:i,directiveEnd:i+1})}function al(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,i=[e];t;){var o=void 0;if(Ut(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){i.push(o);var a=e;a.inputs=rl(e.inputs),a.declaredInputs=rl(e.declaredInputs),a.outputs=rl(e.outputs);var r=o.hostBindings;r&&cl(e,r);var s=o.viewQuery,l=o.contentQueries;if(s&&sl(e,s),l&&ll(e,l),Me(e.inputs,o.inputs),Me(e.declaredInputs,o.declaredInputs),Me(e.outputs,o.outputs),Ut(o)&&o.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}a.afterContentChecked=a.afterContentChecked||o.afterContentChecked,a.afterContentInit=e.afterContentInit||o.afterContentInit,a.afterViewChecked=e.afterViewChecked||o.afterViewChecked,a.afterViewInit=e.afterViewInit||o.afterViewInit,a.doCheck=e.doCheck||o.doCheck,a.onDestroy=e.onDestroy||o.onDestroy,a.onInit=e.onInit||o.onInit}var u=o.features;if(u)for(var d=0;d<u.length;d++){var h=u[d];h&&h.ngInherit&&h(e),h===al&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var o=e[i];o.hostVars=t+=o.hostVars,o.hostAttrs=Qn(o.hostAttrs,n=Qn(n,o.hostAttrs))}}(i)}function rl(e){return e===St?{}:e===Pt?[]:e}function sl(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function ll(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,o){t(e,i,o),n(e,i,o)}:t}function cl(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var ul=function(){return d((function e(t,n,i){c(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}),[{key:"isFirstChange",value:function(){return this.firstChange}}])}();function dl(e){e.type.prototype.ngOnChanges&&(e.setInput=hl,e.onChanges=function(){var e=fl(this),t=e&&e.current;if(t){var n=e.previous;if(n===St)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}})}function hl(e,t,n,i){var o=fl(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:St,current:null}),a=o.current||(o.current={}),r=o.previous,s=this.declaredInputs[n],l=r[s];a[s]=new ul(l&&l.currentValue,t,r===St),e[i]=t}function fl(e){return e.__ngSimpleChanges__||null}function ml(e,t,n,i,o){if(e=ze(e),Array.isArray(e))for(var a=0;a<e.length;a++)ml(e[a],t,n,i,o);else{var r=fn(),s=hn(),l=xr(e)?e:ze(e.provide),c=kr(e),u=pn(),d=65535&u.providerIndexes,h=u.directiveStart,f=u.providerIndexes>>16;if(xr(e)||!e.multi){var m=new Wn(c,o,$r),p=vl(l,t,o?d:d+f,h);-1===p?(fi(ci(u,s),r,l),pl(r,e,t.length),t.push(l),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=65536),n.push(m),s.push(m)):(n[p]=m,s[p]=m)}else{var g=vl(l,t,d+f,h),v=vl(l,t,d,d+f),y=g>=0&&n[g],b=v>=0&&n[v];if(o&&!b||!o&&!y){fi(ci(u,s),r,l);var _=function(e,t,n,i,o){var a=new Wn(e,n,$r);return a.multi=[],a.index=t,a.componentProviders=0,gl(a,o,i&&!n),a}(o?bl:yl,n.length,o,i,c);!o&&b&&(n[v].providerFactory=_),pl(r,e,t.length,0),t.push(l),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=65536),n.push(_),s.push(_)}else pl(r,e,g>-1?g:v,gl(n[o?v:g],c,!o&&i));!o&&i&&b&&n[v].componentProviders++}}}function pl(e,t,n,i){var o=xr(t);if(o||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var r=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){var s=r.indexOf(n);-1===s?r.push(n,[i,a]):r[s+1].push(i,a)}else r.push(n,a)}}}function gl(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vl(e,t,n,i){for(var o=n;o<i;o++)if(t[o]===e)return o;return-1}function yl(e,t,n,i){return _l(this.multi,[])}function bl(e,t,n,i){var o,a=this.multi;if(this.providerFactory){var r=this.providerFactory.componentProviders,s=yi(n,n[1],this.providerFactory.index,i);_l(a,o=s.slice(0,r));for(var l=r;l<s.length;l++)o.push(s[l])}else _l(a,o=[]);return o}function _l(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function kl(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=fn();if(i.firstCreatePass){var o=Ut(e);ml(n,i.data,i.blueprint,o,!0),ml(t,i.data,i.blueprint,o,!1)}}(n,i?i(e):e,t)}}}dl.ngInherit=!0;var Cl=d((function e(){c(this,e)})),wl=function(){return d((function e(){c(this,e)}),[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(Be(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}])}(),xl=function(){var e=d((function e(){c(this,e)}));return e.NULL=new wl,e}(),Ml=function(){var e=d((function e(t){c(this,e),this.nativeElement=t}));return e.__NG_ELEMENT_ID__=function(){return Sl(e)},e}(),Sl=function(e){return rr(e,pn(),hn())},Pl=d((function e(){c(this,e)})),Tl=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Ol=function(){var e=d((function e(){c(this,e)}));return e.__NG_ELEMENT_ID__=function(){return Ll()},e}(),Ll=function(){var e=hn(),t=nn(pn().index,e);return function(e){var t=e[11];if($t(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(zt(t)?t:e)},Dl=function(){var e=d((function e(){c(this,e)}));return e.\u0275prov=Se({token:e,providedIn:"root",factory:function(){return null}}),e}(),Il=d((function e(t){c(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")})),Fl=new Il("9.1.13"),Al=function(){return d((function e(){c(this,e)}),[{key:"supports",value:function(e){return Br(e)}},{key:"create",value:function(e){return new Bl(e)}}])}(),El=function(e,t){return t},Bl=function(){return d((function e(t){c(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||El}),[{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,o=null;t||n;){var a=!n||t&&t.currentIndex<zl(n,i,o)?t:n,r=zl(a,i,o),s=a.currentIndex;if(a===n)i--,n=n._nextRemoved;else if(t=t._next,null==a.previousIndex)i++;else{o||(o=[]);var l=r-i,c=s-i;if(l!=c){for(var u=0;u<l;u++){var d=u<o.length?o[u]:o[u]=0,h=d+u;c<=h&&h<l&&(o[u]=d+1)}o[a.previousIndex]=c-l}}r!==s&&e(a,r,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=[]),!Br(e))throw new Error("Error trying to diff '".concat(Be(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,o,a=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],o=this._trackByFn(s,i),null!==a&&Ar(a.trackById,o)?(r&&(a=this._verifyReinsertion(a,i,o,s)),Ar(a.item,i)||this._addIdentityChange(a,i)):(a=this._mismatch(a,i,o,s),r=!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,o=e[Fr()]();!(i=o.next()).done;)t(i.value)}(e,(function(e){o=t._trackByFn(n,e),null!==a&&Ar(a.trackById,o)?(r&&(a=t._verifyReinsertion(a,e,o,n)),Ar(a.item,e)||t._addIdentityChange(a,e)):(a=t._mismatch(a,e,o,n),r=!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,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Ar(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,i)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Ar(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,i)):e=this._addAfter(new Nl(t,n),o,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,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,o=e._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._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 jl),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 jl),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}}])}(),Nl=d((function e(t,n){c(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})),Rl=function(){return d((function e(){c(this,e),this._head=null,this._tail=null}),[{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)&&Ar(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}}])}(),jl=function(){return d((function e(){c(this,e),this.map=new Map}),[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Rl,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()}}])}();function zl(e,t,n){var i=e.previousIndex;if(null===i)return i;var o=0;return n&&i<n.length&&(o=n[i]),i+t+o}var Vl=function(){return d((function e(){c(this,e)}),[{key:"supports",value:function(e){return e instanceof Map||Nr(e)}},{key:"create",value:function(){return new Hl}}])}(),Hl=function(){return d((function e(){c(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}),[{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||Nr(e)))throw new Error("Error trying to diff '".concat(Be(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 o=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,o)}})),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,o=n._next;return i&&(i._next=o),o&&(o._prev=i),n._next=null,n._prev=null,n}var a=new Yl(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){Ar(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)}))}}])}(),Yl=d((function e(t){c(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})),ql=function(){var e=function(){function e(t){c(this,e),this.factories=t}return d(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){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Ce,new _e]]}}}])}();return e.\u0275prov=Se({token:e,providedIn:"root",factory:function(){return new e([new Al])}}),e}(),Ul=function(){var e=function(){function e(t){c(this,e),this.factories=t}return d(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){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new Ce,new _e]]}}}])}();return e.\u0275prov=Se({token:e,providedIn:"root",factory:function(){return new e([new Vl])}}),e}(),Wl=[new Vl],Jl=new ql([new Al]),Gl=new Ul(Wl),$l=function(){var e=d((function e(){c(this,e)}));return e.__NG_ELEMENT_ID__=function(){return Ql(e,Ml)},e}(),Ql=function(e,t){return sr(e,t,pn(),hn())},Kl=function(){var e=d((function e(){c(this,e)}));return e.__NG_ELEMENT_ID__=function(){return Zl(e,Ml)},e}(),Zl=function(e,t){return lr(e,t,pn(),hn())},Xl={},ec=function(e){function t(e){var n;return c(this,t),(n=f(this,t)).ngModule=e,n}return p(t,e),d(t,[{key:"resolveComponentFactory",value:function(e){var t=Nt(e);return new ic(t,this.ngModule)}}])}(xl);function tc(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var nc=new tt("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return oi}}),ic=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t)).componentDef=e,i.ngModule=n,i.componentType=e.type,i.selector=e.selectors.map(Lo).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!n,i}return p(t,e),d(t,[{key:"inputs",get:function(){return tc(this.componentDef.inputs)}},{key:"outputs",get:function(){return tc(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var o,a,r=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,o){var a=e.get(n,Xl,o);return a!==Xl||i===Xl?a:t.get(n,i,o)}}}(e,i.injector):e,s=r.get(Pl,Qt),l=r.get(Dl,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if($t(e))return e.selectRootElement(t,n===Mt.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):Uo(u,s.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),h=this.componentDef.onPush?576:528,f="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),m={components:[],scheduler:oi,clean:Sa,playerHandler:null,flags:0},p=na(0,-1,null,1,0,null,null,null,null,null),g=Wo(null,p,m,h,null,null,s,c,l,r);Dn(g,null);try{var v=function(e,t,n,i,o,a){var r=n[1];n[20]=e;var s=Jo(r,null,0,3,null,null),l=s.mergedAttrs=t.hostAttrs;null!==l&&(Dr(s,l,!0),null!==e&&(Jn(o,e,l),null!==s.classes&&er(o,e,s.classes),null!==s.styles&&Xa(o,e,s.styles)));var c=i.createRenderer(e,t),u=Wo(n,ta(t),null,t.onPush?64:16,n[20],s,i,c,void 0);return r.firstCreatePass&&(fi(ci(s,n),r,t.type),da(r,s),fa(s,n.length,1)),ka(n,u),n[20]=u}(d,this.componentDef,g,s,c);if(d)if(n)Jn(c,d,["ng-version",Fl.full]);else{var y=function(e){for(var t=[],n=[],i=1,o=2;i<e.length;){var a=e[i];if("string"==typeof a)2===o?""!==a&&t.push(a,e[++i]):8===o&&n.push(a);else{if(!Mo(o))break;o=a}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),b=y.attrs,_=y.classes;b&&Jn(c,d,b),_&&_.length>0&&er(c,d,_.join(" "))}if(a=en(p,0),void 0!==t)for(var k=a.projection=[],C=0;C<this.ngContentSelectors.length;C++){var w=t[C];k.push(null!=w?Array.from(w):null)}o=function(e,t,n,i,o){var a=n[1],r=function(e,t,n){var i=pn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ua(e,i,1),ma(e,t,n));var o=yi(t,e,t.length-1,i);vo(o,t);var a=Xt(i,t);return a&&vo(a,t),o}(a,n,t);i.components.push(r),e[8]=r,o&&o.forEach((function(e){return e(r,t)})),t.contentQueries&&t.contentQueries(1,r,n.length-1);var s=pn();if(a.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){Rn(s.index-20);var l=n[1];sa(l,t),la(l,n,t.hostVars),ca(t,r)}return r}(v,this.componentDef,g,m,[ol]),Go(p,g,null)}finally{Bn()}var x=new oc(this.componentType,o,rr(Ml,a,g),g,a);return n&&!f||(p.node.child=a),x}}])}(Cl),oc=function(e){function t(e,n,i,o,a){var r,s,l,u;return c(this,t),(r=f(this,t)).location=i,r._rootLView=o,r._tNode=a,r.destroyCbs=[],r.instance=n,r.hostView=r.changeDetectorRef=new ar(o),s=o[1],l=o,null==(u=s.node)&&(s.node=u=ia(0,null,2,-1,null,null)),l[6]=u,r.componentType=e,r}return p(t,e),d(t,[{key:"injector",get:function(){return new ki(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}}])}(function(){return d((function e(){c(this,e)}))}()),ac=["en",[["a","p"],["AM","PM"],void 0],[["AM","PM"],void 0,void 0],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["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"]],void 0,[["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}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","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}],rc={};function sc(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 ac;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function lc(e){return e in rc||(rc[e]=Je.ng&&Je.ng.common&&Je.ng.common.locales&&Je.ng.common.locales[e]),rc[e]}var cc=function(){var e={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return e[e.LocaleId]="LocaleId",e[e.DayPeriodsFormat]="DayPeriodsFormat",e[e.DayPeriodsStandalone]="DayPeriodsStandalone",e[e.DaysFormat]="DaysFormat",e[e.DaysStandalone]="DaysStandalone",e[e.MonthsFormat]="MonthsFormat",e[e.MonthsStandalone]="MonthsStandalone",e[e.Eras]="Eras",e[e.FirstDayOfWeek]="FirstDayOfWeek",e[e.WeekendRange]="WeekendRange",e[e.DateFormat]="DateFormat",e[e.TimeFormat]="TimeFormat",e[e.DateTimeFormat]="DateTimeFormat",e[e.NumberSymbols]="NumberSymbols",e[e.NumberFormats]="NumberFormats",e[e.CurrencyCode]="CurrencyCode",e[e.CurrencySymbol]="CurrencySymbol",e[e.CurrencyName]="CurrencyName",e[e.Currencies]="Currencies",e[e.Directionality]="Directionality",e[e.PluralCase]="PluralCase",e[e.ExtraData]="ExtraData",e}();function uc(e){var t;null==(t=e)&&function(e,t,n,i){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var dc=new Map,hc=function(e){function t(e,n){var i;c(this,t),(i=f(this,t))._parent=n,i._bootstrapComponents=[],i.injector=m(i),i.destroyCbs=[],i.componentFactoryResolver=new ec(m(i));var o=jt(e),a=e[Ze]||null;return a&&uc(a),i._bootstrapComponents=ai(o.bootstrap),i._r3Injector=yr(e,n,[{provide:pt,useValue:i},{provide:xl,useValue:i.componentFactoryResolver}],Be(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return p(t,e),d(t,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:we.Default;return e===Sr||e===pt||e===nt?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)}}])}(pt),fc=function(e){function t(e){var n;return c(this,t),(n=f(this,t)).moduleType=e,null!==jt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(Be(t)," vs ").concat(Be(t.name)))})(n,dc.get(n),t),dc.set(n,t)}var i=t.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(t){return e(t)}))}(e),n}return p(t,e),d(t,[{key:"create",value:function(e){return new hc(this.moduleType,e)}}])}(gt);function mc(e,t,n){var i=kn()+e,o=hn();return o[i]===Do?Rr(o,i,n?t.call(n):t()):function(e,t){return e[t]}(o,i)}function pc(e,t,n,i){return yc(hn(),kn(),e,t,n,i)}function gc(e,t,n,i,o){return bc(hn(),kn(),e,t,n,i,o)}function vc(e,t){var n=e[t];return n===Do?void 0:n}function yc(e,t,n,i,o,a){var r=t+n;return jr(e,r,o)?Rr(e,r+1,a?i.call(a,o):i(o)):vc(e,r+1)}function bc(e,t,n,i,o,a,r){var s=t+n;return zr(e,s,o,a)?Rr(e,s+2,r?i.call(r,o,a):i(o,a)):vc(e,s+2)}function _c(e,t){var n,i=fn(),o=e+20;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 Error("The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[o]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(o,n.onDestroy)):n=i.data[o];var a=n.factory||(n.factory=Rt(n.type)),r=lt($r),s=si(!1),l=a();return si(s),lt(r),function(e,t,n,i){var o=n+20;o>=e.data.length&&(e.data[o]=null,e.blueprint[o]=null),t[o]=i}(i,hn(),e,l),l}function kc(e,t,n){var i=hn(),o=tn(i,e);return xc(i,wc(i,e)?yc(i,kn(),t,o.transform,n,o):o.transform(n))}function Cc(e,t,n,i){var o=hn(),a=tn(o,e);return xc(o,wc(o,e)?bc(o,kn(),t,a.transform,n,i,a):a.transform(n,i))}function wc(e,t){return e[1].data[t+20].pure}function xc(e,t){return Er.isWrapped(t)&&(t=Er.unwrap(t),e[Cn()]=Do),t}var Mc=function(e){function n(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return c(this,n),(e=f(this,n)).__isAsync=t,e}return p(n,e),d(n,[{key:"emit",value:function(e){t(_(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,i,o){var a,r=function(e){return null},s=function(){return null};e&&"object"==typeof e?(a=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(r=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(a=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},i&&(r=this.__isAsync?function(e){setTimeout((function(){return i(e)}))}:function(e){i(e)}),o&&(s=this.__isAsync?function(){setTimeout((function(){return o()}))}:function(){o()}));var l=t(_(n.prototype),"subscribe",this).call(this,a,r,s);return e instanceof M&&e.add(l),l}}])}(V);function Sc(){return this._results[Fr()]()}var Pc=function(){return d((function e(){c(this,e),this.dirty=!0,this._results=[],this.changes=new Mc,this.length=0;var t=Fr(),n=e.prototype;n[t]||(n[t]=Sc)}),[{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){this._results=function e(t,n){void 0===n&&(n=t);for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?(n===t&&(n=t.slice(0,i)),e(o,n)):n!==t&&n.push(o)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}])}(),Tc=function(){function e(t){c(this,e),this.queryList=t,this.matches=null}return d(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}])}(),Oc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];c(this,e),this.queries=t}return d(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,o=[],a=0;a<i;a++){var r=n.getByIndex(a);o.push(this.queries[r.indexInDeclarationView].clone())}return new e(o)}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!==Wc(e,t).matches&&this.queries[t].setDirty()}}])}(),Lc=d((function e(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;c(this,e),this.predicate=t,this.descendants=n,this.isStatic=i,this.read=o})),Dc=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];c(this,e),this.queries=t}return d(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 o=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,o);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)}}])}(),Ic=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;c(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return d(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.descendants){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){if(Array.isArray(this.metadata.predicate))for(var n=this.metadata.predicate,i=0;i<n.length;i++)this.matchTNodeWithReadOption(e,t,Fc(t,n[i]));else{var o=this.metadata.predicate;o===$l?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,vi(t,e,o,!1,!1))}}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===Ml||i===Kl||i===$l&&0===t.type)this.addMatch(t.index,-2);else{var o=vi(t,e,i,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}])}();function Fc(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 Ac(e,t,n,i){return-1===n?function(e,t){return 3===e.type||4===e.type?rr(Ml,e,t):0===e.type?sr($l,Ml,e,t):null}(t,e):-2===n?function(e,t,n){return n===Ml?rr(Ml,t,e):n===$l?sr($l,Ml,t,e):n===Kl?lr(Kl,Ml,t,e):void 0}(e,t,i):yi(e,e[1],n,t)}function Ec(e,t,n,i){var o=t[19].queries[i];if(null===o.matches){for(var a=e.data,r=n.matches,s=[],l=0;l<r.length;l+=2){var c=r[l];s.push(c<0?null:Ac(t,a[c],r[l+1],n.metadata.read))}o.matches=s}return o.matches}function Bc(e){var t=hn(),n=fn(),i=Tn();On(i+1);var o=Wc(n,i);if(e.dirty&&an(t)===o.metadata.isStatic){if(null===o.matches)e.reset([]);else{var a=o.crossesNgTemplate?function e(t,n,i,o){var a=t.queries.getByIndex(i),r=a.matches;if(null!==r)for(var s=Ec(t,n,a,i),l=0;l<r.length;l+=2){var c=r[l];if(c>0)o.push(s[l/2]);else{for(var u=r[l+1],d=n[-c],h=10;h<d.length;h++){var f=d[h];f[17]===f[3]&&e(f[1],f,u,o)}if(null!==d[9])for(var m=d[9],p=0;p<m.length;p++){var g=m[p];e(g[1],g,u,o)}}}return o}(n,t,i,[]):Ec(n,t,o,i);e.reset(a),e.notifyOnChanges()}return!0}return!1}function Nc(e,t,n){jc(fn(),hn(),e,t,n,!0)}function Rc(e,t,n){jc(fn(),hn(),e,t,n,!1)}function jc(e,t,n,i,o,a){e.firstCreatePass&&(Uc(e,new Lc(n,i,a,o),-1),a&&(e.staticViewQueries=!0)),qc(e,t)}function zc(e,t,n,i){Hc(fn(),hn(),t,n,i,!1,pn(),e)}function Vc(e,t,n,i){Hc(fn(),hn(),t,n,i,!0,pn(),e)}function Hc(e,t,n,i,o,a,r,s){e.firstCreatePass&&(Uc(e,new Lc(n,i,a,o),r.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(e.contentQueries.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(e,s),a&&(e.staticContentQueries=!0)),qc(e,t)}function Yc(){return e=hn(),t=Tn(),e[19].queries[t].queryList;var e,t}function qc(e,t){var n=new Pc;!function(e,t,n,i){var o=Pa(t);o.push(n),e.firstCreatePass&&Ta(e).push(i,o.length-1)}(e,t,n,n.destroy),null===t[19]&&(t[19]=new Oc),t[19].queries.push(new Tc(n))}function Uc(e,t,n){null===e.queries&&(e.queries=new Dc),e.queries.track(new Ic(t,n))}function Wc(e,t){return e.queries.getByIndex(t)}function Jc(e,t){return sr($l,Ml,e,t)}var Gc=new tt("Application Initializer"),$c=function(){var e=function(){return d((function e(t){var n=this;c(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}),[{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=0;i<this.appInits.length;i++){var o=this.appInits[i]();rs(o)&&t.push(o)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}])}();return e.\u0275fac=function(t){return new(t||e)(ut(Gc,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Qc=new tt("AppId"),Kc={provide:Qc,useFactory:function(){return"".concat(Zc()).concat(Zc()).concat(Zc())},deps:[]};function Zc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Xc=new tt("Platform Initializer"),eu=new tt("Platform ID"),tu=new tt("appBootstrapListener"),nu=function(){var e=function(){return d((function e(){c(this,e)}),[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),iu=new tt("LocaleId"),ou=new tt("DefaultCurrencyCode"),au=d((function e(t,n){c(this,e),this.ngModuleFactory=t,this.componentFactories=n})),ru=function(e){return new fc(e)},su=ru,lu=function(e){return Promise.resolve(ru(e))},cu=function(e){var t=ru(e),n=ai(jt(e).declarations).reduce((function(e,t){var n=Nt(t);return n&&e.push(new ic(n)),e}),[]);return new au(t,n)},uu=cu,du=function(e){return Promise.resolve(cu(e))},hu=function(){var e=function(){return d((function e(){c(this,e),this.compileModuleSync=su,this.compileModuleAsync=lu,this.compileModuleAndAllComponentsSync=uu,this.compileModuleAndAllComponentsAsync=du}),[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),fu=new tt("compilerOptions"),mu=Promise.resolve(0);function pu(e){"undefined"==typeof Zone?mu.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var gu=function(){function e(t){var n,i,o=t.enableLongStackTrace,a=void 0!==o&&o,r=t.shouldCoalesceEventChangeDetection,s=void 0!==r&&r;if(c(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mc(!1),this.onMicrotaskEmpty=new Mc(!1),this.onStable=new Mc(!1),this.onError=new Mc(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=s,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Je.requestAnimationFrame,t=Je.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=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Je,(function(){e.lastRequestAnimationFrameId=-1,_u(e),bu(e)})),_u(e))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:i},onInvokeTask:function(e,t,o,a,r,s){try{return ku(n),e.invokeTask(o,a,r,s)}finally{i&&"eventTask"===a.type&&i(),Cu(n)}},onInvoke:function(e,t,i,o,a,r,s){try{return ku(n),e.invoke(i,o,a,r,s)}finally{Cu(n)}},onHasTask:function(e,t,i,o){e.hasTask(i,o),t===i&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,_u(n),bu(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,t,i,o){return e.handleError(i,o),n.runOutsideAngular((function(){return n.onError.emit(o)})),!1}})}return d(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var o=this._inner,a=o.scheduleEventTask("NgZoneEvent: "+i,e,yu,vu,vu);try{return o.runTask(a,t,n)}finally{o.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!")}}])}();function vu(){}var yu={};function bu(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 _u(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function ku(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cu(e){e._nesting--,bu(e)}var wu,xu=function(){return d((function e(){c(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mc,this.onMicrotaskEmpty=new Mc,this.onStable=new Mc,this.onError=new Mc}),[{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)}}])}(),Mu=function(){var e=function(){return d((function e(t){var n=this;c(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")}))}),[{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(){gu.assertNotInAngularZone(),pu((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._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())pu((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,o=-1;t&&t>0&&(o=setTimeout((function(){i._callbacks=i._callbacks.filter((function(e){return e.timeoutId!==o})),e(i._didWork,i.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:o,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/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}])}();return e.\u0275fac=function(t){return new(t||e)(ut(gu))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Su=function(){var e=function(){return d((function e(){c(this,e),this._applications=new Map,Pu.addToWindow(this)}),[{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 Pu.findTestabilityInTree(this,e,t)}}])}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}(),Pu=new(function(){return d((function e(){c(this,e)}),[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}])}()),Tu=function(e,t,n){var i=e.get(fu,[]).concat(t),o=new fc(n);if(0===Tr.size)return Promise.resolve(o);var a,s,l=(a=i.map((function(e){return e.providers})),s=[],a.forEach((function(e){return e&&s.push.apply(s,r(e))})),s);if(0===l.length)return Promise.resolve(o);var c=function(){var e=Je.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}(),u=Sr.create({providers:l}).get(c.ResourceLoader);return function(e){var t=[],n=new Map;function i(e){var t=n.get(e);if(!t){var i=function(e){return Promise.resolve(u.get(e))}(e);n.set(e,t=i.then(Lr))}return t}return Tr.forEach((function(e,n){var o=[];e.templateUrl&&o.push(i(e.templateUrl).then((function(t){e.template=t})));var a=e.styleUrls,r=e.styles||(e.styles=[]),s=e.styles.length;a&&a.forEach((function(t,n){r.push(""),o.push(i(t).then((function(i){r[s+n]=i,a.splice(a.indexOf(t),1),0==a.length&&(e.styleUrls=void 0)})))}));var l=Promise.all(o).then((function(){return function(e){Or.delete(e)}(n)}));t.push(l)})),Tr=new Map,Promise.all(t).then((function(){}))}().then((function(){return o}))},Ou=new tt("AllowMultipleToken"),Lu=d((function e(t,n){c(this,e),this.name=t,this.token=n}));function Du(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: "+t,o=new tt(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Iu();if(!a||a.injector.get(Ou,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var r=n.concat(t).concat({provide:o,useValue:!0},{provide:hr,useValue:"platform"});!function(e){if(wu&&!wu.destroyed&&!wu.injector.get(Ou,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");wu=e.get(Fu);var t=e.get(Xc,null);t&&t.forEach((function(e){return e()}))}(Sr.create({providers:r,name:i}))}return function(e){var t=Iu();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}(o)}}function Iu(){return wu&&!wu.destroyed?wu:null}var Fu=function(){var e=function(){return d((function e(t){c(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}),[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,o=this,a=(n=t?t.ngZone:void 0,i=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new xu:("zone.js"===n?void 0:n)||new gu({enableLongStackTrace:ji(),shouldCoalesceEventChangeDetection:i})),r=[{provide:gu,useValue:a}];return a.run((function(){var t=Sr.create({providers:r,parent:o.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(Pi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Nu(o._modules,n)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(e){i.handleError(e)}})})),function(e,t,i){try{var a=((r=n.injector.get($c)).runInitializers(),r.donePromise.then((function(){return uc(n.injector.get(iu,"en-US")||"en-US"),o._moduleDoBootstrap(n),n})));return rs(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 r}(i,a)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Au({},n);return Tu(this.injector,i,e).then((function(e){return t.bootstrapModuleFactory(e,i)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Bu);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(Be(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}}])}();return e.\u0275fac=function(t){return new(t||e)(ut(Sr))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function Au(e,t){return Array.isArray(t)?t.reduce(Au,e):Object.assign(Object.assign({},e),t)}var Eu,Bu=((Eu=function(){return d((function e(t,n,i,o,a,r){var s=this;c(this,e),this._zone=t,this._console=n,this._injector=i,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ji(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run((function(){s.tick()}))}});var l=new E((function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular((function(){e.next(s._stable),e.complete()}))})),u=new E((function(e){var t;s._zone.runOutsideAngular((function(){t=s._zone.onStable.subscribe((function(){gu.assertNotInAngularZone(),pu((function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))}))}))}));var n=s._zone.onUnstable.subscribe((function(){gu.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=le(l,u.pipe(ge()))}),[{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 Cl?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n.isBoundToModule?void 0:this._injector.get(pt),a=n.create(Sr.NULL,[],t||n.selector,o);a.onDestroy((function(){i._unloadComponent(a)}));var r=a.injector.get(Mu,null);return r&&a.injector.get(Su).registerApplication(a.location.nativeElement,r),this._loadComponent(a),ji()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),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=o(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}if(this._enforceNoNewChanges){var i,a=o(this._views);try{for(a.s();!(i=a.n()).done;)i.value.checkNoChanges()}catch(r){a.e(r)}finally{a.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}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;Nu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(tu,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),Nu(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}])}()).\u0275fac=function(e){return new(e||Eu)(ut(gu),ut(nu),ut(Sr),ut(Pi),ut(xl),ut($c))},Eu.\u0275prov=Se({token:Eu,factory:Eu.\u0275fac}),Eu);function Nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ru=d((function e(){c(this,e)})),ju=d((function e(){c(this,e)})),zu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Vu=function(){var e=function(){return d((function e(t,n){c(this,e),this._compiler=t,this._config=n||zu}),[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,n=i(e.split("#"),2),o=n[0],a=n[1];return void 0===a&&(a="default"),l("zn8P")(o).then((function(e){return e[a]})).then((function(e){return Hu(e,o,a)})).then((function(e){return t._compiler.compileModuleAsync(e)}))}},{key:"loadFactory",value:function(e){var t=i(e.split("#"),2),n=t[0],o=t[1],a="NgFactory";return void 0===o&&(o="default",a=""),l("zn8P")(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then((function(e){return e[o+a]})).then((function(e){return Hu(e,n,o)}))}}])}();return e.\u0275fac=function(t){return new(t||e)(ut(hu),ut(ju,8))},e.\u0275prov=Se({token:e,factory:e.\u0275fac}),e}();function Hu(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Yu=Du(null,"core",[{provide:eu,useValue:"unknown"},{provide:Fu,deps:[Sr]},{provide:Su,deps:[]},{provide:nu,deps:[]}]),qu=[{provide:Bu,useClass:Bu,deps:[gu,nu,Sr,Pi,xl,$c]},{provide:nc,deps:[gu],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:$c,useClass:$c,deps:[[new _e,Gc]]},{provide:hu,useClass:hu,deps:[]},Kc,{provide:ql,useFactory:function(){return Jl},deps:[]},{provide:Ul,useFactory:function(){return Gl},deps:[]},{provide:iu,useFactory:function(e){return uc(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new be(iu),new _e,new Ce]]},{provide:ou,useValue:"USD"}],Uu=function(){var e=d((function e(t){c(this,e)}));return e.\u0275mod=Ft({type:e}),e.\u0275inj=Pe({factory:function(t){return new(t||e)(ut(Bu))},providers:qu}),e}(),Wu={production:!0,databaseUrl:"https://apiweb.iopoint.com.br",databaseUrlV2:"https://apiweb.iopoint.com.br",databaseUrlAdm:"https://apiadm.iopoint.com.br",databaseUrlFranchise:"https://franchiseapi.iopoint.com.br",systemVersion:"v2.30.1"},Ju=null;function Gu(){return Ju}var $u,Qu=new tt("DocumentToken"),Ku=(($u=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||$u)},$u.\u0275prov=Se({factory:Zu,token:$u,providedIn:"platform"}),$u);function Zu(){return ut(td)}var Xu,ed=new tt("Location Initialized"),td=((Xu=function(e){function t(e){var n;return c(this,t),(n=f(this,t))._doc=e,n._init(),n}return p(t,e),d(t,[{key:"_init",value:function(){this.location=Gu().getLocation(),this._history=Gu().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return Gu().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){Gu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){Gu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(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){nd()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){nd()?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:"getState",value:function(){return this._history.state}}])}(Ku)).\u0275fac=function(e){return new(e||Xu)(ut(Qu))},Xu.\u0275prov=Se({factory:id,token:Xu,providedIn:"platform"}),Xu);function nd(){return!!window.history.pushState}function id(){return new td(ut(Qu))}function od(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 ad(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 rd(e){return e&&"?"!==e[0]?"?"+e:e}var sd,ld=((sd=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||sd)},sd.\u0275prov=Se({factory:cd,token:sd,providedIn:"root"}),sd);function cd(e){var t=ut(Qu).location;return new md(ut(Ku),t&&t.origin||"")}var ud,dd,hd,fd=new tt("appBaseHref"),md=((hd=function(e){function t(e,n){var i;if(c(this,t),(i=f(this,t))._platformLocation=e,null==n&&(n=i._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=n,m(i)}return p(t,e),d(t,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return od(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+rd(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var o=this.prepareExternalUrl(n+rd(i));this._platformLocation.pushState(e,t,o)}},{key:"replaceState",value:function(e,t,n,i){var o=this.prepareExternalUrl(n+rd(i));this._platformLocation.replaceState(e,t,o)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}])}(ld)).\u0275fac=function(e){return new(e||hd)(ut(Ku),ut(fd,8))},hd.\u0275prov=Se({token:hd,factory:hd.\u0275fac}),hd),pd=((dd=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t))._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return p(t,e),d(t,[{key:"onPopState",value:function(e){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=od(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var o=this.prepareExternalUrl(n+rd(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,t,o)}},{key:"replaceState",value:function(e,t,n,i){var o=this.prepareExternalUrl(n+rd(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,o)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}])}(ld)).\u0275fac=function(e){return new(e||dd)(ut(Ku),ut(fd,8))},dd.\u0275prov=Se({token:dd,factory:dd.\u0275fac}),dd),gd=((ud=function(){function e(t,n){var i=this;c(this,e),this._subject=new Mc,this._urlChangeListeners=[],this._platformStrategy=t;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=ad(yd(o)),this._platformStrategy.onPopState((function(e){i._subject.emit({url:i.path(!0),pop:!0,state:e.state,type:e.type})}))}return d(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+rd(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,yd(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+rd(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+rd(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),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;this._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})}}])}()).\u0275fac=function(e){return new(e||ud)(ut(ld),ut(Ku))},ud.normalizeQueryParams=rd,ud.joinWithSlash=od,ud.stripTrailingSlash=ad,ud.\u0275prov=Se({factory:vd,token:ud,providedIn:"root"}),ud);function vd(){return new gd(ut(ld),ut(Ku))}function yd(e){return e.replace(/\/index.html$/,"")}var bd=function(){var e={Decimal:0,Percent:1,Currency:2,Scientific:3};return e[e.Decimal]="Decimal",e[e.Percent]="Percent",e[e.Currency]="Currency",e[e.Scientific]="Scientific",e}(),_d=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),kd=function(){var e={Format:0,Standalone:1};return e[e.Format]="Format",e[e.Standalone]="Standalone",e}(),Cd=function(){var e={Narrow:0,Abbreviated:1,Wide:2,Short:3};return e[e.Narrow]="Narrow",e[e.Abbreviated]="Abbreviated",e[e.Wide]="Wide",e[e.Short]="Short",e}(),wd=function(){var e={Short:0,Medium:1,Long:2,Full:3};return e[e.Short]="Short",e[e.Medium]="Medium",e[e.Long]="Long",e[e.Full]="Full",e}(),xd=function(){var e={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};return e[e.Decimal]="Decimal",e[e.Group]="Group",e[e.List]="List",e[e.PercentSign]="PercentSign",e[e.PlusSign]="PlusSign",e[e.MinusSign]="MinusSign",e[e.Exponential]="Exponential",e[e.SuperscriptingExponent]="SuperscriptingExponent",e[e.PerMille]="PerMille",e[e.Infinity]="Infinity",e[e.NaN]="NaN",e[e.TimeSeparator]="TimeSeparator",e[e.CurrencyDecimal]="CurrencyDecimal",e[e.CurrencyGroup]="CurrencyGroup",e}();function Md(e,t){return Ld(sc(e)[cc.DateFormat],t)}function Sd(e,t){return Ld(sc(e)[cc.TimeFormat],t)}function Pd(e,t){return Ld(sc(e)[cc.DateTimeFormat],t)}function Td(e,t){var n=sc(e),i=n[cc.NumberSymbols][t];if(void 0===i){if(t===xd.CurrencyDecimal)return n[cc.NumberSymbols][xd.Decimal];if(t===xd.CurrencyGroup)return n[cc.NumberSymbols][xd.Group]}return i}function Od(e){if(!e[cc.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[cc.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function Ld(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 Dd(e){var t=i(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var Id=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fd={},Ad=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Ed=function(){var e={Short:0,ShortGMT:1,Long:2,Extended:3};return e[e.Short]="Short",e[e.ShortGMT]="ShortGMT",e[e.Long]="Long",e[e.Extended]="Extended",e}(),Bd=function(){var e={FullYear:0,Month:1,Date:2,Hours:3,Minutes:4,Seconds:5,FractionalSeconds:6,Day:7};return e[e.FullYear]="FullYear",e[e.Month]="Month",e[e.Date]="Date",e[e.Hours]="Hours",e[e.Minutes]="Minutes",e[e.Seconds]="Seconds",e[e.FractionalSeconds]="FractionalSeconds",e[e.Day]="Day",e}(),Nd=function(){var e={DayPeriods:0,Days:1,Months:2,Eras:3};return e[e.DayPeriods]="DayPeriods",e[e.Days]="Days",e[e.Months]="Months",e[e.Eras]="Eras",e}();function Rd(e,t,n,o){var a=function(e){if(Jd(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){e=e.trim();var t,n=parseFloat(e);if(!isNaN(e-n))return new Date(n);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=i(e.split("-").map((function(e){return+e})),3),a=o[0],r=o[1],s=o[2];return new Date(a,r-1,s)}if(t=e.match(Id))return function(e){var t=new Date(0),n=0,i=0,o=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])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var r=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.round(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,r,s,l,c),t}(t)}var l=new Date(e);if(!Jd(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);t=function e(t,n){var i=function(e){return sc(e)[cc.LocaleId]}(t);if(Fd[i]=Fd[i]||{},Fd[i][n])return Fd[i][n];var o="";switch(n){case"shortDate":o=Md(t,wd.Short);break;case"mediumDate":o=Md(t,wd.Medium);break;case"longDate":o=Md(t,wd.Long);break;case"fullDate":o=Md(t,wd.Full);break;case"shortTime":o=Sd(t,wd.Short);break;case"mediumTime":o=Sd(t,wd.Medium);break;case"longTime":o=Sd(t,wd.Long);break;case"fullTime":o=Sd(t,wd.Full);break;case"short":var a=e(t,"shortTime"),r=e(t,"shortDate");o=jd(Pd(t,wd.Short),[a,r]);break;case"medium":var s=e(t,"mediumTime"),l=e(t,"mediumDate");o=jd(Pd(t,wd.Medium),[s,l]);break;case"long":var c=e(t,"longTime"),u=e(t,"longDate");o=jd(Pd(t,wd.Long),[c,u]);break;case"full":var d=e(t,"fullTime"),h=e(t,"fullDate");o=jd(Pd(t,wd.Full),[d,h])}return o&&(Fd[i][n]=o),o}(n,t)||t;for(var r,s=[];t;){if(!(r=Ad.exec(t))){s.push(t);break}var l=(s=s.concat(r.slice(1))).pop();if(!l)break;t=l}var c=a.getTimezoneOffset();o&&(c=Wd(o,c),a=function(e,t,n){var i=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(Wd(t,i)-i))}(a,o));var u="";return s.forEach((function(e){var t=function(e){if(Ud[e])return Ud[e];var t;switch(e){case"G":case"GG":case"GGG":t=Hd(Nd.Eras,Cd.Abbreviated);break;case"GGGG":t=Hd(Nd.Eras,Cd.Wide);break;case"GGGGG":t=Hd(Nd.Eras,Cd.Narrow);break;case"y":t=Vd(Bd.FullYear,1,0,!1,!0);break;case"yy":t=Vd(Bd.FullYear,2,0,!0,!0);break;case"yyy":t=Vd(Bd.FullYear,3,0,!1,!0);break;case"yyyy":t=Vd(Bd.FullYear,4,0,!1,!0);break;case"M":case"L":t=Vd(Bd.Month,1,1);break;case"MM":case"LL":t=Vd(Bd.Month,2,1);break;case"MMM":t=Hd(Nd.Months,Cd.Abbreviated);break;case"MMMM":t=Hd(Nd.Months,Cd.Wide);break;case"MMMMM":t=Hd(Nd.Months,Cd.Narrow);break;case"LLL":t=Hd(Nd.Months,Cd.Abbreviated,kd.Standalone);break;case"LLLL":t=Hd(Nd.Months,Cd.Wide,kd.Standalone);break;case"LLLLL":t=Hd(Nd.Months,Cd.Narrow,kd.Standalone);break;case"w":t=qd(1);break;case"ww":t=qd(2);break;case"W":t=qd(1,!0);break;case"d":t=Vd(Bd.Date,1);break;case"dd":t=Vd(Bd.Date,2);break;case"E":case"EE":case"EEE":t=Hd(Nd.Days,Cd.Abbreviated);break;case"EEEE":t=Hd(Nd.Days,Cd.Wide);break;case"EEEEE":t=Hd(Nd.Days,Cd.Narrow);break;case"EEEEEE":t=Hd(Nd.Days,Cd.Short);break;case"a":case"aa":case"aaa":t=Hd(Nd.DayPeriods,Cd.Abbreviated);break;case"aaaa":t=Hd(Nd.DayPeriods,Cd.Wide);break;case"aaaaa":t=Hd(Nd.DayPeriods,Cd.Narrow);break;case"b":case"bb":case"bbb":t=Hd(Nd.DayPeriods,Cd.Abbreviated,kd.Standalone,!0);break;case"bbbb":t=Hd(Nd.DayPeriods,Cd.Wide,kd.Standalone,!0);break;case"bbbbb":t=Hd(Nd.DayPeriods,Cd.Narrow,kd.Standalone,!0);break;case"B":case"BB":case"BBB":t=Hd(Nd.DayPeriods,Cd.Abbreviated,kd.Format,!0);break;case"BBBB":t=Hd(Nd.DayPeriods,Cd.Wide,kd.Format,!0);break;case"BBBBB":t=Hd(Nd.DayPeriods,Cd.Narrow,kd.Format,!0);break;case"h":t=Vd(Bd.Hours,1,-12);break;case"hh":t=Vd(Bd.Hours,2,-12);break;case"H":t=Vd(Bd.Hours,1);break;case"HH":t=Vd(Bd.Hours,2);break;case"m":t=Vd(Bd.Minutes,1);break;case"mm":t=Vd(Bd.Minutes,2);break;case"s":t=Vd(Bd.Seconds,1);break;case"ss":t=Vd(Bd.Seconds,2);break;case"S":t=Vd(Bd.FractionalSeconds,1);break;case"SS":t=Vd(Bd.FractionalSeconds,2);break;case"SSS":t=Vd(Bd.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Yd(Ed.Short);break;case"ZZZZZ":t=Yd(Ed.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Yd(Ed.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Yd(Ed.Long);break;default:return null}return Ud[e]=t,t}(e);u+=t?t(a,n,c):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),u}function jd(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,(function(e,n){return null!=t&&n in t?t[n]:e}))),e}function zd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,a=n));for(var r=String(e);r.length<t;)r="0"+r;return i&&(r=r.substr(r.length-t)),a+r}function Vd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,r){var s,l=function(e,t){switch(e){case Bd.FullYear:return t.getFullYear();case Bd.Month:return t.getMonth();case Bd.Date:return t.getDate();case Bd.Hours:return t.getHours();case Bd.Minutes:return t.getMinutes();case Bd.Seconds:return t.getSeconds();case Bd.FractionalSeconds:return t.getMilliseconds();case Bd.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,a);if((n>0||l>-n)&&(l+=n),e===Bd.Hours)0===l&&-12===n&&(l=12);else if(e===Bd.FractionalSeconds)return s=t,zd(l,3).substr(0,s);var c=Td(r,xd.MinusSign);return zd(l,t,c,i,o)}}function Hd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:kd.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(o,a){return function(e,t,n,i,o,a){switch(n){case Nd.Months:return function(e,t,n){var i=sc(e),o=Ld([i[cc.MonthsFormat],i[cc.MonthsStandalone]],t);return Ld(o,n)}(t,o,i)[e.getMonth()];case Nd.Days:return function(e,t,n){var i=sc(e),o=Ld([i[cc.DaysFormat],i[cc.DaysStandalone]],t);return Ld(o,n)}(t,o,i)[e.getDay()];case Nd.DayPeriods:var r=e.getHours(),s=e.getMinutes();if(a){var l,c=function(e){var t=sc(e);return Od(t),(t[cc.ExtraData][2]||[]).map((function(e){return"string"==typeof e?Dd(e):[Dd(e[0]),Dd(e[1])]}))}(t),u=function(e,t,n){var i=sc(e);Od(i);var o=Ld([i[cc.ExtraData][0],i[cc.ExtraData][1]],t)||[];return Ld(o,n)||[]}(t,o,i);if(c.forEach((function(e,t){if(Array.isArray(e)){var n=e[0],i=n.hours,o=n.minutes,a=e[1],c=a.hours,d=a.minutes;r>=i&&s>=o&&(r<c||r===c&&s<d)&&(l=u[t])}else{var h=e.hours,f=e.minutes;h===r&&f===s&&(l=u[t])}})),l)return l}return function(e,t,n){var i=sc(e),o=Ld([i[cc.DayPeriodsFormat],i[cc.DayPeriodsStandalone]],t);return Ld(o,n)}(t,o,i)[r<12?0:1];case Nd.Eras:return function(e,t){return Ld(sc(e)[cc.Eras],t)}(t,i)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type "+n)}}(o,a,e,t,n,i)}}function Yd(e){return function(t,n,i){var o=-1*i,a=Td(n,xd.MinusSign),r=o>0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ed.Short:return(o>=0?"+":"")+zd(r,2,a)+zd(Math.abs(o%60),2,a);case Ed.ShortGMT:return"GMT"+(o>=0?"+":"")+zd(r,1,a);case Ed.Long:return"GMT"+(o>=0?"+":"")+zd(r,2,a)+":"+zd(Math.abs(o%60),2,a);case Ed.Extended:return 0===i?"Z":(o>=0?"+":"")+zd(r,2,a)+":"+zd(Math.abs(o%60),2,a);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function qd(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var o,a,r,s;if(t){var l=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();o=1+Math.floor((c+l)/7)}else{var u=(a=n.getFullYear(),r=new Date(a,0,1).getDay(),new Date(a,0,1+(r<=4?4:11)-r)),d=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-u.getTime();o=1+Math.round(d/6048e5)}return zd(o,e,Td(i,xd.MinusSign))}}var Ud={};function Wd(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function Jd(e){return e instanceof Date&&!isNaN(e.valueOf())}var Gd=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function $d(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var Qd,Kd=d((function e(){c(this,e)})),Zd=((Qd=function(e){function t(e){var n;return c(this,t),(n=f(this,t)).locale=e,n}return p(t,e),d(t,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return sc(e)[cc.PluralCase]}(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"}}}])}(Kd)).\u0275fac=function(e){return new(e||Qd)(ut(iu))},Qd.\u0275prov=Se({token:Qd,factory:Qd.\u0275fac}),Qd);function Xd(e,t){t=encodeURIComponent(t);var n,a=o(e.split(";"));try{for(a.s();!(n=a.n()).done;){var r=n.value,s=r.indexOf("="),l=i(-1==s?[r,""]:[r.slice(0,s),r.slice(s+1)],2),c=l[0],u=l[1];if(c.trim()===t)return decodeURIComponent(u)}}catch(d){a.e(d)}finally{a.f()}return null}var eh,th,nh,ih=((eh=function(){return d((function e(t,n,i,o){c(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}),[{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&&(Br(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 "+Be(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)}))}}])}()).\u0275fac=function(e){return new(e||eh)($r(ql),$r(Ul),$r(Ml),$r(Ol))},eh.\u0275dir=Et({type:eh,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),eh),oh=function(){return d((function e(t,n,i,o){c(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=o}),[{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}}])}(),ah=((th=function(){return d((function e(t,n,i){c(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}),[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){ji()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". See https://angular.io/api/common/NgForOf#change-propagation for more information.")),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,o){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new oh(null,t._ngForOf,-1,-1),null===o?void 0:o),r=new rh(e,a);n.push(r)}else if(null==o)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,o);var l=new rh(e,s);n.push(l)}}));for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var o=0,a=this._viewContainer.length;o<a;o++){var r=this._viewContainer.get(o);r.context.index=o,r.context.count=a,r.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}}])}()).\u0275fac=function(e){return new(e||th)($r(Kl),$r($l),$r(ql))},th.\u0275dir=Et({type:th,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),th),rh=d((function e(t,n){c(this,e),this.record=t,this.view=n})),sh=((nh=function(){return d((function e(t,n){c(this,e),this._viewContainer=t,this._context=new lh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}),[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){ch("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){ch("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}}])}()).\u0275fac=function(e){return new(e||nh)($r(Kl),$r($l))},nh.\u0275dir=Et({type:nh,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),nh),lh=d((function e(){c(this,e),this.$implicit=null,this.ngIf=null}));function ch(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Be(t),"'."))}var uh,dh,hh,fh=function(){return d((function e(t,n){c(this,e),this._viewContainerRef=t,this._templateRef=n,this._created=!1}),[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}])}(),mh=((hh=function(){return d((function e(){c(this,e),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}),[{key:"ngSwitch",set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}},{key:"_matchCase",value:function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t}},{key:"_updateDefaultCases",value:function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}}}])}()).\u0275fac=function(e){return new(e||hh)},hh.\u0275dir=Et({type:hh,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),hh),ph=((dh=function(){return d((function e(t,n,i){c(this,e),this.ngSwitch=i,i._addCase(),this._view=new fh(t,n)}),[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}])}()).\u0275fac=function(e){return new(e||dh)($r(Kl),$r($l),$r(mh,1))},dh.\u0275dir=Et({type:dh,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),dh),gh=((uh=function(){return d((function e(t,n,i){c(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}),[{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=i(e.split("."),2),o=n[0],a=n[1];null!=(t=null!=t&&a?"".concat(t).concat(a):t)?this._renderer.setStyle(this._ngEl.nativeElement,o,t):this._renderer.removeStyle(this._ngEl.nativeElement,o)}},{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)}))}}])}()).\u0275fac=function(e){return new(e||uh)($r(Ml),$r(Ul),$r(Ol))},uh.\u0275dir=Et({type:uh,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),uh);function vh(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Be(e),"'"))}var yh,bh,_h,kh,Ch,wh=((Ch=function(){function e(){c(this,e)}return d(e,[{key:"transform",value:function(t){if(!t)return t;if("string"!=typeof t)throw vh(e,t);return t.toLowerCase()}}])}()).\u0275fac=function(e){return new(e||Ch)},Ch.\u0275pipe=Bt({name:"lowercase",type:Ch,pure:!0}),Ch),xh=((kh=function(){function e(t){c(this,e),this.locale=t}return d(e,[{key:"transform",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mediumDate",i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(null==t||""===t||t!=t)return null;try{return Rd(t,n,o||this.locale,i)}catch(a){throw vh(e,a.message)}}}])}()).\u0275fac=function(e){return new(e||kh)($r(iu))},kh.\u0275pipe=Bt({name:"date",type:kh,pure:!0}),kh),Mh=((_h=function(){function e(t){c(this,e),this._locale=t}return d(e,[{key:"transform",value:function(t,n,i){if(function(e){return null==e||""===e||e!=e}(t))return null;i=i||this._locale;try{return function(e,t,n){return function(e,t,n,i,o,a){var r=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(e)){var c=function(e){var t,n,i,o,a,r=Math.abs(e)+"",s=0;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(i=r.search(/e/i))>0?(n<0&&(n=i),n+=+r.slice(i+1),r=r.substring(0,i)):n<0&&(n=r.length),i=0;"0"===r.charAt(i);i++);if(i===(a=r.length))t=[0],n=1;else{for(a--;"0"===r.charAt(a);)a--;for(n-=i,t=[],o=0;i<=a;i++,o++)t[o]=Number(r.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);r&&(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(Gd);if(null===f)throw new Error(a+" is not a valid digit info");var m=f[1],p=f[3],g=f[5];null!=m&&(u=$d(m)),null!=p&&(d=$d(p)),null!=g?h=$d(g):null!=p&&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,o=i.length-e.integerLen,a=Math.min(Math.max(t,o),n),r=a+e.integerLen,s=i[r];if(r>0){i.splice(Math.max(e.integerLen,r));for(var l=r;l<i.length;l++)i[l]=0}else{o=Math.max(0,o),e.integerLen=1,i.length=Math.max(1,r=a+1),i[0]=0;for(var c=1;c<r;c++)i[c]=0}if(s>=5)if(r-1<0){for(var u=0;u>r;u--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[r-1]++;for(;o<Math.max(0,a);o++)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 k=[];for(v.length>=t.lgSize&&k.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)k.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&k.unshift(v.join("")),s=k.join(Td(n,i)),_.length&&(s+=Td(n,o)+_.join("")),b&&(s+=Td(n,xd.Exponential)+"+"+b)}else s=Td(n,xd.Infinity);return s=e<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}(e,function(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(";"),o=i[0],a=i[1],r=-1!==o.indexOf(".")?o.split("."):[o.substring(0,o.lastIndexOf("0")+1),o.substring(o.lastIndexOf("0")+1)],s=r[0],l=r[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=o.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(e,t){return sc(e)[cc.NumberFormats][t]}(t,bd.Decimal),Td(t,xd.MinusSign)),t,xd.Group,xd.Decimal,n)}(function(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error(e+" is not a number");return e}(t),i,n)}catch(o){throw vh(e,o.message)}}}])}()).\u0275fac=function(e){return new(e||_h)($r(iu))},_h.\u0275pipe=Bt({name:"number",type:_h,pure:!0}),_h),Sh=((bh=function(){function e(){c(this,e)}return d(e,[{key:"transform",value:function(t,n,i){if(null==t)return t;if(!this.supports(t))throw vh(e,t);return t.slice(n,i)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}])}()).\u0275fac=function(e){return new(e||bh)},bh.\u0275pipe=Bt({name:"slice",type:bh,pure:!1}),bh),Ph=((yh=d((function e(){c(this,e)}))).\u0275mod=Ft({type:yh}),yh.\u0275inj=Pe({factory:function(e){return new(e||yh)},providers:[{provide:Kd,useClass:Zd}]}),yh);function Th(e){return"browser"===e}var Oh,Lh,Dh,Ih,Fh,Ah=((Oh=d((function e(){c(this,e)}))).\u0275prov=Se({token:Oh,providedIn:"root",factory:function(){return new Eh(ut(Qu),window,ut(Pi))}}),Oh),Eh=function(){return d((function e(t,n,i){c(this,e),this.document=t,this.window=n,this.errorHandler=i,this.offset=function(){return[0,0]}}),[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportScrollRestoration()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportScrollRestoration()){e=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(e):e.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var t=this.document.querySelector("#"+e);if(t)return void this.scrollToElement(t);var n=this.document.querySelector("[name='".concat(e,"']"));if(n)return void this.scrollToElement(n)}catch(i){this.errorHandler.handleError(i)}}}},{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,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(e){return!1}}}])}(),Bh=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{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){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{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:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=Nh||(Nh=document.querySelector("base"))?Nh.getAttribute("href"):null;return null==n?null:(t=n,Lh||(Lh=document.createElement("a")),Lh.setAttribute("href",t),"/"===Lh.pathname.charAt(0)?Lh.pathname:"/"+Lh.pathname)}},{key:"resetBaseElement",value:function(){Nh=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return Xd(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new t,Ju||(Ju=e)}}])}(function(e){function t(){return c(this,t),f(this,t)}return p(t,e),d(t,[{key:"supportsDOMEvents",value:function(){return!0}}])}(function(){return d((function e(){c(this,e)}))}())),Nh=null,Rh=new tt("TRANSITION_ID"),jh=[{provide:Gc,useFactory:function(e,t,n){return function(){n.get($c).donePromise.then((function(){var n=Gu();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:[Rh,Qu,Sr],multi:!0}],zh=function(){function e(){c(this,e)}return d(e,[{key:"addToWindow",value:function(e){Je.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},Je.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Je.getAllAngularRootElements=function(){return e.getAllRootElements()},Je.frameworkStabilizers||(Je.frameworkStabilizers=[]),Je.frameworkStabilizers.push((function(e){var t=Je.getAllAngularTestabilities(),n=t.length,i=!1,o=function(t){i=i||t,0==--n&&e(i)};t.forEach((function(e){e.whenStable(o)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Gu().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,Pu=t}}])}(),Vh=new tt("EventManagerPlugins"),Hh=((Dh=function(){return d((function e(t,n){var i=this;c(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=i})),this._plugins=t.slice().reverse()}),[{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 o=n[i];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)}}])}()).\u0275fac=function(e){return new(e||Dh)(ut(Vh),ut(gu))},Dh.\u0275prov=Se({token:Dh,factory:Dh.\u0275fac}),Dh),Yh=function(){return d((function e(t){c(this,e),this._doc=t}),[{key:"addGlobalEventListener",value:function(e,t,n){var i=Gu().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}])}(),qh=((Fh=function(){return d((function e(){c(this,e),this._stylesSet=new Set}),[{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)}}])}()).\u0275fac=function(e){return new(e||Fh)},Fh.\u0275prov=Se({token:Fh,factory:Fh.\u0275fac}),Fh),Uh=((Ih=function(e){function t(e){var n;return c(this,t),(n=f(this,t))._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return p(t,e),d(t,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var i=n._doc.createElement("style");i.textContent=e,n._styleNodes.add(t.appendChild(i))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return Gu().remove(e)}))}}])}(qh)).\u0275fac=function(e){return new(e||Ih)(ut(Qu))},Ih.\u0275prov=Se({token:Ih,factory:Ih.\u0275fac}),Ih),Wh={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/"},Jh=/%COMP%/g;function Gh(e,t,n){for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Gh(e,o,n):(o=o.replace(Jh,e),n.push(o))}return n}function $h(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Qh,Kh,Zh,Xh,ef,tf,nf=((Qh=function(){return d((function e(t,n,i){c(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new of(t)}),[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Mt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new af(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Mt.Native:case Mt.ShadowDom:return new rf(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=Gh(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(){}}])}()).\u0275fac=function(e){return new(e||Qh)(ut(Hh),ut(Uh),ut(Qc))},Qh.\u0275prov=Se({token:Qh,factory:Qh.\u0275fac}),Qh),of=function(){return d((function e(t){c(this,e),this.eventManager=t,this.data=Object.create(null)}),[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(Wh[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 o=Wh[i];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=Wh[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&Tl.DashCase?e.style.setProperty(t,n,i&Tl.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Tl.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,$h(n)):this.eventManager.addEventListener(e,t,$h(n))}}])}(),af=function(e){function n(e,t,i,o){var a;c(this,n),(a=f(this,n,[e])).component=i;var r,s=Gh(o+"-"+i.id,i.styles,[]);return t.addStyles(s),a.contentAttr="_ngcontent-%COMP%".replace(Jh,o+"-"+i.id),a.hostAttr=(r=o+"-"+i.id,"_nghost-%COMP%".replace(Jh,r)),a}return p(n,e),d(n,[{key:"applyToHost",value:function(e){t(_(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,i){var o=t(_(n.prototype),"createElement",this).call(this,e,i);return t(_(n.prototype),"setAttribute",this).call(this,o,this.contentAttr,""),o}}])}(of),rf=function(e){function n(e,t,i,o){var a;c(this,n),(a=f(this,n,[e])).sharedStylesHost=t,a.hostEl=i,a.component=o,a.shadowRoot=o.encapsulation===Mt.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),a.sharedStylesHost.addHost(a.shadowRoot);for(var r=Gh(o.id,o.styles,[]),s=0;s<r.length;s++){var l=document.createElement("style");l.textContent=r[s],a.shadowRoot.appendChild(l)}return a}return p(n,e),d(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,i){return t(_(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),i)}},{key:"insertBefore",value:function(e,i,o){return t(_(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),i,o)}},{key:"removeChild",value:function(e,i){return t(_(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),i)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(t(_(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}])}(of),sf=((Kh=function(e){function t(e){return c(this,t),f(this,t,[e])}return p(t,e),d(t,[{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)}}])}(Yh)).\u0275fac=function(e){return new(e||Kh)(ut(Qu))},Kh.\u0275prov=Se({token:Kh,factory:Kh.\u0275fac}),Kh),lf=["alt","control","meta","shift"],cf={"\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"},uf={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"},df={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},hf=((ef=function(e){function t(e){return c(this,t),f(this,t,[e])}return p(t,e),d(t,[{key:"supports",value:function(e){return null!=t.parseEventName(e)}},{key:"addEventListener",value:function(e,n,i){var o=t.parseEventName(n),a=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return Gu().onAndCancel(e,o.domEventName,a)}))}}],[{key:"parseEventName",value:function(e){var n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=t._normalizeKey(n.pop()),a="";if(lf.forEach((function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),a+=e+".")})),a+=o,0!=n.length||0===o.length)return null;var r={};return r.domEventName=i,r.fullKey=a,r}},{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&&uf.hasOwnProperty(t)&&(t=uf[t]))}return cf[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),lf.forEach((function(i){i!=n&&(0,df[i])(e)&&(t+=i+".")})),t+=n}},{key:"eventCallback",value:function(e,n,i){return function(o){t.getEventFullKey(o)===e&&i.runGuarded((function(){return n(o)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}])}(Yh)).\u0275fac=function(e){return new(e||ef)(ut(Qu))},ef.\u0275prov=Se({token:ef,factory:ef.\u0275fac}),ef),ff=((Xh=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||Xh)},Xh.\u0275prov=Se({factory:function(){return ut(mf)},token:Xh,providedIn:"root"}),Xh),mf=((Zh=function(e){function t(e){var n;return c(this,t),(n=f(this,t))._doc=e,n}return p(t,e),d(t,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case lo.NONE:return t;case lo.HTML:return Ei(t,"HTML")?Ai(t):ro(this._doc,String(t));case lo.STYLE:return Ei(t,"Style")?Ai(t):ho(t);case lo.SCRIPT:if(Ei(t,"Script"))return Ai(t);throw new Error("unsafe value used in a script context");case lo.URL:return Bi(t),Ei(t,"URL")?Ai(t):Yi(String(t));case lo.RESOURCE_URL:if(Ei(t,"ResourceURL"))return Ai(t);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return new Oi(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return new Li(e)}},{key:"bypassSecurityTrustScript",value:function(e){return new Di(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return new Ii(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return new Fi(e)}}])}(ff)).\u0275fac=function(e){return new(e||Zh)(ut(Qu))},Zh.\u0275prov=Se({factory:function(){return e=ut(nt),new mf(e.get(Qu));var e},token:Zh,providedIn:"root"}),Zh),pf=Du(Yu,"browser",[{provide:eu,useValue:"browser"},{provide:Xc,useValue:function(){Bh.makeCurrent(),zh.init()},multi:!0},{provide:Qu,useFactory:function(){return function(e){Jt=e}(document),document},deps:[]}]),gf=[[],{provide:hr,useValue:"root"},{provide:Pi,useFactory:function(){return new Pi},deps:[]},{provide:Vh,useClass:sf,multi:!0,deps:[Qu,gu,eu]},{provide:Vh,useClass:hf,multi:!0,deps:[Qu]},[],{provide:nf,useClass:nf,deps:[Hh,Uh,Qc]},{provide:Pl,useExisting:nf},{provide:qh,useExisting:Uh},{provide:Uh,useClass:Uh,deps:[Qu]},{provide:Mu,useClass:Mu,deps:[gu]},{provide:Hh,useClass:Hh,deps:[Vh,gu]},[]],vf=((tf=function(){function e(t){if(c(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 d(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:Qc,useValue:t.appId},{provide:Rh,useExisting:Qc},jh]}}}])}()).\u0275mod=Ft({type:tf}),tf.\u0275inj=Pe({factory:function(e){return new(e||tf)(ut(tf,12))},providers:gf,imports:[Ph,Uu]}),tf);function yf(){return new _f(ut(Qu))}var bf,_f=((bf=function(){return d((function e(t){c(this,e),this._doc=t}),[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}])}()).\u0275fac=function(e){return new(e||bf)(ut(Qu))},bf.\u0275prov=Se({factory:yf,token:bf,providedIn:"root"}),bf);function kf(){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(k(i))return Cf(i,null);if(C(i)&&Object.getPrototypeOf(i)===Object.prototype){var o=Object.keys(i);return Cf(o.map((function(e){return i[e]})),o)}}if("function"==typeof t[t.length-1]){var a=t.pop();return Cf(t=1===t.length&&k(t[0])?t[0]:t,null).pipe(Z((function(e){return a.apply(void 0,r(e))})))}return Cf(t,null)}function Cf(e,t){return new E((function(n){var i=e.length;if(0!==i)for(var o=new Array(i),a=0,r=0,s=function(s){var l=ne(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,r++),o[s]=e},error:function(e){return n.error(e)},complete:function(){++a!==i&&c||(r===i&&n.next(t?t.reduce((function(e,t,n){return e[t]=o[n],e}),{}):o),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()}))}"undefined"!=typeof window&&window;var wf,xf,Mf,Sf,Pf=new tt("NgValueAccessor"),Tf={provide:Pf,useExisting:je((function(){return Of})),multi:!0},Of=((wf=function(){return d((function e(t,n){c(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}),[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}])}()).\u0275fac=function(e){return new(e||wf)($r(Ol),$r(Ml))},wf.\u0275dir=Et({type:wf,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&ls("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[kl([Tf])]}),wf),Lf={provide:Pf,useExisting:je((function(){return If})),multi:!0},Df=new tt("CompositionEventMode"),If=((Sf=function(){return d((function e(t,n,i){var o;c(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=i,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(o=Gu()?Gu().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase())))}),[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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)}}])}()).\u0275fac=function(e){return new(e||Sf)($r(Ol),$r(Ml),$r(Df,8))},Sf.\u0275dir=Et({type:Sf,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&&ls("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:[kl([Lf])]}),Sf),Ff=((Mf=function(){return d((function e(){c(this,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:"reset",value:function(e){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}}])}()).\u0275fac=function(e){return new(e||Mf)},Mf.\u0275dir=Et({type:Mf}),Mf),Af=((xf=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}])}(Ff)).\u0275fac=function(e){return Ef(e||xf)},xf.\u0275dir=Et({type:xf,features:[al]}),xf),Ef=wi(Af);function Bf(){throw new Error("unimplemented")}var Nf,Rf,jf=function(e){function t(){var e;return c(this,t),(e=f(this,t,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return p(t,e),d(t,[{key:"validator",get:function(){return Bf()}},{key:"asyncValidator",get:function(){return Bf()}}])}(Ff),zf=function(){return d((function e(t){c(this,e),this._cd=t}),[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}])}(),Vf=((Rf=function(e){function t(e){return c(this,t),f(this,t,[e])}return p(t,e),d(t)}(zf)).\u0275fac=function(e){return new(e||Rf)($r(jf,2))},Rf.\u0275dir=Et({type:Rf,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[al]}),Rf),Hf=((Nf=function(e){function t(e){return c(this,t),f(this,t,[e])}return p(t,e),d(t)}(zf)).\u0275fac=function(e){return new(e||Nf)($r(Af,2))},Nf.\u0275dir=Et({type:Nf,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&Fs("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[al]}),Nf);function Yf(e){return null==e||0===e.length}var qf=new tt("NgValidators"),Uf=new tt("NgAsyncValidators"),Wf=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Jf=function(){function e(){c(this,e)}return d(e,null,[{key:"min",value:function(e){return function(t){if(Yf(t.value)||Yf(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(Yf(t.value)||Yf(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return Yf(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return Yf(e.value)||Wf.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){if(Yf(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}},{key:"maxLength",value:function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),n=new RegExp(i)):(i=t.toString(),n=t),function(e){if(Yf(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:i,actualValue:t}}}):e.nullValidator;var n,i}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Gf);return 0==t.length?null:function(e){return Qf(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Gf);return 0==t.length?null:function(e){return kf(function(e,t){return t.map((function(t){return t(e)}))}(e,t).map($f)).pipe(Z(Qf))}}}])}();function Gf(e){return null!=e}function $f(e){var t=rs(e)?ne(e):e;if(!ss(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Qf(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 Kf(e){return e.validate?function(t){return e.validate(t)}:e}function Zf(e){return e.validate?function(t){return e.validate(t)}:e}var Xf,em,tm,nm,im={provide:Pf,useExisting:je((function(){return om})),multi:!0},om=((Xf=function(){return d((function e(t,n){c(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}),[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}])}()).\u0275fac=function(e){return new(e||Xf)($r(Ol),$r(Ml))},Xf.\u0275dir=Et({type:Xf,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&ls("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[kl([im])]}),Xf),am={provide:Pf,useExisting:je((function(){return sm})),multi:!0},rm=((tm=function(){return d((function e(){c(this,e),this._accessors=[]}),[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}])}()).\u0275fac=function(e){return new(e||tm)},tm.\u0275prov=Se({token:tm,factory:tm.\u0275fac}),tm),sm=((em=function(){return d((function e(t,n,i,o){c(this,e),this._renderer=t,this._elementRef=n,this._registry=i,this._injector=o,this.onChange=function(){},this.onTouched=function(){}}),[{key:"ngOnInit",value:function(){this._control=this._injector.get(jf),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n      If you define both a name and a formControlName attribute on your radio button, their values\n      must match. Ex: <input type="radio" formControlName="food" name="food">\n    ')}}])}()).\u0275fac=function(e){return new(e||em)($r(Ol),$r(Ml),$r(rm),$r(Sr))},em.\u0275dir=Et({type:em,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&ls("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[kl([am])]}),em),lm={provide:Pf,useExisting:je((function(){return cm})),multi:!0},cm=((nm=function(){return d((function e(t,n){c(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}),[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}])}()).\u0275fac=function(e){return new(e||nm)($r(Ol),$r(Ml))},nm.\u0275dir=Et({type:nm,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&ls("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[kl([lm])]}),nm),um='\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',dm='\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',hm=function(){return d((function e(){c(this,e)}),null,[{key:"controlParentException",value:function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+um)}},{key:"ngModelGroupException",value:function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '.concat(dm,'\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        \n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>'))}},{key:"missingFormException",value:function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+um)}},{key:"groupParentException",value:function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+dm)}},{key:"arrayParentException",value:function(){throw new Error('formArrayName must be used with a parent formGroup directive.  You\'ll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        \n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });')}},{key:"disabledAttrWarning",value:function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")}},{key:"ngModelWarning",value:function(e){console.warn("\n    It looks like you're using ngModel on the same form field as ".concat(e,". \n    Support for using the ngModel input property and ngModelChange event with \n    reactive form directives has been deprecated in Angular v6 and will be removed \n    in Angular v7.\n    \n    For more information on this, see our API docs here:\n    https://angular.io/api/forms/").concat("formControl"===e?"FormControlDirective":"FormControlName","#use-with-ngmodel\n    "))}}])}(),fm={provide:Pf,useExisting:je((function(){return vm})),multi:!0};function mm(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var pm,gm,vm=((gm=function(){return d((function e(t,n){c(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ar}),[{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}},{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=mm(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i),e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}])}()).\u0275fac=function(e){return new(e||gm)($r(Ol),$r(Ml))},gm.\u0275dir=Et({type:gm,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&ls("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[kl([fm])]}),gm),ym=((pm=function(){return d((function e(t,n,i){c(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption())}),[{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(mm(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}])}()).\u0275fac=function(e){return new(e||pm)($r(Ml),$r(Ol),$r(vm,9))},pm.\u0275dir=Et({type:pm,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),pm),bm={provide:Pf,useExisting:je((function(){return wm})),multi:!0};function _m(e,t){return null==e?""+t:("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var km,Cm,wm=((Cm=function(){return d((function e(t,n){c(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Ar}),[{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}},{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var i=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(i.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,a=0;a<o.length;a++){var r=o.item(a),s=t._getOptionValue(r.value);i.push(s)}else for(var l=n.options,c=0;c<l.length;c++){var u=l.item(c);if(u.selected){var d=t._getOptionValue(u.value);i.push(d)}}t.value=i,e(i)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var i=n[t];if(this._compareWith(this._optionMap.get(i)._value,e))return i}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}}])}()).\u0275fac=function(e){return new(e||Cm)($r(Ol),$r(Ml))},Cm.\u0275dir=Et({type:Cm,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&ls("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[kl([bm])]}),Cm),xm=((km=function(){return d((function e(t,n,i){c(this,e),this._element=t,this._renderer=n,this._select=i,this._select&&(this.id=this._select._registerOption(this))}),[{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(_m(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(_m(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}},{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}])}()).\u0275fac=function(e){return new(e||km)($r(Ml),$r(Ol),$r(wm,9))},km.\u0275dir=Et({type:km,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),km);function Mm(e,t){return[].concat(r(t.path),[e])}function Sm(e,t){e||Lm(t,"Cannot find control with"),t.valueAccessor||Lm(t,"No value accessor for form control with"),e.validator=Jf.compose([e.validator,t.validator]),e.asyncValidator=Jf.composeAsync([e.asyncValidator,t.asyncValidator]),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&&Pm(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Pm(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function Pm(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Tm(e,t){null==e&&Lm(t,"Cannot find control with"),e.validator=Jf.compose([e.validator,t.validator]),e.asyncValidator=Jf.composeAsync([e.asyncValidator,t.asyncValidator])}function Om(e){return Lm(e,"There is no FormControl instance attached to form control element with")}function Lm(e,t){var n;throw n=e.path.length>1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function Dm(e){return null!=e?Jf.compose(e.map(Kf)):null}function Im(e){return null!=e?Jf.composeAsync(e.map(Zf)):null}var Fm=[Of,cm,om,vm,wm,sm];function Am(e,t){e._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}))}function Em(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function Bm(e){var t=Rm(e)?e.validators:e;return Array.isArray(t)?Dm(t):t||null}function Nm(e,t){var n=Rm(t)?t.asyncValidators:e;return Array.isArray(n)?Im(n):n||null}function Rm(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var jm,zm,Vm,Hm,Ym,qm,Um=function(){return d((function e(t,n){c(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}),[{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.validator=Bm(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Nm(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}))})),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";var n=$f(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{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,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var i=e;return t.forEach((function(e){i=i instanceof Jm?i.controls.hasOwnProperty(e)?i.controls[e]:null:i instanceof Gm&&i.at(e)||null})),i}(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 Mc,this.statusChanges=new Mc}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":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){Rm(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}])}(),Wm=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return c(this,t),(e=f(this,t,[Bm(i),Nm(o,i)]))._onChange=[],e._applyFormState(n),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return p(t,e),d(t,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.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:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(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}}])}(Um),Jm=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[Bm(n),Nm(i,n)])).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return p(t,e),d(t,[{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){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),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]:{};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 Wm?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return 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){return e(t.controls[n],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){var t=this,n=!1;return this._forEachChild((function(i,o){n=n||t.contains(o)&&e(i)})),n}},{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("Must supply a value for form control with name: '".concat(n,"'."))}))}}])}(Um),Gm=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[Bm(n),Nm(i,n)])).controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return p(t,e),d(t,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){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(),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]:{};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 Wm?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{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 "+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("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=o(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)}}])}(Um),$m={provide:Af,useExisting:je((function(){return Km}))},Qm=Promise.resolve(null),Km=((zm=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t)).submitted=!1,i._directives=[],i.ngSubmit=new Mc,i.form=new Jm({},Dm(e),Im(n)),i}return p(t,e),d(t,[{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;Qm.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Sm(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;Qm.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),Em(t._directives,e)}))}},{key:"addFormGroup",value:function(e){var t=this;Qm.then((function(){var n=t._findContainer(e.path),i=new Jm({});Tm(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Qm.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;Qm.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,Am(this.form,this._directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){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}}])}(Af)).\u0275fac=function(e){return new(e||zm)($r(qf,10),$r(Uf,10))},zm.\u0275dir=Et({type:zm,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&ls("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kl([$m]),al]}),zm),Zm=((jm=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Mm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dm(this._validators)}},{key:"asyncValidator",get:function(){return Im(this._asyncValidators)}},{key:"_checkParentType",value:function(){}}])}(Af)).\u0275fac=function(e){return Xm(e||jm)},jm.\u0275dir=Et({type:jm,features:[al]}),jm),Xm=wi(Zm),ep=((Vm=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||Vm)},Vm.\u0275dir=Et({type:Vm,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Vm),tp=new tt("NgModelWithFormControlWarning"),np={provide:Af,useExisting:je((function(){return ip}))},ip=((Hm=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t))._validators=e,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new Mc,i}return p(t,e),d(t,[{key:"ngOnChanges",value:function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(e){var t=this.form.get(e.path);return Sm(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){Em(this.directives,e)}},{key:"addFormGroup",value:function(e){var t=this.form.get(e.path);Tm(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(e){}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"addFormArray",value:function(e){var t=this.form.get(e.path);Tm(t,e),t.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(e){}},{key:"getFormArray",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){this.form.get(e.path).setValue(t)}},{key:"onSubmit",value:function(e){return this.submitted=!0,Am(this.form,this.directives),this.ngSubmit.emit(e),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_updateDomValue",value:function(){var e=this;this.directives.forEach((function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange((function(){return Om(t)})),t.valueAccessor.registerOnTouched((function(){return Om(t)})),t._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),t._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)})),e&&e._clearChangeFns()}(t.control,t),n&&Sm(n,t),t.control=n)})),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var e=this;this.form._registerOnCollectionChange((function(){return e._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form}},{key:"_updateValidators",value:function(){var e=Dm(this._validators);this.form.validator=Jf.compose([this.form.validator,e]);var t=Im(this._asyncValidators);this.form.asyncValidator=Jf.composeAsync([this.form.asyncValidator,t])}},{key:"_checkFormPresent",value:function(){this.form||hm.missingFormException()}}])}(Af)).\u0275fac=function(e){return new(e||Hm)($r(qf,10),$r(Uf,10))},Hm.\u0275dir=Et({type:Hm,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&ls("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[kl([np]),al,dl]}),Hm),op={provide:Af,useExisting:je((function(){return ap}))},ap=((Ym=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t))._parent=e,o._validators=n,o._asyncValidators=i,o}return p(t,e),d(t,[{key:"_checkParentType",value:function(){lp(this._parent)&&hm.groupParentException()}}])}(Zm)).\u0275fac=function(e){return new(e||Ym)($r(Af,13),$r(qf,10),$r(Uf,10))},Ym.\u0275dir=Et({type:Ym,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[kl([op]),al]}),Ym),rp={provide:Af,useExisting:je((function(){return sp}))},sp=((qm=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t))._parent=e,o._validators=n,o._asyncValidators=i,o}return p(t,e),d(t,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormArray(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormArray(this)}},{key:"control",get:function(){return this.formDirective.getFormArray(this)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"path",get:function(){return Mm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"validator",get:function(){return Dm(this._validators)}},{key:"asyncValidator",get:function(){return Im(this._asyncValidators)}},{key:"_checkParentType",value:function(){lp(this._parent)&&hm.arrayParentException()}}])}(Af)).\u0275fac=function(e){return new(e||qm)($r(Af,13),$r(qf,10),$r(Uf,10))},qm.\u0275dir=Et({type:qm,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[kl([rp]),al]}),qm);function lp(e){return!(e instanceof ap||e instanceof ip||e instanceof sp)}var cp,up,dp,hp,fp,mp,pp,gp={provide:jf,useExisting:je((function(){return vp}))},vp=((cp=function(e){function t(e,n,i,o,a){var r;return c(this,t),(r=f(this,t))._ngModelWarningConfig=a,r._added=!1,r.update=new Mc,r._ngModelWarningSent=!1,r._parent=e,r._rawValidators=n||[],r._rawAsyncValidators=i||[],r.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Lm(e,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,o=void 0;return t.forEach((function(t){var a;t.constructor===If?n=t:(a=t,Fm.some((function(e){return a.constructor===e}))?(i&&Lm(e,"More than one built-in value accessor matches form control with"),i=t):(o&&Lm(e,"More than one custom value accessor matches form control with"),o=t))})),o||i||n||(Lm(e,"No valid value accessor for form control with"),null)}(m(r),o),r}return p(t,e),d(t,[{key:"isDisabled",set:function(e){hm.disabledAttrWarning()}},{key:"ngOnChanges",value:function(e){var n,i;this._added||this._setUpControl(),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Ar(t,n.currentValue)}(e,this.viewModel)&&(n=t,i=this._ngModelWarningConfig,ji()&&"never"!==i&&((null!==i&&"once"!==i||n._ngModelWarningSentOnce)&&("always"!==i||this._ngModelWarningSent)||(hm.ngModelWarning("formControlName"),n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"path",get:function(){return Mm(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dm(this._rawValidators)}},{key:"asyncValidator",get:function(){return Im(this._rawAsyncValidators)}},{key:"_checkParentType",value:function(){!(this._parent instanceof ap)&&this._parent instanceof Zm?hm.ngModelGroupException():this._parent instanceof ap||this._parent instanceof ip||this._parent instanceof sp||hm.controlParentException()}},{key:"_setUpControl",value:function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}])}(jf)).\u0275fac=function(e){return new(e||cp)($r(Af,13),$r(qf,10),$r(Uf,10),$r(Pf,10),$r(tp,8))},cp.\u0275dir=Et({type:cp,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[kl([gp]),al,dl]}),cp._ngModelWarningSentOnce=!1,cp),yp={provide:qf,useExisting:je((function(){return bp})),multi:!0},bp=((up=function(){return d((function e(){c(this,e)}),[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?Jf.required(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}])}()).\u0275fac=function(e){return new(e||up)},up.\u0275dir=Et({type:up,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&Yr("required",t.required?"":null)},inputs:{required:"required"},features:[kl([yp])]}),up),_p={provide:qf,useExisting:je((function(){return kp})),multi:!0},kp=((pp=function(){return d((function e(){c(this,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(){this._validator=Jf.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}])}()).\u0275fac=function(e){return new(e||pp)},pp.\u0275dir=Et({type:pp,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&Yr("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[kl([_p]),dl]}),pp),Cp=((mp=d((function e(){c(this,e)}))).\u0275mod=Ft({type:mp}),mp.\u0275inj=Pe({factory:function(e){return new(e||mp)}}),mp),wp=((fp=function(){return d((function e(){c(this,e)}),[{key:"group",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(e),i=null,o=null,a=void 0;return null!=t&&(function(e){return void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn}(t)?(i=null!=t.validators?t.validators:null,o=null!=t.asyncValidators?t.asyncValidators:null,a=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,o=null!=t.asyncValidator?t.asyncValidator:null)),new Jm(n,{asyncValidators:o,updateOn:a,validators:i})}},{key:"control",value:function(e,t,n){return new Wm(e,t,n)}},{key:"array",value:function(e,t,n){var i=this,o=e.map((function(e){return i._createControl(e)}));return new Gm(o,t,n)}},{key:"_reduceControls",value:function(e){var t=this,n={};return Object.keys(e).forEach((function(i){n[i]=t._createControl(e[i])})),n}},{key:"_createControl",value:function(e){return e instanceof Wm||e instanceof Jm||e instanceof Gm?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}])}()).\u0275fac=function(e){return new(e||fp)},fp.\u0275prov=Se({token:fp,factory:fp.\u0275fac}),fp),xp=((hp=d((function e(){c(this,e)}))).\u0275mod=Ft({type:hp}),hp.\u0275inj=Pe({factory:function(e){return new(e||hp)},providers:[rm],imports:[Cp]}),hp),Mp=((dp=function(){function e(){c(this,e)}return d(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:[{provide:tp,useValue:t.warnOnNgModelWithFormControl}]}}}])}()).\u0275mod=Ft({type:dp}),dp.\u0275inj=Pe({factory:function(e){return new(e||dp)},providers:[wp,rm],imports:[Cp]}),dp);function Sp(){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 Y(i)?(t.pop(),te(t,i)):se(t)}function Pp(e,t){return ie(e,t,1)}function Tp(e,t){return function(n){return n.lift(new Op(e,t))}}var Op=function(){return d((function e(t,n){c(this,e),this.predicate=t,this.thisArg=n}),[{key:"call",value:function(e,t){return t.subscribe(new Lp(e,this.predicate,this.thisArg))}}])}(),Lp=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[e])).predicate=n,o.thisArg=i,o.count=0,o}return p(t,e),d(t,[{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)}}])}(T),Dp=d((function e(){c(this,e)})),Ip=d((function e(){c(this,e)})),Fp=function(){function e(t){var n=this;c(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),o=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,o),n.headers.has(o)?n.headers.get(o).push(a):n.headers.set(o,[a])}}))}:function(){n.headers=new Map,Object.keys(t).forEach((function(e){var i=t[e],o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(o,i),n.maybeSetNormalizedName(e,o))}))}:this.headers=new Map}return d(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,r(n)),this.headers.set(t,i);break;case"d":var o=e.value;if(o){var a=this.headers.get(t);if(!a)return;0===(a=a.filter((function(e){return-1===o.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))}))}}])}(),Ap=function(){return d((function e(){c(this,e)}),[{key:"encodeKey",value:function(e){return Ep(e)}},{key:"encodeValue",value:function(e){return Ep(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}])}();function Ep(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,"/")}var Bp=function(){function e(){var t,n,o,a=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(c(this,e),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new Ap,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=r.fromString,n=this.encoder,o=new Map,t.length>0&&t.split("&").forEach((function(e){var t=e.indexOf("="),a=i(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),r=a[0],s=a[1],l=o.get(r)||[];l.push(s),o.set(r,l)})),o)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach((function(e){var t=r.fromObject[e];a.map.set(e,Array.isArray(t)?t:[t])}))):this.map=null}return d(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.keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{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(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)||[],o=i.indexOf(t.value);-1!==o&&i.splice(o,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}})),this.cloneFrom=this.updates=null)}}])}();function Np(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function Rp(e){return"undefined"!=typeof Blob&&e instanceof Blob}function jp(e){return"undefined"!=typeof FormData&&e instanceof FormData}var zp=function(){function e(t,n,i,o){var a;if(c(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)||o?(this.body=void 0!==i?i:null,a=o):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new Fp),this.params){var r=this.params.toString();if(0===r.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+r}}else this.params=new Bp,this.urlWithParams=n}return d(e,[{key:"serializeBody",value:function(){return null===this.body?null:Np(this.body)||Rp(this.body)||jp(this.body)||"string"==typeof this.body?this.body:this.body instanceof Bp?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||jp(this.body)?null:Rp(this.body)?this.body.type||null:Np(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Bp?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.method||this.method,i=t.url||this.url,o=t.responseType||this.responseType,a=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,s=void 0!==t.reportProgress?t.reportProgress:this.reportProgress,l=t.headers||this.headers,c=t.params||this.params;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((function(e,n){return e.set(n,t.setHeaders[n])}),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((function(e,n){return e.set(n,t.setParams[n])}),c)),new e(n,i,a,{params:c,headers:l,reportProgress:s,responseType:o,withCredentials:r})}}])}(),Vp=function(){var e={Sent:0,UploadProgress:1,ResponseHeader:2,DownloadProgress:3,Response:4,User:5};return e[e.Sent]="Sent",e[e.UploadProgress]="UploadProgress",e[e.ResponseHeader]="ResponseHeader",e[e.DownloadProgress]="DownloadProgress",e[e.Response]="Response",e[e.User]="User",e}(),Hp=d((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";c(this,e),this.headers=t.headers||new Fp,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})),Yp=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,t),(e=f(this,t,[n])).type=Vp.ResponseHeader,e}return p(t,e),d(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({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})}}])}(Hp),qp=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(this,t),(e=f(this,t,[n])).type=Vp.Response,e.body=void 0!==n.body?n.body:null,e}return p(t,e),d(t,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t({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})}}])}(Hp),Up=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e,0,"Unknown Error"])).name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),n.error=e.error||null,n}return p(t,e),d(t)}(Hp);function Wp(e,t){return{body:t,headers:e.headers,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var Jp,Gp,$p,Qp,Kp,Zp,Xp,eg,tg,ng=((Jp=function(){return d((function e(t){c(this,e),this.handler=t}),[{key:"request",value:function(e,t){var n,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e instanceof zp)n=e;else{var a=void 0;a=o.headers instanceof Fp?o.headers:new Fp(o.headers);var r=void 0;o.params&&(r=o.params instanceof Bp?o.params:new Bp({fromObject:o.params})),n=new zp(e,t,void 0!==o.body?o.body:null,{headers:a,params:r,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}var s=Sp(n).pipe(Pp((function(e){return i.handler.handle(e)})));if(e instanceof zp||"events"===o.observe)return s;var l=s.pipe(Tp((function(e){return e instanceof qp})));switch(o.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Z((function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body})));case"blob":return l.pipe(Z((function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body})));case"text":return l.pipe(Z((function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body})));case"json":default:return l.pipe(Z((function(e){return e.body})))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(o.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 Bp).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,Wp(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,Wp(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,Wp(n,t))}}])}()).\u0275fac=function(e){return new(e||Jp)(ut(Dp))},Jp.\u0275prov=Se({token:Jp,factory:Jp.\u0275fac}),Jp),ig=function(){return d((function e(t,n){c(this,e),this.next=t,this.interceptor=n}),[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}])}(),og=new tt("HTTP_INTERCEPTORS"),ag=((Gp=function(){return d((function e(){c(this,e)}),[{key:"intercept",value:function(e,t){return t.handle(e)}}])}()).\u0275fac=function(e){return new(e||Gp)},Gp.\u0275prov=Se({token:Gp,factory:Gp.\u0275fac}),Gp),rg=/^\)\]\}',?\n/,sg=d((function e(){c(this,e)})),lg=((Qp=function(){return d((function e(){c(this,e)}),[{key:"build",value:function(){return new XMLHttpRequest}}])}()).\u0275fac=function(e){return new(e||Qp)},Qp.\u0275prov=Se({token:Qp,factory:Qp.\u0275fac}),Qp),cg=(($p=function(){return d((function e(t){c(this,e),this.xhrFactory=t}),[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new E((function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEach((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 o=e.detectContentTypeHeader();null!==o&&i.setRequestHeader("Content-Type",o)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var r=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",o=new Fp(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 Yp({headers:o,status:t,statusText:n,url:a})},c=function(){var t=l(),o=t.headers,a=t.status,r=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(rg,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=d,u&&(u=!1,c={error:h,text:c})}}u?(n.next(new qp({body:c,headers:o,status:a,statusText:r,url:s||void 0})),n.complete()):n.error(new Up({error:c,headers:o,status:a,statusText:r,url:s||void 0}))},u=function(e){var t=l().url,o=new Up({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(o)},d=!1,h=function(t){d||(n.next(l()),d=!0);var o={type:Vp.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(o.total=t.total),"text"===e.responseType&&i.responseText&&(o.partialText=i.responseText),n.next(o)},f=function(e){var t={type:Vp.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",u),e.reportProgress&&(i.addEventListener("progress",h),null!==r&&i.upload&&i.upload.addEventListener("progress",f)),i.send(r),n.next({type:Vp.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("load",c),e.reportProgress&&(i.removeEventListener("progress",h),null!==r&&i.upload&&i.upload.removeEventListener("progress",f)),i.abort()}}))}}])}()).\u0275fac=function(e){return new(e||$p)(ut(sg))},$p.\u0275prov=Se({token:$p,factory:$p.\u0275fac}),$p),ug=new tt("XSRF_COOKIE_NAME"),dg=new tt("XSRF_HEADER_NAME"),hg=d((function e(){c(this,e)})),fg=((tg=function(){return d((function e(t,n,i){c(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}),[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Xd(e,this.cookieName),this.lastCookieString=e),this.lastToken}}])}()).\u0275fac=function(e){return new(e||tg)(ut(Qu),ut(eu),ut(ug))},tg.\u0275prov=Se({token:tg,factory:tg.\u0275fac}),tg),mg=((eg=function(){return d((function e(t,n){c(this,e),this.tokenService=t,this.headerName=n}),[{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)}}])}()).\u0275fac=function(e){return new(e||eg)(ut(hg),ut(dg))},eg.\u0275prov=Se({token:eg,factory:eg.\u0275fac}),eg),pg=((Xp=function(){return d((function e(t,n){c(this,e),this.backend=t,this.injector=n,this.chain=null}),[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(og,[]);this.chain=t.reduceRight((function(e,t){return new ig(e,t)}),this.backend)}return this.chain.handle(e)}}])}()).\u0275fac=function(e){return new(e||Xp)(ut(Ip),ut(Sr))},Xp.\u0275prov=Se({token:Xp,factory:Xp.\u0275fac}),Xp),gg=((Zp=function(){function e(){c(this,e)}return d(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:mg,useClass:ag}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:ug,useValue:t.cookieName}:[],t.headerName?{provide:dg,useValue:t.headerName}:[]]}}}])}()).\u0275mod=Ft({type:Zp}),Zp.\u0275inj=Pe({factory:function(e){return new(e||Zp)},providers:[mg,{provide:og,useExisting:mg,multi:!0},{provide:hg,useClass:fg},{provide:ug,useValue:"XSRF-TOKEN"},{provide:dg,useValue:"X-XSRF-TOKEN"}]}),Zp),vg=((Kp=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Kp}),Kp.\u0275inj=Pe({factory:function(e){return new(e||Kp)},providers:[ng,{provide:Dp,useClass:pg},cg,{provide:Ip,useExisting:cg},lg,{provide:sg,useExisting:lg}],imports:[[gg.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Kp),yg=l("vT00"),bg=l.n(yg);function _g(){}function kg(e,t,n){return function(i){return i.lift(new Cg(e,t,n))}}var Cg=function(){return d((function e(t,n,i){c(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}),[{key:"call",value:function(e,t){return t.subscribe(new wg(e,this.nextOrObserver,this.error,this.complete))}}])}(),wg=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e]))._tapNext=_g,a._tapError=_g,a._tapComplete=_g,a._tapError=i||_g,a._tapComplete=o||_g,u(n)?(a._context=m(a),a._tapNext=n):n&&(a._context=n,a._tapNext=n.next||_g,a._tapError=n.error||_g,a._tapComplete=n.complete||_g),a}return p(t,e),d(t,[{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()}}])}(T),xg=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e,n])).scheduler=e,i.work=n,i.pending=!1,i}return p(t,e),d(t,[{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=!1,i=void 0;try{this.work(e)}catch(o){n=!0,i=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),i}},{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}}])}(function(e){function t(e,n){return c(this,t),f(this,t)}return p(t,e),d(t,[{key:"schedule",value:function(e){return this}}])}(M)),Mg=function(){var e=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;c(this,e),this.SchedulerAction=t,this.now=n}),[{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)}}])}();return e.now=function(){return Date.now()},e}(),Sg=function(e){function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mg.now;return c(this,n),(t=f(this,n,[e,function(){return n.delegate&&n.delegate!==m(t)?n.delegate.now():i()}])).actions=[],t.active=!1,t.scheduled=void 0,t}return p(n,e),d(n,[{key:"schedule",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,i,o):t(_(n.prototype),"schedule",this).call(this,e,i,o)}},{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}}}}])}(Mg),Pg=new Sg(xg);function Tg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return function(n){return n.lift(new Og(e,t))}}var Og=function(){return d((function e(t,n){c(this,e),this.dueTime=t,this.scheduler=n}),[{key:"call",value:function(e,t){return t.subscribe(new Lg(e,this.dueTime,this.scheduler))}}])}(),Lg=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[e])).dueTime=n,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return p(t,e),d(t,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Dg,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)}}])}(T);function Dg(e){e.debouncedNext()}var Ig=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}(),Fg=new E((function(e){return e.complete()}));function Ag(e){return e?function(e){return new E((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Fg}function Eg(e){return function(t){return 0===e?Ag():t.lift(new Ng(e))}}var Bg,Ng=function(){return d((function e(t){if(c(this,e),this.total=t,this.total<0)throw new Ig}),[{key:"call",value:function(e,t){return t.subscribe(new Rg(e,this.total))}}])}(),Rg=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).total=n,i.count=0,i}return p(t,e),d(t,[{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()))}}])}(T);function jg(e){return null!=e&&""+e!="false"}function zg(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 Vg(e){return Array.isArray(e)?e:[e]}function Hg(e){return null==e?"":"string"==typeof e?e:e+"px"}function Yg(e){return e instanceof Ml?e.nativeElement:e}try{Bg="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Lwe){Bg=!1}var qg,Ug,Wg,Jg,Gg,$g=((Wg=d((function e(t){c(this,e),this._platformId=t,this.isBrowser=this._platformId?Th(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&&!Bg)&&"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||Wg)(ut(eu,8))},Wg.\u0275prov=Se({factory:function(){return new Wg(ut(eu,8))},token:Wg,providedIn:"root"}),Wg),Qg=((Ug=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Ug}),Ug.\u0275inj=Pe({factory:function(e){return new(e||Ug)}}),Ug),Kg=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Zg(){if(qg)return qg;if("object"!=typeof document||!document)return qg=new Set(Kg);var e=document.createElement("input");return qg=new Set(Kg.filter((function(t){return e.setAttribute("type",t),e.type===t})))}function Xg(e){return function(){if(null==Jg&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Jg=!0}}))}finally{Jg=Jg||!1}return Jg}()?e:!!e.capture}function ev(e){if(function(){if(null==Gg){var e="undefined"!=typeof document?document.head:null;Gg=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Gg}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}var tv,nv,iv,ov,av,rv=((av=function(){return d((function e(){c(this,e)}),[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}])}()).\u0275fac=function(e){return new(e||av)},av.\u0275prov=Se({factory:function(){return new av},token:av,providedIn:"root"}),av),sv=((ov=function(){return d((function e(t){c(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}),[{key:"ngOnDestroy",value:function(){var e=this;this._observedElements.forEach((function(t,n){return e._cleanupObserver(n)}))}},{key:"observe",value:function(e){var t=this,n=Yg(e);return new E((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 V,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)}}}])}()).\u0275fac=function(e){return new(e||ov)(ut(rv))},ov.\u0275prov=Se({factory:function(){return new ov(ut(rv))},token:ov,providedIn:"root"}),ov),lv=((iv=function(){return d((function e(t,n,i){c(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new Mc,this._disabled=!1,this._currentSubscription=null}),[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=jg(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=zg(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(Tg(e.debounce)):t).subscribe(e.event)}))}},{key:"_unsubscribe",value:function(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}])}()).\u0275fac=function(e){return new(e||iv)($r(sv),$r(Ml),$r(gu))},iv.\u0275dir=Et({type:iv,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),iv),cv=((nv=d((function e(){c(this,e)}))).\u0275mod=Ft({type:nv}),nv.\u0275inj=Pe({factory:function(e){return new(e||nv)},providers:[rv]}),nv),uv=((tv=function(){return d((function e(t){c(this,e),this._platform=t}),[{key:"isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"isVisible",value:function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||"function"==typeof e.getClientRects&&e.getClientRects().length)}(e)&&"visible"===getComputedStyle(e).visibility}},{key:"isTabbable",value:function(e){if(!this._platform.isBrowser)return!1;var t,n=function(e){try{return e.frameElement}catch(Lwe){return null}}((t=e).ownerDocument&&t.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===hv(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var o=e.nodeName.toLowerCase(),a=hv(e);if(e.hasAttribute("contenteditable"))return-1!==a;if("iframe"===o)return!1;if("audio"===o){if(!e.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===o){if(!e.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==o||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(e){var t=e.nodeName.toLowerCase(),n="input"===t&&e.type;return"text"===n||"password"===n||"select"===t||"textarea"===t}(e))&&e.tabIndex>=0}},{key:"isFocusable",value:function(e){return function(e){return!function(e){return function(e){return"input"==e.nodeName.toLowerCase()}(e)&&"hidden"==e.type}(e)&&(function(e){var t=e.nodeName.toLowerCase();return"input"===t||"select"===t||"button"===t||"textarea"===t}(e)||function(e){return function(e){return"a"==e.nodeName.toLowerCase()}(e)&&e.hasAttribute("href")}(e)||e.hasAttribute("contenteditable")||dv(e))}(e)&&!this.isDisabled(e)&&this.isVisible(e)}}])}()).\u0275fac=function(e){return new(e||tv)(ut($g))},tv.\u0275prov=Se({factory:function(){return new tv(ut($g))},token:tv,providedIn:"root"}),tv);function dv(e){if(!e.hasAttribute("tabindex")||void 0===e.tabIndex)return!1;var t=e.getAttribute("tabindex");return"-32768"!=t&&!(!t||isNaN(parseInt(t,10)))}function hv(e){if(!dv(e))return null;var t=parseInt(e.getAttribute("tabindex")||"",10);return isNaN(t)?-1:t}var fv,mv,pv=function(){return d((function e(t,n,i,o){var a=this,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];c(this,e),this._element=t,this._checker=n,this._ngZone=i,this._document=o,this._hasAttached=!1,this.startAnchorListener=function(){return a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}),[{key:"enabled",get:function(){return this._enabled},set:function(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"destroy",value:function(){var e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),t&&(t.removeEventListener("focus",this.endAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),this._startAnchor=this._endAnchor=null}},{key:"attachAnchors",value:function(){var e=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){e._startAnchor||(e._startAnchor=e._createAnchor(),e._startAnchor.addEventListener("focus",e.startAnchorListener)),e._endAnchor||(e._endAnchor=e._createAnchor(),e._endAnchor.addEventListener("focus",e.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusInitialElement())}))}))}},{key:"focusFirstTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusFirstTabbableElement())}))}))}},{key:"focusLastTabbableElementWhenReady",value:function(){var e=this;return new Promise((function(t){e._executeOnStable((function(){return t(e.focusLastTabbableElement())}))}))}},{key:"_getRegionBoundary",value:function(e){for(var t=this._element.querySelectorAll("[cdk-focus-region-".concat(e,"], [cdkFocusRegion").concat(e,"], [cdk-focus-").concat(e,"]")),n=0;n<t.length;n++)t[n].hasAttribute("cdk-focus-"+e)?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]):t[n].hasAttribute("cdk-focus-region-"+e)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(e,"', use 'cdkFocusRegion").concat(e,"' instead. The deprecated attribute will be removed in 8.0.0."),t[n]);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return e?(e.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",e),ji()&&!this._checker.isFocusable(e)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",e),e.focus(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var e=this._getRegionBoundary("start");return e&&e.focus(),!!e}},{key:"focusLastTabbableElement",value:function(){var e=this._getRegionBoundary("end");return e&&e.focus(),!!e}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=0;n<t.length;n++){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_getLastTabbableElement",value:function(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;for(var t=e.children||e.childNodes,n=t.length-1;n>=0;n--){var i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}},{key:"_toggleAnchorTabIndex",value:function(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}},{key:"_executeOnStable",value:function(e){this._ngZone.isStable?e():this._ngZone.onStable.asObservable().pipe(Eg(1)).subscribe(e)}}])}(),gv=((mv=function(){return d((function e(t,n,i){c(this,e),this._checker=t,this._ngZone=n,this._document=i}),[{key:"create",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new pv(e,this._checker,this._ngZone,this._document,t)}}])}()).\u0275fac=function(e){return new(e||mv)(ut(uv),ut(gu),ut(Qu))},mv.\u0275prov=Se({factory:function(){return new mv(ut(uv),ut(gu),ut(Qu))},token:mv,providedIn:"root"}),mv),vv=((fv=function(){return d((function e(t,n,i){c(this,e),this._elementRef=t,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}),[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(e){this.focusTrap.enabled=jg(e)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(e){this._autoCapture=jg(e)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}}])}()).\u0275fac=function(e){return new(e||fv)($r(Ml),$r(gv),$r(Qu))},fv.\u0275dir=Et({type:fv,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),fv);"undefined"!=typeof Element&&Element;var yv,bv,_v=new tt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),kv=new tt("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Cv=((bv=function(){return d((function e(t,n,i,o){c(this,e),this._ngZone=n,this._defaultOptions=o,this._document=i,this._liveElement=t||this._createLiveElement()}),[{key:"announce",value:function(e){for(var t,n,o,a=this,r=this._defaultOptions,s=arguments.length,l=new Array(s>1?s-1:0),c=1;c<s;c++)l[c-1]=arguments[c];return 1===l.length&&"number"==typeof l[0]?o=l[0]:(n=(t=i(l,2))[0],o=t[1]),this.clear(),clearTimeout(this._previousTimeout),n||(n=r&&r.politeness?r.politeness:"polite"),null==o&&r&&(o=r.duration),this._liveElement.setAttribute("aria-live",n),this._ngZone.runOutsideAngular((function(){return new Promise((function(t){clearTimeout(a._previousTimeout),a._previousTimeout=setTimeout((function(){a._liveElement.textContent=e,t(),"number"==typeof o&&(a._previousTimeout=setTimeout((function(){return a.clear()}),o))}),100)}))}))}},{key:"clear",value:function(){this._liveElement&&(this._liveElement.textContent="")}},{key:"ngOnDestroy",value:function(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}},{key:"_createLiveElement",value:function(){for(var e=this._document.getElementsByClassName("cdk-live-announcer-element"),t=this._document.createElement("div"),n=0;n<e.length;n++)e[n].parentNode.removeChild(e[n]);return t.classList.add("cdk-live-announcer-element"),t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),this._document.body.appendChild(t),t}}])}()).\u0275fac=function(e){return new(e||bv)(ut(_v,8),ut(gu),ut(Qu),ut(kv,8))},bv.\u0275prov=Se({factory:function(){return new bv(ut(_v,8),ut(gu),ut(Qu),ut(kv,8))},token:bv,providedIn:"root"}),bv),wv=((yv=function(){return d((function e(t,n,i,o){c(this,e),this._elementRef=t,this._liveAnnouncer=n,this._contentObserver=i,this._ngZone=o,this._politeness="off"}),[{key:"politeness",get:function(){return this._politeness},set:function(e){var t=this;this._politeness="polite"===e||"assertive"===e?e:"off","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular((function(){return t._contentObserver.observe(t._elementRef).subscribe((function(){var e=t._elementRef.nativeElement.textContent;e!==t._previousAnnouncedText&&(t._liveAnnouncer.announce(e,t._politeness),t._previousAnnouncedText=e)}))})))}},{key:"ngOnDestroy",value:function(){this._subscription&&this._subscription.unsubscribe()}}])}()).\u0275fac=function(e){return new(e||yv)($r(Ml),$r(Cv),$r(sv),$r(gu))},yv.\u0275dir=Et({type:yv,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),yv);function xv(e){return 0===e.buttons}var Mv,Sv=new tt("cdk-focus-monitor-default-options"),Pv=Xg({passive:!0,capture:!0}),Tv=((Mv=function(){return d((function e(t,n,i,o){var a=this;c(this,e),this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){a._lastTouchTarget=null,a._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(e){if(!a._lastTouchTarget){var t=xv(e)?"keyboard":"mouse";a._setOriginForCurrentEventQueue(t)}},this._documentTouchstartListener=function(e){null!=a._touchTimeoutId&&clearTimeout(a._touchTimeoutId),a._lastTouchTarget=Ov(e),a._touchTimeoutId=setTimeout((function(){return a._lastTouchTarget=null}),650)},this._windowFocusListener=function(){a._windowFocused=!0,a._windowFocusTimeoutId=setTimeout((function(){return a._windowFocused=!1}))},this._rootNodeFocusAndBlurListener=function(e){for(var t=Ov(e),n="focus"===e.type?a._onFocus:a._onBlur,i=t;i;i=i.parentElement)n.call(a,e,i)},this._document=i,this._detectionMode=(null==o?void 0:o.detectionMode)||0}),[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._platform.isBrowser)return Sp(null);var n=Yg(e),i=ev(n)||this._getDocument();if(this._elementInfo.has(n)){var o=this._elementInfo.get(n);return o.checkChildren=t,o.subject.asObservable()}var a={checkChildren:t,subject:new V,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject.asObservable()}},{key:"stopMonitoring",value:function(e){var t=Yg(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=Yg(e);this._setOriginForCurrentEventQueue(t),"function"==typeof i.focus&&i.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._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(e)?"touch":"program"}},{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:"_setOriginForCurrentEventQueue",value:function(e){var t=this;this._ngZone.runOutsideAngular((function(){t._origin=e,0===t._detectionMode&&(t._originTimeoutId=setTimeout((function(){return t._origin=null}),1))}))}},{key:"_wasCausedByTouch",value:function(e){var t=Ov(e);return this._lastTouchTarget instanceof Node&&t instanceof Node&&(t===this._lastTouchTarget||t.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t);if(n&&(n.checkChildren||t===Ov(e))){var i=this._getFocusOrigin(e);this._setClasses(t,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}}},{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,Pv),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,Pv)})),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular((function(){var e=t._getDocument(),n=t._getWindow();e.addEventListener("keydown",t._documentKeydownListener,Pv),e.addEventListener("mousedown",t._documentMousedownListener,Pv),e.addEventListener("touchstart",t._documentTouchstartListener,Pv),n.addEventListener("focus",t._windowFocusListener)}))}}},{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,Pv),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Pv),this._rootNodeFocusListenerCount.delete(t))}if(!--this._monitoredElementCount){var i=this._getDocument(),o=this._getWindow();i.removeEventListener("keydown",this._documentKeydownListener,Pv),i.removeEventListener("mousedown",this._documentMousedownListener,Pv),i.removeEventListener("touchstart",this._documentTouchstartListener,Pv),o.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}])}()).\u0275fac=function(e){return new(e||Mv)(ut(gu),ut($g),ut(Qu,8),ut(Sv,8))},Mv.\u0275prov=Se({factory:function(){return new Mv(ut(gu),ut($g),ut(Qu,8),ut(Sv,8))},token:Mv,providedIn:"root"}),Mv);function Ov(e){return e.composedPath?e.composedPath()[0]:e.target}var Lv,Dv,Iv,Fv,Av,Ev=((Iv=function(){return d((function e(t,n){var i=this;c(this,e),this._elementRef=t,this._focusMonitor=n,this.cdkFocusChange=new Mc,this._monitorSubscription=this._focusMonitor.monitor(this._elementRef,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe((function(e){return i.cdkFocusChange.emit(e)}))}),[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription.unsubscribe()}}])}()).\u0275fac=function(e){return new(e||Iv)($r(Ml),$r(Tv))},Iv.\u0275dir=Et({type:Iv,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Iv),Bv=((Dv=function(){return d((function e(t,n){c(this,e),this._platform=t,this._document=n}),[{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}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(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");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"))}}}])}()).\u0275fac=function(e){return new(e||Dv)(ut($g),ut(Qu))},Dv.\u0275prov=Se({factory:function(){return new Dv(ut($g),ut(Qu))},token:Dv,providedIn:"root"}),Dv),Nv=((Lv=d((function e(t){c(this,e),t._applyBodyHighContrastModeCssClasses()}))).\u0275mod=Ft({type:Lv}),Lv.\u0275inj=Pe({factory:function(e){return new(e||Lv)(ut(Bv))},imports:[[Qg,cv]]}),Lv),Rv=new tt("cdk-dir-doc",{providedIn:"root",factory:function(){return dt(Qu)}}),jv=((Av=function(){return d((function e(t){if(c(this,e),this.value="ltr",this.change=new Mc,t){var n=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}),[{key:"ngOnDestroy",value:function(){this.change.complete()}}])}()).\u0275fac=function(e){return new(e||Av)(ut(Rv,8))},Av.\u0275prov=Se({factory:function(){return new Av(ut(Rv,8))},token:Av,providedIn:"root"}),Av),zv=((Fv=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Fv}),Fv.\u0275inj=Pe({factory:function(e){return new(e||Fv)}}),Fv),Vv=new Il("9.2.3");function Hv(){return re(1)}function Yv(){return Hv()(Sp.apply(void 0,arguments))}function qv(){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 Y(i)?(t.pop(),function(e){return Yv(t,e,i)}):function(e){return Yv(t,e)}}var Uv=d((function e(){c(this,e)}));function Wv(e,t){return{type:7,name:e,definitions:t,options:{}}}function Jv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function Gv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function $v(e){return{type:6,styles:e,offset:null}}function Qv(e,t,n){return{type:0,name:e,styles:t,options:n}}function Kv(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function Zv(e){Promise.resolve(null).then(e)}var Xv=function(){return d((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;c(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}),[{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;Zv((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(){}},{key:"setPosition",value:function(e){}},{key:"getPosition",value:function(){return 0}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach((function(e){return e()})),t.length=0}}])}(),ey=function(){return d((function e(t){var n=this;c(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,o=0,a=0,r=this.players.length;0==r?Zv((function(){return n._onFinish()})):this.players.forEach((function(e){e.onDone((function(){++i==r&&n._onFinish()})),e.onDestroy((function(){++o==r&&n._onDestroy()})),e.onStart((function(){++a==r&&n._onStart()}))})),this.totalTime=this.players.reduce((function(e,t){return Math.max(e,t.totalTime)}),0)}),[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(e){return e()})),this._onDoneFns=[])}},{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=0;return this.players.forEach((function(t){var n=t.getPosition();e=Math.min(n,e)})),e}},{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}}])}();function ty(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ny(e){switch(e.length){case 0:return new Xv;case 1:return e[0];default:return new ey(e)}}function iy(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=[],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,r),s){case"!":s=o[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,r)}u[i]=s})),i||s.push(u),c=u,l=n})),r.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(r.join(u)))}return s}function oy(e,t,n,i){switch(t){case"start":e.onStart((function(){return i(n&&ay(n,"start",e))}));break;case"done":e.onDone((function(){return i(n&&ay(n,"done",e))}));break;case"destroy":e.onDestroy((function(){return i(n&&ay(n,"destroy",e))}))}}function ay(e,t,n){var i=n.totalTime,o=ry(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(o._data=a),o}function ry(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:i,phaseName:o,totalTime:a,disabled:!!r}}function sy(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 ly(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var cy=function(e,t){return!1},uy=function(e,t){return!1},dy=function(e,t,n){return[]},hy=ty();(hy||"undefined"!=typeof Element)&&(cy=function(e,t){return e.contains(t)},uy=function(){if(hy||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])}:uy}(),dy=function(e,t,n){var i=[];if(n)i.push.apply(i,r(e.querySelectorAll(t)));else{var o=e.querySelector(t);o&&i.push(o)}return i});var fy=null,my=!1;function py(e){fy||(fy=("undefined"!=typeof document?document.body:null)||{},my=!!fy.style&&"WebkitAppearance"in fy.style);var t=!0;return fy.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in fy.style)&&my)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in fy.style),t}var gy=uy,vy=cy,yy=dy;function by(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 _y,ky=((_y=function(){return d((function e(){c(this,e)}),[{key:"validateStyleProperty",value:function(e){return py(e)}},{key:"matchesElement",value:function(e,t){return gy(e,t)}},{key:"containsElement",value:function(e,t){return vy(e,t)}},{key:"query",value:function(e,t,n){return yy(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,o){return new Xv(n,i)}}])}()).\u0275fac=function(e){return new(e||_y)},_y.\u0275prov=Se({token:_y,factory:_y.\u0275fac}),_y),Cy=function(){var e=d((function e(){c(this,e)}));return e.NOOP=new ky,e}();function wy(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:xy(parseFloat(t[1]),t[2])}function xy(e,t){switch(t){case"s":return 1e3*e;default:return e}}function My(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,o=0,a="";if("string"==typeof e){var r=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===r)return t.push('The provided timing value "'.concat(e,'" is invalid.')),{duration:0,delay:0,easing:""};i=xy(parseFloat(r[1]),r[2]);var s=r[3];null!=s&&(o=xy(parseFloat(s),r[4]));var l=r[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),o<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:o,easing:a}}(e,t,n)}function Sy(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 Py(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 Sy(e,n);return n}function Ty(e,t,n){return n?t+":"+n+";":""}function Oy(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Ty(0,i,e.style.getPropertyValue(i))}for(var o in e.style)e.style.hasOwnProperty(o)&&!o.startsWith("_")&&(t+=Ty(0,o.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[o]));e.setAttribute("style",t)}function Ly(e,t,n){e.style&&(Object.keys(t).forEach((function(i){var o=Ry(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[o]),e.style[o]=t[i]})),ty()&&Oy(e))}function Dy(e,t){e.style&&(Object.keys(t).forEach((function(t){var n=Ry(t);e.style[n]=""})),ty()&&Oy(e))}function Iy(e){return Array.isArray(e)?1==e.length?e[0]:Gv(e):e}var Fy=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ay(e){var t=[];if("string"==typeof e){for(var n;n=Fy.exec(e);)t.push(n[1]);Fy.lastIndex=0}return t}function Ey(e,t,n){var i=e.toString(),o=i.replace(Fy,(function(e,i){var o=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),o=""),o.toString()}));return o==i?e:o}function By(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Ny=/-+([a-z0-9])/g;function Ry(e){return e.replace(Ny,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))}function jy(e,t){return 0===e||0===t}function zy(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var o=t[0],a=[];if(i.forEach((function(e){o.hasOwnProperty(e)||a.push(e),o[e]=n[e]})),a.length)for(var r=function(){var n=t[s];a.forEach((function(t){n[t]=Hy(e,t)}))},s=1;s<t.length;s++)r()}return t}function Vy(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 #"+t.type)}}function Hy(e,t){return window.getComputedStyle(e)[t]}var Yy=new Set(["true","1"]),qy=new Set(["false","0"]);function Uy(e,t){var n=Yy.has(e)||qy.has(e),i=Yy.has(t)||qy.has(t);return function(o,a){var r="*"==e||e==o,s="*"==t||t==a;return!r&&n&&"boolean"==typeof o&&(r=o?Yy.has(e):qy.has(e)),!s&&i&&"boolean"==typeof a&&(s=a?Yy.has(t):qy.has(t)),r&&s}}var Wy=new RegExp("s*:selfs*,?","g");function Jy(e,t,n){return new Gy(e).build(t,n)}var Gy=function(){return d((function e(t){c(this,e),this._driver=t}),[{key:"build",value:function(e,t){var n=new $y(t);return this._resetContextStyleTimingState(n),Vy(this,Iy(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,o=t.depCount=0,a=[],r=[];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,o+=c.depCount,r.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:r,queryCount:i,depCount:o,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 o=new Set,a=i||{};if(n.styles.forEach((function(e){if(Qy(e)){var t=e;Object.keys(t).forEach((function(e){Ay(t[e]).forEach((function(e){a.hasOwnProperty(e)||o.add(e)}))}))}})),o.size){var r=By(o.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(r.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,o,a=Vy(this,Iy(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,o=[],"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 o=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=o[1],r=o[2],s=o[3];t.push(Uy(a,s)),"<"!=r[0]||"*"==a&&"*"==s||t.push(Uy(s,a))}(e,o,i)})):o.push(n),o),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Ky(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map((function(e){return Vy(n,e,t)})),options:Ky(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,o=0,a=e.steps.map((function(e){t.currentTime=i;var a=Vy(n,e,t);return o=Math.max(o,t.currentTime),a}));return t.currentTime=o,{type:3,steps:a,options:Ky(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 Zy(My(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some((function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)}))){var o=Zy(0,0,"");return o.dynamic=!0,o.strValue=i,o}return Zy((n=n||My(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var o=e.styles?e.styles:$v({});if(5==o.type)n=this.visitKeyframes(o,t);else{var a=e.styles,r=!1;if(!a){r=!0;var s={};i.easing&&(s.easing=i.easing),a=$v(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,t);l.isEmptyStep=r,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,o=null;return n.forEach((function(e){if(Qy(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,o=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 r,s,l,c,u,d=t.collectedStyles[t.currentQuerySelector],h=d[i],f=!0;h&&(a!=o&&a>=h.startTime&&o<=h.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(h.startTime,'ms" and "').concat(h.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(o,'ms"')),f=!1),a=h.startTime),f&&(d[i]={startTime:a,endTime:o}),t.options&&(r=e[i],s=t.options,l=t.errors,c=s.params||{},(u=Ay(r)).length&&u.forEach((function(e){c.hasOwnProperty(e)||l.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})))}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 o=0,a=[],r=!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(Qy(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}}));else if(Qy(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),u=0;return null!=c&&(o++,u=i.offset=c),s=s||u<0||u>1,r=r||u<l,l=u,a.push(u),i}));s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,d=0;o>0&&o<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(d=1/(u-1));var h=u-1,f=t.currentTime,m=t.currentAnimateTimings,p=m.duration;return c.forEach((function(e,o){var r=d>0?o==h?1:d*o:a[o],s=r*p;t.currentTime=f+m.delay+s,m.duration=s,n._validateStyleAst(e,t),e.offset=r,i.styles.push(e)})),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:Vy(this,Iy(e.animation),t),options:Ky(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Ky(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ky(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;var a=i(function(e){var t=!!e.split(/\s*,\s*/).find((function(e){return":self"==e}));return t&&(e=e.replace(Wy,"")),[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),r=a[0],s=a[1];t.currentQuerySelector=n.length?n+" "+r:r,sy(t.collectedStyles,t.currentQuerySelector,{});var l=Vy(this,Iy(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:s,animation:l,originalSelector:e.selector,options:Ky(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"}:My(e.timings,t.errors,!0);return{type:12,animation:Vy(this,Iy(e.animation),t),timings:n,options:null}}}])}(),$y=d((function e(t){c(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 Qy(e){return!Array.isArray(e)&&"object"==typeof e}function Ky(e){var t;return e?(e=Sy(e)).params&&(e.params=(t=e.params)?Sy(t):null):e={},e}function Zy(e,t,n){return{duration:e,delay:t,easing:n}}function Xy(e,t,n,i,o,a){var r=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:o,delay:a,totalTime:o+a,easing:r,subTimeline:s}}var eb=function(){return d((function e(){c(this,e),this._map=new Map}),[{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,r(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}])}(),tb=new RegExp(":enter","g"),nb=new RegExp(":leave","g");function ib(e,t,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},r=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 ob).buildKeyframes(e,t,n,i,o,a,r,s,l,c)}var ob=function(){return d((function e(){c(this,e)}),[{key:"buildKeyframes",value:function(e,t,n,i,o,a,r,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new eb;var u=new rb(e,t,l,i,o,c,[]);u.options=s,u.currentTimeline.setStyles([a],null,u.errors,s),Vy(this,n,u);var d=u.timelines.filter((function(e){return e.containsAnimation()}));if(d.length&&Object.keys(r).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([r],null,u.errors,s)}return d.length?d.map((function(e){return e.buildKeyframes()})):[Xy(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),o=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);o!=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}},{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,o=null!=n.duration?wy(n.duration):null,a=null!=n.delay?wy(n.delay):null;return 0!==o&&e.forEach((function(e){var n=t.appendInstructionToTimeline(e,o,a);i=Math.max(i,n.duration+n.delay)})),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Vy(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,o=t,a=e.options;if(a&&(a.params||a.delay)&&((o=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=ab);var r=wy(a.delay);o.delayNextStep(r)}e.steps.length&&(e.steps.forEach((function(e){return Vy(n,e,o)})),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],o=t.currentTimeline.currentTime,a=e.options&&e.options.delay?wy(e.options.delay):0;e.steps.forEach((function(r){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),Vy(n,r,s),o=Math.max(o,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)})),t.transformIntoNewTimeline(o),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return My(t.params?Ey(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 o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,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 o=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,o=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach((function(e){a.forwardTime((e.offset||0)*o),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()})),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+o),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,o=e.options||{},a=o.delay?wy(o.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ab);var r=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=s.length;var l=null;s.forEach((function(i,o){t.currentQueryIndex=o;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(l=s.currentTimeline),Vy(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,s.currentTimeline.currentTime)})),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(r),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,o=e.timings,a=Math.abs(o.duration),r=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=r-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;Vy(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}])}(),ab={},rb=function(){function e(t,n,i,o,a,r,s,l){c(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=o,this._leaveClassName=a,this.errors=r,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ab,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new sb(this._driver,n,0),s.push(this.currentTimeline)}return d(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,o=this.options;null!=i.duration&&(o.duration=wy(i.duration)),null!=i.delay&&(o.delay=wy(i.delay));var a=i.params;if(a){var r=o.params;r||(r=this.options.params={}),Object.keys(a).forEach((function(e){t&&r.hasOwnProperty(e)||(r[e]=Ey(a[e],r,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,o=n||this.element,a=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,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=ab,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:""},o=new lb(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),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,o,a){var s=[];if(i&&s.push(this.element),e.length>0){e=(e=e.replace(tb,"."+this._enterClassName)).replace(nb,"."+this._leaveClassName);var l=this._driver.query(this.element,e,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,r(l))}return o||0!=s.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),s}}])}(),sb=function(){function e(t,n,i,o){c(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return d(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 o=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},r=function(e,t){var n,i={};return e.forEach((function(e){"*"===e?(n=n||Object.keys(t)).forEach((function(e){i[e]="*"})):Py(e,!1,i)})),i}(e,this._globalTimelineStyles);Object.keys(r).forEach((function(e){var t=Ey(r[e],a,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:"*"),o._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],o=e._styleSummary[n];(!i||o.time>i.time)&&t._updateStyle(n,o.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,o=[];this._keyframes.forEach((function(a,r){var s=Py(a,!0);Object.keys(s).forEach((function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)})),i||(s.offset=r/e.duration),o.push(s)}));var a=t.size?By(t.values()):[],r=n.size?By(n.values()):[];if(i){var s=o[0],l=Sy(s);s.offset=0,l.offset=1,o=[s,l]}return Xy(this.element,o,a,r,this.duration,this.startTime,this.easing,!1)}}])}(),lb=function(e){function t(e,n,i,o,a,r){var s,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return c(this,t),(s=f(this,t,[e,n,r.delay])).element=n,s.keyframes=i,s.preStyleProps=o,s.postStyleProps=a,s._stretchStartingKeyframe=l,s.timings={duration:r.duration,delay:r.delay,easing:r.easing},s}return p(t,e),d(t,[{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,o=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],r=i+n,s=n/r,l=Py(e[0],!1);l.offset=0,a.push(l);var c=Py(e[0],!1);c.offset=cb(s),a.push(c);for(var u=e.length-1,d=1;d<=u;d++){var h=Py(e[d],!1);h.offset=cb((n+h.offset*i)/r),a.push(h)}i=r,n=0,o="",e=a}return Xy(this.element,e,this.preStyleProps,this.postStyleProps,i,n,o,!0)}}])}(sb);function cb(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 ub,db,hb=d((function e(){c(this,e)})),fb=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"normalizePropertyName",value:function(e,t){return Ry(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var o="",a=n.toString().trim();if(mb[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var r=n.match(/^[+-]?[\d\.]+([a-z]*)$/);r&&0==r[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+o}}])}(hb),mb=(ub="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(","),db={},ub.forEach((function(e){return db[e]=!0})),db);function pb(e,t,n,i,o,a,r,s,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:a,toState:i,toStyles:r,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var gb={},vb=function(){return d((function e(t,n,i){c(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}),[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,o){return e.some((function(e){return e(t,n,i,o)}))}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],o=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return o?o.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,o,a,r,s,l,c){var u=[],d=this.ast.options&&this.ast.options.params||gb,h=this.buildStyles(n,r&&r.params||gb,u),f=s&&s.params||gb,m=this.buildStyles(i,f,u),p=new Set,g=new Map,v=new Map,y="void"===i,b={params:Object.assign(Object.assign({},d),f)},_=c?[]:ib(e,t,this.ast.animation,o,a,h,m,b,l,u),k=0;if(_.forEach((function(e){k=Math.max(e.duration+e.delay,k)})),u.length)return pb(t,this._triggerName,n,i,y,h,m,[],[],g,v,k,u);_.forEach((function(e){var n=e.element,i=sy(g,n,{});e.preStyleProps.forEach((function(e){return i[e]=!0}));var o=sy(v,n,{});e.postStyleProps.forEach((function(e){return o[e]=!0})),n!==t&&p.add(n)}));var C=By(p.values());return pb(t,this._triggerName,n,i,y,h,m,_,C,g,v,k)}}])}(),yb=function(){return d((function e(t,n){c(this,e),this.styles=t,this.defaultParams=n}),[{key:"buildStyles",value:function(e,t){var n={},i=Sy(this.defaultParams);return Object.keys(e).forEach((function(t){var n=e[t];null!=n&&(i[t]=n)})),this.styles.styles.forEach((function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach((function(e){var a=o[e];a.length>1&&(a=Ey(a,i,t)),n[e]=a}))}})),n}}])}(),bb=function(){return d((function e(t,n){var i=this;c(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach((function(e){i.states[e.name]=new yb(e.style,e.options&&e.options.params||{})})),_b(this.states,"true","1"),_b(this.states,"false","0"),n.transitions.forEach((function(e){i.transitionFactories.push(new vb(t,e,i.states))})),this.fallbackTransition=new vb(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}),[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find((function(o){return o.match(e,t,n,i)}))||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}])}();function _b(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var kb=new eb,Cb=function(){return d((function e(t,n,i){c(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}),[{key:"register",value:function(e,t){var n=[],i=Jy(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,o=iy(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],r=this._animations[e],s=new Map;if(r?(n=ib(this._driver,t,r,"ng-enter","ng-leave",{},{},o,kb,a)).forEach((function(e){var t=sy(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: "+a.join("\n"));s.forEach((function(e,t){Object.keys(e).forEach((function(n){e[n]=i._driver.computeStyle(t,n,"*")}))}));var l=ny(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 "+e);return t}},{key:"listen",value:function(e,t,n,i){var o=ry(t,"","","");return oy(this._getPlayer(e),n,o,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}])}(),wb=[],xb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mb={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Sb=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";c(this,e),this.namespaceId=n;var i,o=t&&t.hasOwnProperty("value");if(this.value=null!=(i=o?t.value:t)?i:null,o){var a=Sy(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}),[{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])}))}}}])}(),Pb=new Sb("void"),Tb=function(){return d((function e(t,n,i){c(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-"+t,Eb(n,this._hostClassName)}),[{key:"listen",value:function(e,t,n,i){var o,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"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var r=sy(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};r.push(s);var l=sy(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(Eb(e,"ng-trigger"),Eb(e,"ng-trigger-"+t),l[t]=Pb),function(){a._engine.afterFlush((function(){var e=r.indexOf(s);e>=0&&r.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,o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),r=new Lb(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Eb(e,"ng-trigger"),Eb(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],c=new Sb(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[t]=c,l||(l=Pb),"void"===c.value||l.value!==c.value){var u=sy(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(!o)return;d=a.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:c,player:r,isFallbackTransition:h}),h||(Eb(e,"ng-animate-queued"),r.onStart((function(){Bb(e,"ng-animate-queued")}))),r.onDone((function(){var t=i.players.indexOf(r);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var o=n.indexOf(r);o>=0&&n.splice(o,1)}})),this.players.push(r),u.push(r),r}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var o=0;o<n.length;o++){var a=n[o];if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}(l.params,c.params)){var f=[],m=a.matchStyles(l.value,l.params,f),p=a.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush((function(){Dy(e,m),Ly(e,p)}))}}},{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 o=this,a=this._engine.statesByElement.get(e);if(a){var r=[];if(Object.keys(a).forEach((function(t){if(o._triggers[t]){var n=o.trigger(e,t,"void",i);n&&r.push(n)}})),r.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&ny(r).onDone((function(){return o._engine.processLeaveNode(e)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e);if(n){var i=new Set;n.forEach((function(n){var o=n.name;if(!i.has(o)){i.add(o);var a=t._triggers[o].fallbackTransition,r=t._engine.statesByElement.get(e)[o]||Pb,s=new Sb("void"),l=new Lb(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:a,fromState:r,toState:s,player:l,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 o=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(e):[];if(a&&a.length)o=!0;else for(var r=e;r=r.parentNode;)if(i.statesByElement.get(r)){o=!0;break}}if(this.prepareLeaveAnimationListeners(e),o)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==xb||(i.afterFlush((function(){return n.clearElementCache(e)})),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Eb(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach((function(i){var o=i.player;if(!o.destroyed){var a=i.element,r=t._elementListeners.get(a);r&&r.forEach((function(t){if(t.name==i.triggerName){var n=ry(a,i.triggerName,i.fromState.value,i.toState.value);n._data=e,oy(i.player,t.phase,n,t.callback)}})),o.markedForDestroy?t._engine.afterFlush((function(){o.destroy()})):n.push(i)}})),this._queue=[],n.sort((function(e,n){var i=e.transition.ast.depCount,o=n.transition.ast.depCount;return 0==i||0==o?i-o: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}}])}(),Ob=function(){return d((function e(t,n,i){c(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){}}),[{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 Tb(e,t,this);return t.parentNode?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,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+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),o=0;o<i.length;o++){var a=n[i[o]].namespaceId;if(a){var r=this._fetchNamespace(a);r&&t.add(r)}}return t}},{key:"trigger",value:function(e,t,n,i){if(Db(t)){var o=this._fetchNamespace(e);if(o)return o.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(Db(t)){var o=t.__ng_removed;if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){var r=this._fetchNamespace(e);r&&r.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),Eb(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Bb(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(Db(t)){var o=e?this._fetchNamespace(e):null;if(o?o.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,o){return Db(t)?this._fetchNamespace(e).listen(t,n,i,o):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.options,t,o)}},{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 ny(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=xb,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++)Eb(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,t)}finally{for(var a=0;a<o.length;a++)o[a]()}}else for(var r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);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?ny(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 "+e.join("\n"))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new eb,o=[],a=new Map,s=[],l=new Map,c=new Map,u=new Map,d=new Set;this.disabledNodes.forEach((function(e){d.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)d.add(t[i])}));var h=this.bodyNode,f=Array.from(this.statesByElement.keys()),m=Ab(f,this.collectedEnterElements),p=new Map,g=0;m.forEach((function(e,t){var n="ng-enter"+g++;p.set(t,n),e.forEach((function(e){return Eb(e,n)}))}));for(var v=[],y=new Set,b=new Set,_=0;_<this.collectedLeaveElements.length;_++){var k=this.collectedLeaveElements[_],C=k.__ng_removed;C&&C.setForRemoval&&(v.push(k),y.add(k),C.hasAnimation?this.driver.query(k,".ng-star-inserted",!0).forEach((function(e){return y.add(e)})):b.add(k))}var w=new Map,x=Ab(f,Array.from(y));x.forEach((function(e,t){var n="ng-leave"+g++;w.set(t,n),e.forEach((function(e){return Eb(e,n)}))})),e.push((function(){m.forEach((function(e,t){var n=p.get(t);e.forEach((function(e){return Bb(e,n)}))})),x.forEach((function(e,t){var n=w.get(t);e.forEach((function(e){return Bb(e,n)}))})),v.forEach((function(e){n.processLeaveNode(e)}))}));for(var M=[],S=[],P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach((function(e){var t=e.player,a=e.element;if(M.push(t),n.collectedEnterElements.length){var r=a.__ng_removed;if(r&&r.setForMove)return void t.destroy()}var d=!h||!n.driver.containsElement(h,a),f=w.get(a),m=p.get(a),g=n._buildInstruction(e,i,m,f,d);if(g.errors&&g.errors.length)S.push(g);else{if(d)return t.onStart((function(){return Dy(a,g.fromStyles)})),t.onDestroy((function(){return Ly(a,g.toStyles)})),void o.push(t);if(e.isFallbackTransition)return t.onStart((function(){return Dy(a,g.fromStyles)})),t.onDestroy((function(){return Ly(a,g.toStyles)})),void o.push(t);g.timelines.forEach((function(e){return e.stretchStartingKeyframe=!0})),i.append(a,g.timelines),s.push({instruction:g,player:t,element:a}),g.queriedElements.forEach((function(e){return sy(l,e,[]).push(t)})),g.preStyleProps.forEach((function(e,t){var n=Object.keys(e);if(n.length){var i=c.get(t);i||c.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=u.get(t);i||u.set(t,i=new Set),n.forEach((function(e){return i.add(e)}))}))}}));if(S.length){var T=[];S.forEach((function(e){T.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach((function(e){return T.push("- ".concat(e,"\n"))}))})),M.forEach((function(e){return e.destroy()})),this.reportError(T)}var O=new Map,L=new Map;s.forEach((function(e){var t=e.element;i.has(t)&&(L.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))})),o.forEach((function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach((function(e){sy(O,t,[]).push(e),e.destroy()}))}));var D=v.filter((function(e){return Rb(e,c,u)})),I=new Map;Fb(I,this.driver,b,u,"*").forEach((function(e){Rb(e,c,u)&&D.push(e)}));var F=new Map;m.forEach((function(e,t){Fb(F,n.driver,new Set(e),c,"!")})),D.forEach((function(e){var t=I.get(e),n=F.get(e);I.set(e,Object.assign(Object.assign({},t),n))}));var A=[],E=[],B={};s.forEach((function(e){var t=e.element,r=e.player,s=e.instruction;if(i.has(t)){if(d.has(t))return r.onDestroy((function(){return Ly(t,s.toStyles)})),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var l=B;if(L.size>1){for(var c=t,u=[];c=c.parentNode;){var h=L.get(c);if(h){l=h;break}u.push(c)}u.forEach((function(e){return L.set(e,l)}))}var f=n._buildAnimation(r.namespaceId,s,O,a,F,I);if(r.setRealPlayer(f),l===B)A.push(r);else{var m=n.playersByElement.get(l);m&&m.length&&(r.parentPlayer=ny(m)),o.push(r)}}else Dy(t,s.fromStyles),r.onDestroy((function(){return Ly(t,s.toStyles)})),E.push(r),d.has(t)&&o.push(r)})),E.forEach((function(e){var t=a.get(e.element);if(t&&t.length){var n=ny(t);e.setRealPlayer(n)}})),o.forEach((function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()}));for(var N=0;N<v.length;N++){var R=v[N],j=R.__ng_removed;if(Bb(R,"ng-leave"),!j||!j.hasAnimation){var z=[];if(l.size){var V=l.get(R);V&&V.length&&z.push.apply(z,r(V));for(var H=this.driver.query(R,".ng-animating",!0),Y=0;Y<H.length;Y++){var q=l.get(H[Y]);q&&q.length&&z.push.apply(z,r(q))}}var U=z.filter((function(e){return!e.destroyed}));U.length?Nb(this,R,U):this.processLeaveNode(R)}}return v.length=0,A.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()})),A}},{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,o){var a=[];if(t){var r=this.playersByQueriedElement.get(e);r&&(a=r)}else{var s=this.playersByElement.get(e);if(s){var l=!o||"void"==o;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,a=this,r=t.element,s=t.isRemovalTransition?void 0:e,l=t.isRemovalTransition?void 0:t.triggerName,c=o(t.timelines);try{var u=function(){var e=i.value.element,o=e!==r,c=sy(n,e,[]);a._getPreviousPlayers(e,o,s,l,t.toState).forEach((function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)}))};for(c.s();!(i=c.n()).done;)u()}catch(d){c.e(d)}finally{c.f()}Dy(r,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,o,a){var r=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 Xv(t.duration,t.delay);var m,p,g=h!==l,v=(m=(n.get(h)||wb).map((function(e){return e.getRealPlayer()})),p=[],function e(t,n){for(var i=0;i<t.length;i++){var o=t[i];o instanceof ey?e(o.players,n):n.push(o)}}(m,p),p).filter((function(e){return!!e.element&&e.element===h})),y=o.get(h),b=a.get(h),_=iy(0,r._normalizer,0,t.keyframes,y,b),k=r._buildPlayer(t,_,v);if(t.subTimeline&&i&&d.add(h),g){var C=new Lb(e,s,h);C.setRealPlayer(k),c.push(C)}return k}));c.forEach((function(e){sy(r.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 o=i.indexOf(n);i.splice(o,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}(r.playersByQueriedElement,e.element,e)}))})),u.forEach((function(e){return Eb(e,"ng-animating")}));var f=ny(h);return f.onDestroy((function(){u.forEach((function(e){return Bb(e,"ng-animating")})),Ly(l,t.toStyles)})),d.forEach((function(e){sy(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 Xv(e.duration,e.delay)}}])}(),Lb=function(){return d((function e(t,n,i){c(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Xv,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}),[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach((function(n){t._queuedCallbacks[n].forEach((function(t){return oy(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){sy(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)}}])}();function Db(e){return e&&1===e.nodeType}function Ib(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Fb(e,t,n,i,o){var a=[];n.forEach((function(e){return a.push(Ib(e))}));var r=[];i.forEach((function(n,i){var a={};n.forEach((function(e){var n=a[e]=t.computeStyle(i,e,o);n&&0!=n.length||(i.__ng_removed=Mb,r.push(i))})),e.set(i,a)}));var s=0;return n.forEach((function(e){return Ib(e,a[s++])})),r}function Ab(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),o=new Map;return t.forEach((function(e){var t=function e(t){if(!t)return 1;var a=o.get(t);if(a)return a;var r=t.parentNode;return a=n.has(r)?r:i.has(r)?1:e(r),o.set(t,a),a}(e);1!==t&&n.get(t).push(e)})),n}function Eb(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Bb(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Nb(e,t,n){ny(n).onDone((function(){return e.processLeaveNode(t)}))}function Rb(e,t,n){var i=n.get(e);if(!i)return!1;var o=t.get(e);return o?i.forEach((function(e){return o.add(e)})):t.set(e,i),n.delete(e),!0}var jb=function(){return d((function e(t,n,i){var o=this;c(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ob(t,n,i),this._timelineEngine=new Cb(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return o.onRemovalComplete(e,t)}}),[{key:"registerTrigger",value:function(e,t,n,i,o){var a=e+"-"+i,r=this._triggerCache[a];if(!r){var s=[],l=Jy(this._driver,o,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 - ")));r=function(e,t){return new bb(e,t)}(i,l),this._triggerCache[a]=r}this._transitionEngine.registerTrigger(t,i,r)}},{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,o){if("@"==n.charAt(0)){var a=i(ly(n),2),r=a[0],s=a[1];this._timelineEngine.command(r,t,s,o)}else this._transitionEngine.trigger(e,t,n,o)}},{key:"listen",value:function(e,t,n,o,a){if("@"==n.charAt(0)){var r=i(ly(n),2),s=r[0],l=r[1];return this._timelineEngine.listen(s,t,l,a)}return this._transitionEngine.listen(e,t,n,o,a)}},{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()}}])}();function zb(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=Hb(t[0]),t.length>1&&(i=Hb(t[t.length-1]))):t&&(n=Hb(t)),n||i?new Vb(e,n,i):null}var Vb=function(){var e=function(){function e(t,n,i){c(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o={}),this._initialStyles=o}return d(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Ly(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Ly(this._element,this._initialStyles),this._endStyles&&(Ly(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&&(Dy(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Dy(this._element,this._endStyles),this._endStyles=null),Ly(this._element,this._initialStyles),this._state=3)}}])}();return e.initialStylesByElement=new WeakMap,e}();function Hb(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];Yb(o)&&((t=t||{})[o]=e[o])}return t}function Yb(e){return"display"===e||"position"===e}var qb=function(){return d((function e(t,n,i,o,a,r,s){var l=this;c(this,e),this._element=t,this._name=n,this._duration=i,this._delay=o,this._easing=a,this._fillMode=r,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}),[{key:"apply",value:function(){var e,t,n;e=this._element,t="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=Qb(e,"").trim()).length&&(function(e,t){for(var n=0;n<e.length;n++)e.charAt(n)}(n),t="".concat(n,", ").concat(t)),$b(e,"",t),Gb(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){Ub(this._element,this._name,"paused")}},{key:"resume",value:function(){Ub(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=Wb(this._element,this._name);this._position=e*this._duration,$b(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(),Gb(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=Qb(e,"").split(","),(i=Jb(n,t))>=0&&(n.splice(i,1),$b(e,"",n.join(","))))}}])}();function Ub(e,t,n){$b(e,"PlayState",n,Wb(e,t))}function Wb(e,t){var n=Qb(e,"");return n.indexOf(",")>0?Jb(n.split(","),t):Jb([n],t)}function Jb(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function Gb(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function $b(e,t,n,i){var o="animation"+t;if(null!=i){var a=e.style[o];if(a.length){var r=a.split(",");r[i]=n,n=r.join(",")}}e.style[o]=n}function Qb(e,t){return e.style["animation"+t]}var Kb=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=o,this._delay=a,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=o+a,this._buildStyler()}),[{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._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new qb(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;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:Hy(e.element,i))}))}this.currentSnapshot=t}}])}(),Zb=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=by(t),i}return p(n,e),d(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]})),t(_(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])})),t(_(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,t(_(n.prototype),"destroy",this).call(this))}}])}(Xv),Xb=function(){return d((function e(){c(this,e),this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}),[{key:"validateStyleProperty",value:function(e){return py(e)}},{key:"matchesElement",value:function(e,t){return gy(e,t)}},{key:"containsElement",value:function(e,t){return vy(e,t)}},{key:"query",value:function(e,t,n){return yy(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 by(e)}));var i="@keyframes ".concat(t," {\n"),o="";n.forEach((function(e){o=" ";var t=parseFloat(e.offset);i+="".concat(o).concat(100*t,"% {\n"),o+=" ",Object.keys(e).forEach((function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(o,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(o).concat(t,": ").concat(n,";\n"))}})),i+=o+"}\n"})),i+="}\n";var a=document.createElement("style");return a.innerHTML=i,a}},{key:"animate",value:function(e,t,n,i,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],r=arguments.length>6?arguments[6]:void 0;r&&this._notifyFaultyScrubber();var s=a.filter((function(e){return e instanceof Kb})),l={};jy(n,i)&&s.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var c=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=zy(e,t,l));if(0==n)return new Zb(e,c);var u="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(e,u,t);document.querySelector("head").appendChild(d);var h=zb(e,t),f=new Kb(e,t,u,n,i,o,c,h);return f.onDestroy((function(){var e;(e=d).parentNode.removeChild(e)})),f}},{key:"_notifyFaultyScrubber",value:function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n","  visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}])}(),e_=function(){return d((function e(t,n,i,o){c(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=o,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}),[{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){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]:Hy(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}}])}(),t_=function(){return d((function e(){c(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(n_().toString()),this._cssKeyframesDriver=new Xb}),[{key:"validateStyleProperty",value:function(e){return py(e)}},{key:"matchesElement",value:function(e,t){return gy(e,t)}},{key:"containsElement",value:function(e,t){return vy(e,t)}},{key:"query",value:function(e,t,n){return yy(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,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],r=arguments.length>6?arguments[6]:void 0;if(!r&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,i,o,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};o&&(s.easing=o);var l={},c=a.filter((function(e){return e instanceof e_}));jy(n,i)&&c.forEach((function(e){var t=e.currentSnapshot;Object.keys(t).forEach((function(e){return l[e]=t[e]}))}));var u=zb(e,t=zy(e,t=t.map((function(e){return Py(e,!1)})),l));return new e_(e,t,s,u)}}])}();function n_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var i_,o_=((i_=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t))._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Mt.None,styles:[],data:{animation:[]}}),i}return p(t,e),d(t,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Gv(e):e;return s_(this._renderer,null,t,"register",[n]),new a_(t,this._renderer)}}])}(Uv)).\u0275fac=function(e){return new(e||i_)(ut(Pl),ut(Qu))},i_.\u0275prov=Se({token:i_,factory:i_.\u0275fac}),i_),a_=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t))._id=e,i._renderer=n,i}return p(t,e),d(t,[{key:"create",value:function(e,t){return new r_(this._id,e,t||{},this._renderer)}}])}(function(){return d((function e(){c(this,e)}))}()),r_=function(){return d((function e(t,n,i,o){c(this,e),this.id=t,this.element=n,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}),[{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 s_(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")}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){return 0}}])}();function s_(e,t,n,i,o){return e.setProperty(t,"@@".concat(n,":").concat(i),o)}var l_,c_,u_,d_,h_=((l_=function(){return d((function e(t,n,i){c(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)}}),[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var o=this._rendererCache.get(i);return o||(o=new f_("",i,this.engine),this._rendererCache.set(i,o)),o}var a=t.id,r=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(r,e),t.data.animation.forEach((function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(a,r,e,i.name,i)})),new m_(this,r,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 o=this;e>=0&&e<this._microtaskId?this._zone.run((function(){return t(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){o._zone.run((function(){o._animationCallbacksBuffer.forEach((function(e){var t=i(e,2);(0,t[0])(t[1])})),o._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()}}])}()).\u0275fac=function(e){return new(e||l_)(ut(Pl),ut(jb),ut(gu))},l_.\u0275prov=Se({token:l_,factory:l_.\u0275fac}),l_),f_=function(){return d((function e(t,n,i){c(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}),[{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){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}},{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)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}])}(),m_=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[n,i,o])).factory=e,a.namespaceId=n,a}return p(t,e),d(t,[{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 o,a,r=this;if("@"==t.charAt(0)){var s,l=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),c=t.substr(1),u="";return"@"!=c.charAt(0)&&(a=(o=c).indexOf("."),c=(s=i([o.substring(0,a),o.substr(a+1)],2))[0],u=s[1]),this.engine.listen(this.namespaceId,l,c,u,(function(e){r.factory.scheduleListenerCallback(e._data||-1,n,e)}))}return this.delegate.listen(e,t,n)}}])}(f_),p_=((c_=function(e){function t(e,n,i){return c(this,t),f(this,t,[e.body,n,i])}return p(t,e),d(t)}(jb)).\u0275fac=function(e){return new(e||c_)(ut(Qu),ut(Cy),ut(hb))},c_.\u0275prov=Se({token:c_,factory:c_.\u0275fac}),c_),g_=new tt("AnimationModuleType"),v_=[{provide:Cy,useFactory:function(){return"function"==typeof n_()?new t_:new Xb}},{provide:g_,useValue:"BrowserAnimations"},{provide:Uv,useClass:o_},{provide:hb,useFactory:function(){return new fb}},{provide:jb,useClass:p_},{provide:Pl,useFactory:function(e,t,n){return new h_(e,t,n)},deps:[nf,jb,gu]}],y_=((u_=d((function e(){c(this,e)}))).\u0275mod=Ft({type:u_}),u_.\u0275inj=Pe({factory:function(e){return new(e||u_)},providers:v_,imports:[vf]}),u_),b_=new Il("9.2.3"),__=new tt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),k_=((d_=function(){return d((function e(t,n,i){c(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}),[{key:"_getDocument",value:function(){var e=this._document||document;return"object"==typeof e&&e?e:null}},{key:"_getWindow",value:function(){var e=this._getDocument(),t=(null==e?void 0:e.defaultView)||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return ji()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var e=this._getWindow();return e&&(e.__karma__||e.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){var e=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),t=this._getDocument();e&&t&&!t.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(){var e=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,t=this._getDocument();if(!e&&t&&t.body&&"function"==typeof getComputedStyle){var n=t.createElement("div");n.classList.add("mat-theme-loaded-marker"),t.body.appendChild(n);var i=getComputedStyle(n);i&&"none"!==i.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"),t.body.removeChild(n)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&b_.full!==Vv.full&&console.warn("The Angular Material version ("+b_.full+") does not match the Angular CDK version ("+Vv.full+").\nPlease ensure the versions of these two packages exactly match.")}}])}()).\u0275mod=Ft({type:d_}),d_.\u0275inj=Pe({factory:function(e){return new(e||d_)(ut(Bv),ut(__,8),ut(Qu,8))},imports:[[zv],zv]}),d_);function C_(e,t){return function(e){function n(){var e;c(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(e=f(this,n,[].concat(o))).color=t,e}return p(n,e),d(n,[{key:"color",get:function(){return this._color},set:function(e){var n=e||t;n!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),n&&this._elementRef.nativeElement.classList.add("mat-"+n),this._color=n)}}])}(e)}var w_,x_=new tt("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return dt(iu)}}),M_=function(){return d((function e(){c(this,e),this._localeChanges=new V}),[{key:"localeChanges",get:function(){return this._localeChanges}},{key:"deserialize",value:function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}},{key:"setLocale",value:function(e){this.locale=e,this._localeChanges.next()}},{key:"compareDate",value:function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)}},{key:"sameDate",value:function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t}},{key:"clampDate",value:function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e}}])}(),S_=new tt("mat-date-formats");try{w_="undefined"!=typeof Intl}catch(Lwe){w_=!1}var P_={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},T_=D_(31,(function(e){return String(e+1)})),O_={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},L_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function D_(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var I_,F_,A_,E_,B_,N_,R_=((F_=function(e){function n(e,i){var o;return c(this,n),(o=f(this,n)).useUtcForDisplay=!0,t((m(o),_(n.prototype)),"setLocale",m(o)).call(m(o),e),o.useUtcForDisplay=!i.TRIDENT,o._clampDate=i.TRIDENT||i.EDGE,o}return p(n,e),d(n,[{key:"getYear",value:function(e){return e.getFullYear()}},{key:"getMonth",value:function(e){return e.getMonth()}},{key:"getDate",value:function(e){return e.getDate()}},{key:"getDayOfWeek",value:function(e){return e.getDay()}},{key:"getMonthNames",value:function(e){var t=this;if(w_){var n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return D_(12,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))}))}return P_[e]}},{key:"getDateNames",value:function(){var e=this;if(w_){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return D_(31,(function(n){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))}))}return T_}},{key:"getDayOfWeekNames",value:function(e){var t=this;if(w_){var n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return D_(7,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))}))}return O_[e]}},{key:"getYearName",value:function(e){if(w_){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))}},{key:"getFirstDayOfWeek",value:function(){return 0}},{key:"getNumDaysInMonth",value:function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}},{key:"clone",value:function(e){return new Date(e.getTime())}},{key:"createDate",value:function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'.concat(t,'". Month index has to be between 0 and 11.'));if(n<1)throw Error('Invalid date "'.concat(n,'". Date has to be greater than 0.'));var i=this._createDateWithOverflow(e,t,n);if(i.getMonth()!=t)throw Error('Invalid date "'.concat(n,'" for month with index "').concat(t,'".'));return i}},{key:"today",value:function(){return new Date}},{key:"parse",value:function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null}},{key:"format",value:function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(w_){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=Object.assign(Object.assign({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())}},{key:"addCalendarYears",value:function(e,t){return this.addCalendarMonths(e,12*t)}},{key:"addCalendarMonths",value:function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}},{key:"toIso8601",value:function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}},{key:"deserialize",value:function(e){if("string"==typeof e){if(!e)return null;if(L_.test(e)){var i=new Date(e);if(this.isValid(i))return i}}return t(_(n.prototype),"deserialize",this).call(this,e)}},{key:"isDateInstance",value:function(e){return e instanceof Date}},{key:"isValid",value:function(e){return!isNaN(e.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(e,t,n){var i=new Date(e,t,n);return e>=0&&e<100&&i.setFullYear(this.getYear(i)-1900),i}},{key:"_2digit",value:function(e){return("00"+e).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(e){return e.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(e,t){var n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.format(n)}}])}(M_)).\u0275fac=function(e){return new(e||F_)(ut(x_,8),ut($g))},F_.\u0275prov=Se({token:F_,factory:F_.\u0275fac}),F_),j_=((I_=d((function e(){c(this,e)}))).\u0275mod=Ft({type:I_}),I_.\u0275inj=Pe({factory:function(e){return new(e||I_)},providers:[{provide:M_,useClass:R_}],imports:[[Qg]]}),I_),z_={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},V_=((E_=d((function e(){c(this,e)}))).\u0275mod=Ft({type:E_}),E_.\u0275inj=Pe({factory:function(e){return new(e||E_)},providers:[{provide:S_,useValue:z_}],imports:[[j_]]}),E_),H_=((A_=function(){return d((function e(){c(this,e)}),[{key:"isErrorState",value:function(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}}])}()).\u0275fac=function(e){return new(e||A_)},A_.\u0275prov=Se({factory:function(){return new A_},token:A_,providedIn:"root"}),A_),Y_=function(){return d((function e(t,n,i){c(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}),[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}])}(),q_={enterDuration:450,exitDuration:400},U_=Xg({passive:!0}),W_=["mousedown","touchstart"],J_=["mouseup","mouseleave","touchend","touchcancel"],G_=function(){return d((function e(t,n,i,o){c(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,o.isBrowser&&(this._containerElement=Yg(i))}),[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},q_),i.animation);i.centered&&(e=o.left+o.width/2,t=o.top+o.height/2);var r=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),o=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+o*o)}(e,t,o),s=e-o.left,l=t-o.top,c=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-r+"px",u.style.top=l-r+"px",u.style.height=2*r+"px",u.style.width=2*r+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=c+"ms",this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new Y_(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({},q_),e.config.animation);n.style.transitionDuration=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:"setupTriggerEvents",value:function(e){var t=Yg(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(W_))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(J_),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=xv(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){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,U_)}))}))}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(W_.forEach((function(t){e._triggerElement.removeEventListener(t,e,U_)})),this._pointerUpEventsRegistered&&J_.forEach((function(t){e._triggerElement.removeEventListener(t,e,U_)})))}}])}(),$_=new tt("mat-ripple-global-options"),Q_=((N_=function(){return d((function e(t,n,i,o,a){c(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=o||{},this._rippleRenderer=new G_(this,n,t,i)}),[{key:"disabled",get:function(){return this._disabled},set:function(e){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:"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))}}])}()).\u0275fac=function(e){return new(e||N_)($r(Ml),$r(gu),$r($g),$r($_,8),$r(g_,8))},N_.\u0275dir=Et({type:N_,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&Fs("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"]}),N_),K_=((B_=d((function e(){c(this,e)}))).\u0275mod=Ft({type:B_}),B_.\u0275inj=Pe({factory:function(e){return new(e||B_)},imports:[[k_,Qg],k_]}),B_),Z_=new tt("mat-label-global-options");function X_(e,t,n,i){var o,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(a<3?o(r):a>3?o(t,n,r):o(t,n))||r);return a>3&&r&&Object.defineProperty(t,n,r),r}function ek(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(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?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))}var tk=function(e){function n(e){var t;return c(this,n),(t=f(this,n))._value=e,t}return p(n,e),d(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var i=t(_(n.prototype),"_subscribe",this).call(this,e);return i&&!i.closed&&e.next(this._value),i}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new R;return this._value}},{key:"next",value:function(e){t(_(n.prototype),"next",this).call(this,this._value=e)}}])}(V);function nk(e){return!k(e)&&e-parseFloat(e)+1>=0}function ik(){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 nk(t)?i=Number(t)<1?1:Number(t):Y(t)&&(n=t),Y(n)||(n=Pg),new E((function(t){var o=nk(e)?e:+e-n.now();return n.schedule(ok,o,{index:0,period:i,subscriber:t})}))}function ok(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 ak=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[e,t])).scheduler=e,i.work=t,i}return p(n,e),d(n,[{key:"schedule",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return i>0?t(_(n.prototype),"schedule",this).call(this,e,i):(this.delay=i,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,i){return i>0||this.closed?t(_(n.prototype),"execute",this).call(this,e,i):this._execute(e,i)}},{key:"requestAsyncId",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0||null===o&&this.delay>0?t(_(n.prototype),"requestAsyncId",this).call(this,e,i,o):e.flush(this)}}])}(xg),rk=new(function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t)}(Sg))(ak);function sk(e,t){return new E(t?function(n){return t.schedule(lk,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function lk(e){var t=e.error;e.subscriber.error(t)}var ck,uk=((ck=function(){function e(t,n,i){c(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return d(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 Sp(this.value);case"E":return sk(this.error);case"C":return Ag()}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}}])}()).completeNotification=new ck("C"),ck.undefinedValueNotification=new ck("N",void 0),ck),dk=function(e){function t(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return c(this,t),(i=f(this,t,[e])).scheduler=n,i.delay=o,i}return p(t,e),d(t,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new hk(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(uk.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(uk.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(uk.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}])}(T),hk=d((function e(t,n){c(this,e),this.notification=t,this.destination=n})),fk=function(e){function n(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,o=arguments.length>2?arguments[2]:void 0;return c(this,n),(e=f(this,n)).scheduler=o,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=t<1?1:t,e._windowTime=i<1?1:i,i===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return p(n,e),d(n,[{key:"nextInfiniteTimeWindow",value:function(e){var i=this._events;i.push(e),i.length>this._bufferSize&&i.shift(),t(_(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this._events.push(new mk(this._getNow(),e)),this._trimBufferThenGetEvents(),t(_(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,a=i.length;if(this.closed)throw new R;if(this.isStopped||this.hasError?t=M.EMPTY:(this.observers.push(e),t=new j(this,e)),o&&e.add(e=new dk(e,o)),n)for(var r=0;r<a&&!e.closed;r++)e.next(i[r]);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||rk).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,o=i.length,a=0;a<o&&!(e-i[a].time<n);)a++;return o>t&&(a=Math.max(a,o-t)),a>0&&i.splice(0,a),i}}])}(V),mk=d((function e(t,n){c(this,e),this.time=t,this.value=n})),pk=function(){return d((function e(t){c(this,e),this.notifier=t}),[{key:"call",value:function(e,t){var n=new gk(e),i=t.subscribe(n);return i.add(Q(n,this.notifier)),i}}])}(),gk=function(e){function t(){var e;return c(this,t),(e=f(this,t,arguments)).hasValue=!1,e}return p(t,e),d(t,[{key:"_next",value:function(e){this.value=e,this.hasValue=!0}},{key:"notifyNext",value:function(e,t,n,i,o){this.emitValue()}},{key:"notifyComplete",value:function(){this.emitValue()}},{key:"emitValue",value:function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))}}])}(K);function vk(e,t){return"function"==typeof t?function(n){return n.pipe(vk((function(n,i){return ne(e(n,i)).pipe(Z((function(e,o){return t(n,e,i,o)})))})))}:function(t){return t.lift(new yk(e))}}var yk=function(){return d((function e(t){c(this,e),this.project=t}),[{key:"call",value:function(e,t){return t.subscribe(new bk(e,this.project))}}])}(),bk=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[e])).project=t,i.index=0,i}return p(n,e),d(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,e,n)}},{key:"_innerSub",value:function(e,t,n){var i=this.innerSubscription;i&&i.unsubscribe();var o=new q(this,t,n),a=this.destination;a.add(o),this.innerSubscription=Q(this,e,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||t(_(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=null}},{key:"notifyComplete",value:function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t(_(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e,t,n,i,o){this.destination.next(t)}}])}(K);function _k(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,o=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,r=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,l=e.scheduler,c=0,u=!1,d=!1;return function(e){c++,t&&!u||(u=!1,t=new fk(o,r,l),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()}}));var i=t.subscribe(this);this.add((function(){c--,i.unsubscribe(),n&&!d&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)}))}}(i))}}function kk(e){return function(t){return t.lift(new Ck(e))}}var Ck=function(){return d((function e(t){c(this,e),this.notifier=t}),[{key:"call",value:function(e,t){var n=new wk(e),i=Q(n,this.notifier);return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}])}(),wk=function(e){function t(e){var n;return c(this,t),(n=f(this,t,[e])).seenValue=!1,n}return p(t,e),d(t,[{key:"notifyNext",value:function(e,t,n,i,o){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}])}(K);function xk(e){return function(t){return t.lift(new Rk(e))}}var Mk,Sk,Pk,Tk,Ok,Lk,Dk,Ik,Fk,Ak,Ek,Bk,Nk,Rk=function(){return d((function e(t){c(this,e),this.total=t}),[{key:"call",value:function(e,t){return t.subscribe(new jk(e,this.total))}}])}(),jk=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).total=n,i.count=0,i}return p(t,e),d(t,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}])}(T),zk=["*"],Vk=((Tk=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||Tk)},Tk.\u0275prov=Se({token:Tk,factory:Tk.\u0275fac}),Tk),Hk=((Pk=function(){return d((function e(t,n){var i=this;c(this,e),this._loader=t,this._zone=n,this._map=new Promise((function(e){i._mapResolver=e}))}),[{key:"createMap",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._loader.load().then((function(){var i=new google.maps.Map(e,t);n._mapResolver(i)}))}))}},{key:"setMapOptions",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){t._map.then((function(t){t.setOptions(e)}))}))}},{key:"createMarker",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];return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return n&&(t.map=e),new google.maps.Marker(t)}))}))}},{key:"createInfoWindow",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(){return new google.maps.InfoWindow(e)}))}))}},{key:"createCircle",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return"string"==typeof e.strokePosition&&(e.strokePosition=google.maps.StrokePosition[e.strokePosition]),e.map=t,new google.maps.Circle(e)}))}))}},{key:"createRectangle",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return e.map=t,new google.maps.Rectangle(e)}))}))}},{key:"createPolyline",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t.getNativeMap().then((function(t){var n=new google.maps.Polyline(e);return n.setMap(t),n}))}))}},{key:"createPolygon",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t.getNativeMap().then((function(t){var n=new google.maps.Polygon(e);return n.setMap(t),n}))}))}},{key:"createDataLayer",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){var n=new google.maps.Data(e);return n.setMap(t),n}))}))}},{key:"createTransitLayer",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){var n=new google.maps.TransitLayer;return n.setMap(e.visible?t:null),n}))}))}},{key:"createBicyclingLayer",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){var n=new google.maps.BicyclingLayer;return n.setMap(e.visible?t:null),n}))}))}},{key:"containsLocation",value:function(e,t){return google.maps.geometry.poly.containsLocation(e,t)}},{key:"subscribeToMapEvent",value:function(e){var t=this;return new E((function(n){t._map.then((function(i){i.addListener(e,(function(e){t._zone.run((function(){return n.next(e)}))}))}))}))}},{key:"clearInstanceListeners",value:function(){var e=this;return this._zone.runOutsideAngular((function(){e._map.then((function(e){google.maps.event.clearInstanceListeners(e)}))}))}},{key:"setCenter",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return t.setCenter(e)}))}))}},{key:"getZoom",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getZoom()}))}))}},{key:"getBounds",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getBounds()}))}))}},{key:"getMapTypeId",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getMapTypeId()}))}))}},{key:"setZoom",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return t.setZoom(e)}))}))}},{key:"getCenter",value:function(){var e=this;return this._zone.runOutsideAngular((function(){return e._map.then((function(e){return e.getCenter()}))}))}},{key:"panTo",value:function(e){var t=this;return this._zone.runOutsideAngular((function(){return t._map.then((function(t){return t.panTo(e)}))}))}},{key:"panBy",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._map.then((function(n){return n.panBy(e,t)}))}))}},{key:"fitBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._map.then((function(n){return n.fitBounds(e,t)}))}))}},{key:"panToBounds",value:function(e,t){var n=this;return this._zone.runOutsideAngular((function(){return n._map.then((function(n){return n.panToBounds(e,t)}))}))}},{key:"getNativeMap",value:function(){return this._map}},{key:"triggerMapEvent",value:function(e){return this._map.then((function(t){return google.maps.event.trigger(t,e)}))}}])}()).\u0275fac=function(e){return new(e||Pk)(ut(Vk),ut(gu))},Pk.\u0275prov=Se({token:Pk,factory:Pk.\u0275fac}),Pk),Yk=((Sk=function(){return d((function e(t){c(this,e),this._wrapper=t,this._layers=new Map}),[{key:"addTransitLayer",value:function(e,t){var n=this._wrapper.createTransitLayer(t);this._layers.set(e,n)}},{key:"addBicyclingLayer",value:function(e,t){var n=this._wrapper.createBicyclingLayer(t);this._layers.set(e,n)}},{key:"deleteLayer",value:function(e){var t=this;return this._layers.get(e).then((function(n){n.setMap(null),t._layers.delete(e)}))}},{key:"toggleLayerVisibility",value:function(e,t){var n=this;return this._layers.get(e).then((function(e){return t.visible?n._wrapper.getNativeMap().then((function(t){e.setMap(t)})):void e.setMap(null)}))}}])}()).\u0275fac=function(e){return new(e||Sk)(ut(Hk))},Sk.\u0275prov=Se({token:Sk,factory:Sk.\u0275fac}),Sk),qk=((Mk=function(){return d((function e(t,n){c(this,e),this._apiWrapper=t,this._zone=n,this._circles=new Map}),[{key:"addCircle",value:function(e){this._circles.set(e,this._apiWrapper.createCircle({center:{lat:e.latitude,lng:e.longitude},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,radius:e.radius,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeCircle",value:function(e){var t=this;return this._circles.get(e).then((function(n){n.setMap(null),t._circles.delete(e)}))}},{key:"setOptions",value:function(e,t){return this._circles.get(e).then((function(e){"string"==typeof t.strokePosition&&(t.strokePosition=google.maps.StrokePosition[t.strokePosition]),e.setOptions(t)}))}},{key:"getBounds",value:function(e){return this._circles.get(e).then((function(e){return e.getBounds()}))}},{key:"getCenter",value:function(e){return this._circles.get(e).then((function(e){return e.getCenter()}))}},{key:"getRadius",value:function(e){return this._circles.get(e).then((function(e){return e.getRadius()}))}},{key:"setCenter",value:function(e){return this._circles.get(e).then((function(t){return t.setCenter({lat:e.latitude,lng:e.longitude})}))}},{key:"setEditable",value:function(e){return this._circles.get(e).then((function(t){return t.setEditable(e.editable)}))}},{key:"setDraggable",value:function(e){return this._circles.get(e).then((function(t){return t.setDraggable(e.draggable)}))}},{key:"setVisible",value:function(e){return this._circles.get(e).then((function(t){return t.setVisible(e.visible)}))}},{key:"setRadius",value:function(e){return this._circles.get(e).then((function(t){return t.setRadius(e.radius)}))}},{key:"getNativeCircle",value:function(e){return this._circles.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){var o=null;return n._circles.get(t).then((function(t){o=t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))})),function(){null!==o&&o.remove()}}))}}])}()).\u0275fac=function(e){return new(e||Mk)(ut(Hk),ut(gu))},Mk.\u0275prov=Se({token:Mk,factory:Mk.\u0275fac}),Mk),Uk=((Dk=Ok=function(){return d((function e(t){c(this,e),this._manager=t,this.clickable=!0,this.draggable=!1,this.editable=!1,this.radius=0,this.strokePosition="CENTER",this.strokeWeight=0,this.visible=!0,this.centerChange=new Mc,this.circleClick=new Mc,this.circleDblClick=new Mc,this.drag=new Mc,this.dragEnd=new Mc,this.dragStart=new Mc,this.mouseDown=new Mc,this.mouseMove=new Mc,this.mouseOut=new Mc,this.mouseOver=new Mc,this.mouseUp=new Mc,this.radiusChange=new Mc,this.rightClick=new Mc,this._circleAddedToManager=!1,this._eventSubscriptions=[]}),[{key:"ngOnInit",value:function(){this._manager.addCircle(this),this._circleAddedToManager=!0,this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._circleAddedToManager&&((e.latitude||e.longitude)&&this._manager.setCenter(this),e.editable&&this._manager.setEditable(this),e.draggable&&this._manager.setDraggable(this),e.visible&&this._manager.setVisible(this),e.radius&&this._manager.setRadius(this),this._updateCircleOptionsChanges(e))}},{key:"_updateCircleOptionsChanges",value:function(e){var t={},n=Object.keys(e).filter((function(e){return-1!==Ok._mapOptions.indexOf(e)}));n.forEach((function(n){t[n]=e[n].currentValue})),n.length>0&&this._manager.setOptions(this,t)}},{key:"_registerEventListeners",value:function(){var e=this,t=new Map;t.set("center_changed",this.centerChange),t.set("click",this.circleClick),t.set("dblclick",this.circleDblClick),t.set("drag",this.drag),t.set("dragend",this.dragEnd),t.set("dragstart",this.dragStart),t.set("mousedown",this.mouseDown),t.set("mousemove",this.mouseMove),t.set("mouseout",this.mouseOut),t.set("mouseover",this.mouseOver),t.set("mouseup",this.mouseUp),t.set("radius_changed",this.radiusChange),t.set("rightclick",this.rightClick),t.forEach((function(t,n){e._eventSubscriptions.push(e._manager.createEventObservable(n,e).subscribe((function(i){switch(n){case"radius_changed":e._manager.getRadius(e).then((function(e){return t.emit(e)}));break;case"center_changed":e._manager.getCenter(e).then((function(e){return t.emit({lat:e.lat(),lng:e.lng()})}));break;default:t.emit({coords:{lat:i.latLng.lat(),lng:i.latLng.lng()}})}})))}))}},{key:"ngOnDestroy",value:function(){this._eventSubscriptions.forEach((function(e){e.unsubscribe()})),this._eventSubscriptions=null,this._manager.removeCircle(this)}},{key:"getBounds",value:function(){return this._manager.getBounds(this)}},{key:"getCenter",value:function(){return this._manager.getCenter(this)}}])}()).\u0275fac=function(e){return new(e||Dk)($r(qk))},Dk.\u0275dir=Et({type:Dk,selectors:[["agm-circle"]],inputs:{clickable:"clickable",draggable:["circleDraggable","draggable"],editable:"editable",radius:"radius",strokePosition:"strokePosition",strokeWeight:"strokeWeight",visible:"visible",latitude:"latitude",longitude:"longitude",fillColor:"fillColor",fillOpacity:"fillOpacity",strokeColor:"strokeColor",strokeOpacity:"strokeOpacity",zIndex:"zIndex"},outputs:{centerChange:"centerChange",circleClick:"circleClick",circleDblClick:"circleDblClick",drag:"drag",dragEnd:"dragEnd",dragStart:"dragStart",mouseDown:"mouseDown",mouseMove:"mouseMove",mouseOut:"mouseOut",mouseOver:"mouseOver",mouseUp:"mouseUp",radiusChange:"radiusChange",rightClick:"rightClick"},features:[dl]}),Dk._mapOptions=["fillColor","fillOpacity","strokeColor","strokeOpacity","strokePosition","strokeWeight","visible","zIndex","clickable"],Dk),Wk=((Lk=function(){return d((function e(t,n){c(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}),[{key:"addDataLayer",value:function(e){var t=this,n=this._wrapper.createDataLayer({style:e.style}).then((function(n){return e.geoJson&&t.getDataFeatures(n,e.geoJson).then((function(e){return n.features=e})),n}));this._layers.set(e,n)}},{key:"deleteDataLayer",value:function(e){var t=this;this._layers.get(e).then((function(n){n.setMap(null),t._layers.delete(e)}))}},{key:"updateGeoJson",value:function(e,t){var n=this;this._layers.get(e).then((function(e){e.forEach((function(t){e.remove(t);var n=e.features.indexOf(t,0);n>-1&&e.features.splice(n,1)})),n.getDataFeatures(e,t).then((function(t){return e.features=t}))}))}},{key:"setDataOptions",value:function(e,t){this._layers.get(e).then((function(e){e.setControlPosition(t.controlPosition),e.setControls(t.controls),e.setDrawingMode(t.drawingMode),e.setStyle(t.style)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){n._layers.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))}))}))}},{key:"getDataFeatures",value:function(e,t){return new Promise((function(n,i){if("object"==typeof t)try{n(e.addGeoJson(t))}catch(o){i(o)}else"string"==typeof t?e.loadGeoJson(t,null,n):i("Impossible to extract features from geoJson: wrong argument type")}))}}])}()).\u0275fac=function(e){return new(e||Lk)(ut(Hk),ut(gu))},Lk.\u0275prov=Se({token:Lk,factory:Lk.\u0275fac}),Lk),Jk=d((function e(){c(this,e)})),Gk=((Ak=function(){return d((function e(t){var n,i=this;c(this,e),this._boundsChangeSampleTime$=new tk(200),this._includeInBounds$=new tk(new Map),this.bounds$=ne(t.load()).pipe(ie((function(){return i._includeInBounds$})),(n=this._boundsChangeSampleTime$.pipe(vk((function(e){return ik(0,e)}))),function(e){return e.lift(new pk(n))}),Z((function(e){return i._generateBounds(e)})),_k(1))}),[{key:"_generateBounds",value:function(e){var t=new google.maps.LatLngBounds;return e.forEach((function(e){return t.extend(e)})),t}},{key:"addToBounds",value:function(e){var t=this._createIdentifier(e);if(!this._includeInBounds$.value.has(t)){var n=this._includeInBounds$.value;n.set(t,e),this._includeInBounds$.next(n)}}},{key:"removeFromBounds",value:function(e){var t=this._includeInBounds$.value;t.delete(this._createIdentifier(e)),this._includeInBounds$.next(t)}},{key:"changeFitBoundsChangeSampleTime",value:function(e){this._boundsChangeSampleTime$.next(e)}},{key:"getBounds$",value:function(){return this.bounds$}},{key:"_createIdentifier",value:function(e){return"".concat(e.lat,"+").concat(e.lng)}}])}()).\u0275fac=function(e){return new(e||Ak)(ut(Vk))},Ak.\u0275prov=Se({token:Ak,factory:Ak.\u0275fac}),Ak),$k=((Fk=function(){return d((function e(t,n){c(this,e),this._mapsWrapper=t,this._zone=n,this._markers=new Map}),[{key:"convertAnimation",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===e?null:this._mapsWrapper.getNativeMap().then((function(){return google.maps.Animation[e]})));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"deleteMarker",value:function(e){var t=this,n=this._markers.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setMap(null),t._markers.delete(e)}))}))}},{key:"updateMarkerPosition",value:function(e){return this._markers.get(e).then((function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})}))}},{key:"updateTitle",value:function(e){return this._markers.get(e).then((function(t){return t.setTitle(e.title)}))}},{key:"updateLabel",value:function(e){return this._markers.get(e).then((function(t){t.setLabel(e.label)}))}},{key:"updateDraggable",value:function(e){return this._markers.get(e).then((function(t){return t.setDraggable(e.draggable)}))}},{key:"updateIcon",value:function(e){return this._markers.get(e).then((function(t){return t.setIcon(e.iconUrl)}))}},{key:"updateOpacity",value:function(e){return this._markers.get(e).then((function(t){return t.setOpacity(e.opacity)}))}},{key:"updateVisible",value:function(e){return this._markers.get(e).then((function(t){return t.setVisible(e.visible)}))}},{key:"updateZIndex",value:function(e){return this._markers.get(e).then((function(t){return t.setZIndex(e.zIndex)}))}},{key:"updateClickable",value:function(e){return this._markers.get(e).then((function(t){return t.setClickable(e.clickable)}))}},{key:"updateAnimation",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._markers.get(e);case 2:return t.t0=t.sent,t.next=5,this.convertAnimation(e.animation);case 5:t.t1=t.sent,t.t0.setAnimation.call(t.t0,t.t1);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"addMarker",value:function(e){var t=this,n=new Promise((function(n){return ek(t,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this._mapsWrapper,t.t1={lat:e.latitude,lng:e.longitude},t.t2=e.label,t.t3=e.draggable,t.t4=e.iconUrl,t.t5=e.opacity,t.t6=e.visible,t.t7=e.zIndex,t.t8=e.title,t.t9=e.clickable,t.next=12,this.convertAnimation(e.animation);case 12:return t.t10=t.sent,t.t11={position:t.t1,label:t.t2,draggable:t.t3,icon:t.t4,opacity:t.t5,visible:t.t6,zIndex:t.t7,title:t.t8,clickable:t.t9,animation:t.t10},t.abrupt("return",t.t0.createMarker.call(t.t0,t.t11).then(n));case 15:case"end":return t.stop()}}),t,this)})))}));this._markers.set(e,n)}},{key:"getNativeMarker",value:function(e){return this._markers.get(e)}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){n._markers.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))}))}))}}])}()).\u0275fac=function(e){return new(e||Fk)(ut(Hk),ut(gu))},Fk.\u0275prov=Se({token:Fk,factory:Fk.\u0275fac}),Fk),Qk=((Ik=function(){return d((function e(t,n,i){c(this,e),this._mapsWrapper=t,this._zone=n,this._markerManager=i,this._infoWindows=new Map}),[{key:"deleteInfoWindow",value:function(e){var t=this,n=this._infoWindows.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.close(),t._infoWindows.delete(e)}))}))}},{key:"setPosition",value:function(e){return this._infoWindows.get(e).then((function(t){return t.setPosition({lat:e.latitude,lng:e.longitude})}))}},{key:"setZIndex",value:function(e){return this._infoWindows.get(e).then((function(t){return t.setZIndex(e.zIndex)}))}},{key:"open",value:function(e){var t=this;return this._infoWindows.get(e).then((function(n){return null!=e.hostMarker?t._markerManager.getNativeMarker(e.hostMarker).then((function(e){return t._mapsWrapper.getNativeMap().then((function(t){return n.open(t,e)}))})):t._mapsWrapper.getNativeMap().then((function(e){return n.open(e)}))}))}},{key:"close",value:function(e){return this._infoWindows.get(e).then((function(e){return e.close()}))}},{key:"setOptions",value:function(e,t){return this._infoWindows.get(e).then((function(e){return e.setOptions(t)}))}},{key:"addInfoWindow",value:function(e){var t={content:e.content,maxWidth:e.maxWidth,zIndex:e.zIndex,disableAutoPan:e.disableAutoPan};"number"==typeof e.latitude&&"number"==typeof e.longitude&&(t.position={lat:e.latitude,lng:e.longitude});var n=this._mapsWrapper.createInfoWindow(t);this._infoWindows.set(e,n)}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){n._infoWindows.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))}))}))}}])}()).\u0275fac=function(e){return new(e||Ik)(ut(Hk),ut(gu),ut($k))},Ik.\u0275prov=Se({token:Ik,factory:Ik.\u0275fac}),Ik),Kk=0,Zk=((Nk=Ek=function(){return d((function e(t,n){c(this,e),this._infoWindowManager=t,this._el=n,this.isOpen=!1,this.infoWindowClose=new Mc,this._infoWindowAddedToManager=!1,this._id=(Kk++).toString()}),[{key:"ngOnInit",value:function(){this.content=this._el.nativeElement.querySelector(".agm-info-window-content"),this._infoWindowManager.addInfoWindow(this),this._infoWindowAddedToManager=!0,this._updateOpenState(),this._registerEventListeners()}},{key:"ngOnChanges",value:function(e){this._infoWindowAddedToManager&&((e.latitude||e.longitude)&&"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._infoWindowManager.setPosition(this),e.zIndex&&this._infoWindowManager.setZIndex(this),e.isOpen&&this._updateOpenState(),this._setInfoWindowOptions(e))}},{key:"_registerEventListeners",value:function(){var e=this;this._infoWindowManager.createEventObservable("closeclick",this).subscribe((function(){e.isOpen=!1,e.infoWindowClose.emit()}))}},{key:"_updateOpenState",value:function(){this.isOpen?this.open():this.close()}},{key:"_setInfoWindowOptions",value:function(e){var t={};Object.keys(e).filter((function(e){return-1!==Ek._infoWindowOptionsInputs.indexOf(e)})).forEach((function(n){t[n]=e[n].currentValue})),this._infoWindowManager.setOptions(this,t)}},{key:"open",value:function(){return this._infoWindowManager.open(this)}},{key:"close",value:function(){var e=this;return this._infoWindowManager.close(this).then((function(){e.infoWindowClose.emit()}))}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmInfoWindow-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._infoWindowManager.deleteInfoWindow(this)}}])}()).\u0275fac=function(e){return new(e||Nk)($r(Qk),$r(Ml))},Nk.\u0275cmp=Ot({type:Nk,selectors:[["agm-info-window"]],inputs:{isOpen:"isOpen",latitude:"latitude",longitude:"longitude",disableAutoPan:"disableAutoPan",zIndex:"zIndex",maxWidth:"maxWidth"},outputs:{infoWindowClose:"infoWindowClose"},features:[dl],ngContentSelectors:zk,decls:2,vars:0,consts:[[1,"agm-info-window-content"]],template:function(e,t){1&e&&(ps(),es(0,"div",0),gs(1),ts())},encapsulation:2}),Nk._infoWindowOptionsInputs=["disableAutoPan","maxWidth"],Nk),Xk=((Bk=function(){return d((function e(t,n){c(this,e),this._wrapper=t,this._zone=n,this._layers=new Map}),[{key:"addKmlLayer",value:function(e){var t=this._wrapper.getNativeMap().then((function(t){return new google.maps.KmlLayer({clickable:e.clickable,map:t,preserveViewport:e.preserveViewport,screenOverlays:e.screenOverlays,suppressInfoWindows:e.suppressInfoWindows,url:e.url,zIndex:e.zIndex})}));this._layers.set(e,t)}},{key:"setOptions",value:function(e,t){this._layers.get(e).then((function(e){return e.setOptions(t)}))}},{key:"deleteKmlLayer",value:function(e){var t=this;this._layers.get(e).then((function(n){n.setMap(null),t._layers.delete(e)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){n._layers.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))}))}))}}])}()).\u0275fac=function(e){return new(e||Bk)(ut(Hk),ut(gu))},Bk.\u0275prov=Se({token:Bk,factory:Bk.\u0275fac}),Bk);function eC(e){var t=["insert_at","remove_at","set_at"];return function e(t,n,i){return i?e(t,n).pipe(Z((function(e){return k(e)?i.apply(void 0,r(e)):i(e)}))):new E((function(e){var i,o=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.next(1===n.length?n[0]:n)};try{i=t(o)}catch(a){return void e.error(a)}if(u(n))return function(){return n(o,i)}}))}((function(n){return t.map((function(t){return e.addListener(t,(function(i,o){return n.apply(e,[{newArr:e.getArray(),evName:t,index:i,previous:o}])}))}))}),(function(e,t){return t.forEach((function(e){return e.remove()}))}))}var tC,nC,iC,oC,aC,rC,sC,lC,cC,uC,dC,hC=((tC=function(){return d((function e(t,n){c(this,e),this._mapsWrapper=t,this._zone=n,this._polygons=new Map}),[{key:"addPolygon",value:function(e){var t=this._mapsWrapper.createPolygon({clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,geodesic:e.geodesic,paths:e.paths,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex});this._polygons.set(e,t)}},{key:"updatePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setPaths(e.paths)}))}))}},{key:"setPolygonOptions",value:function(e,t){return this._polygons.get(e).then((function(e){e.setOptions(t)}))}},{key:"deletePolygon",value:function(e){var t=this,n=this._polygons.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setMap(null),t._polygons.delete(e)}))}))}},{key:"getPath",value:function(e){return this._polygons.get(e).then((function(e){return e.getPath().getArray()}))}},{key:"getPaths",value:function(e){return this._polygons.get(e).then((function(e){return e.getPaths().getArray().map((function(e){return e.getArray()}))}))}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){n._polygons.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))}))}))}},{key:"createPathEventObservable",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polygons.get(e);case 2:return n=t.sent.getPaths(),t.abrupt("return",eC(n).pipe(qv({newArr:n.getArray()}),vk((function(e){return le.apply(void 0,r(e.newArr.map((function(t,n){return eC(t).pipe(Z((function(t){return{parentMVEvent:e,chMVCEvent:t,pathIndex:n}})))})))).pipe(qv({parentMVEvent:e,chMVCEvent:null,pathIndex:null}))})),xk(1),Z((function(e){var t,n=e.parentMVEvent,i=e.chMVCEvent,o=e.pathIndex;return i?(t={newArr:n.newArr.map((function(e){return e.getArray().map((function(e){return e.toJSON()}))})),pathIndex:o,eventName:i.evName,index:i.index},i.previous&&(t.previous=i.previous)):(t={newArr:n.newArr.map((function(e){return e.getArray().map((function(e){return e.toJSON()}))})),eventName:n.evName,index:n.index},n.previous&&(t.previous=n.previous.getArray())),t}))));case 4:case"end":return t.stop()}}),t,this)})))}}])}()).\u0275fac=function(e){return new(e||tC)(ut(Hk),ut(gu))},tC.\u0275prov=Se({token:tC,factory:tC.\u0275fac}),tC),fC=((oC=nC=function(){return d((function e(t,n){c(this,e),this._mapsWrapper=t,this._zone=n,this._polylines=new Map}),[{key:"addPolyline",value:function(e){var t=this,n=this._mapsWrapper.getNativeMap().then((function(){return[nC._convertPoints(e),nC._convertIcons(e)]})).then((function(n){var o=i(n,2),a=o[0],r=o[1];return t._mapsWrapper.createPolyline({clickable:e.clickable,draggable:e.draggable,editable:e.editable,geodesic:e.geodesic,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex,path:a,icons:r})}));this._polylines.set(e,n)}},{key:"updatePolylinePoints",value:function(e){var t=this,n=nC._convertPoints(e),i=this._polylines.get(e);return null==i?Promise.resolve():i.then((function(e){return t._zone.run((function(){e.setPath(n)}))}))}},{key:"updateIconSequences",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){var n,i,o=this;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._mapsWrapper.getNativeMap();case 2:if(n=nC._convertIcons(e),null==(i=this._polylines.get(e))){t.next=5;break}return t.abrupt("return",i.then((function(e){return o._zone.run((function(){return e.setOptions({icons:n})}))})));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"setPolylineOptions",value:function(e,t){return this._polylines.get(e).then((function(e){e.setOptions(t)}))}},{key:"deletePolyline",value:function(e){var t=this,n=this._polylines.get(e);return null==n?Promise.resolve():n.then((function(n){return t._zone.run((function(){n.setMap(null),t._polylines.delete(e)}))}))}},{key:"getMVCPath",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._polylines.get(e);case 2:return t.abrupt("return",t.sent.getPath());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getPath",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getMVCPath(e);case 2:return t.abrupt("return",t.sent.getArray());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"createEventObservable",value:function(e,t){var n=this;return new E((function(i){n._polylines.get(t).then((function(t){t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))}))}))}},{key:"createPathEventObservable",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=eC,t.next=3,this.getMVCPath(e);case 3:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"_convertPoints",value:function(e){return e._getPoints().map((function(e){return{lat:e.latitude,lng:e.longitude}}))}},{key:"_convertPath",value:function(e){var t=google.maps.SymbolPath[e];return"number"==typeof t?t:e}},{key:"_convertIcons",value:function(e){var t=e._getIcons().map((function(e){return{fixedRotation:e.fixedRotation,offset:e.offset,repeat:e.repeat,icon:{anchor:new google.maps.Point(e.anchorX,e.anchorY),fillColor:e.fillColor,fillOpacity:e.fillOpacity,path:nC._convertPath(e.path),rotation:e.rotation,scale:e.scale,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokeWeight:e.strokeWeight}}}));return t.forEach((function(e){Object.entries(e).forEach((function(t){var n=i(t,2),o=n[0];void 0===n[1]&&delete e[o]})),void 0!==e.icon.anchor.x&&void 0!==e.icon.anchor.y||delete e.icon.anchor})),t}}])}()).\u0275fac=function(e){return new(e||oC)(ut(Hk),ut(gu))},oC.\u0275prov=Se({token:oC,factory:oC.\u0275fac}),oC),mC=((iC=function(){return d((function e(t,n){c(this,e),this._apiWrapper=t,this._zone=n,this._rectangles=new Map}),[{key:"addRectangle",value:function(e){this._rectangles.set(e,this._apiWrapper.createRectangle({bounds:{north:e.north,east:e.east,south:e.south,west:e.west},clickable:e.clickable,draggable:e.draggable,editable:e.editable,fillColor:e.fillColor,fillOpacity:e.fillOpacity,strokeColor:e.strokeColor,strokeOpacity:e.strokeOpacity,strokePosition:e.strokePosition,strokeWeight:e.strokeWeight,visible:e.visible,zIndex:e.zIndex}))}},{key:"removeRectangle",value:function(e){var t=this;return this._rectangles.get(e).then((function(n){n.setMap(null),t._rectangles.delete(e)}))}},{key:"setOptions",value:function(e,t){return this._rectangles.get(e).then((function(e){return e.setOptions(t)}))}},{key:"getBounds",value:function(e){return this._rectangles.get(e).then((function(e){return e.getBounds()}))}},{key:"setBounds",value:function(e){return this._rectangles.get(e).then((function(t){return t.setBounds({north:e.north,east:e.east,south:e.south,west:e.west})}))}},{key:"setEditable",value:function(e){return this._rectangles.get(e).then((function(t){return t.setEditable(e.editable)}))}},{key:"setDraggable",value:function(e){return this._rectangles.get(e).then((function(t){return t.setDraggable(e.draggable)}))}},{key:"setVisible",value:function(e){return this._rectangles.get(e).then((function(t){return t.setVisible(e.visible)}))}},{key:"createEventObservable",value:function(e,t){var n=this;return E.create((function(i){var o=null;return n._rectangles.get(t).then((function(t){o=t.addListener(e,(function(e){return n._zone.run((function(){return i.next(e)}))}))})),function(){null!==o&&o.remove()}}))}}])}()).\u0275fac=function(e){return new(e||iC)(ut(Hk),ut(gu))},iC.\u0275prov=Se({token:iC,factory:iC.\u0275fac}),iC),pC=((rC=aC=function(){return d((function e(t,n,i,o,a){c(this,e),this._elem=t,this._mapsWrapper=n,this._platformId=i,this._fitBoundsService=o,this._zone=a,this.longitude=0,this.latitude=0,this.zoom=8,this.draggable=!0,this.disableDoubleClickZoom=!1,this.disableDefaultUI=!1,this.scrollwheel=!0,this.keyboardShortcuts=!0,this.styles=[],this.usePanning=!1,this.fitBounds=!1,this.scaleControl=!1,this.mapTypeControl=!1,this.panControl=!1,this.rotateControl=!1,this.fullscreenControl=!1,this.mapTypeId="roadmap",this.clickableIcons=!0,this.showDefaultInfoWindow=!0,this.gestureHandling="auto",this.tilt=0,this._observableSubscriptions=[],this.mapClick=new Mc,this.mapRightClick=new Mc,this.mapDblClick=new Mc,this.centerChange=new Mc,this.boundsChange=new Mc,this.mapTypeIdChange=new Mc,this.idle=new Mc,this.zoomChange=new Mc,this.mapReady=new Mc,this.tilesLoaded=new Mc}),[{key:"ngOnInit",value:function(){if("server"!==this._platformId){var e=this._elem.nativeElement.querySelector(".agm-map-container-inner");this._initMapInstance(e)}}},{key:"_initMapInstance",value:function(e){var t=this;this._mapsWrapper.createMap(e,{center:{lat:this.latitude||0,lng:this.longitude||0},zoom:this.zoom,minZoom:this.minZoom,maxZoom:this.maxZoom,controlSize:this.controlSize,disableDefaultUI:this.disableDefaultUI,disableDoubleClickZoom:this.disableDoubleClickZoom,scrollwheel:this.scrollwheel,backgroundColor:this.backgroundColor,draggable:this.draggable,draggableCursor:this.draggableCursor,draggingCursor:this.draggingCursor,keyboardShortcuts:this.keyboardShortcuts,styles:this.styles,zoomControl:this.zoomControl,zoomControlOptions:this.zoomControlOptions,streetViewControl:this.streetViewControl,streetViewControlOptions:this.streetViewControlOptions,scaleControl:this.scaleControl,scaleControlOptions:this.scaleControlOptions,mapTypeControl:this.mapTypeControl,mapTypeControlOptions:this.mapTypeControlOptions,panControl:this.panControl,panControlOptions:this.panControlOptions,rotateControl:this.rotateControl,rotateControlOptions:this.rotateControlOptions,fullscreenControl:this.fullscreenControl,fullscreenControlOptions:this.fullscreenControlOptions,mapTypeId:this.mapTypeId,clickableIcons:this.clickableIcons,gestureHandling:this.gestureHandling,tilt:this.tilt,restriction:this.restriction}).then((function(){return t._mapsWrapper.getNativeMap()})).then((function(e){return t.mapReady.emit(e)})),this._handleMapCenterChange(),this._handleMapZoomChange(),this._handleMapMouseEvents(),this._handleBoundsChange(),this._handleMapTypeIdChange(),this._handleTilesLoadedEvent(),this._handleIdleEvent()}},{key:"ngOnDestroy",value:function(){this._observableSubscriptions.forEach((function(e){return e.unsubscribe()})),this._mapsWrapper.clearInstanceListeners(),this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe()}},{key:"ngOnChanges",value:function(e){this._updateMapOptionsChanges(e),this._updatePosition(e)}},{key:"_updateMapOptionsChanges",value:function(e){var t={};Object.keys(e).filter((function(e){return-1!==aC._mapOptionsAttributes.indexOf(e)})).forEach((function(n){t[n]=e[n].currentValue})),this._mapsWrapper.setMapOptions(t)}},{key:"triggerResize",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(n){setTimeout((function(){return e._mapsWrapper.triggerMapEvent("resize").then((function(){t&&(null!=e.fitBounds?e._fitBounds():e._setCenter()),n()}))}))}))}},{key:"_updatePosition",value:function(e){(null!=e.latitude||null!=e.longitude||e.fitBounds)&&("fitBounds"in e?this._fitBounds():"number"==typeof this.latitude&&"number"==typeof this.longitude&&this._setCenter())}},{key:"_setCenter",value:function(){var e={lat:this.latitude,lng:this.longitude};this.usePanning?this._mapsWrapper.panTo(e):this._mapsWrapper.setCenter(e)}},{key:"_fitBounds",value:function(){switch(this.fitBounds){case!0:this._subscribeToFitBoundsUpdates();break;case!1:this._fitBoundsSubscription&&this._fitBoundsSubscription.unsubscribe();break;default:this._updateBounds(this.fitBounds,this.fitBoundsPadding)}}},{key:"_subscribeToFitBoundsUpdates",value:function(){var e=this;this._zone.runOutsideAngular((function(){e._fitBoundsSubscription=e._fitBoundsService.getBounds$().subscribe((function(t){e._zone.run((function(){return e._updateBounds(t,e.fitBoundsPadding)}))}))}))}},{key:"_updateBounds",value:function(e,t){if(e){if(this._isLatLngBoundsLiteral(e)&&"undefined"!=typeof google&&google&&google.maps&&google.maps.LatLngBounds){var n=new google.maps.LatLngBounds;n.union(e),e=n}this.usePanning?this._mapsWrapper.panToBounds(e,t):this._mapsWrapper.fitBounds(e,t)}}},{key:"_isLatLngBoundsLiteral",value:function(e){return null!=e&&void 0===e.extend}},{key:"_handleMapCenterChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("center_changed").subscribe((function(){e._mapsWrapper.getCenter().then((function(t){e.latitude=t.lat(),e.longitude=t.lng(),e.centerChange.emit({lat:e.latitude,lng:e.longitude})}))}));this._observableSubscriptions.push(t)}},{key:"_handleBoundsChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("bounds_changed").subscribe((function(){e._mapsWrapper.getBounds().then((function(t){e.boundsChange.emit(t)}))}));this._observableSubscriptions.push(t)}},{key:"_handleMapTypeIdChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("maptypeid_changed").subscribe((function(){e._mapsWrapper.getMapTypeId().then((function(t){e.mapTypeIdChange.emit(t)}))}));this._observableSubscriptions.push(t)}},{key:"_handleMapZoomChange",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("zoom_changed").subscribe((function(){e._mapsWrapper.getZoom().then((function(t){e.zoom=t,e.zoomChange.emit(t)}))}));this._observableSubscriptions.push(t)}},{key:"_handleIdleEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("idle").subscribe((function(){e.idle.emit(void 0)}));this._observableSubscriptions.push(t)}},{key:"_handleTilesLoadedEvent",value:function(){var e=this,t=this._mapsWrapper.subscribeToMapEvent("tilesloaded").subscribe((function(){return e.tilesLoaded.emit(void 0)}));this._observableSubscriptions.push(t)}},{key:"_handleMapMouseEvents",value:function(){var e=this;[{name:"click",emitter:this.mapClick},{name:"rightclick",emitter:this.mapRightClick},{name:"dblclick",emitter:this.mapDblClick}].forEach((function(t){var n=e._mapsWrapper.subscribeToMapEvent(t.name).subscribe((function(n){var i={coords:{lat:n.latLng.lat(),lng:n.latLng.lng()},placeId:n.placeId};i.placeId&&!e.showDefaultInfoWindow&&n.stop(),t.emitter.emit(i)}));e._observableSubscriptions.push(n)}))}}])}()).\u0275fac=function(e){return new(e||rC)($r(Ml),$r(Hk),$r(eu),$r(Gk),$r(gu))},rC.\u0275cmp=Ot({type:rC,selectors:[["agm-map"]],hostVars:2,hostBindings:function(e,t){2&e&&Fs("sebm-google-map-container",!0)},inputs:{longitude:"longitude",latitude:"latitude",zoom:"zoom",draggable:["mapDraggable","draggable"],disableDoubleClickZoom:"disableDoubleClickZoom",disableDefaultUI:"disableDefaultUI",scrollwheel:"scrollwheel",keyboardShortcuts:"keyboardShortcuts",styles:"styles",usePanning:"usePanning",fitBounds:"fitBounds",scaleControl:"scaleControl",mapTypeControl:"mapTypeControl",panControl:"panControl",rotateControl:"rotateControl",fullscreenControl:"fullscreenControl",mapTypeId:"mapTypeId",clickableIcons:"clickableIcons",showDefaultInfoWindow:"showDefaultInfoWindow",gestureHandling:"gestureHandling",tilt:"tilt",minZoom:"minZoom",maxZoom:"maxZoom",controlSize:"controlSize",backgroundColor:"backgroundColor",draggableCursor:"draggableCursor",draggingCursor:"draggingCursor",zoomControl:"zoomControl",zoomControlOptions:"zoomControlOptions",streetViewControl:"streetViewControl",streetViewControlOptions:"streetViewControlOptions",fitBoundsPadding:"fitBoundsPadding",scaleControlOptions:"scaleControlOptions",mapTypeControlOptions:"mapTypeControlOptions",panControlOptions:"panControlOptions",rotateControlOptions:"rotateControlOptions",fullscreenControlOptions:"fullscreenControlOptions",restriction:"restriction"},outputs:{mapClick:"mapClick",mapRightClick:"mapRightClick",mapDblClick:"mapDblClick",centerChange:"centerChange",boundsChange:"boundsChange",mapTypeIdChange:"mapTypeIdChange",idle:"idle",zoomChange:"zoomChange",mapReady:"mapReady",tilesLoaded:"tilesLoaded"},features:[kl([qk,Wk,Wk,Gk,Hk,Qk,Xk,Yk,$k,hC,fC,mC]),dl],ngContentSelectors:zk,decls:3,vars:0,consts:[[1,"agm-map-container-inner","sebm-google-map-container-inner"],[1,"agm-map-content"]],template:function(e,t){1&e&&(ps(),ns(0,"div",0),es(1,"div",1),gs(2),ts())},styles:[".agm-map-container-inner[_ngcontent-%COMP%] {\n      width: inherit;\n      height: inherit;\n    }\n    .agm-map-content[_ngcontent-%COMP%] {\n      display:none;\n    }"]}),rC._mapOptionsAttributes=["disableDoubleClickZoom","scrollwheel","draggable","draggableCursor","draggingCursor","keyboardShortcuts","zoomControl","zoomControlOptions","styles","streetViewControl","streetViewControlOptions","zoom","mapTypeControl","mapTypeControlOptions","minZoom","maxZoom","panControl","panControlOptions","rotateControl","rotateControlOptions","fullscreenControl","fullscreenControlOptions","scaleControl","scaleControlOptions","mapTypeId","clickableIcons","gestureHandling","tilt","restriction"],rC),gC=0,vC=((lC=sC=function(){return d((function e(t){c(this,e),this._markerManager=t,this.draggable=!1,this.visible=!0,this.openInfoWindow=!0,this.opacity=1,this.zIndex=1,this.clickable=!0,this.animationChange=new Mc,this.markerClick=new Mc,this.markerDblClick=new Mc,this.markerRightClick=new Mc,this.dragStart=new Mc,this.drag=new Mc,this.dragEnd=new Mc,this.mouseOver=new Mc,this.mouseOut=new Mc,this.infoWindow=new Pc,this._markerAddedToManger=!1,this._observableSubscriptions=[],this._fitBoundsDetails$=new fk(1),this._id=(gC++).toString()}),[{key:"ngAfterContentInit",value:function(){var e=this;this.handleInfoWindowUpdate(),this.infoWindow.changes.subscribe((function(){return e.handleInfoWindowUpdate()}))}},{key:"handleInfoWindowUpdate",value:function(){var e=this;if(this.infoWindow.length>1)throw new Error("Expected no more than one info window.");this.infoWindow.forEach((function(t){t.hostMarker=e}))}},{key:"ngOnChanges",value:function(e){if("string"==typeof this.latitude&&(this.latitude=Number(this.latitude)),"string"==typeof this.longitude&&(this.longitude=Number(this.longitude)),"number"==typeof this.latitude&&"number"==typeof this.longitude){if(!this._markerAddedToManger)return this._markerManager.addMarker(this),this._updateFitBoundsDetails(),this._markerAddedToManger=!0,void this._addEventListeners();(e.latitude||e.longitude)&&(this._markerManager.updateMarkerPosition(this),this._updateFitBoundsDetails()),e.title&&this._markerManager.updateTitle(this),e.label&&this._markerManager.updateLabel(this),e.draggable&&this._markerManager.updateDraggable(this),e.iconUrl&&this._markerManager.updateIcon(this),e.opacity&&this._markerManager.updateOpacity(this),e.visible&&this._markerManager.updateVisible(this),e.zIndex&&this._markerManager.updateZIndex(this),e.clickable&&this._markerManager.updateClickable(this),e.animation&&this._markerManager.updateAnimation(this)}}},{key:"getFitBoundsDetails$",value:function(){return this._fitBoundsDetails$.asObservable()}},{key:"_updateFitBoundsDetails",value:function(){this._fitBoundsDetails$.next({latLng:{lat:this.latitude,lng:this.longitude}})}},{key:"_addEventListeners",value:function(){var e=this,t=this._markerManager.createEventObservable("click",this).subscribe((function(){e.openInfoWindow&&e.infoWindow.forEach((function(e){return e.open()})),e.markerClick.emit(e)}));this._observableSubscriptions.push(t);var n=this._markerManager.createEventObservable("dblclick",this).subscribe((function(){e.markerDblClick.emit(null)}));this._observableSubscriptions.push(n);var i=this._markerManager.createEventObservable("rightclick",this).subscribe((function(){e.markerRightClick.emit(null)}));this._observableSubscriptions.push(i);var o=this._markerManager.createEventObservable("dragstart",this).subscribe((function(t){e.dragStart.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(o);var a=this._markerManager.createEventObservable("drag",this).subscribe((function(t){e.drag.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(a);var r=this._markerManager.createEventObservable("dragend",this).subscribe((function(t){e.dragEnd.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(r);var s=this._markerManager.createEventObservable("mouseover",this).subscribe((function(t){e.mouseOver.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(s);var l=this._markerManager.createEventObservable("mouseout",this).subscribe((function(t){e.mouseOut.emit({coords:{lat:t.latLng.lat(),lng:t.latLng.lng()}})}));this._observableSubscriptions.push(l);var c=this._markerManager.createEventObservable("animation_changed",this).subscribe((function(){e.animationChange.emit(e.animation)}));this._observableSubscriptions.push(c)}},{key:"id",value:function(){return this._id}},{key:"toString",value:function(){return"AgmMarker-"+this._id.toString()}},{key:"ngOnDestroy",value:function(){this._markerManager.deleteMarker(this),this._observableSubscriptions.forEach((function(e){return e.unsubscribe()}))}}])}()).\u0275fac=function(e){return new(e||lC)($r($k))},lC.\u0275dir=Et({type:lC,selectors:[["agm-marker"]],contentQueries:function(e,t,n){var i;1&e&&zc(n,Zk,!1),2&e&&Bc(i=Yc())&&(t.infoWindow=i)},inputs:{latitude:"latitude",longitude:"longitude",title:"title",label:"label",draggable:["markerDraggable","draggable"],iconUrl:"iconUrl",openInfoWindow:"openInfoWindow",opacity:"opacity",visible:"visible",zIndex:"zIndex",animation:"animation",clickable:["markerClickable","clickable"]},outputs:{markerClick:"markerClick",dragStart:"dragStart",drag:"drag",dragEnd:"dragEnd",mouseOver:"mouseOver",mouseOut:"mouseOut",animationChange:"animationChange",markerDblClick:"markerDblClick",markerRightClick:"markerRightClick"},features:[kl([{provide:Jk,useExisting:je((function(){return sC}))}]),dl]}),lC),yC=function(){return d((function e(){c(this,e)}),[{key:"getNativeWindow",value:function(){return window}}])}(),bC=function(){return d((function e(){c(this,e)}),[{key:"getNativeDocument",value:function(){return document}}])}(),_C=[yC,bC],kC=function(e){return e[e.HTTP=1]="HTTP",e[e.HTTPS=2]="HTTPS",e[e.AUTO=3]="AUTO",e}({}),CC=new tt("angular-google-maps LAZY_MAPS_API_CONFIG"),wC=((cC=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;return c(this,t),(e=f(this,t)).localeId=a,e._SCRIPT_ID="agmGoogleMapsApiScript",e.callbackName="agmLazyMapsAPILoader",e._config=n||{},e._windowRef=i,e._documentRef=o,e}return p(t,e),d(t,[{key:"load",value:function(){var e=this._windowRef.getNativeWindow();if(e.google&&e.google.maps)return Promise.resolve();if(this._scriptLoadingPromise)return this._scriptLoadingPromise;var t=this._documentRef.getNativeDocument().getElementById(this._SCRIPT_ID);if(t)return this._assignScriptLoadingPromise(t),this._scriptLoadingPromise;var n=this._documentRef.getNativeDocument().createElement("script");return n.type="text/javascript",n.async=!0,n.defer=!0,n.id=this._SCRIPT_ID,n.src=this._getScriptSrc(this.callbackName),this._assignScriptLoadingPromise(n),this._documentRef.getNativeDocument().body.appendChild(n),this._scriptLoadingPromise}},{key:"_assignScriptLoadingPromise",value:function(e){var t=this;this._scriptLoadingPromise=new Promise((function(n,i){t._windowRef.getNativeWindow()[t.callbackName]=function(){n()},e.onerror=function(e){i(e)}}))}},{key:"_getScriptSrc",value:function(e){var t;switch(this._config&&this._config.protocol||kC.HTTPS){case kC.AUTO:t="";break;case kC.HTTP:t="http:";break;case kC.HTTPS:t="https:"}var n={v:this._config.apiVersion||"quarterly",callback:e,key:this._config.apiKey,client:this._config.clientId,channel:this._config.channel,libraries:this._config.libraries,region:this._config.region,language:this._config.language||"en-US"!==this.localeId?this.localeId:null};return"".concat(t,"//").concat(this._config.hostAndPath||"maps.googleapis.com/maps/api/js","?").concat(Object.keys(n).filter((function(e){return null!=n[e]})).filter((function(e){return!Array.isArray(n[e])||Array.isArray(n[e])&&n[e].length>0})).map((function(e){var t=n[e];return Array.isArray(t)?{key:e,value:t.join(",")}:{key:e,value:n[e]}})).map((function(e){return"".concat(e.key,"=").concat(e.value)})).join("&"))}}])}(Vk)).\u0275fac=function(e){return new(e||cC)(ut(CC,8),ut(yC),ut(bC),ut(iu))},cC.\u0275prov=Se({token:cC,factory:cC.\u0275fac}),cC),xC=((dC=uC=function(){return d((function e(){c(this,e)}),null,[{key:"forRoot",value:function(e){return{ngModule:uC,providers:[].concat(_C,[{provide:Vk,useClass:wC},{provide:CC,useValue:e}])}}}])}()).\u0275mod=Ft({type:dC}),dC.\u0275inj=Pe({factory:function(e){return new(e||dC)}}),dC),MC=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}(),SC={};function PC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=null,o=null;return Y(t[t.length-1])&&(o=t.pop()),"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&k(t[0])&&(t=t[0]),se(t,o).lift(new TC(i))}var TC=function(){return d((function e(t){c(this,e),this.resultSelector=t}),[{key:"call",value:function(e,t){return t.subscribe(new OC(e,this.resultSelector))}}])}(),OC=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return p(t,e),d(t,[{key:"_next",value:function(e){this.values.push(SC),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(Q(this,i,i,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n,i,o){var a=this.values,r=this.toRespond?a[n]===SC?--this.toRespond:this.toRespond:0;a[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(a):this.destination.next(a.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)}}])}(K);function LC(e){return new E((function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?ne(n):Ag()).subscribe(t)}))}function DC(e){return function(t){return 0===e?Ag():t.lift(new IC(e))}}var IC=function(){return d((function e(t){if(c(this,e),this.total=t,this.total<0)throw new Ig}),[{key:"call",value:function(e,t){return t.subscribe(new FC(e,this.total))}}])}(),FC=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).total=n,i.ring=new Array,i.count=0,i}return p(t,e),d(t,[{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,o=0;o<n;o++){var a=t++%n;e.next(i[a])}e.complete()}}])}(T);function AC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:NC;return function(t){return t.lift(new EC(e))}}var EC=function(){return d((function e(t){c(this,e),this.errorFactory=t}),[{key:"call",value:function(e,t){return t.subscribe(new BC(e,this.errorFactory))}}])}(),BC=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).errorFactory=n,i.hasValue=!1,i}return p(t,e),d(t,[{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)}}])}(T);function NC(){return new MC}function RC(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new jC(e))}}var jC=function(){return d((function e(t){c(this,e),this.defaultValue=t}),[{key:"call",value:function(e,t){return t.subscribe(new zC(e,this.defaultValue))}}])}(),zC=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).defaultValue=n,i.isEmpty=!0,i}return p(t,e),d(t,[{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()}}])}(T);function VC(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Tp((function(t,n){return e(t,n,i)})):D,DC(1),n?RC(t):AC((function(){return new MC})))}}function HC(e){return function(t){var n=new YC(e),i=t.lift(n);return n.caught=i}}var YC=function(){return d((function e(t){c(this,e),this.selector=t}),[{key:"call",value:function(e,t){return t.subscribe(new qC(e,this.selector,this.caught))}}])}(),qC=function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n,[e])).selector=t,o.caught=i,o}return p(n,e),d(n,[{key:"error",value:function(e){if(!this.isStopped){var i;try{i=this.selector(e,this.caught)}catch(r){return void t(_(n.prototype),"error",this).call(this,r)}this._unsubscribeAndRecycle();var o=new q(this,void 0,void 0);this.add(o);var a=Q(this,i,void 0,void 0,o);a!==o&&this.add(a)}}}])}(K);function UC(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Tp((function(t,n){return e(t,n,i)})):D,Eg(1),n?RC(t):AC((function(){return new MC})))}}var WC=function(){return d((function e(t,n,i){c(this,e),this.predicate=t,this.thisArg=n,this.source=i}),[{key:"call",value:function(e,t){return t.subscribe(new JC(e,this.predicate,this.thisArg,this.source))}}])}(),JC=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e])).predicate=n,a.thisArg=i,a.source=o,a.index=0,a.thisArg=i||m(a),a}return p(t,e),d(t,[{key:"notifyComplete",value:function(e){this.destination.next(e),this.destination.complete()}},{key:"_next",value:function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(n){return void this.destination.error(n)}t||this.notifyComplete(!1)}},{key:"_complete",value:function(){this.notifyComplete(!0)}}])}(T);function GC(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new $C(e,t,n))}}var $C=function(){return d((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];c(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}),[{key:"call",value:function(e,t){return t.subscribe(new QC(e,this.accumulator,this.seed,this.hasSeed))}}])}(),QC=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e])).accumulator=n,a._seed=i,a.hasSeed=o,a.index=0,a}return p(t,e),d(t,[{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)}}])}(T);function KC(e){return function(t){return t.lift(new XC(e))}}var ZC,XC=function(){return d((function e(t){c(this,e),this.callback=t}),[{key:"call",value:function(e,t){return t.subscribe(new ew(e,this.callback))}}])}(),ew=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).add(new M(n)),i}return p(t,e),d(t)}(T),tw=d((function e(t,n){c(this,e),this.id=t,this.url=n})),nw=function(e){function t(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return c(this,t),(i=f(this,t,[e,n])).navigationTrigger=o,i.restoredState=a,i}return p(t,e),d(t,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(tw),iw=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[e,n])).urlAfterRedirects=i,o}return p(t,e),d(t,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}])}(tw),ow=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[e,n])).reason=i,o}return p(t,e),d(t,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}])}(tw),aw=function(e){function t(e,n,i){var o;return c(this,t),(o=f(this,t,[e,n])).error=i,o}return p(t,e),d(t,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}])}(tw),rw=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n])).urlAfterRedirects=i,a.state=o,a}return p(t,e),d(t,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(tw),sw=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n])).urlAfterRedirects=i,a.state=o,a}return p(t,e),d(t,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(tw),lw=function(e){function t(e,n,i,o,a){var r;return c(this,t),(r=f(this,t,[e,n])).urlAfterRedirects=i,r.state=o,r.shouldActivate=a,r}return p(t,e),d(t,[{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,")")}}])}(tw),cw=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n])).urlAfterRedirects=i,a.state=o,a}return p(t,e),d(t,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(tw),uw=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t,[e,n])).urlAfterRedirects=i,a.state=o,a}return p(t,e),d(t,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}])}(tw),dw=function(){return d((function e(t){c(this,e),this.route=t}),[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}])}(),hw=function(){return d((function e(t){c(this,e),this.route=t}),[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}])}(),fw=function(){return d((function e(t){c(this,e),this.snapshot=t}),[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),mw=function(){return d((function e(t){c(this,e),this.snapshot=t}),[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),pw=function(){return d((function e(t){c(this,e),this.snapshot=t}),[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),gw=function(){return d((function e(t){c(this,e),this.snapshot=t}),[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}])}(),vw=function(){return d((function e(t,n,i){c(this,e),this.routerEvent=t,this.position=n,this.anchor=i}),[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}])}(),yw=((ZC=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||ZC)},ZC.\u0275cmp=Ot({type:ZC,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&ns(0,"router-outlet")},directives:function(){return[PM]},encapsulation:2}),ZC),bw=function(){return d((function e(t){c(this,e),this.params=t||{}}),[{key:"has",value:function(e){return this.params.hasOwnProperty(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)}}])}();function _w(e){return new bw(e)}function kw(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function Cw(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 o={},a=0;a<i.length;a++){var r=i[a],s=e[a];if(r.startsWith(":"))o[r.substring(1)]=s;else if(r!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:o}}var ww=d((function e(t,n){c(this,e),this.routes=t,this.module=n}));function xw(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];Mw(i,Sw(t,i))}}function Mw(e,t){if(!e)throw new Error("\n      Invalid configuration of route '".concat(t,"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    "));if(Array.isArray(e))throw new Error("Invalid configuration of route '".concat(t,"': Array cannot be specified"));if(!e.component&&!e.children&&!e.loadChildren&&e.outlet&&"primary"!==e.outlet)throw new Error("Invalid configuration of route '".concat(t,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and children cannot be used together"));if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and loadChildren cannot be used together"));if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"': children and loadChildren cannot be used together"));if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '".concat(t,"': redirectTo and component cannot be used together"));if(e.path&&e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': path and matcher cannot be used together"));if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '".concat(t,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '".concat(t,"': routes must have either a path or a matcher specified"));if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '".concat(t,"': path cannot start with a slash"));if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(t,'", redirectTo: "').concat(e.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '".concat(t,"': pathMatch can only be set to 'prefix' or 'full'"));e.children&&xw(e.children,t)}function Sw(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function Pw(e){var t=e.children&&e.children.map(Pw),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=yw),n}function Tw(e,t){var n,i=Object.keys(e),o=Object.keys(t);if(!i||!o||i.length!=o.length)return!1;for(var a=0;a<i.length;a++)if(!Ow(e[n=i[a]],t[n]))return!1;return!0}function Ow(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length==t.length&&e.every((function(e){return t.indexOf(e)>-1})):e===t}function Lw(e){return Array.prototype.concat.apply([],e)}function Dw(e){return e.length>0?e[e.length-1]:null}function Iw(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Fw(e){return ss(e)?e:rs(e)?ne(Promise.resolve(e)):Sp(e)}function Aw(e,t,n){return n?function(e,t){return Tw(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!Rw(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!t.children[i])return!1;if(!e(t.children[i],n.children[i]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every((function(n){return Ow(e[n],t[n])}))}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,i,o){if(n.segments.length>o.length)return!!Rw(n.segments.slice(0,o.length),o)&&!i.hasChildren();if(n.segments.length===o.length){if(!Rw(n.segments,o))return!1;for(var a in i.children){if(!n.children[a])return!1;if(!e(n.children[a],i.children[a]))return!1}return!0}var r=o.slice(0,n.segments.length),s=o.slice(n.segments.length);return!!Rw(n.segments,r)&&!!n.children.primary&&t(n.children.primary,i,s)}(t,n,n.segments)}(e.root,t.root)}var Ew=function(){return d((function e(t,n,i){c(this,e),this.root=t,this.queryParams=n,this.fragment=i}),[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_w(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Hw.serialize(this)}}])}(),Bw=function(){return d((function e(t,n){var i=this;c(this,e),this.segments=t,this.children=n,this.parent=null,Iw(n,(function(e,t){return e.parent=i}))}),[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Yw(this)}}])}(),Nw=function(){return d((function e(t,n){c(this,e),this.path=t,this.parameters=n}),[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=_w(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return $w(this)}}])}();function Rw(e,t){return e.length===t.length&&e.every((function(e,n){return e.path===t[n].path}))}function jw(e,t){var n=[];return Iw(e.children,(function(e,i){"primary"===i&&(n=n.concat(t(e,i)))})),Iw(e.children,(function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))})),n}var zw=d((function e(){c(this,e)})),Vw=function(){return d((function e(){c(this,e)}),[{key:"parse",value:function(e){var t=new ex(e);return new Ew(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){return"".concat("/"+function e(t,n){if(!t.hasChildren())return Yw(t);if(n){var i=t.children.primary?e(t.children.primary,!1):"",o=[];return Iw(t.children,(function(t,n){"primary"!==n&&o.push("".concat(n,":").concat(e(t,!1)))})),o.length>0?"".concat(i,"(").concat(o.join("//"),")"):i}var a=jw(t,(function(n,i){return"primary"===i?[e(t.children.primary,!1)]:["".concat(i,":").concat(e(n,!1))]}));return"".concat(Yw(t),"/(").concat(a.join("//"),")")}(e.root,!0)).concat((t=e.queryParams,n=Object.keys(t).map((function(e){var n=t[e];return Array.isArray(n)?n.map((function(t){return"".concat(Uw(e),"=").concat(Uw(t))})).join("&"):"".concat(Uw(e),"=").concat(Uw(n))})),n.length?"?"+n.join("&"):"")).concat("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"");var t,n}}])}(),Hw=new Vw;function Yw(e){return e.segments.map((function(e){return $w(e)})).join("/")}function qw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Uw(e){return qw(e).replace(/%3B/gi,";")}function Ww(e){return qw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Jw(e){return decodeURIComponent(e)}function Gw(e){return Jw(e.replace(/\+/g,"%20"))}function $w(e){return"".concat(Ww(e.path)).concat((t=e.parameters,Object.keys(t).map((function(e){return";".concat(Ww(e),"=").concat(Ww(t[e]))})).join("")));var t}var Qw=/^[^\/()?;=#]+/;function Kw(e){var t=e.match(Qw);return t?t[0]:""}var Zw=/^[^=?&#]+/,Xw=/^[^?&#]+/,ex=function(){return d((function e(t){c(this,e),this.url=t,this.remaining=t}),[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Bw([],{}):new Bw([],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("#")?decodeURIComponent(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 Bw(e,t)),n}},{key:"parseSegment",value:function(){var e=Kw(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Nw(Jw(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Kw(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Kw(this.remaining);i&&(n=i,this.capture(n))}e[Jw(t)]=Jw(n)}}},{key:"parseQueryParam",value:function(e){var t,n,i=(t=this.remaining,(n=t.match(Zw))?n[0]:"");if(i){this.capture(i);var o="";if(this.consumeOptional("=")){var a=function(e){var t=e.match(Xw);return t?t[0]:""}(this.remaining);a&&(o=a,this.capture(o))}var r=Gw(i),s=Gw(o);if(e.hasOwnProperty(r)){var l=e[r];Array.isArray(l)||(l=[l],e[r]=l),l.push(s)}else e[r]=s}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Kw(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o="primary");var a=this.parseChildren();t[o]=1===Object.keys(a).length?a.primary:new Bw([],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,'".'))}}])}(),tx=function(){return d((function e(t){c(this,e),this._root=t}),[{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=nx(e,this._root);return t?t.children.map((function(e){return e.value})):[]}},{key:"firstChild",value:function(e){var t=nx(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=ix(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 ix(e,this._root).map((function(e){return e.value}))}}])}();function nx(e,t){if(e===t.value)return t;var n,i=o(t.children);try{for(i.s();!(n=i.n()).done;){var a=nx(e,n.value);if(a)return a}}catch(r){i.e(r)}finally{i.f()}return null}function ix(e,t){if(e===t.value)return[t];var n,i=o(t.children);try{for(i.s();!(n=i.n()).done;){var a=ix(e,n.value);if(a.length)return a.unshift(t),a}}catch(r){i.e(r)}finally{i.f()}return[]}var ox=function(){return d((function e(t,n){c(this,e),this.value=t,this.children=n}),[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}])}();function ax(e){var t={};return e&&e.children.forEach((function(e){return t[e.value.outlet]=e})),t}var rx=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).snapshot=n,hx(m(i),e),i}return p(t,e),d(t,[{key:"toString",value:function(){return this.snapshot.toString()}}])}(tx);function sx(e,t){var n=function(e,t){var n=new ux([],{},{},"",{},"primary",t,null,e.root,-1,{});return new dx("",new ox(n,[]))}(e,t),i=new tk([new Nw("",{})]),o=new tk({}),a=new tk({}),r=new tk({}),s=new tk(""),l=new lx(i,o,r,s,a,"primary",t,n.root);return l.snapshot=n.root,new rx(new ox(l,[]),n)}var lx=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=r,this.component=s,this._futureSnapshot=l}),[{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(Z((function(e){return _w(e)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Z((function(e){return _w(e)})))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}])}();function cx(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 o=n[i],a=n[i-1];if(o.routeConfig&&""===o.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 ux=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h){c(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=o,this.data=a,this.outlet=r,this.component=s,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=d,this._resolve=h}),[{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=_w(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=_w(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:"","')")}}])}(),dx=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[n])).url=e,hx(m(i),n),i}return p(t,e),d(t,[{key:"toString",value:function(){return fx(this._root)}}])}(tx);function hx(e,t){t.value._routerState=e,t.children.forEach((function(t){return hx(e,t)}))}function fx(e){var t=e.children.length>0?" { ".concat(e.children.map(fx).join(", ")," } "):"";return"".concat(e.value).concat(t)}function mx(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Tw(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Tw(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(!Tw(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Tw(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function px(e,t){var n,i;return Tw(e.params,t.params)&&Rw(n=e.url,i=t.url)&&n.every((function(e,t){return Tw(e.parameters,i[t].parameters)}))&&!(!e.parent!=!t.parent)&&(!e.parent||px(e.parent,t.parent))}function gx(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function vx(e,t,n,i,o){var a={};return i&&Iw(i,(function(e,t){a[t]=Array.isArray(e)?e.map((function(e){return""+e})):""+e})),new Ew(n.root===e?t:function e(t,n,i){var o={};return Iw(t.children,(function(t,a){o[a]=t===n?i:e(t,n,i)})),new Bw(t.segments,o)}(n.root,e,t),a,o)}var yx=function(){return d((function e(t,n,i){if(c(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&gx(i[0]))throw new Error("Root segment cannot have matrix parameters");var o=i.find((function(e){return"object"==typeof e&&null!=e&&e.outlets}));if(o&&o!==Dw(i))throw new Error("{outlets:{}} has to be the last command")}),[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}])}(),bx=d((function e(t,n,i){c(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i}));function _x(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets.primary:""+e}function kx(e,t,n){if(e||(e=new Bw([],{})),0===e.segments.length&&e.hasChildren())return Cx(e,t,n);var i=function(e,t,n){for(var i=0,o=t,a={match:!1,pathIndex:0,commandIndex:0};o<e.segments.length;){if(i>=n.length)return a;var r=e.segments[o],s=_x(n[i]),l=i<n.length-1?n[i+1]:null;if(o>0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Sx(s,l,r))return a;i+=2}else{if(!Sx(s,{},r))return a;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(e,t,n),o=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var a=new Bw(e.segments.slice(0,i.pathIndex),{});return a.children.primary=new Bw(e.segments.slice(i.pathIndex),e.children),Cx(a,0,o)}return i.match&&0===o.length?new Bw(e.segments,{}):i.match&&!e.hasChildren()?wx(e,t,n):i.match?Cx(e,0,o):wx(e,t,n)}function Cx(e,t,n){if(0===n.length)return new Bw(e.segments,{});var i=function(e){return"object"!=typeof e[0]||void 0===e[0].outlets?{primary:e}:e[0].outlets}(n),o={};return Iw(i,(function(n,i){null!==n&&(o[i]=kx(e.children[i],t,n))})),Iw(e.children,(function(e,t){void 0===i[t]&&(o[t]=e)})),new Bw(e.segments,o)}function wx(e,t,n){for(var i=e.segments.slice(0,t),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var a=xx(n[o].outlets);return new Bw(i,a)}if(0===o&&gx(n[0]))i.push(new Nw(e.segments[t].path,n[0])),o++;else{var r=_x(n[o]),s=o<n.length-1?n[o+1]:null;r&&s&&gx(s)?(i.push(new Nw(r,Mx(s))),o+=2):(i.push(new Nw(r,{})),o++)}}return new Bw(i,{})}function xx(e){var t={};return Iw(e,(function(e,n){null!==e&&(t[n]=wx(new Bw([],{}),0,e))})),t}function Mx(e){var t={};return Iw(e,(function(e,n){return t[n]=""+e})),t}function Sx(e,t,n){return e==n.path&&Tw(t,n.parameters)}var Px=function(){return d((function e(t,n,i,o){c(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=o}),[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),mx(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,o=ax(t);e.children.forEach((function(e){var t=e.value.outlet;i.deactivateRoutes(e,o[t],n),delete o[t]})),Iw(o,(function(e,t){i.deactivateRouteAndItsChildren(e,n)}))}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,o=t?t.value:null;if(i===o)if(i.component){var a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(e,t,a.children)}else this.deactivateChildRoutes(e,t,n);else o&&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(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:o})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){var n=this,i=t.getContext(e.value.outlet);if(i){var o=ax(e),a=e.value.component?i.children:t;Iw(o,(function(e,t){return n.deactivateRouteAndItsChildren(e,a)})),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,o=ax(t);e.children.forEach((function(e){i.activateRoutes(e,o[e.value.outlet],n),i.forwardEvent(new gw(e.value.snapshot))})),e.children.length&&this.forwardEvent(new mw(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,o=t?t.value:null;if(mx(i),i===o)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 r=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),r.children.onOutletReAttached(s.contexts),r.attachRef=s.componentRef,r.route=s.route.value,r.outlet&&r.outlet.attach(s.componentRef,s.route.value),Tx(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;r.attachRef=null,r.route=i,r.resolver=c,r.outlet&&r.outlet.activateWith(i,c),this.activateChildRoutes(e,null,r.children)}}else this.activateChildRoutes(e,null,n)}}])}();function Tx(e){mx(e.value),e.children.forEach(Tx)}function Ox(e){return"function"==typeof e}function Lx(e){return e instanceof Ew}var Dx=d((function e(t){c(this,e),this.segmentGroup=t||null})),Ix=d((function e(t){c(this,e),this.urlTree=t}));function Fx(e){return new E((function(t){return t.error(new Dx(e))}))}function Ax(e){return new E((function(t){return t.error(new Ix(e))}))}function Ex(e){return new E((function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))}))}var Bx=function(){return d((function e(t,n,i,o,a){c(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=o,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(pt)}),[{key:"apply",value:function(){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Z((function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)}))).pipe(HC((function(t){if(t instanceof Ix)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Dx)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(Z((function(n){return t.createUrlTree(n,e.queryParams,e.fragment)}))).pipe(HC((function(e){if(e instanceof Dx)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 Bw([],{primary:e}):e;return new Ew(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Z((function(e){return new Bw([],e)}))):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){var i=this;return function(n,o){if(0===Object.keys(n).length)return Sp({});var a=[],r=[],s={};return Iw(n,(function(n,o){var l,c,u=(l=o,c=n,i.expandSegmentGroup(e,t,c,l)).pipe(Z((function(e){return s[o]=e})));"primary"===o?a.push(u):r.push(u)})),Sp.apply(null,a.concat(r)).pipe(Hv(),VC(),Z((function(){return s})))}(n.children)}},{key:"expandSegment",value:function(e,t,n,i,o,a){var s=this;return Sp.apply(void 0,r(n)).pipe(Z((function(r){return s.expandSegmentAgainstRoute(e,t,n,r,i,o,a).pipe(HC((function(e){if(e instanceof Dx)return Sp(null);throw e})))})),Hv(),UC((function(e){return!!e})),HC((function(e,n){if(e instanceof MC||"EmptyError"===e.name){if(s.noLeftoversInUrl(t,i,o))return Sp(new Bw([],{}));throw new Dx(t)}throw e})))}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,o,a,r){return zx(i)!==a?Fx(t):void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,o,a):Fx(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,o,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,o,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var o=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ax(a):this.lineralizeSegments(n,a).pipe(ie((function(n){var a=new Bw(n,{});return o.expandSegment(e,a,t,n,i,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,o,a){var r=this,s=Nx(t,i,o),l=s.matched,c=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!l)return Fx(t);var h=this.applyRedirectCommands(c,i.redirectTo,d);return i.redirectTo.startsWith("/")?Ax(h):this.lineralizeSegments(i,h).pipe(ie((function(i){return r.expandSegment(e,t,n,i.concat(o.slice(u)),a,!1)})))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Z((function(e){return n._loadedConfig=e,new Bw(i,{})}))):Sp(new Bw(i,{}));var r=Nx(t,n,i),s=r.matched,l=r.consumedSegments,c=r.lastChild;if(!s)return Fx(t);var u=i.slice(c);return this.getChildConfig(e,n,i).pipe(ie((function(e){var n=e.module,i=e.routes,r=function(e,t,n,i){return n.length>0&&function(e,t,n){return n.some((function(n){return jx(e,t,n)&&"primary"!==zx(n)}))}(e,n,i)?{segmentGroup:Rx(new Bw(t,function(e,t){var n={};n.primary=t;var i,a=o(e);try{for(a.s();!(i=a.n()).done;){var r=i.value;""===r.path&&"primary"!==zx(r)&&(n[zx(r)]=new Bw([],{}))}}catch(s){a.e(s)}finally{a.f()}return n}(i,new Bw(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return n.some((function(n){return jx(e,t,n)}))}(e,n,i)?{segmentGroup:Rx(new Bw(e.segments,function(e,t,n,i){var a,r={},s=o(n);try{for(s.s();!(a=s.n()).done;){var l=a.value;jx(e,t,l)&&!i[zx(l)]&&(r[zx(l)]=new Bw([],{}))}}catch(c){s.e(c)}finally{s.f()}return Object.assign(Object.assign({},i),r)}(e,n,i,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,l,u,i),s=r.segmentGroup,c=r.slicedSegments;return 0===c.length&&s.hasChildren()?a.expandChildren(n,i,s).pipe(Z((function(e){return new Bw(l,e)}))):0===i.length&&0===c.length?Sp(new Bw(l,{})):a.expandSegment(n,s,i,c,"primary",!0).pipe(Z((function(e){return new Bw(l.concat(e.segments),e.children)})))})))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Sp(new ww(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Sp(t._loadedConfig):function(e,t,n){var i,o=t.canLoad;return o&&0!==o.length?ne(o).pipe(Z((function(i){var o,a=e.get(i);if(function(e){return e&&Ox(e.canLoad)}(a))o=a.canLoad(t,n);else{if(!Ox(a))throw new Error("Invalid CanLoad guard");o=a(t,n)}return Fw(o)}))).pipe(Hv(),(i=function(e){return!0===e},function(e){return e.lift(new WC(i,void 0,e))})):Sp(!0)}(e.injector,t,n).pipe(ie((function(n){return n?i.configLoader.load(e.injector,t).pipe(Z((function(e){return t._loadedConfig=e,e}))):function(e){return new E((function(t){return t.error(kw("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))}))}(t)}))):Sp(new ww([],e))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Sp(n);if(i.numberOfChildren>1||!i.children.primary)return Ex(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 o=this.createSegmentGroup(e,t.root,n,i);return new Ew(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Iw(e,(function(e,i){if("string"==typeof e&&e.startsWith(":")){var o=e.substring(1);n[i]=t[o]}else n[i]=e})),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var o=this,a=this.createSegments(e,t.segments,n,i),r={};return Iw(t.children,(function(t,a){r[a]=o.createSegmentGroup(e,t,n,i)})),new Bw(a,r)}},{key:"createSegments",value:function(e,t,n,i){var o=this;return t.map((function(t){return t.path.startsWith(":")?o.findPosParam(e,t,i):o.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,a=o(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.path===e.path)return t.splice(i),r;i++}}catch(s){a.e(s)}finally{a.f()}return e}}])}();function Nx(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(t.matcher||Cw)(n,e,t);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Rx(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new Bw(e.segments.concat(t.segments),t.children)}return e}function jx(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function zx(e){return e.outlet||"primary"}var Vx=d((function e(t){c(this,e),this.path=t,this.route=this.path[this.path.length-1]})),Hx=d((function e(t,n){c(this,e),this.component=t,this.route=n}));function Yx(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 qx(e,t,n){var i=ax(e),o=e.value;Iw(i,(function(e,i){qx(e,o.component?t?t.children.getContext(i):null:t,n)})),n.canDeactivateChecks.push(new Hx(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}var Ux=Symbol("INITIAL_VALUE");function Wx(){return vk((function(e){return PC.apply(void 0,r(e.map((function(e){return e.pipe(Eg(1),qv(Ux))})))).pipe(GC((function(e,t){var n=!1;return t.reduce((function(e,i,o){if(e!==Ux)return e;if(i===Ux&&(n=!0),!n){if(!1===i)return i;if(o===t.length-1||Lx(i))return i}return e}),e)}),Ux),Tp((function(e){return e!==Ux})),Z((function(e){return Lx(e)?e:!0===e})),Eg(1))}))}function Jx(e,t){return null!==e&&t&&t(new pw(e)),Sp(!0)}function Gx(e,t){return null!==e&&t&&t(new fw(e)),Sp(!0)}function $x(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;return i&&0!==i.length?Sp(i.map((function(i){return LC((function(){var o,a=Yx(i,t,n);if(function(e){return e&&Ox(e.canActivate)}(a))o=Fw(a.canActivate(t,e));else{if(!Ox(a))throw new Error("Invalid CanActivate guard");o=Fw(a(t,e))}return o.pipe(UC())}))}))).pipe(Wx()):Sp(!0)}function Qx(e,t,n){var i=t[t.length-1],o=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 LC((function(){return Sp(t.guards.map((function(o){var a,r=Yx(o,t.node,n);if(function(e){return e&&Ox(e.canActivateChild)}(r))a=Fw(r.canActivateChild(i,e));else{if(!Ox(r))throw new Error("Invalid CanActivateChild guard");a=Fw(r(i,e))}return a.pipe(UC())}))).pipe(Wx())}))}));return Sp(o).pipe(Wx())}var Kx=d((function e(){c(this,e)})),Zx=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=o,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=r}),[{key:"recognize",value:function(){try{var e=tM(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary"),n=new ux([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ox(n,t),o=new dx(this.url,i);return this.inheritParamsAndData(o._root),Sp(o)}catch(a){return new E((function(e){return e.error(a)}))}}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=cx(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){var n,i=this,o=jw(t,(function(t,n){return i.processSegmentGroup(e,t,n)}));return n={},o.forEach((function(e){var t=n[e.value.outlet];if(t){var i=t.url.map((function(e){return e.toString()})).join("/"),o=e.value.url.map((function(e){return e.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(i,"' and '").concat(o,"'."))}n[e.value.outlet]=e.value})),o.sort((function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)})),o}},{key:"processSegment",value:function(e,t,n,i){var a,r=o(e);try{for(r.s();!(a=r.n()).done;){var s=a.value;try{return this.processSegmentAgainstRoute(s,t,n,i)}catch(l){if(!(l instanceof Kx))throw l}}}catch(c){r.e(c)}finally{r.f()}if(this.noLeftoversInUrl(t,n,i))return[];throw new Kx}},{key:"noLeftoversInUrl",value:function(e,t,n){return 0===t.length&&!e.children[n]}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo)throw new Kx;if((e.outlet||"primary")!==i)throw new Kx;var o,a=[],r=[];if("**"===e.path){var s=n.length>0?Dw(n).parameters:{};o=new ux(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,oM(e),i,e.component,e,Xx(t),eM(t)+n.length,aM(e))}else{var l=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new Kx;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(t.matcher||Cw)(n,e,t);if(!i)throw new Kx;var o={};Iw(i.posParams,(function(e,t){o[t]=e.path}));var a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(t,e,n);a=l.consumedSegments,r=n.slice(l.lastChild),o=new ux(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,oM(e),i,e.component,e,Xx(t),eM(t)+a.length,aM(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=tM(t,a,r,c,this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(c,d);return[new ox(o,f)]}if(0===c.length&&0===h.length)return[new ox(o,[])];var m=this.processSegment(c,d,h,"primary");return[new ox(o,m)]}}])}();function Xx(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function eM(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 tM(e,t,n,i,a){if(n.length>0&&function(e,t,n){return n.some((function(n){return nM(e,t,n)&&"primary"!==iM(n)}))}(e,n,i)){var r=new Bw(t,function(e,t,n,i){var a={};a.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var r,s=o(n);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(""===l.path&&"primary"!==iM(l)){var c=new Bw([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,a[iM(l)]=c}}}catch(u){s.e(u)}finally{s.f()}return a}(e,t,i,new Bw(n,e.children)));return r._sourceSegment=e,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some((function(n){return nM(e,t,n)}))}(e,n,i)){var s=new Bw(e.segments,function(e,t,n,i,a,r){var s,l={},c=o(i);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(nM(e,n,u)&&!a[iM(u)]){var d=new Bw([],{});d._sourceSegment=e,d._segmentIndexShift="legacy"===r?e.segments.length:t.length,l[iM(u)]=d}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},a),l)}(e,t,n,i,e.children,a));return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}var l=new Bw(e.segments,e.children);return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}function nM(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function iM(e){return e.outlet||"primary"}function oM(e){return e.data||{}}function aM(e){return e.resolve||{}}function rM(e,t,n,i){var o=Yx(e,t,i);return Fw(o.resolve?o.resolve(t,n):o(t,n))}function sM(e){return function(t){return t.pipe(vk((function(t){var n=e(t);return n?ne(n).pipe(Z((function(){return t}))):ne([t])})))}}var lM=function(){return d((function e(){c(this,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}}])}(),cM=new tt("ROUTES"),uM=function(){return d((function e(t,n,i,o){c(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=o}),[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Z((function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var o=i.create(e);return new ww(Lw(o.injector.get(cM)).map(Pw),o)})))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?ne(this.loader.load(e)):Fw(e()).pipe(ie((function(e){return e instanceof gt?Sp(e):ne(t.compiler.compileModuleAsync(e))})))}}])}(),dM=function(){return d((function e(){c(this,e)}),[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}])}();function hM(e){throw e}function fM(e,t,n){return t.parse("/")}function mM(e,t){return Sp(null)}var pM,gM,vM,yM=((vM=function(){return d((function e(t,n,i,o,a,r,s,l){var u=this;c(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=i,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new V,this.errorHandler=hM,this.malformedUriErrorHandler=fM,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:mM,afterPreactivation:mM},this.urlHandlingStrategy=new dM,this.routeReuseStrategy=new lM,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=a.get(pt),this.console=a.get(nu);var d=a.get(gu);this.isNgZoneEnabled=d instanceof gu,this.resetConfig(l),this.currentUrlTree=new Ew(new Bw([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new uM(r,s,(function(e){return u.triggerEvent(new dw(e))}),(function(e){return u.triggerEvent(new hw(e))})),this.routerState=sx(this.currentUrlTree,this.rootComponentType),this.transitions=new tk({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}),[{key:"setupNavigations",value:function(t){var n=this,i=this.events;return t.pipe(Tp((function(e){return 0!==e.id})),Z((function(e){return Object.assign(Object.assign({},e),{extractedUrl:n.urlHandlingStrategy.extract(e.rawUrl)})})),vk((function(t){var a,r,s,l=!1,c=!1;return Sp(t).pipe(kg((function(e){n.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:n.lastSuccessfulNavigation?Object.assign(Object.assign({},n.lastSuccessfulNavigation),{previousNavigation:null}):null}})),vk((function(e){var t,o,a,r,s=!n.navigated||e.extractedUrl.toString()!==n.browserUrlTree.toString();if(("reload"===n.onSameUrlNavigation||s)&&n.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Sp(e).pipe(vk((function(e){var t=n.transitions.getValue();return i.next(new nw(e.id,n.serializeUrl(e.extractedUrl),e.source,e.restoredState)),t!==n.transitions.getValue()?Fg:[e]})),vk((function(e){return Promise.resolve(e)})),(t=n.ngModule.injector,o=n.configLoader,a=n.urlSerializer,r=n.config,function(e){return e.pipe(vk((function(e){return function(e,t,n,i,o){return new Bx(e,t,n,i,o).apply()}(t,o,a,e.extractedUrl,r).pipe(Z((function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})})))})))}),kg((function(e){n.currentNavigation=Object.assign(Object.assign({},n.currentNavigation),{finalUrl:e.urlAfterRedirects})})),function(e,t,i,o,a){return function(i){return i.pipe(ie((function(i){return function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Zx(e,t,n,i,o,a).recognize()}(e,t,i.urlAfterRedirects,(r=i.urlAfterRedirects,n.serializeUrl(r)),o,a).pipe(Z((function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})})));var r})))}}(n.rootComponentType,n.config,0,n.paramsInheritanceStrategy,n.relativeLinkResolution),kg((function(e){"eager"===n.urlUpdateStrategy&&(e.extras.skipLocationChange||n.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),n.browserUrlTree=e.urlAfterRedirects)})),kg((function(e){var t=new rw(e.id,n.serializeUrl(e.extractedUrl),n.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);i.next(t)})));if(s&&n.rawUrlTree&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){var l=e.id,c=e.extractedUrl,u=e.source,d=e.restoredState,h=e.extras,f=new nw(l,n.serializeUrl(c),u,d);i.next(f);var m=sx(c,n.rootComponentType).snapshot;return Sp(Object.assign(Object.assign({},e),{targetSnapshot:m,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}))}return n.rawUrlTree=e.rawUrl,n.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Fg})),sM((function(e){var t=e.targetSnapshot,i=e.id,o=e.extractedUrl,a=e.rawUrl,r=e.extras,s=r.skipLocationChange,l=r.replaceUrl;return n.hooks.beforePreactivation(t,{navigationId:i,appliedUrlTree:o,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})})),kg((function(e){var t=new sw(e.id,n.serializeUrl(e.extractedUrl),n.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.triggerEvent(t)})),Z((function(e){return Object.assign(Object.assign({},e),{guards:(t=e.targetSnapshot,i=e.currentSnapshot,o=n.rootContexts,a=t._root,function e(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},r=ax(n);return t.children.forEach((function(t){!function(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},r=t.value,s=n?n.value:null,l=i?i.getContext(t.value.outlet):null;if(s&&r.routeConfig===s.routeConfig){var c=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Rw(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Rw(e.url,t.url)||!Tw(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!px(e,t)||!Tw(e.queryParams,t.queryParams);case"paramsChange":default:return!px(e,t)}}(s,r,r.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Vx(o)):(r.data=s.data,r._resolvedData=s._resolvedData),e(t,n,r.component?l?l.children:null:i,o,a),c&&a.canDeactivateChecks.push(new Hx(l&&l.outlet&&l.outlet.component||null,s))}else s&&qx(n,l,a),a.canActivateChecks.push(new Vx(o)),e(t,null,r.component?l?l.children:null:i,o,a)}(t,r[t.value.outlet],i,o.concat([t.value]),a),delete r[t.value.outlet]})),Iw(r,(function(e,t){return qx(e,i.getContext(t),a)})),a}(a,i?i._root:null,o,[a.value]))});var t,i,o,a})),function(e,t){return function(n){return n.pipe(ie((function(n){var i=n.targetSnapshot,o=n.currentSnapshot,a=n.guards,r=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===r.length?Sp(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return ne(e).pipe(ie((function(e){return function(e,t,n,i,o){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return a&&0!==a.length?Sp(a.map((function(a){var r,s=Yx(a,t,o);if(function(e){return e&&Ox(e.canDeactivate)}(s))r=Fw(s.canDeactivate(e,t,n,i));else{if(!Ox(s))throw new Error("Invalid CanDeactivate guard");r=Fw(s(e,t,n,i))}return r.pipe(UC())}))).pipe(Wx()):Sp(!0)}(e.component,e.route,n,t,i)})),UC((function(e){return!0!==e}),!0))}(s,i,o,e).pipe(ie((function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return ne(t).pipe(Pp((function(t){return ne([Gx(t.route.parent,i),Jx(t.route,i),Qx(e,t.path,n),$x(e,t.route,n)]).pipe(Hv(),UC((function(e){return!0!==e}),!0))})),UC((function(e){return!0!==e}),!0))}(i,r,e,t):Sp(n)})),Z((function(e){return Object.assign(Object.assign({},n),{guardsResult:e})})))})))}}(n.ngModule.injector,(function(e){return n.triggerEvent(e)})),kg((function(e){if(Lx(e.guardsResult)){var t=kw('Redirecting to "'.concat(n.serializeUrl(e.guardsResult),'"'));throw t.url=e.guardsResult,t}})),kg((function(e){var t=new lw(e.id,n.serializeUrl(e.extractedUrl),n.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);n.triggerEvent(t)})),Tp((function(e){if(!e.guardsResult){n.resetUrlToCurrentUrlTree();var t=new ow(e.id,n.serializeUrl(e.extractedUrl),"");return i.next(t),e.resolve(!1),!1}return!0})),sM((function(t){if(t.guards.canActivateChecks.length)return Sp(t).pipe(kg((function(e){var t=new cw(e.id,n.serializeUrl(e.extractedUrl),n.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.triggerEvent(t)})),(i=n.paramsInheritanceStrategy,o=n.ngModule.injector,function(t){return t.pipe(ie((function(t){var n=t.targetSnapshot,a=t.guards.canActivateChecks;return a.length?ne(a).pipe(Pp((function(t){return function(t,n,i,o){return function(t,n,i,o){var a=Object.keys(t);if(0===a.length)return Sp({});if(1===a.length){var r=a[0];return rM(t[r],n,i,o).pipe(Z((function(t){return e({},r,t)})))}var s={};return ne(a).pipe(ie((function(e){return rM(t[e],n,i,o).pipe(Z((function(t){return s[e]=t,t})))}))).pipe(VC(),Z((function(){return s})))}(t._resolve,t,n,o).pipe(Z((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),cx(t,i).resolve),null})))}(t.route,n,i,o)})),function(e,t){return arguments.length>=2?function(n){return I(GC(e,t),DC(1),RC(t))(n)}:function(t){return I(GC((function(t,n,i){return e(t,n,i+1)})),DC(1))(t)}}((function(e,t){return e})),Z((function(e){return t}))):Sp(t)})))}),kg((function(e){var t=new uw(e.id,n.serializeUrl(e.extractedUrl),n.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.triggerEvent(t)})));var i,o})),sM((function(e){var t=e.targetSnapshot,i=e.id,o=e.extractedUrl,a=e.rawUrl,r=e.extras,s=r.skipLocationChange,l=r.replaceUrl;return n.hooks.afterPreactivation(t,{navigationId:i,appliedUrlTree:o,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})})),Z((function(e){var t=function(e,t,n){var i=function e(t,n,i){if(i&&t.shouldReuseRoute(n.value,i.value.snapshot)){var a=i.value;a._futureSnapshot=n.value;var r=function(t,n,i){return n.children.map((function(n){var a,r=o(i.children);try{for(r.s();!(a=r.n()).done;){var s=a.value;if(t.shouldReuseRoute(s.value.snapshot,n.value))return e(t,n,s)}}catch(l){r.e(l)}finally{r.f()}return e(t,n)}))}(t,n,i);return new ox(a,r)}var s=t.retrieve(n.value);if(s){var l=s.route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var i=0;i<t.children.length;++i)e(t.children[i],n.children[i])}(n,l),l}var c,u=new lx(new tk((c=n.value).url),new tk(c.params),new tk(c.queryParams),new tk(c.fragment),new tk(c.data),c.outlet,c.component,c),d=n.children.map((function(n){return e(t,n)}));return new ox(u,d)}(e,t._root,n?n._root:void 0);return new rx(i,t)}(n.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:t})})),kg((function(e){n.currentUrlTree=e.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(n.currentUrlTree,e.rawUrl),n.routerState=e.targetRouterState,"deferred"===n.urlUpdateStrategy&&(e.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),n.browserUrlTree=e.urlAfterRedirects)})),(a=n.rootContexts,r=n.routeReuseStrategy,s=function(e){return n.triggerEvent(e)},Z((function(e){return new Px(r,e.targetRouterState,e.currentRouterState,s).activate(a),e}))),kg({next:function(){l=!0},complete:function(){l=!0}}),KC((function(){if(!l&&!c){n.resetUrlToCurrentUrlTree();var e=new ow(t.id,n.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(n.navigationId));i.next(e),t.resolve(!1)}n.currentNavigation=null})),HC((function(e){if(c=!0,(s=e)&&s.ngNavigationCancelingError){var o=Lx(e.url);o||(n.navigated=!0,n.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var a=new ow(t.id,n.serializeUrl(t.extractedUrl),e.message);i.next(a),o?setTimeout((function(){var i=n.urlHandlingStrategy.merge(e.url,n.rawUrlTree);return n.scheduleNavigation(i,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{n.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var r=new aw(t.id,n.serializeUrl(t.extractedUrl),e);i.next(r);try{t.resolve(n.errorHandler(e))}catch(l){t.reject(l)}}var s;return Fg})))})))}},{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.parseUrl(t.url),i="popstate"===t.type?"popstate":"hashchange",o=t.state&&t.state.navigationId?t.state:null;setTimeout((function(){e.scheduleNavigation(n,i,o,{replaceUrl:!0})}),0)})))}},{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){xw(e),this.config=e.map(Pw),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,o=t.fragment,a=t.preserveQueryParams,s=t.queryParamsHandling,l=t.preserveFragment;ji()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,u=l?this.currentUrlTree.fragment:o,d=null;if(s)switch(s){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}else d=a?this.currentUrlTree.queryParams:i||null;return null!==d&&(d=this.removeEmptyProps(d)),function(e,t,n,i,o){if(0===n.length)return vx(t.root,t.root,t,i,o);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new yx(!0,0,e);var t=0,n=!1,i=e.reduce((function(e,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Iw(i.outlets,(function(e,t){a[t]="string"==typeof e?e.split("/"):e})),[].concat(r(e),[{outlets:a}])}if(i.segmentPath)return[].concat(r(e),[i.segmentPath])}return"string"!=typeof i?[].concat(r(e),[i]):0===o?(i.split("/").forEach((function(i,o){0==o&&"."===i||(0==o&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))})),e):[].concat(r(e),[i])}),[]);return new yx(n,t,i)}(n);if(a.toRoot())return vx(t.root,new Bw([],{}),t,i,o);var s=function(e,t,n){if(e.isAbsolute)return new bx(t.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new bx(n.snapshot._urlSegment,!0,0);var i=gx(e.commands[0])?0:1;return function(e,t,n){for(var i=e,o=t,a=n;a>o;){if(a-=o,!(i=i.parent))throw new Error("Invalid number of '../'");o=i.segments.length}return new bx(i,!1,o-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),l=s.processChildren?Cx(s.segmentGroup,s.index,a.commands):kx(s.segmentGroup,s.index,a.commands);return vx(s.segmentGroup,l,t,i,o)}(c,this.currentUrlTree,e,d,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};ji()&&this.isNgZoneEnabled&&!gu.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Lx(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,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){if(Lx(e))return Aw(this.currentUrlTree,e,t);var n=this.parseUrl(e);return Aw(this.currentUrlTree,n,t)}},{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.events.next(new iw(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)}),(function(t){e.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(e,t,n,i,o){var a,r,s,l=this.getTransition();if(l&&"imperative"!==t&&"imperative"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(l&&"hashchange"==t&&"popstate"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(l&&"popstate"==t&&"hashchange"===l.source&&l.rawUrl.toString()===e.toString())return Promise.resolve(!0);o?(a=o.resolve,r=o.reject,s=o.promise):s=new Promise((function(e,t){a=e,r=t}));var c=++this.navigationId;return this.setTransition({id:c,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:a,reject:r,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(e){return Promise.reject(e)}))}},{key:"setBrowserUrl",value:function(e,t,n,i){var o=this.urlSerializer.serialize(e);i=i||{},this.location.isCurrentPathEqualTo(o)||t?this.location.replaceState(o,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(o,"",Object.assign(Object.assign({},i),{navigationId:n}))}},{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),"",{navigationId:this.lastSuccessfulId})}}])}()).\u0275fac=function(e){Kr()},vM.\u0275dir=Et({type:vM}),vM),bM=((gM=function(){return d((function e(t,n,i,o,a){c(this,e),this.router=t,this.route=n,this.commands=[],null==i&&o.setAttribute(a.nativeElement,"tabindex","0")}),[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){ji()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=e}},{key:"onClick",value:function(){var e={skipLocationChange:kM(this.skipLocationChange),replaceUrl:kM(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:kM(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:kM(this.preserveFragment)})}}])}()).\u0275fac=function(e){return new(e||gM)($r(yM),$r(lx),Qr("tabindex"),$r(Ol),$r(Ml))},gM.\u0275dir=Et({type:gM,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&ls("click",(function(){return t.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),gM),_M=((pM=function(){return d((function e(t,n,i){var o=this;c(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.subscription=t.events.subscribe((function(e){e instanceof iw&&o.updateTargetUrlAndHref()}))}),[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"preserveQueryParams",set:function(e){ji()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i){if(0!==e||t||n||i)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var o={skipLocationChange:kM(this.skipLocationChange),replaceUrl:kM(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,o),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:kM(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:kM(this.preserveFragment)})}}])}()).\u0275fac=function(e){return new(e||pM)($r(yM),$r(lx),$r(ld))},pM.\u0275dir=Et({type:pM,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&ls("click",(function(e){return t.onClick(e.button,e.ctrlKey,e.metaKey,e.shiftKey)})),2&e&&(nl("href",t.href,mo),Yr("target",t.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[dl]}),pM);function kM(e){return""===e||!!e}var CM,wM,xM,MM=d((function e(){c(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new SM,this.attachRef=null})),SM=function(){return d((function e(){c(this,e),this.contexts=new Map}),[{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 MM,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}])}(),PM=((CM=function(){return d((function e(t,n,i,o,a){c(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new Mc,this.deactivateEvents=new Mc,this.name=o||"primary",t.onChildOutletCreated(this.name,this)}),[{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,o=new TM(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}])}()).\u0275fac=function(e){return new(e||CM)($r(SM),$r(Kl),$r(xl),Qr("name"),$r(ur))},CM.\u0275dir=Et({type:CM,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),CM),TM=function(){return d((function e(t,n,i){c(this,e),this.route=t,this.childContexts=n,this.parent=i}),[{key:"get",value:function(e,t){return e===lx?this.route:e===SM?this.childContexts:this.parent.get(e,t)}}])}(),OM=d((function e(){c(this,e)})),LM=function(){return d((function e(){c(this,e)}),[{key:"preload",value:function(e,t){return Sp(null)}}])}(),DM=((xM=function(){return d((function e(t,n,i,o,a){c(this,e),this.router=t,this.injector=o,this.preloadingStrategy=a,this.loader=new uM(n,i,(function(e){return t.triggerEvent(new dw(e))}),(function(e){return t.triggerEvent(new hw(e))}))}),[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Tp((function(e){return e instanceof iw})),Pp((function(){return e.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var e=this.injector.get(pt);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],a=o(t);try{for(a.s();!(n=a.n()).done;){var r=n.value;if(r.loadChildren&&!r.canLoad&&r._loadedConfig){var s=r._loadedConfig;i.push(this.processRoutes(s.module,s.routes))}else r.loadChildren&&!r.canLoad?i.push(this.preloadConfig(e,r)):r.children&&i.push(this.processRoutes(e,r.children))}}catch(l){a.e(l)}finally{a.f()}return ne(i).pipe(re(),Z((function(e){})))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,(function(){return n.loader.load(e.injector,t).pipe(ie((function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})))}))}}])}()).\u0275fac=function(e){return new(e||xM)(ut(yM),ut(Ru),ut(hu),ut(Sr),ut(OM))},xM.\u0275prov=Se({token:xM,factory:xM.\u0275fac}),xM),IM=((wM=function(){return d((function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c(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.anchorScrolling||"disabled"}),[{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 nw?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof iw&&(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 vw&&(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 vw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}])}()).\u0275fac=function(e){Kr()},wM.\u0275dir=Et({type:wM}),wM),FM=new tt("ROUTER_CONFIGURATION"),AM=new tt("ROUTER_FORROOT_GUARD"),EM=[gd,{provide:zw,useClass:Vw},{provide:yM,useFactory:function(e,t,n,i,o,a,r){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 yM(null,e,t,n,i,o,a,Lw(r));if(l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),s.errorHandler&&(u.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(u.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var d=Gu();u.events.subscribe((function(e){d.logGroup("Router Event: "+e.constructor.name),d.log(e.toString()),d.log(e),d.logGroupEnd()}))}return s.onSameUrlNavigation&&(u.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(u.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(u.relativeLinkResolution=s.relativeLinkResolution),u},deps:[zw,SM,gd,Sr,Ru,hu,cM,FM,[function(){return d((function e(){c(this,e)}))}(),new _e],[function(){return d((function e(){c(this,e)}))}(),new _e]]},SM,{provide:lx,useFactory:function(e){return e.routerState.root},deps:[yM]},{provide:Ru,useClass:Vu},DM,LM,function(){return d((function e(){c(this,e)}),[{key:"preload",value:function(e,t){return t().pipe(HC((function(){return Sp(null)})))}}])}(),{provide:FM,useValue:{enableTracing:!1}}];function BM(){return new Lu("Router",yM)}var NM,RM=((NM=function(){function e(t,n){c(this,e)}return d(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[EM,HM(t),{provide:AM,useFactory:VM,deps:[[yM,new _e,new Ce]]},{provide:FM,useValue:n||{}},{provide:ld,useFactory:zM,deps:[Ku,[new be(fd),new _e],FM]},{provide:IM,useFactory:jM,deps:[yM,Ah,FM]},{provide:OM,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:LM},{provide:Lu,multi:!0,useFactory:BM},[qM,{provide:Gc,multi:!0,useFactory:UM,deps:[qM]},{provide:GM,useFactory:WM,deps:[qM]},{provide:tu,multi:!0,useExisting:GM}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[HM(t)]}}}])}()).\u0275mod=Ft({type:NM}),NM.\u0275inj=Pe({factory:function(e){return new(e||NM)(ut(AM,8),ut(yM,8))}}),NM);function jM(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new IM(e,t,n)}function zM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new pd(e,t):new md(e,t)}function VM(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function HM(e){return[{provide:Pr,multi:!0,useValue:e},{provide:cM,multi:!0,useValue:e}]}var YM,qM=((YM=function(){return d((function e(t){c(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new V}),[{key:"appInitializer",value:function(){var e=this;return this.injector.get(ed,Promise.resolve(null)).then((function(){var t=null,n=new Promise((function(e){return t=e})),i=e.injector.get(yM),o=e.injector.get(FM);if(e.isLegacyDisabled(o)||e.isLegacyEnabled(o))t(!0);else if("disabled"===o.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '".concat(o.initialNavigation,"'"));i.hooks.afterPreactivation=function(){return e.initNavigation?Sp(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(FM),n=this.injector.get(DM),i=this.injector.get(IM),o=this.injector.get(yM),a=this.injector.get(Bu);e===a.components[0]&&(this.isLegacyEnabled(t)?o.initialNavigation():this.isLegacyDisabled(t)&&o.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"isLegacyEnabled",value:function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation}},{key:"isLegacyDisabled",value:function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation}}])}()).\u0275fac=function(e){return new(e||YM)(ut(Sr))},YM.\u0275prov=Se({token:YM,factory:YM.\u0275fac}),YM);function UM(e){return e.appInitializer.bind(e)}function WM(e){return e.bootstrapListener.bind(e)}var JM,GM=new tt("Router Initializer"),$M=((JM=d((function e(t){c(this,e),this.router=t}))).\u0275fac=function(e){return new(e||JM)($r(yM))},JM.\u0275cmp=Ot({type:JM,selectors:[["io-root"]],decls:1,vars:0,template:function(e,t){1&e&&ns(0,"router-outlet")},directives:[PM],styles:[""]}),JM);function QM(e,t,n,i){return u(n)&&(i=n,n=void 0),i?QM(e,t,n).pipe(Z((function(e){return k(e)?i.apply(void 0,r(e)):i(e)}))):new E((function(i){!function e(t,n,i,o,a){var r;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(t)){var s=t;t.addEventListener(n,i,a),r=function(){return s.removeEventListener(n,i,a)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(t)){var l=t;t.on(n,i),r=function(){return l.off(n,i)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(t)){var c=t;t.addListener(n,i),r=function(){return c.removeListener(n,i)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,d=t.length;u<d;u++)e(t[u],n,i,o,a)}o.add(r)}(e,t,(function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)}),i,n)}))}var KM=function(e){function n(e,t){var i;return c(this,n),(i=f(this,n,[e,t])).scheduler=e,i.work=t,i}return p(n,e),d(n,[{key:"requestAsyncId",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?t(_(n.prototype),"requestAsyncId",this).call(this,e,i,o):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))}},{key:"recycleAsyncId",value:function(e,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return t(_(n.prototype),"recycleAsyncId",this).call(this,e,i,o);0===e.actions.length&&(cancelAnimationFrame(i),e.scheduled=void 0)}}])}(xg),ZM=new(function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,o=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<o&&(e=n.shift()));if(this.active=!1,t){for(;++i<o&&(e=n.shift());)e.unsubscribe();throw t}}}])}(Sg))(KM);function XM(e){return!!e&&(e instanceof E||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var eS=function(){return d((function e(t){c(this,e),this.durationSelector=t}),[{key:"call",value:function(e,t){return t.subscribe(new tS(e,this.durationSelector))}}])}(),tS=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e])).durationSelector=n,i.hasValue=!1,i}return p(t,e),d(t,[{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=Q(this,t);!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=null,n.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(e,t,n,i){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}])}(K);function nS(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return t=function(){return ik(e,n)},function(e){return e.lift(new eS(t))}}var iS,oS,aS,rS,sS=((rS=function(){return d((function e(t,n,i){c(this,e),this._ngZone=t,this._platform=n,this._scrolled=new V,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}),[{key:"register",value:function(e){var t=this;this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe((function(){return t._scrolled.next(e)})))}},{key:"deregister",value:function(e){var t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}},{key:"scrolled",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new E((function(n){e._globalSubscription||e._addGlobalListener();var i=t>0?e._scrolled.pipe(nS(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Sp()}},{key:"ngOnDestroy",value:function(){var e=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(t,n){return e.deregister(n)})),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(e,t){var n=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(Tp((function(e){return!e||n.indexOf(e)>-1})))}},{key:"getAncestorScrollContainers",value:function(e){var t=this,n=[];return this.scrollContainers.forEach((function(i,o){t._scrollableContainsElement(o,e)&&n.push(o)})),n}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_scrollableContainsElement",value:function(e,t){var n=t.nativeElement,i=e.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var e=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return QM(e._getWindow().document,"scroll").subscribe((function(){return e._scrolled.next()}))}))}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}])}()).\u0275fac=function(e){return new(e||rS)(ut(gu),ut($g),ut(Qu,8))},rS.\u0275prov=Se({factory:function(){return new rS(ut(gu),ut($g),ut(Qu,8))},token:rS,providedIn:"root"}),rS),lS=((aS=function(){return d((function e(t,n,i){var o=this;c(this,e),this._platform=t,this._document=i,n.runOutsideAngular((function(){var e=o._getWindow();o._change=t.isBrowser?le(QM(e,"resize"),QM(e,"orientationchange")):Sp(),o._invalidateCache=o.change().subscribe((function(){return o._updateViewportSize()}))}))}),[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}},{key:"getViewportRect",value:function(){var e=this.getViewportScrollPosition(),t=this.getViewportSize(),n=t.width,i=t.height;return{top:e.top,left:e.left,bottom:e.top+i,right:e.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var e=this._getDocument(),t=this._getWindow(),n=e.documentElement,i=n.getBoundingClientRect();return{top:-i.top||e.body.scrollTop||t.scrollY||n.scrollTop||0,left:-i.left||e.body.scrollLeft||t.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return e>0?this._change.pipe(nS(e)):this._change}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_updateViewportSize",value:function(){var e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}])}()).\u0275fac=function(e){return new(e||aS)(ut($g),ut(gu),ut(Qu,8))},aS.\u0275prov=Se({factory:function(){return new aS(ut($g),ut(gu),ut(Qu,8))},token:aS,providedIn:"root"}),aS),cS=((oS=d((function e(){c(this,e)}))).\u0275mod=Ft({type:oS}),oS.\u0275inj=Pe({factory:function(e){return new(e||oS)}}),oS),uS=((iS=d((function e(){c(this,e)}))).\u0275mod=Ft({type:iS}),iS.\u0275inj=Pe({factory:function(e){return new(e||iS)},imports:[[zv,Qg,cS],zv,cS]}),iS);function dS(){throw Error("Host already has a portal attached")}var hS,fS,mS=function(){return d((function e(){c(this,e)}),[{key:"attach",value:function(e){return null==e&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),e.hasAttached()&&dS(),this._attachedHost=e,e.attach(this)}},{key:"detach",value:function(){var e=this._attachedHost;null==e?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,e.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(e){this._attachedHost=e}}])}(),pS=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t)).component=e,a.viewContainerRef=n,a.injector=i,a.componentFactoryResolver=o,a}return p(t,e),d(t)}(mS),gS=function(e){function n(e,t,i){var o;return c(this,n),(o=f(this,n)).templateRef=e,o.viewContainerRef=t,o.context=i,o}return p(n,e),d(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=i,t(_(n.prototype),"attach",this).call(this,e)}},{key:"detach",value:function(){return this.context=void 0,t(_(n.prototype),"detach",this).call(this)}}])}(mS),vS=function(e){function t(e){var n;return c(this,t),(n=f(this,t)).element=e instanceof Ml?e.nativeElement:e,n}return p(t,e),d(t)}(mS),yS=function(){return d((function e(){c(this,e),this._isDisposed=!1,this.attachDomPortal=null}),[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(e){return e||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&dS(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),e instanceof pS?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof gS?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof vS?(this._attachedPortal=e,this.attachDomPortal(e)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(e){this._disposeFn=e}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}])}(),bS=function(e){function n(e,i,o,a,r){var s;return c(this,n),(s=f(this,n)).outletElement=e,s._componentFactoryResolver=i,s._appRef=o,s._defaultInjector=a,s.attachDomPortal=function(e){if(!s._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var i=e.element;if(!i.parentNode)throw Error("DOM portal content must be attached to a parent node.");var o=s._document.createComment("dom-portal");i.parentNode.insertBefore(o,i),s.outletElement.appendChild(i),t((m(s),_(n.prototype)),"setDisposeFn",m(s)).call(m(s),(function(){o.parentNode&&o.parentNode.replaceChild(i,o)}))},s._document=r,s}return p(n,e),d(n,[{key:"attachComponentPortal",value:function(e){var t,n=this,i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);return e.viewContainerRef?(t=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn((function(){return t.destroy()}))):(t=i.create(e.injector||this._defaultInjector),this._appRef.attachView(t.hostView),this.setDisposeFn((function(){n._appRef.detachView(t.hostView),t.destroy()}))),this.outletElement.appendChild(this._getComponentRootNode(t)),t}},{key:"attachTemplatePortal",value:function(e){var t=this,n=e.viewContainerRef,i=n.createEmbeddedView(e.templateRef,e.context);return i.detectChanges(),i.rootNodes.forEach((function(e){return t.outletElement.appendChild(e)})),this.setDisposeFn((function(){var e=n.indexOf(i);-1!==e&&n.remove(e)})),i}},{key:"dispose",value:function(){t(_(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(e){return e.hostView.rootNodes[0]}}])}(yS),_S=((fS=function(e){function n(e,i,o){var a;return c(this,n),(a=f(this,n))._componentFactoryResolver=e,a._viewContainerRef=i,a._isInitialized=!1,a.attached=new Mc,a.attachDomPortal=function(e){if(!a._document)throw Error("Cannot attach DOM portal without _document constructor parameter");var i=e.element;if(!i.parentNode)throw Error("DOM portal content must be attached to a parent node.");var o=a._document.createComment("dom-portal");e.setAttachedHost(m(a)),i.parentNode.insertBefore(o,i),a._getRootNode().appendChild(i),t((m(a),_(n.prototype)),"setDisposeFn",m(a)).call(m(a),(function(){o.parentNode&&o.parentNode.replaceChild(i,o)}))},a._document=o,a}return p(n,e),d(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(e){(!this.hasAttached()||e||this._isInitialized)&&(this.hasAttached()&&t(_(n.prototype),"detach",this).call(this),e&&t(_(n.prototype),"attach",this).call(this,e),this._attachedPortal=e)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){t(_(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(e){e.setAttachedHost(this);var i=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,o=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),a=i.createComponent(o,i.length,e.injector||i.injector);return i!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),t(_(n.prototype),"setDisposeFn",this).call(this,(function(){return a.destroy()})),this._attachedPortal=e,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(e){var i=this;e.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context);return t(_(n.prototype),"setDisposeFn",this).call(this,(function(){return i._viewContainerRef.clear()})),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}}])}(yS)).\u0275fac=function(e){return new(e||fS)($r(xl),$r(Kl),$r(Qu))},fS.\u0275dir=Et({type:fS,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[al]}),fS),kS=((hS=d((function e(){c(this,e)}))).\u0275mod=Ft({type:hS}),hS.\u0275inj=Pe({factory:function(e){return new(e||hS)}}),hS),CS=function(){return d((function e(t,n){c(this,e),this._parentInjector=t,this._customTokens=n}),[{key:"get",value:function(e,t){var n=this._customTokens.get(e);return void 0!==n?n:this._parentInjector.get(e,t)}}])}(),wS=function(){return d((function e(t,n){c(this,e),this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}),[{key:"attach",value:function(){}},{key:"enable",value:function(){if(this._canBeEnabled()){var e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Hg(-this._previousScrollPosition.left),e.style.top=Hg(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}},{key:"disable",value:function(){if(this._isEnabled){var e=this._document.documentElement,t=e.style,n=this._document.body.style,i=t.scrollBehavior||"",o=n.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),t.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.scrollBehavior=i,n.scrollBehavior=o}}},{key:"_canBeEnabled",value:function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var e=this._document.body,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}}])}();function xS(){return Error("Scroll strategy has already been attached.")}var MS=function(){return d((function e(t,n,i,o){var a=this;c(this,e),this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=i,this._config=o,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run((function(){return a._overlayRef.detach()}))}}),[{key:"attach",value:function(e){if(this._overlayRef)throw xS();this._overlayRef=e}},{key:"enable",value:function(){var e=this;if(!this._scrollSubscription){var t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe((function(){var t=e._viewportRuler.getViewportScrollPosition().top;Math.abs(t-e._initialScrollPosition)>e._config.threshold?e._detach():e._overlayRef.updatePosition()}))):this._scrollSubscription=t.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),SS=function(){return d((function e(){c(this,e)}),[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}])}();function PS(e,t){return t.some((function(t){return e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right}))}function TS(e,t){return t.some((function(t){return e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right}))}var OS,LS=function(){return d((function e(t,n,i,o){c(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this._config=o,this._scrollSubscription=null}),[{key:"attach",value:function(e){if(this._overlayRef)throw xS();this._overlayRef=e}},{key:"enable",value:function(){var e=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(e._overlayRef.updatePosition(),e._config&&e._config.autoClose){var t=e._overlayRef.overlayElement.getBoundingClientRect(),n=e._viewportRuler.getViewportSize(),i=n.width,o=n.height;PS(t,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(e.disable(),e._ngZone.run((function(){return e._overlayRef.detach()})))}})))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}])}(),DS=((OS=d((function e(t,n,i,o){var a=this;c(this,e),this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new SS},this.close=function(e){return new MS(a._scrollDispatcher,a._ngZone,a._viewportRuler,e)},this.block=function(){return new wS(a._viewportRuler,a._document)},this.reposition=function(e){return new LS(a._scrollDispatcher,a._viewportRuler,a._ngZone,e)},this._document=o}))).\u0275fac=function(e){return new(e||OS)(ut(sS),ut(lS),ut(gu),ut(Qu))},OS.\u0275prov=Se({factory:function(){return new OS(ut(sS),ut(lS),ut(gu),ut(Qu))},token:OS,providedIn:"root"}),OS),IS=d((function e(t){if(c(this,e),this.scrollStrategy=new SS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var n=0,i=Object.keys(t);n<i.length;n++){var o=i[n];void 0!==t[o]&&(this[o]=t[o])}})),FS=d((function e(t,n,i,o,a){c(this,e),this.offsetX=i,this.offsetY=o,this.panelClass=a,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY})),AS=d((function e(t,n){c(this,e),this.connectionPair=t,this.scrollableViewProperties=n}));function ES(e,t){if("top"!==t&&"bottom"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". Expected "top", "bottom" or "center".'))}function BS(e,t){if("start"!==t&&"end"!==t&&"center"!==t)throw Error("ConnectedPosition: Invalid ".concat(e,' "').concat(t,'". Expected "start", "end" or "center".'))}var NS,RS,jS=((NS=function(){return d((function e(t){var n=this;c(this,e),this._attachedOverlays=[],this._keydownListener=function(e){for(var t=n._attachedOverlays,i=t.length-1;i>-1;i--)if(t[i]._keydownEventSubscriptions>0){t[i]._keydownEvents.next(e);break}},this._document=t}),[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(e){this.remove(e),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(e)}},{key:"remove",value:function(e){var t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}])}()).\u0275fac=function(e){return new(e||NS)(ut(Qu))},NS.\u0275prov=Se({factory:function(){return new NS(ut(Qu))},token:NS,providedIn:"root"}),NS),zS=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine),VS=((RS=function(){return d((function e(t,n){c(this,e),this._platform=n,this._document=t}),[{key:"ngOnDestroy",value:function(){var e=this._containerElement;e&&e.parentNode&&e.parentNode.removeChild(e)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var e=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(e||zS)for(var t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]'),n=0;n<t.length;n++)t[n].parentNode.removeChild(t[n]);var i=this._document.createElement("div");i.classList.add("cdk-overlay-container"),zS?i.setAttribute("platform","test"):e||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}])}()).\u0275fac=function(e){return new(e||RS)(ut(Qu),ut($g))},RS.\u0275prov=Se({factory:function(){return new RS(ut(Qu),ut($g))},token:RS,providedIn:"root"}),RS),HS=function(){return d((function e(t,n,i,o,a,r,s,l){var u=this;c(this,e),this._portalOutlet=t,this._host=n,this._pane=i,this._config=o,this._ngZone=a,this._keyboardDispatcher=r,this._document=s,this._location=l,this._backdropElement=null,this._backdropClick=new V,this._attachments=new V,this._detachments=new V,this._locationChanges=M.EMPTY,this._backdropClickHandler=function(e){return u._backdropClick.next(e)},this._keydownEventsObservable=new E((function(e){var t=u._keydownEvents.subscribe(e);return u._keydownEventSubscriptions++,function(){t.unsubscribe(),u._keydownEventSubscriptions--}})),this._keydownEvents=new V,this._keydownEventSubscriptions=0,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}),[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(e){var t=this,n=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Eg(1)).subscribe((function(){t.hasAttached()&&t.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return t.dispose()}))),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),e}}},{key:"dispose",value:function(){var e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,e&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEventsObservable}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}},{key:"setDirection",value:function(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}},{key:"addPanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!0)}},{key:"removePanelClass",value:function(e){this._pane&&this._toggleClasses(this._pane,e,!1)}},{key:"getDirection",value:function(){var e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}},{key:"updateScrollStrategy",value:function(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var e=this._pane.style;e.width=Hg(this._config.width),e.height=Hg(this._config.height),e.minWidth=Hg(this._config.minWidth),e.minHeight=Hg(this._config.minHeight),e.maxWidth=Hg(this._config.maxWidth),e.maxHeight=Hg(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(e){this._pane.style.pointerEvents=e?"auto":"none"}},{key:"_attachBackdrop",value:function(){var e=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){e._backdropElement&&e._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var e,t=this,n=this._backdropElement;if(n){var i=function i(){n&&(n.removeEventListener("click",t._backdropClickHandler),n.removeEventListener("transitionend",i),n.parentNode&&n.parentNode.removeChild(n)),t._backdropElement==n&&(t._backdropElement=null),t._config.backdropClass&&t._toggleClasses(n,t._config.backdropClass,!1),clearTimeout(e)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){n.addEventListener("transitionend",i)})),n.style.pointerEvents="none",e=this._ngZone.runOutsideAngular((function(){return setTimeout(i,500)}))}}},{key:"_toggleClasses",value:function(e,t,n){var i=e.classList;Vg(t).forEach((function(e){e&&(n?i.add(e):i.remove(e))}))}},{key:"_detachContentWhenStable",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){var t=e._ngZone.onStable.asObservable().pipe(kk(le(e._attachments,e._detachments))).subscribe((function(){e._pane&&e._host&&0!==e._pane.children.length||(e._pane&&e._config.panelClass&&e._toggleClasses(e._pane,e._config.panelClass,!1),e._host&&e._host.parentElement&&(e._previousHostParent=e._host.parentElement,e._previousHostParent.removeChild(e._host)),t.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}}])}(),YS=/([A-Za-z%]+)$/,qS=function(){return d((function e(t,n,i,o,a){c(this,e),this._viewportRuler=n,this._document=i,this._platform=o,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new V,this._resizeSubscription=M.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}),[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){var t=this;if(this._overlayRef&&e!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),e.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){t._isInitialRender=!0,t.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var e,t,n=this._originRect,i=this._overlayRect,a=this._viewportRect,r=[],s=o(this._preferredPositions);try{for(s.s();!(t=s.n()).done;){var l=t.value,c=this._getOriginPoint(n,l),u=this._getOverlayPoint(c,i,l),d=this._getOverlayFit(u,i,a,l);if(d.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(l,c);this._canFitWithFlexibleDimensions(d,u,a)?r.push({position:l,origin:c,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(c,l)}):(!e||e.overlayFit.visibleArea<d.visibleArea)&&(e={overlayFit:d,overlayPoint:u,originPoint:c,position:l,overlayRect:i})}}catch(y){s.e(y)}finally{s.f()}if(r.length){var h,f=null,m=-1,p=o(r);try{for(p.s();!(h=p.n()).done;){var g=h.value,v=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);v>m&&(m=v,f=g)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(e.position,e.originPoint);this._applyPosition(e.position,e.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&US(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,e);this._applyPosition(e,t)}}},{key:"withScrollableContainers",value:function(e){return this._scrollables=e,this}},{key:"withPositions",value:function(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(e){return this._viewportMargin=e,this}},{key:"withFlexibleDimensions",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=e,this}},{key:"withGrowAfterOpen",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=e,this}},{key:"withPush",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=e,this}},{key:"withLockedPosition",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=e,this}},{key:"setOrigin",value:function(e){return this._origin=e,this}},{key:"withDefaultOffsetX",value:function(e){return this._offsetX=e,this}},{key:"withDefaultOffsetY",value:function(e){return this._offsetY=e,this}},{key:"withTransformOriginOn",value:function(e){return this._transformOriginSelector=e,this}},{key:"_getOriginPoint",value:function(e,t){var n;if("center"==t.originX)n=e.left+e.width/2;else{var i=this._isRtl()?e.right:e.left,o=this._isRtl()?e.left:e.right;n="start"==t.originX?i:o}return{x:n,y:"center"==t.originY?e.top+e.height/2:"top"==t.originY?e.top:e.bottom}}},{key:"_getOverlayPoint",value:function(e,t,n){var i,o;return i="center"==n.overlayX?-t.width/2:"start"===n.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==n.overlayY?-t.height/2:"top"==n.overlayY?0:-t.height,{x:e.x+i,y:e.y+o}}},{key:"_getOverlayFit",value:function(e,t,n,i){var o=e.x,a=e.y,r=this._getOffset(i,"x"),s=this._getOffset(i,"y");r&&(o+=r),s&&(a+=s);var l=0-a,c=a+t.height-n.height,u=this._subtractOverflows(t.width,0-o,o+t.width-n.width),d=this._subtractOverflows(t.height,l,c),h=u*d;return{visibleArea:h,isCompletelyWithinViewport:t.width*t.height===h,fitsInViewportVertically:d===t.height,fitsInViewportHorizontally:u==t.width}}},{key:"_canFitWithFlexibleDimensions",value:function(e,t,n){if(this._hasFlexibleDimensions){var i=n.bottom-t.y,o=n.right-t.x,a=WS(this._overlayRef.getConfig().minHeight),r=WS(this._overlayRef.getConfig().minWidth),s=e.fitsInViewportHorizontally||null!=r&&r<=o;return(e.fitsInViewportVertically||null!=a&&a<=i)&&s}return!1}},{key:"_pushOverlayOnScreen",value:function(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};var i,o,a=this._viewportRect,r=Math.max(e.x+t.width-a.right,0),s=Math.max(e.y+t.height-a.bottom,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0);return i=t.width<=a.width?c||-r:e.x<this._viewportMargin?a.left-n.left-e.x:0,o=t.height<=a.height?l||-s:e.y<this._viewportMargin?a.top-n.top-e.y:0,this._previousPushAmount={x:i,y:o},{x:e.x+i,y:e.y+o}}},{key:"_applyPosition",value:function(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){var n=this._getScrollVisibility(),i=new AS(e,n);this._positionChanges.next(i)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(e){if(this._transformOriginSelector){var t,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=e.overlayY;t="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(var o=0;o<n.length;o++)n[o].style.transformOrigin="".concat(t," ").concat(i)}}},{key:"_calculateBoundingBoxRect",value:function(e,t){var n,i,o,a,r,s,l=this._viewportRect,c=this._isRtl();if("top"===t.overlayY)i=e.y,n=l.height-i+this._viewportMargin;else if("bottom"===t.overlayY)o=l.height-e.y+2*this._viewportMargin,n=l.height-o+this._viewportMargin;else{var u=Math.min(l.bottom-e.y+l.top,e.y),d=this._lastBoundingBoxSize.height;n=2*u,i=e.y-u,n>d&&!this._isInitialRender&&!this._growAfterOpen&&(i=e.y-d/2)}if("end"===t.overlayX&&!c||"start"===t.overlayX&&c)s=l.width-e.x+this._viewportMargin,a=e.x-this._viewportMargin;else if("start"===t.overlayX&&!c||"end"===t.overlayX&&c)r=e.x,a=l.right-e.x;else{var h=Math.min(l.right-e.x+l.left,e.x),f=this._lastBoundingBoxSize.width;a=2*h,r=e.x-h,a>f&&!this._isInitialRender&&!this._growAfterOpen&&(r=e.x-f/2)}return{top:i,left:r,bottom:o,right:s,width:a,height:n}}},{key:"_setBoundingBoxStyles",value:function(e,t){var n=this._calculateBoundingBoxRect(e,t);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;i.height=Hg(n.height),i.top=Hg(n.top),i.bottom=Hg(n.bottom),i.width=Hg(n.width),i.left=Hg(n.left),i.right=Hg(n.right),i.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",i.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(i.maxHeight=Hg(o)),a&&(i.maxWidth=Hg(a))}this._lastBoundingBoxSize=n,US(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){US(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){US(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(e,t){var n={},i=this._hasExactPosition(),o=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(i){var r=this._viewportRuler.getViewportScrollPosition();US(n,this._getExactOverlayY(t,e,r)),US(n,this._getExactOverlayX(t,e,r))}else n.position="static";var s="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(s+="translateX(".concat(l,"px) ")),c&&(s+="translateY(".concat(c,"px)")),n.transform=s.trim(),a.maxHeight&&(i?n.maxHeight=Hg(a.maxHeight):o&&(n.maxHeight="")),a.maxWidth&&(i?n.maxWidth=Hg(a.maxWidth):o&&(n.maxWidth="")),US(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(e,t,n){var i={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return o.y-=a,"bottom"===e.overlayY?i.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":i.top=Hg(o.y),i}},{key:"_getExactOverlayX",value:function(e,t,n){var i={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,n)),"right"===(this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":i.left=Hg(o.x),i}},{key:"_getScrollVisibility",value:function(){var e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(e){return e.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:TS(e,n),isOriginOutsideView:PS(e,n),isOverlayClipped:TS(t,n),isOverlayOutsideView:PS(t,n)}}},{key:"_subtractOverflows",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 n.reduce((function(e,t){return e-Math.max(t,0)}),e)}},{key:"_getNarrowedViewportRect",value:function(){var e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(e){BS("originX",e.originX),ES("originY",e.originY),BS("overlayX",e.overlayX),ES("overlayY",e.overlayY)}))}},{key:"_addPanelClasses",value:function(e){var t=this;this._pane&&Vg(e).forEach((function(e){""!==e&&-1===t._appliedPanelClasses.indexOf(e)&&(t._appliedPanelClasses.push(e),t._pane.classList.add(e))}))}},{key:"_clearPanelClasses",value:function(){var e=this;this._pane&&(this._appliedPanelClasses.forEach((function(t){e._pane.classList.remove(t)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var e=this._origin;if(e instanceof Ml)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();var t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}}])}();function US(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function WS(e){if("number"!=typeof e&&null!=e){var t=i(e.split(YS),2),n=t[0],o=t[1];return o&&"px"!==o?null:parseFloat(n)}return e||null}var JS,GS,$S,QS,KS,ZS,XS,eP=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this._preferredPositions=[],this._positionStrategy=new qS(i,o,a,r,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n)}),[{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(e){this._overlayRef=e,this._positionStrategy.attach(e),this._direction&&(e.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(e){this._positionStrategy.withScrollableContainers(e)}},{key:"withFallbackPosition",value:function(e,t,n,i){var o=new FS(e,t,n,i);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(e){return this._overlayRef?this._overlayRef.setDirection(e):this._direction=e,this}},{key:"withOffsetX",value:function(e){return this._positionStrategy.withDefaultOffsetX(e),this}},{key:"withOffsetY",value:function(e){return this._positionStrategy.withDefaultOffsetY(e),this}},{key:"withLockedPosition",value:function(e){return this._positionStrategy.withLockedPosition(e),this}},{key:"withPositions",value:function(e){return this._preferredPositions=e.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(e){return this._positionStrategy.setOrigin(e),this}}])}(),tP=function(){return d((function e(){c(this,e),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}),[{key:"attach",value:function(e){var t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}},{key:"left",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}},{key:"right",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}},{key:"width",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}},{key:"height",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}},{key:"centerHorizontally",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(e),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(e),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,o=n.height,a=n.maxWidth,r=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||a&&"100%"!==a&&"100vw"!==a),l=!("100%"!==o&&"100vh"!==o||r&&"100%"!==r&&"100vh"!==r);e.position=this._cssPosition,e.marginLeft=s?"0":this._leftOffset,e.marginTop=l?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,s?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=l?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}}])}(),nP=((GS=function(){return d((function e(t,n,i,o){c(this,e),this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=o}),[{key:"global",value:function(){return new tP}},{key:"connectedTo",value:function(e,t,n){return new eP(t,n,e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(e){return new qS(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}])}()).\u0275fac=function(e){return new(e||GS)(ut(lS),ut(Qu),ut($g),ut(VS))},GS.\u0275prov=Se({factory:function(){return new GS(ut(lS),ut(Qu),ut($g),ut(VS))},token:GS,providedIn:"root"}),GS),iP=0,oP=((JS=function(){return d((function e(t,n,i,o,a,r,s,l,u,d){c(this,e),this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=r,this._ngZone=s,this._document=l,this._directionality=u,this._location=d}),[{key:"create",value:function(e){var t=this._createHostElement(),n=this._createPaneElement(t),i=this._createPortalOutlet(n),o=new IS(e);return o.direction=o.direction||this._directionality.value,new HS(i,t,n,o,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(e){var t=this._document.createElement("div");return t.id="cdk-overlay-"+iP++,t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}},{key:"_createHostElement",value:function(){var e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}},{key:"_createPortalOutlet",value:function(e){return this._appRef||(this._appRef=this._injector.get(Bu)),new bS(e,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}])}()).\u0275fac=function(e){return new(e||JS)(ut(DS),ut(VS),ut(xl),ut(nP),ut(jS),ut(Sr),ut(gu),ut(Qu),ut(jv),ut(gd,8))},JS.\u0275prov=Se({token:JS,factory:JS.\u0275fac}),JS),aP={provide:new tt("cdk-connected-overlay-scroll-strategy"),deps:[oP],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},rP=(($S=d((function e(){c(this,e)}))).\u0275mod=Ft({type:$S}),$S.\u0275inj=Pe({factory:function(e){return new(e||$S)},providers:[oP,aP],imports:[[zv,kS,uS],uS]}),$S),sP=["mat-button",""],lP=["*"],cP=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],uP=C_(function(e){return function(e){function t(){var e;c(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=f(this,t,[].concat(i)))._disabled=!1,e}return p(t,e),d(t,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=jg(e)}}])}(e)}(function(e){function t(){var e;c(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=f(this,t,[].concat(i)))._disableRipple=!1,e}return p(t,e),d(t,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=jg(e)}}])}(d((function e(t){c(this,e),this._elementRef=t}))))),dP=((KS=function(e){function t(e,n,i){var a;c(this,t),(a=f(this,t,[e]))._focusMonitor=n,a._animationMode=i,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var r,s=o(cP);try{for(s.s();!(r=s.n()).done;){var l=r.value;a._hasHostAttributes(l)&&a._getHostElement().classList.add(l)}}catch(u){s.e(u)}finally{s.f()}return e.nativeElement.classList.add("mat-button-base"),a._focusMonitor.monitor(a._elementRef,!0),a.isRoundButton&&(a.color="accent"),a}return p(t,e),d(t,[{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",t=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),e,t)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.some((function(t){return e._getHostElement().hasAttribute(t)}))}}])}(uP)).\u0275fac=function(e){return new(e||KS)($r(Ml),$r(Tv),$r(g_,8))},KS.\u0275cmp=Ot({type:KS,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(e,t){var n;1&e&&Rc(Q_,!0),2&e&&Bc(n=Yc())&&(t.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:3,hostBindings:function(e,t){2&e&&(Yr("disabled",t.disabled||null),Fs("_mat-animation-noopable","NoopAnimations"===t._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[al],attrs:sP,ngContentSelectors:lP,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(e,t){1&e&&(ps(),es(0,"span",0),gs(1),ts(),ns(2,"div",1),ns(3,"div",2)),2&e&&(Bo(2),Fs("mat-button-ripple-round",t.isRoundButton||t.isIconButton),Zr("matRippleDisabled",t._isRippleDisabled())("matRippleCentered",t.isIconButton)("matRippleTrigger",t._getHostElement()))},directives:[Q_],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled],.mat-flat-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),KS),hP=((QS=d((function e(){c(this,e)}))).\u0275mod=Ft({type:QS}),QS.\u0275inj=Pe({factory:function(e){return new(e||QS)},imports:[[K_,k_],k_]}),QS),fP=new Set,mP=((XS=function(){return d((function e(t){c(this,e),this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pP}),[{key:"matchMedia",value:function(e){return this._platform.WEBKIT&&function(e){if(!fP.has(e))try{ZS||((ZS=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(ZS)),ZS.sheet&&(ZS.sheet.insertRule("@media ".concat(e," {.fx-query-test{ }}"),0),fP.add(e))}catch(t){console.error(t)}}(e),this._matchMedia(e)}}])}()).\u0275fac=function(e){return new(e||XS)(ut($g))},XS.\u0275prov=Se({factory:function(){return new XS(ut($g))},token:XS,providedIn:"root"}),XS);function pP(e){return{matches:"all"===e||""===e,media:e,addListener:function(){},removeListener:function(){}}}var gP,vP=((gP=function(){return d((function e(t,n){c(this,e),this._mediaMatcher=t,this._zone=n,this._queries=new Map,this._destroySubject=new V}),[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(e){var t=this;return yP(Vg(e)).some((function(e){return t._registerQuery(e).mql.matches}))}},{key:"observe",value:function(e){var t=this,n=PC(yP(Vg(e)).map((function(e){return t._registerQuery(e).observable})));return(n=Yv(n.pipe(Eg(1)),n.pipe(xk(1),Tg(0)))).pipe(Z((function(e){var t={matches:!1,breakpoints:{}};return e.forEach((function(e){t.matches=t.matches||e.matches,t.breakpoints[e.query]=e.matches})),t})))}},{key:"_registerQuery",value:function(e){var t=this;if(this._queries.has(e))return this._queries.get(e);var n=this._mediaMatcher.matchMedia(e),i={observable:new E((function(e){var i=function(n){return t._zone.run((function(){return e.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(qv(n),Z((function(t){return{query:e,matches:t.matches}})),kk(this._destroySubject)),mql:n};return this._queries.set(e,i),i}}])}()).\u0275fac=function(e){return new(e||gP)(ut(mP),ut(gu))},gP.\u0275prov=Se({factory:function(){return new gP(ut(mP),ut(gu))},token:gP,providedIn:"root"}),gP);function yP(e){return e.map((function(e){return e.split(",")})).reduce((function(e,t){return e.concat(t)})).map((function(e){return e.trim()}))}function bP(e,t){if(1&e){var n=as();es(0,"div",1),es(1,"button",2),ls("click",(function(){return mn(n),fs().action()})),Gs(2),ts(),ts()}if(2&e){var i=fs();Bo(2),$s(i.data.action)}}function _P(e,t){}var kP,CP,wP,xP,MP,SP,PP,TP,OP=Math.pow(2,31)-1,LP=function(){return d((function e(t,n){var i=this;c(this,e),this._overlayRef=n,this._afterDismissed=new V,this._afterOpened=new V,this._onAction=new V,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return i.dismiss()})),t._onExit.subscribe((function(){return i._finishDismiss()}))}),[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(e){var t=this;this._durationTimeoutId=setTimeout((function(){return t.dismiss()}),Math.min(e,OP))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed.asObservable()}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction.asObservable()}}])}(),DP=new tt("MatSnackBarData"),IP=d((function e(){c(this,e),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"})),FP=((kP=function(){return d((function e(t,n){c(this,e),this.snackBarRef=t,this.data=n}),[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}])}()).\u0275fac=function(e){return new(e||kP)($r(LP),$r(DP))},kP.\u0275cmp=Ot({type:kP,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(e,t){1&e&&(es(0,"span"),Gs(1),ts(),Jr(2,bP,3,1,"div",0)),2&e&&(Bo(1),$s(t.data.message),Bo(1),Zr("ngIf",t.hasAction))},directives:[sh,dP],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),kP),AP={snackBarState:Wv("state",[Qv("void, hidden",$v({transform:"scale(0.8)",opacity:0})),Qv("visible",$v({transform:"scale(1)",opacity:1})),Kv("* => visible",Jv("150ms cubic-bezier(0, 0, 0.2, 1)")),Kv("* => void, * => hidden",Jv("75ms cubic-bezier(0.4, 0.0, 1, 1)",$v({opacity:0})))])},EP=((wP=function(e){function t(e,n,i,o){var a;return c(this,t),(a=f(this,t))._ngZone=e,a._elementRef=n,a._changeDetectorRef=i,a.snackBarConfig=o,a._destroyed=!1,a._onExit=new V,a._onEnter=new V,a._animationState="void",a.attachDomPortal=function(e){return a._assertNotAttached(),a._applySnackBarClasses(),a._portalOutlet.attachDomPortal(e)},a._role="assertive"!==o.politeness||o.announcementMessage?"off"===o.politeness?null:"status":"alert",a}return p(t,e),d(t,[{key:"attachComponentPortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(e)}},{key:"onAnimationEnd",value:function(e){var t=e.fromState,n=e.toState;if(("void"===n&&"void"!==t||"hidden"===n)&&this._completeExit(),"visible"===n){var i=this._onEnter;this._ngZone.run((function(){i.next(),i.complete()}))}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var e=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Eg(1)).subscribe((function(){e._onExit.next(),e._onExit.complete()}))}},{key:"_applySnackBarClasses",value:function(){var e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach((function(t){return e.classList.add(t)})):e.classList.add(t)),"center"===this.snackBarConfig.horizontalPosition&&e.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&e.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")}}])}(yS)).\u0275fac=function(e){return new(e||wP)($r(gu),$r(Ml),$r(ur),$r(IP))},wP.\u0275cmp=Ot({type:wP,selectors:[["snack-bar-container"]],viewQuery:function(e,t){var n;1&e&&Nc(_S,!0),2&e&&Bc(n=Yc())&&(t._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(e,t){1&e&&cs("@state.done",(function(e){return t.onAnimationEnd(e)})),2&e&&(Yr("role",t._role),il("@state",t._animationState))},features:[al],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Jr(0,_P,0,0,"ng-template",0)},directives:[_S],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[AP.snackBarState]}}),wP),BP=((CP=d((function e(){c(this,e)}))).\u0275mod=Ft({type:CP}),CP.\u0275inj=Pe({factory:function(e){return new(e||CP)},imports:[[rP,kS,Ph,hP,k_],k_]}),CP),NP=new tt("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new IP}}),RP=((PP=function(){return d((function e(t,n,i,o,a,r){c(this,e),this._overlay=t,this._live=n,this._injector=i,this._breakpointObserver=o,this._parentSnackBar=a,this._defaultConfig=r,this._snackBarRefAtThisLevel=null}),[{key:"_openedSnackBarRef",get:function(){var e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}},{key:"openFromComponent",value:function(e,t){return this._attach(e,t)}},{key:"openFromTemplate",value:function(e,t){return this._attach(e,t)}},{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:e,action:t},i.announcementMessage||(i.announcementMessage=e),this.openFromComponent(FP,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(e,t){var n=new CS(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[IP,t]])),i=new pS(EP,t.viewContainerRef,n),o=e.attach(i);return o.instance.snackBarConfig=t,o.instance}},{key:"_attach",value:function(e,t){var n=Object.assign(Object.assign(Object.assign({},new IP),this._defaultConfig),t),i=this._createOverlay(n),o=this._attachSnackBarContainer(i,n),a=new LP(o,i);if(e instanceof $l){var r=new gS(e,null,{$implicit:n.data,snackBarRef:a});a.instance=o.attachTemplatePortal(r)}else{var s=this._createInjector(n,a),l=new pS(e,void 0,s),c=o.attachComponentPortal(l);a.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(kk(i.detachments())).subscribe((function(e){var t=i.overlayElement.classList;e.matches?t.add("mat-snack-bar-handset"):t.remove("mat-snack-bar-handset")})),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(e,t){var n=this;e.afterDismissed().subscribe((function(){n._openedSnackBarRef==e&&(n._openedSnackBarRef=null),t.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){e.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):e.containerInstance.enter(),t.duration&&t.duration>0&&e.afterOpened().subscribe((function(){return e._dismissAfter(t.duration)})),t.announcementMessage&&this._live.announce(t.announcementMessage,t.politeness)}},{key:"_createOverlay",value:function(e){var t=new IS;t.direction=e.direction;var n=this._overlay.position().global(),i="rtl"===e.direction,o="left"===e.horizontalPosition||"start"===e.horizontalPosition&&!i||"end"===e.horizontalPosition&&i,a=!o&&"center"!==e.horizontalPosition;return o?n.left("0"):a?n.right("0"):n.centerHorizontally(),"top"===e.verticalPosition?n.top("0"):n.bottom("0"),t.positionStrategy=n,this._overlay.create(t)}},{key:"_createInjector",value:function(e,t){return new CS(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[LP,t],[DP,e.data]]))}}])}()).\u0275fac=function(e){return new(e||PP)(ut(oP),ut(Cv),ut(Sr),ut(vP),ut(PP,12),ut(NP))},PP.\u0275prov=Se({factory:function(){return new PP(ut(oP),ut(Cv),ut(nt),ut(vP),ut(PP,12),ut(NP))},token:PP,providedIn:BP}),PP),jP=((SP=d((function e(t){c(this,e),this.data=t}))).\u0275fac=function(e){return new(e||SP)($r(DP))},SP.\u0275cmp=Ot({type:SP,selectors:[["snack-bar-component"]],decls:2,vars:4,template:function(e,t){1&e&&(es(0,"span"),Gs(1),ts()),2&e&&(Xs("message ",t.data.classe,""),Bo(1),Qs(" ",t.data.message," "))},styles:[".message[_ngcontent-%COMP%]{text-align: center;}"]}),SP),zP=((MP=function(){return d((function e(t){c(this,e),this.snackBar=t}),[{key:"arrayFilterWords",value:function(e,t,n){var i=this,o=new RegExp(this.removeSings(t));return e.filter((function(e){if(e[n])return i.removeSings(e[n]).match(o)}))}},{key:"arrayFilterAll",value:function(e,t,n){var i=new RegExp(t.toString());return e.filter((function(e){if(e[n])return e[n].toString().match(i)}))}},{key:"arrayReOder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.sort((function(e,i){return n?e[t].toUpperCase()<i[t].toUpperCase()?1:-1:e[t].toUpperCase()>i[t].toUpperCase()?1:-1}))}},{key:"arrayReOderNumber",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.sort((function(e,i){return n?e[t]<i[t]?1:-1:e[t]>i[t]?1:-1}))}},{key:"removeLetter",value:function(e){return e.replace(/\D/g,"").toLowerCase()}},{key:"removeSings",value:function(e){return(e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).replace(/([-.*+?^=!:$%{}()|\[\]\/\\])/g,"").toLowerCase()}},{key:"removeSpaces",value:function(e){return e.replace(/\s/g,"").toLowerCase()}},{key:"dateSplit",value:function(e){return e.includes("-")?[e.split("-")[2],e.split("-")[1],e.split("-")[0]]:e.includes("/")?[e.split("/")[0],e.split("/")[1],e.split("/")[2]]:void 0}},{key:"currentDateBR",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"max";return this.dateENtoBR(this.currentDateEN(e,t))}},{key:"currentDateEN",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"max";e.length<10&&(e="min"==t?"2020-01-01":"9999-99-99");var n=this.dateSplit(e),i=parseInt(n[0]),o=parseInt(n[1]),a=parseInt(n[2]),r=new Date,s=parseInt(String(r.getDate()).padStart(2,"0")),l=parseInt(String(r.getMonth()+1).padStart(2,"0")),c=r.getFullYear();"max"==t?(a==c&&(o==l&&i>s&&(i=s),o>l&&(o=l,i=s)),a>c&&(a=c,o=l,i=s)):(a==c&&(o==l&&i<s&&(i=s),o<l&&(o=l,i=s)),a<c&&(a=c,o=l,i=s));var u=String(i),d=String(o),h=String(a);return 1==u.length&&(u="0"+i),1==d.length&&(d="0"+o),1==h.length&&(h="0"+a),h+"-"+d+"-"+u}},{key:"dateENtoBR",value:function(e){return e.length<10&&(e="0000-00-00"),e.split("-").reverse().join("/")}},{key:"dateBRtoEN",value:function(e){return e.length<10&&(e="00-00-0000"),e.split("/").reverse().join("-")}},{key:"getCurrentDateEN",value:function(){return this.currentDateEN("2020-01-01","min")}},{key:"getDateAsInt",value:function(e){return parseInt(this.removeSings(e))}},{key:"getDayAfter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(null==e||""==e)return"";var n=new Date(e);n.setDate(n.getDate()+(t+1));var i=String(n.getDate()).padStart(2,"0"),o=String(n.getMonth()+1).padStart(2,"0");return n.getFullYear()+"-"+o+"-"+i}},{key:"getDayBefore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=new Date(e);n.setDate(n.getDate()-(t-1));var i=String(n.getDate()).padStart(2,"0"),o=String(n.getMonth()+1).padStart(2,"0");return String(n.getFullYear())+"-"+o+"-"+i}},{key:"getDayName",value:function(e){var t=new Date(e);return t.setDate(t.getDate()+1),["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"][t.getDay()]}},{key:"getDayListForSelect",value:function(){for(var e=[],t=1;t<=28;t++){var n=t.toString().length<2?"0":"";e.push(n+t.toString())}return e}},{key:"getFirstLastDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";""==e&&(e=this.currentDateBR("01/01/2020","min"));var t=this.dateSplit(e)[1],n=this.dateSplit(e)[2],i=n+"-"+t+"-01",o=(parseInt(t)+1).toString();return 1==o.length&&(o="0"+o),[i,"12"!=t?this.getDayBefore(n+"-"+o+"-01",1):n+"-12-31"]}},{key:"getFullDateBR",value:function(e){var t=new Date(e);t.setDate(t.getDate()+1);var n=t.getDay(),i=t.getFullYear(),o=t.getMonth(),a=t.getDate();return["Domingo","Segunda-feira","Ter\xe7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xe1bado"][n]+", "+a+" de "+["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"][o]+" de "+i}},{key:"getMonthAfterBR",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.dateENtoBR(this.getMonthAfterEN(e,t))}},{key:"getMonthAfterEN",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.dateSplit(e),o=i(n,3),a=o[0],r=o[1],s=o[2];return parseInt(r)+t>12?(r=String(t+parseInt(r)-12),s=String(parseInt(s)+1)):r=String(parseInt(r)+t),this.validMonthReturn(s,r,a)}},{key:"getMonthBeforeBR",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.dateENtoBR(this.getMonthBeforeEN(e,t))}},{key:"getMonthBeforeEN",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.dateSplit(e),o=i(n,3),a=o[0],r=o[1],s=o[2];return parseInt(r)-t<1?(r=String(12-(t-parseInt(r))),s=String(parseInt(s)-1)):r=String(parseInt(r)-t),this.validMonthReturn(s,r,a)}},{key:"validMonthReturn",value:function(e,t,n){var i=e+"-"+(1==t.length?"0"+t:t)+"-"+n,o=this.getFirstLastDay(i)[1];return parseInt(this.removeSings(i))>parseInt(this.removeSings(o))&&(i=o),i}},{key:"getDateTimeBRFRomDateTimeDB",value:function(e){return this.getSmallDateBR(e)+" "+e.split(" ")[1]}},{key:"getMonthName",value:function(e){return["Janeiro","Fevereiro","Mar\xe7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"][parseInt(this.dateSplit(e)[1])-1]}},{key:"getSmallDateBR",value:function(e){var t=new Date(e);return t.setDate(t.getDate()),String(t.getDate()).padStart(2,"0")+"/"+String(t.getMonth()+1).padStart(2,"0")+"/"+t.getFullYear()}},{key:"getSmallDateEN",value:function(e){var t=new Date(e);t.setDate(t.getDate());var n=String(t.getDate()).padStart(2,"0"),i=String(t.getMonth()+1).padStart(2,"0");return t.getFullYear()+"-"+i+"-"+n}},{key:"monthsDiff",value:function(e,t){var n=new Date(e),i=new Date(t);return 12*this.yearsDiff(e,t)+(i.getMonth()-n.getMonth())}},{key:"yearsDiff",value:function(e,t){var n=new Date(e);return new Date(t).getFullYear()-n.getFullYear()}},{key:"copyTextToClipboard",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Copiado!",n=document.createElement("textarea");n.style.position="fixed",n.style.left="0",n.style.top="0",n.style.opacity="0",n.value=e,document.body.appendChild(n),n.focus(),n.select(),document.execCommand("copy"),document.body.removeChild(n),this.openSnackBar(t,"default",500)}},{key:"downloadFile",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=document.createElement("a");document.body.appendChild(o),o.style="display: none";var a=new Blob([e],{type:"application/"+t}),r=window.URL.createObjectURL(a);o.href=r,i?o.target="_blank":o.download=n+"."+t,o.click(),document.body.removeChild(o),setTimeout((function(){window.URL.revokeObjectURL(r)}),100)}},{key:"calcTimeInsideInterval",value:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=0,r=this.hourToMinute(e),s=this.hourToMinute(t),l=this.hourToMinute(n),c=this.hourToMinute(i);if(0!=r&&0==s&&(s=1439),0==r&&0==s&&o&&(s=1439),l>c)if(r<=s)for(var u=r;u<=s;u++)(u<=c||l<=u)&&a++;else{for(var d=0;d<=s;d++)(d<=c||l<=d)&&a++;for(var h=r;h<=1439;h++)(h<=c||l<=h)&&a++}else if(r<=s)for(var f=r;f<=s;f++)l<=f&&f<=c&&a++;else{for(var m=0;m<=s;m++)l<=m&&m<=c&&a++;for(var p=r;p<=1439;p++)l<=p&&p<=c&&a++}return 0!=a&&a--,this.minuteToHour(a)}},{key:"convertNightTime",value:function(e){var t=this.hourToMinute(e);return t/=.875,this.minuteToHour(t)}},{key:"diffTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],i=0,o=0;e.forEach((function(e){n.push(60*parseInt(e.split(":")[0])+parseInt(e.split(":")[1])),o++}));for(var a=0;a<o;a++)0==t&&n[a+1]<n[a]&&(n[a+1]=n[a+1]+1440),1==t&&n[a+1]<=n[a]&&(n[a+1]=n[a+1]+1440),i+=n[a+1]-n[a],a++;var r=parseInt((i/60).toString().split(".")[0]);return this.numberToHour(r,i-60*r)}},{key:"hourToMinute",value:function(e){return 60*parseInt(e.split(":")[0])+parseInt(e.split(":")[1])}},{key:"minuteToHour",value:function(e){var t=parseInt((e/60).toString().split(".")[0]);return this.numberToHour(t,e-60*t)}},{key:"multiplyTime",value:function(e,t){var n=0;n=60*parseInt(e.split(":")[0])+parseInt(e.split(":")[1]),n*=t;var i=parseInt((n/60).toString().split(".")[0]);return this.numberToHour(i,n-60*i)}},{key:"numberToHour",value:function(e,t){var n="",i="";return(e.toString().includes("-")||t.toString().includes("-"))&&(e=Math.abs(e),t=Math.abs(t),i="-"),1==e.toString().length&&(n="0"),n=n+e.toString()+":",1==t.toString().length&&(n+="0"),i+(n+=t.toString())}},{key:"sumTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=0,i=0;e.forEach((function(e){t.push(60*parseInt(e.split(":")[0])+parseInt(e.split(":")[1])),i++}));for(var o=0;o<i;o++)n+=t[o];var a=parseInt((n/60).toString().split(".")[0]);return this.numberToHour(a,n-60*a)}},{key:"sumTimeNegative",value:function(e,t){var n=parseInt(this.removeSings(e)),i=parseInt(this.removeSings(t)),o=e.includes("-"),a=t.includes("-");if(o==a)return o||a?"-"+this.sumTime([e.slice(1),t.slice(1)]):this.sumTime([e,t]);if(o!=a){var r="";return o?e=e.slice(1):t=t.slice(1),n>i?(r=this.subtractTime(e,t),o&&(r="-"+r)):(r=this.subtractTime(t,e),a&&(r="-"+r)),"-00:00"==r?"00:00":r}}},{key:"subtractTime",value:function(e,t){var n=60*parseInt(e.split(":")[0])+parseInt(e.split(":")[1])-(60*parseInt(t.split(":")[0])+parseInt(t.split(":")[1])),i=parseInt((n/60).toString().split(".")[0]),o=n-60*i;return i=parseInt(i.toString()),o=parseInt(o.toString()),this.numberToHour(i,o)}},{key:"subtractTimeNegative",value:function(e,t){var n=parseInt(this.removeSings(e)),i=parseInt(this.removeSings(t)),o=e.includes("-"),a=t.includes("-"),r="00:00";return o==a&&(o?(r=n>=i?this.subtractTime(e.slice(1),t.slice(1)):this.subtractTime(t.slice(1),e.slice(1)),n>i&&(r="-"+r)):r=this.subtractTime(e,t)),o!=a&&(o?e=e.slice(1):t=t.slice(1),r=this.sumTime([e,t]),o&&(r="-"+r)),r}},{key:"toMoney",value:function(e){var t=e.toString();if(t.length>2){var n=t.substring(0,t.length-2),i=t.substring(t.length-2);if((t=n+","+i).length>6){var o=t.substring(0,t.length-6),a=t.substring(t.length-6);if((t=o+"."+a).length>10){var r=t.substring(0,t.length-10),s=t.substring(t.length-10);if((t=r+"."+s).length>14){var l=t.substring(0,t.length-14),c=t.substring(t.length-14);t=l+"."+c}}}}return t}},{key:"encodeNumericSequenceValue",value:function(e){var t=0;return e.forEach((function(e){return t+=e})),t}},{key:"decodeNumericSequenceValue",value:function(e){for(var t=[],n=[],i=1;i<=e;)t.push(i),i*=2;for(;0!=e;)e-t[t.length-1]>=0?(e-=t[t.length-1],n.push(t[t.length-1]),t.pop()):t.pop(),0==t.length&&(e=0);return n}},{key:"refresh",value:function(){window.location.reload()}},{key:"getSalutation",value:function(){var e=new Date;return e.getHours()>=6&&e.getHours()<12?"Bom dia":e.getHours()>=12&&e.getHours()<18?"Boa tarde":e.getHours()>=18||e.getHours()<6?"Boa noite":void 0}},{key:"openSnackBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3500;switch(e){case"adBlockViewDoc":e="Para visualizar o documento \xe9 necessario desativar seu Bloqueador de an\xfancios.";break;case"blockedTemp":e="Op\xe7\xe3o temporariamente ind\xedponivel.";break;case"errorDownload":e="N\xe3o foi poss\xedvel baixar os arquivos neste momento.";break;case"errorOps":e="Ops! Ocorreu um erro, tente novamente mais tarde.";break;case"emptyDateField":e="O campo data \xe9 obrigat\xf3rios quando se troca de regime!",t="error";break;case"emptyField":e="Todos os campos obrigat\xf3rios devem ser preenchidos!",t="error";break;case"endDateBigger":e="A data final n\xe3o pode ser menor que a data inicial.";break;case"endHourBigger":e="A hora final n\xe3o pode ser menor que a hora inicial.";break;case"invalidCei":e="CEI inv\xe1lido!",t="error";break;case"invalidCnpj":e="CNPJ inv\xe1lido!",t="error";break;case"invalidCpf":e="CPF inv\xe1lido!",t="error";break;case"invalidEmail":e="E-mail inv\xe1lido!",t="error";break;case"journeyModel":e="Selecione um modelo de escala para continuar.";break;case"journeyOneDay":e="A escala deve ter ao menos um dia.";break;case"journeyOneTurn":e="A escala deve ter ao menos um turno.";break;case"journeyType":e="Selecione um tipo de escala para continuar.";break;case"maxTextLenght":e="O n\xfamero m\xe1ximo de caracteres permitidos \xe9 255.";break;case"toleranceDayMin":e="A toler\xe2ncia por dia deve ser de no m\xednimo 10 minutos";break;case"toleranceTurnMin":e="A toler\xe2ncia por turno deve ser de no m\xednimo 5 minutos";break;case"toleranceLateMin":e="A toler\xe2ncia de atraso deve ser de no m\xednimo 5 minutos";break;case"teste":e="teste";break;case"":e="Ocorreu um erro."}this.snackBar.openFromComponent(jP,{duration:n,data:{message:e},panelClass:[t],horizontalPosition:"center",verticalPosition:"bottom"})}}])}()).\u0275fac=function(e){return new(e||MP)(ut(RP))},MP.\u0275prov=Se({token:MP,factory:MP.\u0275fac,providedIn:"root"}),MP),VP=((xP=function(){return d((function e(t){c(this,e),this.router=t,this.permissionListLoaded=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"goToLoginPage",value:function(){localStorage.clear(),sessionStorage.clear(),this.router.navigate(["/login"]).then((function(){return!1}))}}])}()).\u0275fac=function(e){return new(e||xP)(ut(yM))},xP.\u0275prov=Se({token:xP,factory:xP.\u0275fac,providedIn:"root"}),xP),HP=l("NFKh"),YP=((TP=function(){return d((function e(){c(this,e),this.urlAppleMultiPoint="https://apps.apple.com/br/app/iopoint-registro-de-ponto/id1572715186",this.urlAndroidMultiPoint="https://play.google.com/store/apps/details?id=br.com.iopoint.app",this.urlAndroidBasic="https://play.google.com/store/apps/details?id=br.com.iopoint.app_basic",this.secretPassphrase="10point!#2020$"}),[{key:"encodeToLocalStorage",value:function(e,t){null===t&&localStorage.setItem(e,HP.AES.encrypt(t,this.secretPassphrase).toString()),null!==t&&localStorage.setItem(e,HP.AES.encrypt(t.toString().trim(),this.secretPassphrase).toString())}},{key:"decodeFromLocalStorage",value:function(e){var t=localStorage.getItem(e)?localStorage.getItem(e):null;return null===t?null:HP.AES.decrypt(t.trim(),this.secretPassphrase.trim()).toString(HP.enc.Utf8)}},{key:"removeLocalStorage",value:function(e){localStorage.removeItem(e)}}])}()).\u0275fac=function(e){return new(e||TP)},TP.\u0275prov=Se({token:TP,factory:TP.\u0275fac,providedIn:"root"}),TP),qP=Wu.databaseUrl,UP=Wu.databaseUrlAdm,WP=Wu.databaseUrlFranchise,JP=Wu.systemVersion;Wu.production||(JP+="-dev");var GP,$P,QP,KP,ZP,XP,eT,tT=((ZP=function(){return d((function e(t,n,i,o,a){c(this,e),this.httpClient=t,this.router=n,this.functionsService=i,this.loginService=o,this.storageService=a,this.loadingOn=new Mc}),[{key:"currentDatabaseUrl",value:function(){return qP}},{key:"currentSystemVersion",value:function(){return JP}},{key:"emitLoadingOn",value:function(e){this.loadingOn.emit(e)}},{key:"getLoadingOn",value:function(){return this.loadingOn}},{key:"createHeader",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t="",n="";return e&&(t=this.storageService.decodeFromLocalStorage("userToken"),n=this.storageService.decodeFromLocalStorage("companyId")||"0"),new Fp({Authorization:"Bearer "+t,CompanyId:n})}},{key:"delete",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.createHeader(i);return this.emitLoadingOn(!0),this.httpClient.delete(qP+"/api"+e,{headers:o,params:t}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"get",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.createHeader(i);return this.emitLoadingOn(o),this.httpClient.get(qP+"/api"+e,{headers:a,params:t}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"getAdm",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.createHeader(i);return this.emitLoadingOn(!0),this.httpClient.get(UP+"/api"+e,{headers:o,params:t}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"getFranchise",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.createHeader(i);return this.emitLoadingOn(!0),this.httpClient.get(WP+"/api"+e,{headers:o,params:t}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"getChangeLog",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.createHeader(i);return this.emitLoadingOn(!0),this.httpClient.get(qP+"/api"+e,{headers:o,params:t}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"getFile",value:function(e,t){var n=this,i=this.createHeader();return i=i.set("Cache-control","no-cache"),this.emitLoadingOn(!0),this.httpClient.get(qP+"/api"+e,{headers:i,params:t,responseType:"arraybuffer"}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"getHtmlText",value:function(e,t){var n=this,i=this.createHeader();return this.emitLoadingOn(!0),this.httpClient.get(qP+"/api"+e,{headers:i,params:t,responseType:"text"}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"post",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this.createHeader(i);return this.emitLoadingOn(o),this.httpClient.post(qP+"/api"+e,t,{headers:a}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"put",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.createHeader(i);return this.emitLoadingOn(!0),this.httpClient.put(qP+"/api"+e,t,{headers:o}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"externalGet",value:function(e,t){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.emitLoadingOn(i),this.httpClient.get(e,{params:t}).pipe(kg((function(e){n.msgEmitter(e)}),(function(e){n.msgEmitter(e)})))}},{key:"getCep",value:function(e,t){this.get("/zipCode",{zip_code:e}).subscribe({next:function(e){t({data:e})},error:function(e){t({error:e})}})}},{key:"getProposalData",value:function(e,t){this.get("/getProposalDataByHash",{hash_helper:e}).subscribe({next:function(e){t({data:e})},error:function(e){t({error:e})}})}},{key:"getAdmSellerData",value:function(e,t){this.getAdm("/getSellerDataByCode",{code:e}).subscribe({next:function(e){t({data:e})},error:function(e){t({error:e})}})}},{key:"getFranchiseSellerData",value:function(e,t){this.getFranchise("/getSellerDataByCode",{code:e}).subscribe({next:function(e){t({data:e})},error:function(e){t({error:e})}})}},{key:"getChangeLogData",value:function(e){this.getChangeLog("/company/changeLog",[]).subscribe({next:function(t){e({data:t})},error:function(t){e({error:t})}})}},{key:"getLastChangeLogDate",value:function(e){this.getChangeLog("/company/lastChangeLog",[]).subscribe({next:function(t){e({data:t})},error:function(t){e({error:t})}})}},{key:"msgEmitter",value:function(e){if(this.emitLoadingOn(!1),e.status&&401==e.status&&null!=this.storageService.decodeFromLocalStorage("userToken"))this.refreshToken();else{if(e.error&&e.error.error&&e.error.error.msg){if("hasNoPermission"!=e.error.error.msg)return void this.functionsService.openSnackBar(e.error.error.msg,"error");if("31"!=this.storageService.decodeFromLocalStorage("userId"))return this.functionsService.openSnackBar("Seu usu\xe1rio n\xe3o possui permiss\xe3o para esta a\xe7\xe3o."),void this.logout();this.functionsService.openSnackBar("O usu\xe1rio suporte n\xe3o possui permiss\xe3o para altera\xe7\xe3o de dados.","error")}e.msg&&this.functionsService.openSnackBar(e.msg)}}},{key:"refreshToken",value:function(){var e=this,t=this.createHeader(!1),n=this.storageService.decodeFromLocalStorage("userToken");this.httpClient.post(qP+"/api/refresh",{token:n},{headers:t}).subscribe({next:function(t){e.storageService.encodeToLocalStorage("userToken",t),window.location.reload()},error:function(){e.functionsService.openSnackBar("Sess\xe3o expirada, \xe9 necess\xe1rio fazer login novamente","default",5e3),e.loginService.goToLoginPage()}})}},{key:"logout",value:function(){var e=this.storageService.decodeFromLocalStorage("userToken");this.post("/logout",e,!0,!1).subscribe(),this.loginService.goToLoginPage()}}])}()).\u0275fac=function(e){return new(e||ZP)(ut(ng),ut(yM),ut(zP),ut(VP),ut(YP))},ZP.\u0275prov=Se({token:ZP,factory:ZP.\u0275fac,providedIn:"root"}),ZP),nT=((KP=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getFormData",value:function(e){this.databaseService.get("/permission/formData",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getPermission",value:function(e,t){this.databaseService.get("/permission/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPermissionList",value:function(e){this.databaseService.get("/permission",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getPermissionUserList",value:function(e,t){this.databaseService.get("/permission/"+e+"/userList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPermissionUserListOut",value:function(e,t){this.databaseService.get("/permission/"+e+"/userListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserPermission",value:function(e){this.databaseService.get("/permission/userPermission",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postPermission",value:function(e,t){this.databaseService.post("/permission",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putPermission",value:function(e,t,n){this.databaseService.put("/permission/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putPermissionUserList",value:function(e,t,n){this.databaseService.put("/permission/"+e+"/userList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"deletePermission",value:function(e,t){this.databaseService.delete("/permission/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||KP)(ut(tT))},KP.\u0275prov=Se({token:KP,factory:KP.\u0275fac,providedIn:"root"}),KP),iT=((QP=function(){return d((function e(t,n,i,o){c(this,e),this.functionService=t,this.loginService=n,this.permissionDatabase=i,this.storageService=o,this.actionValue={show:1,create:2,update:3,delete:4},this.moduleNameEquivalentToCompTime=["bank-time","extra-time","over-time"],this.moduleNameEquivalentToReport=["proof-of-point"],this.moduleNameEquivalentToJourney=["intermittent-call","intermittent-call-register"],this.moduleListAlwaysAllowed=[{module_id:0,permission_id:4,name:"company"},{module_id:0,permission_id:4,name:"home"},{module_id:0,permission_id:4,name:"mirror"},{module_id:0,permission_id:4,name:"report"},{module_id:0,permission_id:4,name:"changelog"}],this.permissionListAllowed=null,this.permissionListDepartmentAllowed=null,this.permissionListUnitAllowed=null,this.permissionListCostCenterAllowed=null,this.permissionType=null,this.urlPrefixList=["notification-"],this.urlSuffixList=["-barrier-out","-configuration","-day","-control","-disregard-recused","-list","-medical-certificate","-not-read","-month","-out","-payment","-map","-porto-seguro","-register","-request","-update","-vacation","-document","-historic","-schedule","-type","-collaborator-change","-selected","-screen","/"],this.permissionListLoaded=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"emitModuleListLoaded",value:function(){this.permissionLoaded()&&this.permissionListLoaded.emit()}},{key:"permissionLoaded",value:function(){return null!=this.permissionListAllowed&&null!=this.permissionListDepartmentAllowed&&null!=this.permissionListUnitAllowed&&null!=this.permissionListCostCenterAllowed&&null!=this.permissionType}},{key:"loadUserPermission",value:function(){var e=this;this.storageService.decodeFromLocalStorage("userToken")?this.permissionDatabase.getUserPermission((function(t){if(t.error)e.loginService.goToLoginPage();else{var n=t.data.userPermissionData;e.setPermissionType(n.type),e.setPermissionListAllowed(n.permissionList),e.setPermissionListDepartmentAllowed(n.permissionListDepartment),e.setPermissionListUnitAllowed(n.permissionListUnit),e.setPermissionListCostCenterAllowed(n.permissionListCostCenter),e.functionService.refresh()}})):this.loginService.goToLoginPage()}},{key:"canAccessUrl",value:function(e){return this.canAccess(this.getModuleNameFromUrl(e),"show")}},{key:"canAccess",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("adm"==this.getPermissionType())return!0;if("custom"==this.getPermissionType()){if(null!=i){if("department"==e&&2!=this.actionValue.action&&this.getPermissionDepartmentListAllowed().findIndex((function(e){return e==i}))<0)return!1;if("unit"==e&&2!=this.actionValue.action&&this.getPermissionUnitListAllowed().findIndex((function(e){return e==i}))<0)return!1;if("cost-center"==e&&2!=this.actionValue.action&&this.getPermissionCostCenterListAllowed().findIndex((function(e){return e==i}))<0)return!1}if(this.getPermissionListAllowed().findIndex((function(i){return i.name===e&&parseInt(i.permission_id)>=parseInt(n.actionValue[t])}))>=0)return!0}return!1}},{key:"getPermissionListAllowed",value:function(){var e;return null!==(e=this.permissionListAllowed)&&void 0!==e?e:JSON.parse(this.storageService.decodeFromLocalStorage("permissionListAllowed"))}},{key:"getPermissionDepartmentListAllowed",value:function(){var e;return null!==(e=this.permissionListDepartmentAllowed)&&void 0!==e?e:JSON.parse(this.storageService.decodeFromLocalStorage("permissionListDepartmentAllowed"))}},{key:"getPermissionUnitListAllowed",value:function(){var e;return null!==(e=this.permissionListUnitAllowed)&&void 0!==e?e:JSON.parse(this.storageService.decodeFromLocalStorage("permissionListUnitAllowed"))}},{key:"getPermissionCostCenterListAllowed",value:function(){var e;return null!==(e=this.permissionListCostCenterAllowed)&&void 0!==e?e:JSON.parse(this.storageService.decodeFromLocalStorage("permissionListCostCenterAllowed"))}},{key:"getPermissionType",value:function(){var e;return null!==(e=this.permissionType)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("permissionType")}},{key:"getModuleNameFromUrl",value:function(e){var t=e;return this.urlPrefixList.forEach((function(e){t=t.split(e)[1]||t})),this.urlSuffixList.forEach((function(e){t=t.split(e)[0]})),this.moduleNameEquivalentToCompTime.includes(t)&&(t="comp-time"),this.moduleNameEquivalentToReport.includes(t)&&(t="report"),this.moduleNameEquivalentToJourney.includes(t)&&(t="journey"),t}},{key:"setPermissionType",value:function(e){this.storageService.encodeToLocalStorage("permissionType",e),this.permissionType=e}},{key:"setPermissionListAllowed",value:function(e){var t=this;this.permissionListAllowed=[],e.forEach((function(e){return t.permissionListAllowed.push(e)})),this.moduleListAlwaysAllowed.forEach((function(e){return t.permissionListAllowed.push(e)})),this.storageService.encodeToLocalStorage("permissionListAllowed",JSON.stringify(this.permissionListAllowed)),this.emitModuleListLoaded()}},{key:"setPermissionListDepartmentAllowed",value:function(e){var t=this;this.permissionListDepartmentAllowed=[],e.forEach((function(e){return t.permissionListDepartmentAllowed.push(e)})),this.storageService.encodeToLocalStorage("permissionListDepartmentAllowed",JSON.stringify(this.permissionListDepartmentAllowed)),this.emitModuleListLoaded()}},{key:"setPermissionListUnitAllowed",value:function(e){var t=this;this.permissionListUnitAllowed=[],e.forEach((function(e){return t.permissionListUnitAllowed.push(e)})),this.storageService.encodeToLocalStorage("permissionListUnitAllowed",JSON.stringify(this.permissionListUnitAllowed)),this.emitModuleListLoaded()}},{key:"setPermissionListCostCenterAllowed",value:function(e){var t=this;this.permissionListCostCenterAllowed=[],e.forEach((function(e){return t.permissionListCostCenterAllowed.push(e)})),this.storageService.encodeToLocalStorage("permissionListCostCenterAllowed",JSON.stringify(this.permissionListCostCenterAllowed)),this.emitModuleListLoaded()}}])}()).\u0275fac=function(e){return new(e||QP)(ut(zP),ut(VP),ut(nT),ut(YP))},QP.\u0275prov=Se({token:QP,factory:QP.\u0275fac,providedIn:"root"}),QP),oT=(($P=function(){return d((function e(t,n,i,o){c(this,e),this.databaseService=t,this.permissionService=n,this.storageService=i,this.router=o}),[{key:"canActivate",value:function(e,t){if(navigator.cookieEnabled){var n=this.storageService.decodeFromLocalStorage("userToken");return null==n||""==n?(this.databaseService.logout(),!1):(this.permissionService.canAccessUrl(t.url.slice(1))||this.router.navigate([this.router.url]).then((function(){})),!0)}return this.databaseService.logout(),!1}}])}()).\u0275fac=function(e){return new(e||$P)(ut(tT),ut(iT),ut(YP),ut(yM))},$P.\u0275prov=Se({token:$P,factory:$P.\u0275fac,providedIn:"root"}),$P),aT=((GP=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteAbsence",value:function(e,t){var n=JSON.stringify(e);this.databaseService.delete("/absence/"+n,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteAbsenceType",value:function(e,t){this.databaseService.delete("/absenceType/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAbsence",value:function(e,t,n){this.databaseService.get("/absence/"+t,[]).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getAbsenceAttachment",value:function(e,t){this.databaseService.getFile("/absence/downloadAttachment",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAbsenceList",value:function(e,t){this.databaseService.get("/absence",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAbsenceTypeList",value:function(e,t){this.databaseService.get("/absenceType",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getFilterAbsenceTypeList",value:function(e,t){this.databaseService.get("/absenceType/filterIndex/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAbsenceTypeById",value:function(e,t){this.databaseService.get("/absenceType/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getFileZip",value:function(e,t,n,i,o){this.databaseService.getFile("/generic/downloadFile",Object.assign(Object.assign({company_id:e},t),{action:n,action_id:i})).subscribe((function(e){o({data:e})}),(function(e){o({error:e})}))}},{key:"postAbsence",value:function(e,t){this.databaseService.post("/absence",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postAbsenceType",value:function(e,t){this.databaseService.post("/absenceType",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postValidAbsenceOnDate",value:function(e,t){this.databaseService.post("/absence/getValidateAbsencePeriod",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putAbsence",value:function(e,t,n){this.databaseService.put("/absence/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putAbsencesApprove",value:function(e,t){var n=JSON.stringify(e);this.databaseService.put("/absence/multipleApprove",{ids:n}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putAbsenceDuplicate",value:function(e,t,n){this.databaseService.put("/absence/duplicate/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putAbsenceType",value:function(e,t,n){this.databaseService.put("/absenceType/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||GP)(ut(tT))},GP.\u0275prov=Se({token:GP,factory:GP.\u0275fac,providedIn:"root"}),GP),rT={prefix:"far",iconName:"bell",icon:[448,512,[],"f0f3","M439.39 362.29c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71zM67.53 368c21.22-27.97 44.42-74.33 44.53-159.42 0-.2-.06-.38-.06-.58 0-61.86 50.14-112 112-112s112 50.14 112 112c0 .2-.06.38-.06.58.11 85.1 23.31 131.46 44.53 159.42H67.53zM224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64z"]},sT={prefix:"far",iconName:"building",icon:[448,512,[],"f1ad","M128 148v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12zm140 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-128 96h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm128 0h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm-76 84v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm76 12h40c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12zm180 124v36H0v-36c0-6.6 5.4-12 12-12h19.5V24c0-13.3 10.7-24 24-24h337c13.3 0 24 10.7 24 24v440H436c6.6 0 12 5.4 12 12zM79.5 463H192v-67c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v67h112.5V49L80 48l-.5 415z"]},lT={prefix:"far",iconName:"check-circle",icon:[512,512,[],"f058","M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z"]},cT={prefix:"far",iconName:"clock",icon:[512,512,[],"f017","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z"]},uT={prefix:"far",iconName:"copy",icon:[448,512,[],"f0c5","M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"]},dT={prefix:"far",iconName:"edit",icon:[576,512,[],"f044","M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"]},hT={prefix:"far",iconName:"envelope",icon:[512,512,[],"f0e0","M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm0 48v40.805c-22.422 18.259-58.168 46.651-134.587 106.49-16.841 13.247-50.201 45.072-73.413 44.701-23.208.375-56.579-31.459-73.413-44.701C106.18 199.465 70.425 171.067 48 152.805V112h416zM48 400V214.398c22.914 18.251 55.409 43.862 104.938 82.646 21.857 17.205 60.134 55.186 103.062 54.955 42.717.231 80.509-37.199 103.053-54.947 49.528-38.783 82.032-64.401 104.947-82.653V400H48z"]},fT={prefix:"far",iconName:"eye",icon:[576,512,[],"f06e","M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z"]},mT={prefix:"far",iconName:"eye-slash",icon:[640,512,[],"f070","M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z"]},pT={prefix:"far",iconName:"file-excel",icon:[384,512,[],"f1c3","M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm212-240h-28.8c-4.4 0-8.4 2.4-10.5 6.3-18 33.1-22.2 42.4-28.6 57.7-13.9-29.1-6.9-17.3-28.6-57.7-2.1-3.9-6.2-6.3-10.6-6.3H124c-9.3 0-15 10-10.4 18l46.3 78-46.3 78c-4.7 8 1.1 18 10.4 18h28.9c4.4 0 8.4-2.4 10.5-6.3 21.7-40 23-45 28.6-57.7 14.9 30.2 5.9 15.9 28.6 57.7 2.1 3.9 6.2 6.3 10.6 6.3H260c9.3 0 15-10 10.4-18L224 320c.7-1.1 30.3-50.5 46.3-78 4.7-8-1.1-18-10.3-18z"]},gT={prefix:"far",iconName:"file-pdf",icon:[384,512,[],"f1c1","M369.9 97.9L286 14C277 5 264.8-.1 252.1-.1H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V131.9c0-12.7-5.1-25-14.1-34zM332.1 128H256V51.9l76.1 76.1zM48 464V48h160v104c0 13.3 10.7 24 24 24h104v288H48zm250.2-143.7c-12.2-12-47-8.7-64.4-6.5-17.2-10.5-28.7-25-36.8-46.3 3.9-16.1 10.1-40.6 5.4-56-4.2-26.2-37.8-23.6-42.6-5.9-4.4 16.1-.4 38.5 7 67.1-10 23.9-24.9 56-35.4 74.4-20 10.3-47 26.2-51 46.2-3.3 15.8 26 55.2 76.1-31.2 22.4-7.4 46.8-16.5 68.4-20.1 18.9 10.2 41 17 55.8 17 25.5 0 28-28.2 17.5-38.7zm-198.1 77.8c5.1-13.7 24.5-29.5 30.4-35-19 30.3-30.4 35.7-30.4 35zm81.6-190.6c7.4 0 6.7 32.1 1.8 40.8-4.4-13.9-4.3-40.8-1.8-40.8zm-24.4 136.6c9.7-16.9 18-37 24.7-54.7 8.3 15.1 18.9 27.2 30.1 35.5-20.8 4.3-38.9 13.1-54.8 19.2zm131.6-5s-5 6-37.3-7.8c35.1-2.6 40.9 5.4 37.3 7.8z"]},vT={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M464 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm-6 336H54a6 6 0 0 1-6-6V118a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v276a6 6 0 0 1-6 6zM128 152c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zM96 352h320v-80l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L192 304l-39.515-39.515c-4.686-4.686-12.284-4.686-16.971 0L96 304v48z"]},yT={prefix:"far",iconName:"list-alt",icon:[512,512,[],"f022","M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zm-6 400H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h404a6 6 0 0 1 6 6v340a6 6 0 0 1-6 6zm-42-92v24c0 6.627-5.373 12-12 12H204c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h200c6.627 0 12 5.373 12 12zm0-96v24c0 6.627-5.373 12-12 12H204c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h200c6.627 0 12 5.373 12 12zm0-96v24c0 6.627-5.373 12-12 12H204c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h200c6.627 0 12 5.373 12 12zm-252 12c0 19.882-16.118 36-36 36s-36-16.118-36-36 16.118-36 36-36 36 16.118 36 36zm0 96c0 19.882-16.118 36-36 36s-36-16.118-36-36 16.118-36 36-36 36 16.118 36 36zm0 96c0 19.882-16.118 36-36 36s-36-16.118-36-36 16.118-36 36-36 36 16.118 36 36z"]},bT={prefix:"far",iconName:"moon",icon:[512,512,[],"f186","M279.135 512c78.756 0 150.982-35.804 198.844-94.775 28.27-34.831-2.558-85.722-46.249-77.401-82.348 15.683-158.272-47.268-158.272-130.792 0-48.424 26.06-92.292 67.434-115.836 38.745-22.05 28.999-80.788-15.022-88.919A257.936 257.936 0 0 0 279.135 0c-141.36 0-256 114.575-256 256 0 141.36 114.576 256 256 256zm0-464c12.985 0 25.689 1.201 38.016 3.478-54.76 31.163-91.693 90.042-91.693 157.554 0 113.848 103.641 199.2 215.252 177.944C402.574 433.964 344.366 464 279.135 464c-114.875 0-208-93.125-208-208s93.125-208 208-208z"]},_T={prefix:"far",iconName:"newspaper",icon:[576,512,[],"f1ea","M552 64H112c-20.858 0-38.643 13.377-45.248 32H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h496c13.255 0 24-10.745 24-24V88c0-13.255-10.745-24-24-24zM48 392V144h16v248c0 4.411-3.589 8-8 8s-8-3.589-8-8zm480 8H111.422c.374-2.614.578-5.283.578-8V112h416v288zM172 280h136c6.627 0 12-5.373 12-12v-96c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v96c0 6.627 5.373 12 12 12zm28-80h80v40h-80v-40zm-40 140v-24c0-6.627 5.373-12 12-12h136c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H172c-6.627 0-12-5.373-12-12zm192 0v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0-144v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12zm0 72v-24c0-6.627 5.373-12 12-12h104c6.627 0 12 5.373 12 12v24c0 6.627-5.373 12-12 12H364c-6.627 0-12-5.373-12-12z"]},kT={prefix:"far",iconName:"question-circle",icon:[512,512,[],"f059","M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"]},CT={prefix:"far",iconName:"save",icon:[448,512,[],"f0c7","M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM272 80v80H144V80h128zm122 352H54a6 6 0 0 1-6-6V86a6 6 0 0 1 6-6h42v104c0 13.255 10.745 24 24 24h176c13.255 0 24-10.745 24-24V83.882l78.243 78.243a6 6 0 0 1 1.757 4.243V426a6 6 0 0 1-6 6zM224 232c-48.523 0-88 39.477-88 88s39.477 88 88 88 88-39.477 88-88-39.477-88-88-88zm0 128c-22.056 0-40-17.944-40-40s17.944-40 40-40 40 17.944 40 40-17.944 40-40 40z"]},wT={prefix:"far",iconName:"times-circle",icon:[512,512,[],"f057","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm101.8-262.2L295.6 256l62.2 62.2c4.7 4.7 4.7 12.3 0 17l-22.6 22.6c-4.7 4.7-12.3 4.7-17 0L256 295.6l-62.2 62.2c-4.7 4.7-12.3 4.7-17 0l-22.6-22.6c-4.7-4.7-4.7-12.3 0-17l62.2-62.2-62.2-62.2c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l62.2 62.2 62.2-62.2c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.7 4.7 4.7 12.3 0 17z"]},xT={prefix:"fas",iconName:"angle-double-left",icon:[448,512,[],"f100","M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"]},MT={prefix:"fas",iconName:"angle-double-right",icon:[448,512,[],"f101","M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"]},ST={prefix:"fas",iconName:"arrow-down",icon:[448,512,[],"f063","M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"]},PT={prefix:"fas",iconName:"arrow-left",icon:[448,512,[],"f060","M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]},TT={prefix:"fas",iconName:"arrow-right",icon:[448,512,[],"f061","M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"]},OT={prefix:"fas",iconName:"arrow-up",icon:[448,512,[],"f062","M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"]},LT={prefix:"fas",iconName:"bars",icon:[448,512,[],"f0c9","M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"]},DT={prefix:"fas",iconName:"bed",icon:[640,512,[],"f236","M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"]},IT={prefix:"fas",iconName:"bell",icon:[448,512,[],"f0f3","M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"]},FT={prefix:"fas",iconName:"birthday-cake",icon:[448,512,[],"f1fd","M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"]},AT={prefix:"fas",iconName:"briefcase",icon:[512,512,[],"f0b1","M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"]},ET={prefix:"fas",iconName:"business-time",icon:[640,512,[],"f64a","M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"]},BT={prefix:"fas",iconName:"calculator",icon:[448,512,[],"f1ec","M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"]},NT={prefix:"fas",iconName:"calendar-alt",icon:[448,512,[],"f073","M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]},RT={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-96zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]},jT={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"]},zT={prefix:"fas",iconName:"caret-left",icon:[192,512,[],"f0d9","M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"]},VT={prefix:"fas",iconName:"caret-right",icon:[192,512,[],"f0da","M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"]},HT={prefix:"fas",iconName:"check",icon:[512,512,[],"f00c","M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]},YT={prefix:"fas",iconName:"check-double",icon:[512,512,[],"f560","M505 174.8l-39.6-39.6c-9.4-9.4-24.6-9.4-33.9 0L192 374.7 80.6 263.2c-9.4-9.4-24.6-9.4-33.9 0L7 302.9c-9.4 9.4-9.4 24.6 0 34L175 505c9.4 9.4 24.6 9.4 33.9 0l296-296.2c9.4-9.5 9.4-24.7.1-34zm-324.3 106c6.2 6.3 16.4 6.3 22.6 0l208-208.2c6.2-6.3 6.2-16.4 0-22.6L366.1 4.7c-6.2-6.3-16.4-6.3-22.6 0L192 156.2l-55.4-55.5c-6.2-6.3-16.4-6.3-22.6 0L68.7 146c-6.2 6.3-6.2 16.4 0 22.6l112 112.2z"]},qT={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]},UT={prefix:"fas",iconName:"chevron-left",icon:[320,512,[],"f053","M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"]},WT={prefix:"fas",iconName:"chevron-right",icon:[320,512,[],"f054","M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"]},JT={prefix:"fas",iconName:"circle",icon:[512,512,[],"f111","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]},GT={prefix:"fas",iconName:"clipboard",icon:[384,512,[],"f328","M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"]},$T={prefix:"fas",iconName:"clock",icon:[512,512,[],"f017","M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"]},QT={prefix:"fas",iconName:"cog",icon:[512,512,[],"f013","M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]},KT={prefix:"fas",iconName:"dollar-sign",icon:[288,512,[],"f155","M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"]},ZT={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},XT={prefix:"fas",iconName:"envelope-open-text",icon:[512,512,[],"f658","M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"]},eO={prefix:"fas",iconName:"exchange-alt",icon:[512,512,[],"f362","M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]},tO={prefix:"fas",iconName:"exclamation",icon:[192,512,[],"f12a","M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"]},nO={prefix:"fas",iconName:"exclamation-triangle",icon:[576,512,[],"f071","M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]},iO={prefix:"fas",iconName:"file-alt",icon:[384,512,[],"f15c","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]},oO={prefix:"fas",iconName:"file-contract",icon:[384,512,[],"f56c","M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]},aO={prefix:"fas",iconName:"file-export",icon:[576,512,[],"f56e","M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"]},rO={prefix:"fas",iconName:"file-invoice-dollar",icon:[384,512,[],"f571","M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"]},sO={prefix:"fas",iconName:"file-medical",icon:[384,512,[],"f477","M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"]},lO={prefix:"fas",iconName:"file-signature",icon:[576,512,[],"f573","M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"]},cO={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"]},uO={prefix:"fas",iconName:"grip-lines",icon:[512,512,[],"f7a4","M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]},dO={prefix:"fas",iconName:"headset",icon:[512,512,[],"f590","M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"]},hO={prefix:"fas",iconName:"id-card-alt",icon:[576,512,[],"f47f","M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"]},fO={prefix:"fas",iconName:"images",icon:[576,512,[],"f302","M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"]},mO={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"]},pO={prefix:"fas",iconName:"key",icon:[512,512,[],"f084","M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"]},gO={prefix:"fas",iconName:"level-down-alt",icon:[320,512,[],"f3be","M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"]},vO={prefix:"fas",iconName:"level-up-alt",icon:[320,512,[],"f3bf","M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"]},yO={prefix:"fas",iconName:"map-marked",icon:[576,512,[],"f59f","M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"]},bO={prefix:"fas",iconName:"map-marker-alt",icon:[384,512,[],"f3c5","M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"]},_O={prefix:"fas",iconName:"minus",icon:[448,512,[],"f068","M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]},kO={prefix:"fas",iconName:"moon",icon:[512,512,[],"f186","M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"]},CO={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]},wO={prefix:"fas",iconName:"pen",icon:[512,512,[],"f304","M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"]},xO={prefix:"fas",iconName:"plus-circle",icon:[512,512,[],"f055","M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]},MO={prefix:"fas",iconName:"portrait",icon:[384,512,[],"f3e0","M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]},SO={prefix:"fas",iconName:"retweet",icon:[640,512,[],"f079","M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"]},PO={prefix:"fas",iconName:"search",icon:[512,512,[],"f002","M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]},TO={prefix:"fas",iconName:"share-square",icon:[576,512,[],"f14d","M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"]},OO={prefix:"fas",iconName:"sign-out-alt",icon:[512,512,[],"f2f5","M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"]},LO={prefix:"fas",iconName:"sort",icon:[320,512,[],"f0dc","M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"]},DO={prefix:"fas",iconName:"sync-alt",icon:[512,512,[],"f2f1","M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"]},IO={prefix:"fas",iconName:"times",icon:[352,512,[],"f00d","M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]},FO={prefix:"fas",iconName:"toggle-on",icon:[576,512,[],"f205","M384 64H192C86 64 0 150 0 256s86 192 192 192h192c106 0 192-86 192-192S490 64 384 64zm0 320c-70.8 0-128-57.3-128-128 0-70.8 57.3-128 128-128 70.8 0 128 57.3 128 128 0 70.8-57.3 128-128 128z"]},AO={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]},EO={prefix:"fas",iconName:"trash-alt",icon:[448,512,[],"f2ed","M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]},BO={prefix:"fas",iconName:"umbrella-beach",icon:[640,512,[],"f5ca","M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"]},NO={prefix:"fas",iconName:"undo",icon:[512,512,[],"f0e2","M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"]},RO={prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]},jO={prefix:"fas",iconName:"user",icon:[448,512,[],"f007","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]},zO={prefix:"fas",iconName:"user-alt-slash",icon:[640,512,[],"f4fa","M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"]},VO={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]},HO={prefix:"fas",iconName:"user-circle",icon:[496,512,[],"f2bd","M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"]},YO={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]},qO={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]},UO={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"]},WO=((eT=d((function e(){c(this,e),this.faBell=rT,this.faBuilding=sT,this.faCopy=uT,this.faClock=cT,this.faCheckCircle=lT,this.faEnvelope=hT,this.faEye=fT,this.faEyeSlash=mT,this.faEdit=dT,this.faFileExport=aO,this.faFilePdf=gT,this.faFileExcel=pT,this.faImage=vT,this.faListAlt=yT,this.faSave=CT,this.faNewspaper=_T,this.faMoon=bT,this.faQuestionCircle=kT,this.faTimesCircle=wT}))).\u0275fac=function(e){return new(e||eT)},eT.\u0275prov=Se({token:eT,factory:eT.\u0275fac,providedIn:"root"}),eT),JO=((XP=d((function e(){c(this,e),this.faKay=pO,this.faAngleDoubleLeft=xT,this.faAngleDoubleRight=MT,this.faArrowDown=ST,this.faArrowLeft=PT,this.faArrowRight=TT,this.faArrowUp=OT,this.faBars=LT,this.faBed=DT,this.faBell=IT,this.faBriefcase=AT,this.faBirthdayCake=FT,this.faBusinessTime=ET,this.faCalendarAlt=NT,this.faCalendarDay=RT,this.faCalculator=BT,this.faCaretDown=jT,this.faCaretLeft=zT,this.faCaretRight=VT,this.faClipboard=GT,this.faCheck=HT,this.faCheckDouble=YT,this.faChevronDown=qT,this.faChevronLeft=UT,this.faChevronRight=WT,this.faCircle=JT,this.faPlusCircle=xO,this.faClock=$T,this.faCog=QT,this.faDownload=ZT,this.faEnvelopeOpenText=XT,this.faExchangeAlt=eO,this.faExclamation=tO,this.faExclamationTriangle=nO,this.faFileAlt=iO,this.faFileExport=aO,this.faFileMedical=sO,this.faFileContract=oO,this.faFileSignature=lO,this.faFilter=cO,this.faHistory=NO,this.faHeadset=dO,this.faIdCardAlt=hO,this.faGripLines=uO,this.faImages=fO,this.faInfo=mO,this.faMapMarked=yO,this.faMapMarkerAlt=bO,this.faMinus=_O,this.faMoon=kO,this.faDollarSign=KT,this.faNetworkWired=CO,this.faLevelDownAlt=gO,this.faLevelUpAlt=vO,this.faPortrait=MO,this.faRetweet=SO,this.faSearch=PO,this.faShareSquare=TO,this.faSignOutAlt=OO,this.faSort=LO,this.faSyncAlt=DO,this.faTimes=IO,this.faTrash=AO,this.faTrashAlt=EO,this.faUmbrellaBeach=BO,this.faUpload=RO,this.faUser=jO,this.faUserLock=qO,this.faUserCheck=VO,this.faUserCircle=HO,this.faUserClock=YO,this.faUserTie=UO,this.faToggleOn=FO,this.faInvoice=rO,this.faUserAltSlash=zO,this.faPen=wO}))).\u0275fac=function(e){return new(e||XP)},XP.\u0275prov=Se({token:XP,factory:XP.\u0275fac,providedIn:"root"}),XP);function GO(e,t){1&e&&ns(0,"div")}function $O(e,t){if(1&e&&(es(0,"div"),Jr(1,GO,1,0,"div",5),ts()),2&e){var n=fs(2);Es(n.spinner.class),Is("color",n.spinner.color),Bo(1),Zr("ngForOf",n.spinner.divArray)}}function QO(e,t){1&e&&(ns(0,"div",6),_c(1,"safeHtml")),2&e&&Zr("innerHTML",kc(1,1,fs(2).template),fo)}function KO(e,t){if(1&e&&(es(0,"div",1),Jr(1,$O,2,5,"div",2),Jr(2,QO,2,3,"div",3),es(3,"div",4),gs(4),ts(),ts()),2&e){var n=fs();Is("background-color",n.spinner.bdColor)("z-index",n.spinner.zIndex)("position",n.spinner.fullScreen?"fixed":"absolute"),Zr("@fadeIn","in"),Bo(1),Zr("ngIf",!n.template),Bo(1),Zr("ngIf",n.template),Bo(1),Is("z-index",n.spinner.zIndex)}}var ZO,XO,eL,tL,nL,iL,oL=["*"],aL={"ball-8bits":16,"ball-atom":4,"ball-beat":3,"ball-circus":5,"ball-climbing-dot":4,"ball-clip-rotate":1,"ball-clip-rotate-multiple":2,"ball-clip-rotate-pulse":2,"ball-elastic-dots":5,"ball-fall":3,"ball-fussion":4,"ball-grid-beat":9,"ball-grid-pulse":9,"ball-newton-cradle":4,"ball-pulse":3,"ball-pulse-rise":5,"ball-pulse-sync":3,"ball-rotate":1,"ball-running-dots":5,"ball-scale":1,"ball-scale-multiple":3,"ball-scale-pulse":2,"ball-scale-ripple":1,"ball-scale-ripple-multiple":3,"ball-spin":8,"ball-spin-clockwise":8,"ball-spin-clockwise-fade":8,"ball-spin-clockwise-fade-rotating":8,"ball-spin-fade":8,"ball-spin-fade-rotating":8,"ball-spin-rotate":2,"ball-square-clockwise-spin":8,"ball-square-spin":8,"ball-triangle-path":3,"ball-zig-zag":2,"ball-zig-zag-deflect":2,cog:1,"cube-transition":2,fire:3,"line-scale":5,"line-scale-party":5,"line-scale-pulse-out":5,"line-scale-pulse-out-rapid":5,"line-spin-clockwise-fade":8,"line-spin-clockwise-fade-rotating":8,"line-spin-fade":8,"line-spin-fade-rotating":8,pacman:6,"square-jelly-box":2,"square-loader":1,"square-spin":1,timer:1,"triangle-skew-spin":1},rL=d((function e(t){c(this,e),Object.assign(this,t)})),sL=((iL=function(){return d((function e(){c(this,e),this.spinnerObservable=new tk(null)}),[{key:"getSpinner",value:function(e){return this.spinnerObservable.asObservable().pipe(Tp((function(t){return t&&t.name===e})))}},{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"primary",n=arguments.length>1?arguments[1]:void 0;setTimeout((function(){return new Promise((function(i,o){n&&Object.keys(n).length?(n.name=t,e.spinnerObservable.next(new rL(Object.assign(Object.assign({},n),{show:!0}))),i(!0)):(e.spinnerObservable.next(new rL({name:t,show:!0})),i(!0))}))}),10)}},{key:"hide",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"primary",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;setTimeout((function(){return new Promise((function(n,i){e.spinnerObservable.next(new rL({name:t,show:!1})),n(!0)}))}),n)}}])}()).\u0275fac=function(e){return new(e||iL)},iL.\u0275prov=Se({factory:function(){return new iL},token:iL,providedIn:"root"}),iL),lL=((nL=function(){return d((function e(t,n){var i=this;c(this,e),this.spinnerService=t,this.changeDetector=n,this.spinner=new rL,this.ngUnsubscribe=new V,this.setDefaultOptions=function(){i.spinner=new rL({name:i.name,bdColor:i.bdColor,size:i.size,color:i.color,type:i.type,fullScreen:i.fullScreen,divArray:i.divArray,divCount:i.divCount,show:i.show,zIndex:i.zIndex,template:i.template})},this.bdColor="rgba(51,51,51,0.8)",this.zIndex=99999,this.color="#fff",this.type="ball-scale-multiple",this.size="large",this.fullScreen=!0,this.name="primary",this.template=null,this.divArray=[],this.divCount=0,this.show=!1}),[{key:"ngOnInit",value:function(){var e=this;this.setDefaultOptions(),this.spinnerService.getSpinner(this.name).pipe(kk(this.ngUnsubscribe)).subscribe((function(t){e.setDefaultOptions(),Object.assign(e.spinner,t),t.show&&e.onInputChange(),e.changeDetector.markForCheck()}))}},{key:"ngOnChanges",value:function(e){for(var t in e)if(t){var n=e[t];if(n.isFirstChange())return;void 0!==n.currentValue&&n.currentValue!==n.previousValue&&""!==n.currentValue&&(this.spinner[t]=n.currentValue)}}},{key:"getClass",value:function(e,t){this.spinner.divCount=aL[e],this.spinner.divArray=Array(this.spinner.divCount).fill(0).map((function(e,t){return t}));var n="";switch(t.toLowerCase()){case"small":n="la-sm";break;case"medium":n="la-2x";break;case"large":n="la-3x"}return"la-"+e+" "+n}},{key:"onInputChange",value:function(){this.spinner.class=this.getClass(this.spinner.type,this.spinner.size)}},{key:"ngOnDestroy",value:function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}}])}()).\u0275fac=function(e){return new(e||nL)($r(sL),$r(ur))},nL.\u0275cmp=Ot({type:nL,selectors:[["ngx-spinner"]],inputs:{bdColor:"bdColor",zIndex:"zIndex",color:"color",type:"type",size:"size",fullScreen:"fullScreen",name:"name",template:"template"},features:[dl],ngContentSelectors:oL,decls:1,vars:1,consts:[["class","overlay",3,"background-color","z-index","position",4,"ngIf"],[1,"overlay"],[3,"class","color",4,"ngIf"],[3,"innerHTML",4,"ngIf"],[1,"loading-text"],[4,"ngFor","ngForOf"],[3,"innerHTML"]],template:function(e,t){1&e&&(ps(),Jr(0,KO,5,11,"div",0)),2&e&&Zr("ngIf",t.spinner.show)},directives:function(){return[sh,ah]},pipes:function(){return[cL]},styles:['.la-ball-8bits[_ngcontent-%COMP%], .la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-8bits[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-8bits.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-8bits[_ngcontent-%COMP%]{height:12px;width:12px}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-8bits 1s ease 0s infinite;animation:ball-8bits 1s ease 0s infinite;border-radius:0;height:4px;left:50%;opacity:0;position:absolute;top:50%;transform:translate(100%,100%);width:4px}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.9375s;animation-delay:-.9375s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.875s;animation-delay:-.875s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.8125s;animation-delay:-.8125s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.75s;animation-delay:-.75s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.6875s;animation-delay:-.6875s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.625s;animation-delay:-.625s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.5625s;animation-delay:-.5625s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-.4375s;animation-delay:-.4375s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(10){-webkit-animation-delay:-.375s;animation-delay:-.375s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(11){-webkit-animation-delay:-.3125s;animation-delay:-.3125s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(12){-webkit-animation-delay:-.25s;animation-delay:-.25s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(13){-webkit-animation-delay:-.1875s;animation-delay:-.1875s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(14){-webkit-animation-delay:-.125s;animation-delay:-.125s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(15){-webkit-animation-delay:-.0625s;animation-delay:-.0625s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(16){-webkit-animation-delay:0s;animation-delay:0s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{left:0;top:-100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){left:33.3333333333%;top:-100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){left:66.6666666667%;top:-66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){left:100%;top:-33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){left:100%;top:0}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){left:100%;top:33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){left:66.6666666667%;top:66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){left:33.3333333333%;top:100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){left:0;top:100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(10){left:-33.3333333333%;top:100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(11){left:-66.6666666667%;top:66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(12){left:-100%;top:33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(13){left:-100%;top:0}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(14){left:-100%;top:-33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(15){left:-66.6666666667%;top:-66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(16){left:-33.3333333333%;top:-100%}.la-ball-8bits.la-sm[_ngcontent-%COMP%]{height:6px;width:6px}.la-ball-8bits.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:2px}.la-ball-8bits.la-2x[_ngcontent-%COMP%]{height:24px;width:24px}.la-ball-8bits.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:8px;width:8px}.la-ball-8bits.la-3x[_ngcontent-%COMP%]{height:36px;width:36px}.la-ball-8bits.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:12px;width:12px}@-webkit-keyframes ball-8bits{0%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes ball-8bits{0%{opacity:1}50%{opacity:1}51%{opacity:0}}.la-ball-atom[_ngcontent-%COMP%], .la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-atom[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-atom.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-atom[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-atom-shrink 4.5s linear infinite;animation:ball-atom-shrink 4.5s linear infinite;background:#aaa;border-radius:100%;height:60%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%;z-index:1}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){-webkit-animation:ball-atom-zindex 1.5s steps(2) 0s infinite;animation:ball-atom-zindex 1.5s steps(2) 0s infinite;background:none;height:100%;left:0;position:absolute;width:100%;z-index:0}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{-webkit-animation:ball-atom-position 1.5s ease 0s infinite,ball-atom-size 1.5s ease 0s infinite;animation:ball-atom-position 1.5s ease 0s infinite,ball-atom-size 1.5s ease 0s infinite;background:currentColor;border-radius:50%;content:"";height:10px;left:0;margin-left:-5px;margin-top:-5px;opacity:.75;position:absolute;top:0;width:10px}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.75s;animation-delay:.75s}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2):before{-webkit-animation-delay:0s,-1.125s;animation-delay:0s,-1.125s}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.25s;animation-delay:-.25s;transform:rotate(120deg)}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3):before{-webkit-animation-delay:-1s,-.75s;animation-delay:-1s,-.75s}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:.25s;animation-delay:.25s;transform:rotate(240deg)}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4):before{-webkit-animation-delay:-.5s,-.125s;animation-delay:-.5s,-.125s}.la-ball-atom.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-atom.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-atom.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-atom.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-atom.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-atom.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-atom-position{50%{left:100%;top:100%}}@keyframes ball-atom-position{50%{left:100%;top:100%}}@-webkit-keyframes ball-atom-size{50%{transform:scale(.5)}}@keyframes ball-atom-size{50%{transform:scale(.5)}}@-webkit-keyframes ball-atom-zindex{50%{z-index:10}}@keyframes ball-atom-zindex{50%{z-index:10}}@-webkit-keyframes ball-atom-shrink{50%{transform:translate(-50%,-50%) scale(.8)}}@keyframes ball-atom-shrink{50%{transform:translate(-50%,-50%) scale(.8)}}.la-ball-beat[_ngcontent-%COMP%], .la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-beat[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-beat.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-beat[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-beat .7s linear -.15s infinite;animation:ball-beat .7s linear -.15s infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2n-1){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-beat.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-beat.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-beat.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-beat.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-beat.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-beat.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-beat{50%{opacity:.2;transform:scale(.75)}to{opacity:1;transform:scale(1)}}@keyframes ball-beat{50%{opacity:.2;transform:scale(.75)}to{opacity:1;transform:scale(1)}}.la-ball-circus[_ngcontent-%COMP%], .la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-circus[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-circus.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-circus[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-circus-position 2.5s cubic-bezier(.25,0,.75,1) infinite,ball-circus-size 2.5s cubic-bezier(.25,0,.75,1) infinite;animation:ball-circus-position 2.5s cubic-bezier(.25,0,.75,1) infinite,ball-circus-size 2.5s cubic-bezier(.25,0,.75,1) infinite;border-radius:100%;display:block;height:16px;height:100%;left:-100%;opacity:.5;position:absolute;top:0;width:16px;width:100%}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0s,-.5s;animation-delay:0s,-.5s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.5s,-1s;animation-delay:-.5s,-1s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1s,-1.5s;animation-delay:-1s,-1.5s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s,-2s;animation-delay:-1.5s,-2s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-2s,-2.5s;animation-delay:-2s,-2.5s}.la-ball-circus.la-sm[_ngcontent-%COMP%], .la-ball-circus.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:8px;width:8px}.la-ball-circus.la-2x[_ngcontent-%COMP%], .la-ball-circus.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-circus.la-3x[_ngcontent-%COMP%], .la-ball-circus.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:48px;width:48px}@-webkit-keyframes ball-circus-position{50%{left:100%}}@keyframes ball-circus-position{50%{left:100%}}@-webkit-keyframes ball-circus-size{50%{transform:scale(.3)}}@keyframes ball-circus-size{50%{transform:scale(.3)}}.la-ball-climbing-dot[_ngcontent-%COMP%], .la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-climbing-dot[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-climbing-dot.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-climbing-dot[_ngcontent-%COMP%]{height:32px;width:42px}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-climbing-dot-jump .6s ease-in-out infinite;animation:ball-climbing-dot-jump .6s ease-in-out infinite;border-radius:100%;bottom:32%;height:14px;left:18%;position:absolute;transform-origin:center bottom;width:14px}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){-webkit-animation:ball-climbing-dot-steps 1.8s linear infinite;animation:ball-climbing-dot-steps 1.8s linear infinite;border-radius:0;height:2px;position:absolute;right:0;top:0;transform:translate(60%);width:14px}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):nth-child(2){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):nth-child(3){-webkit-animation-delay:-.6s;animation-delay:-.6s}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):nth-child(4){-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-ball-climbing-dot.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-ball-climbing-dot.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:6px;width:6px}.la-ball-climbing-dot.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:1px;width:6px}.la-ball-climbing-dot.la-2x[_ngcontent-%COMP%]{height:64px;width:84px}.la-ball-climbing-dot.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:28px;width:28px}.la-ball-climbing-dot.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:4px;width:28px}.la-ball-climbing-dot.la-3x[_ngcontent-%COMP%]{height:96px;width:126px}.la-ball-climbing-dot.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:42px;width:42px}.la-ball-climbing-dot.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:6px;width:42px}@-webkit-keyframes ball-climbing-dot-jump{0%{transform:scaleY(.7)}20%{transform:scale(.7,1.2)}40%{transform:scale(1)}50%{bottom:125%}46%{transform:scale(1)}80%{transform:scale(.7,1.2)}90%{transform:scale(.7,1.2)}to{transform:scaleY(.7)}}@keyframes ball-climbing-dot-jump{0%{transform:scaleY(.7)}20%{transform:scale(.7,1.2)}40%{transform:scale(1)}50%{bottom:125%}46%{transform:scale(1)}80%{transform:scale(.7,1.2)}90%{transform:scale(.7,1.2)}to{transform:scaleY(.7)}}@-webkit-keyframes ball-climbing-dot-steps{0%{opacity:0;right:0;top:0}50%{opacity:1}to{opacity:0;right:100%;top:100%}}@keyframes ball-climbing-dot-steps{0%{opacity:0;right:0;top:0}50%{opacity:1}to{opacity:0;right:100%;top:100%}}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%], .la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-clip-rotate-multiple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;animation:ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;background:transparent;border-radius:100%;border-style:solid;border-width:2px;left:50%;position:absolute;top:50%}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-left-color:transparent;border-right-color:transparent;height:32px;position:absolute;width:32px}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-direction:reverse;-webkit-animation-duration:.5s;animation-direction:reverse;animation-duration:.5s;border-bottom-color:transparent;border-top-color:transparent;height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:8px;width:8px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:64px;width:64px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:32px;width:32px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:96px;width:96px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:48px;width:48px}@-webkit-keyframes ball-clip-rotate-multiple-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@keyframes ball-clip-rotate-multiple-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%], .la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-clip-rotate-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;left:50%;position:absolute;top:50%}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-clip-rotate-pulse-rotate 1s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-rotate 1s cubic-bezier(.09,.57,.49,.9) infinite;background:transparent;border-bottom-style:solid;border-bottom-width:2px;border-left:2px solid transparent;border-right:2px solid transparent;border-top-style:solid;border-top-width:2px;height:32px;position:absolute;width:32px}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-clip-rotate-pulse-scale 1s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-scale 1s cubic-bezier(.09,.57,.49,.9) infinite;height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-width:1px;height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:8px;width:8px}.la-ball-clip-rotate-pulse.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-clip-rotate-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-width:4px;height:64px;width:64px}.la-ball-clip-rotate-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:32px;width:32px}.la-ball-clip-rotate-pulse.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-clip-rotate-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-width:6px;height:96px;width:96px}.la-ball-clip-rotate-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:48px;width:48px}@-webkit-keyframes ball-clip-rotate-pulse-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@keyframes ball-clip-rotate-pulse-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@-webkit-keyframes ball-clip-rotate-pulse-scale{0%,to{opacity:1;transform:translate(-50%,-50%) scale(1)}30%{opacity:.3;transform:translate(-50%,-50%) scale(.15)}}@keyframes ball-clip-rotate-pulse-scale{0%,to{opacity:1;transform:translate(-50%,-50%) scale(1)}30%{opacity:.3;transform:translate(-50%,-50%) scale(.15)}}.la-ball-clip-rotate[_ngcontent-%COMP%], .la-ball-clip-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-clip-rotate[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-clip-rotate.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-clip-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-clip-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-clip-rotate .75s linear infinite;animation:ball-clip-rotate .75s linear infinite;background:transparent;border-bottom-color:transparent;border-radius:100%;border-width:2px;height:32px;width:32px}.la-ball-clip-rotate.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-clip-rotate.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px;height:16px;width:16px}.la-ball-clip-rotate.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-clip-rotate.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px;height:64px;width:64px}.la-ball-clip-rotate.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-clip-rotate.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.la-ball-elastic-dots[_ngcontent-%COMP%], .la-ball-elastic-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-elastic-dots[_ngcontent-%COMP%]{color:#fff;display:block}.la-ball-elastic-dots.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-elastic-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;float:none}.la-ball-elastic-dots[_ngcontent-%COMP%]{font-size:0;height:10px;text-align:center;width:120px}.la-ball-elastic-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-elastic-dots-anim 1s infinite;animation:ball-elastic-dots-anim 1s infinite;border-radius:100%;display:inline-block;height:10px;white-space:nowrap;width:10px}.la-ball-elastic-dots.la-sm[_ngcontent-%COMP%]{height:4px;width:60px}.la-ball-elastic-dots.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-elastic-dots.la-2x[_ngcontent-%COMP%]{height:20px;width:240px}.la-ball-elastic-dots.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-elastic-dots.la-3x[_ngcontent-%COMP%]{height:30px;width:360px}.la-ball-elastic-dots.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-elastic-dots-anim{0%,to{margin:0;transform:scale(1)}50%{margin:0 5%;transform:scale(.65)}}@keyframes ball-elastic-dots-anim{0%,to{margin:0;transform:scale(1)}50%{margin:0 5%;transform:scale(.65)}}.la-ball-fall[_ngcontent-%COMP%], .la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-fall[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-fall.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-fall[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-fall 1s ease-in-out infinite;animation:ball-fall 1s ease-in-out infinite;border-radius:100%;height:10px;margin:4px;opacity:0;width:10px}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.2s;animation-delay:-.2s}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.1s;animation-delay:-.1s}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-fall.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-fall.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-fall.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-fall.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-fall.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-fall.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-fall{0%{opacity:0;transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}90%{opacity:.5}to{opacity:0;transform:translateY(145%)}}@keyframes ball-fall{0%{opacity:0;transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}90%{opacity:.5}to{opacity:0;transform:translateY(145%)}}.la-ball-fussion[_ngcontent-%COMP%], .la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-fussion[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-fussion.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-fussion[_ngcontent-%COMP%]{height:8px;width:8px}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-fussion-ball1 1s ease 0s infinite;animation:ball-fussion-ball1 1s ease 0s infinite;border-radius:100%;height:12px;position:absolute;transform:translate(-50%,-50%);width:12px}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{left:50%;top:0;z-index:1}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-name:ball-fussion-ball2;animation-name:ball-fussion-ball2;left:100%;top:50%;z-index:2}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-name:ball-fussion-ball3;animation-name:ball-fussion-ball3;left:50%;top:100%;z-index:1}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-name:ball-fussion-ball4;animation-name:ball-fussion-ball4;left:0;top:50%;z-index:2}.la-ball-fussion.la-sm[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-fussion.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;width:6px}.la-ball-fussion.la-2x[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-fussion.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-ball-fussion.la-3x[_ngcontent-%COMP%]{height:24px;width:24px}.la-ball-fussion.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;width:36px}@-webkit-keyframes ball-fussion-ball1{0%{opacity:.35}50%{left:200%;opacity:1;top:-100%}to{left:100%;opacity:.35;top:50%;z-index:2}}@keyframes ball-fussion-ball1{0%{opacity:.35}50%{left:200%;opacity:1;top:-100%}to{left:100%;opacity:.35;top:50%;z-index:2}}@-webkit-keyframes ball-fussion-ball2{0%{opacity:.35}50%{left:200%;opacity:1;top:200%}to{left:50%;opacity:.35;top:100%;z-index:1}}@keyframes ball-fussion-ball2{0%{opacity:.35}50%{left:200%;opacity:1;top:200%}to{left:50%;opacity:.35;top:100%;z-index:1}}@-webkit-keyframes ball-fussion-ball3{0%{opacity:.35}50%{left:-100%;opacity:1;top:200%}to{left:0;opacity:.35;top:50%;z-index:2}}@keyframes ball-fussion-ball3{0%{opacity:.35}50%{left:-100%;opacity:1;top:200%}to{left:0;opacity:.35;top:50%;z-index:2}}@-webkit-keyframes ball-fussion-ball4{0%{opacity:.35}50%{left:-100%;opacity:1;top:-100%}to{left:50%;opacity:.35;top:0;z-index:1}}@keyframes ball-fussion-ball4{0%{opacity:.35}50%{left:-100%;opacity:1;top:-100%}to{left:50%;opacity:.35;top:0;z-index:1}}.la-ball-grid-beat[_ngcontent-%COMP%], .la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-grid-beat[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-grid-beat.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-grid-beat[_ngcontent-%COMP%]{height:36px;width:36px}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation-iteration-count:infinite;-webkit-animation-name:ball-grid-beat;animation-iteration-count:infinite;animation-name:ball-grid-beat;border-radius:100%;height:8px;margin:2px;width:8px}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:.03s;-webkit-animation-duration:.65s;animation-delay:.03s;animation-duration:.65s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.09s;-webkit-animation-duration:1.02s;animation-delay:.09s;animation-duration:1.02s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.69s;-webkit-animation-duration:1.06s;animation-delay:-.69s;animation-duration:1.06s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.41s;-webkit-animation-duration:1.5s;animation-delay:-.41s;animation-duration:1.5s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:.04s;-webkit-animation-duration:1.6s;animation-delay:.04s;animation-duration:1.6s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:.07s;-webkit-animation-duration:.84s;animation-delay:.07s;animation-duration:.84s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.66s;-webkit-animation-duration:.68s;animation-delay:-.66s;animation-duration:.68s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.76s;-webkit-animation-duration:.93s;animation-delay:-.76s;animation-duration:.93s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-.76s;-webkit-animation-duration:1.24s;animation-delay:-.76s;animation-duration:1.24s}.la-ball-grid-beat.la-sm[_ngcontent-%COMP%]{height:18px;width:18px}.la-ball-grid-beat.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:1px;width:4px}.la-ball-grid-beat.la-2x[_ngcontent-%COMP%]{height:72px;width:72px}.la-ball-grid-beat.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:4px;width:16px}.la-ball-grid-beat.la-3x[_ngcontent-%COMP%]{height:108px;width:108px}.la-ball-grid-beat.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin:6px;width:24px}@-webkit-keyframes ball-grid-beat{0%{opacity:1}50%{opacity:.35}to{opacity:1}}@keyframes ball-grid-beat{0%{opacity:1}50%{opacity:.35}to{opacity:1}}.la-ball-grid-pulse[_ngcontent-%COMP%], .la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-grid-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-grid-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-grid-pulse[_ngcontent-%COMP%]{height:36px;width:36px}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation-iteration-count:infinite;-webkit-animation-name:ball-grid-pulse;animation-iteration-count:infinite;animation-name:ball-grid-pulse;border-radius:100%;height:8px;margin:2px;width:8px}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:.03s;-webkit-animation-duration:.65s;animation-delay:.03s;animation-duration:.65s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.09s;-webkit-animation-duration:1.02s;animation-delay:.09s;animation-duration:1.02s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.69s;-webkit-animation-duration:1.06s;animation-delay:-.69s;animation-duration:1.06s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.41s;-webkit-animation-duration:1.5s;animation-delay:-.41s;animation-duration:1.5s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:.04s;-webkit-animation-duration:1.6s;animation-delay:.04s;animation-duration:1.6s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:.07s;-webkit-animation-duration:.84s;animation-delay:.07s;animation-duration:.84s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.66s;-webkit-animation-duration:.68s;animation-delay:-.66s;animation-duration:.68s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.76s;-webkit-animation-duration:.93s;animation-delay:-.76s;animation-duration:.93s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-.76s;-webkit-animation-duration:1.24s;animation-delay:-.76s;animation-duration:1.24s}.la-ball-grid-pulse.la-sm[_ngcontent-%COMP%]{height:18px;width:18px}.la-ball-grid-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:1px;width:4px}.la-ball-grid-pulse.la-2x[_ngcontent-%COMP%]{height:72px;width:72px}.la-ball-grid-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:4px;width:16px}.la-ball-grid-pulse.la-3x[_ngcontent-%COMP%]{height:108px;width:108px}.la-ball-grid-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin:6px;width:24px}@-webkit-keyframes ball-grid-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.45)}to{opacity:1;transform:scale(1)}}@keyframes ball-grid-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.45)}to{opacity:1;transform:scale(1)}}.la-ball-newton-cradle[_ngcontent-%COMP%], .la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-newton-cradle[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-newton-cradle.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-newton-cradle[_ngcontent-%COMP%]{height:10px;width:40px}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;width:10px}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-newton-cradle-left 1s ease-out 0s infinite;animation:ball-newton-cradle-left 1s ease-out 0s infinite;transform:translateX(0)}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-newton-cradle-right 1s ease-out 0s infinite;animation:ball-newton-cradle-right 1s ease-out 0s infinite;transform:translateX(0)}.la-ball-newton-cradle.la-sm[_ngcontent-%COMP%]{height:4px;width:20px}.la-ball-newton-cradle.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-newton-cradle.la-2x[_ngcontent-%COMP%]{height:20px;width:80px}.la-ball-newton-cradle.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-newton-cradle.la-3x[_ngcontent-%COMP%]{height:30px;width:120px}.la-ball-newton-cradle.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-newton-cradle-left{25%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(-100%)}50%{transform:translateX(0)}}@keyframes ball-newton-cradle-left{25%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(-100%)}50%{transform:translateX(0)}}@-webkit-keyframes ball-newton-cradle-right{50%{transform:translateX(0)}75%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(100%)}to{transform:translateX(0)}}@keyframes ball-newton-cradle-right{50%{transform:translateX(0)}75%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(100%)}to{transform:translateX(0)}}.la-ball-pulse-rise[_ngcontent-%COMP%], .la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-pulse-rise[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-pulse-rise.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse-rise[_ngcontent-%COMP%]{height:14px;width:70px}.la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-pulse-rise-even 1s cubic-bezier(.15,.36,.9,.6) 0s infinite;animation:ball-pulse-rise-even 1s cubic-bezier(.15,.36,.9,.6) 0s infinite;border-radius:100%;height:10px;margin:2px;width:10px}.la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2n-1){-webkit-animation-name:ball-pulse-rise-odd;animation-name:ball-pulse-rise-odd}.la-ball-pulse-rise.la-sm[_ngcontent-%COMP%]{height:6px;width:34px}.la-ball-pulse-rise.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:1px;width:4px}.la-ball-pulse-rise.la-2x[_ngcontent-%COMP%]{height:28px;width:140px}.la-ball-pulse-rise.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:4px;width:20px}.la-ball-pulse-rise.la-3x[_ngcontent-%COMP%]{height:42px;width:210px}.la-ball-pulse-rise.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:6px;width:30px}@-webkit-keyframes ball-pulse-rise-even{0%{opacity:1;transform:scale(1.1)}25%{transform:translateY(-200%)}50%{opacity:.35;transform:scale(.3)}75%{transform:translateY(200%)}to{opacity:1;transform:translateY(0);transform:scale(1)}}@keyframes ball-pulse-rise-even{0%{opacity:1;transform:scale(1.1)}25%{transform:translateY(-200%)}50%{opacity:.35;transform:scale(.3)}75%{transform:translateY(200%)}to{opacity:1;transform:translateY(0);transform:scale(1)}}@-webkit-keyframes ball-pulse-rise-odd{0%{opacity:.35;transform:scale(.4)}25%{transform:translateY(200%)}50%{opacity:1;transform:scale(1.1)}75%{transform:translateY(-200%)}to{opacity:.35;transform:translateY(0);transform:scale(.75)}}@keyframes ball-pulse-rise-odd{0%{opacity:.35;transform:scale(.4)}25%{transform:translateY(200%)}50%{opacity:1;transform:scale(1.1)}75%{transform:translateY(-200%)}to{opacity:.35;transform:translateY(0);transform:scale(.75)}}.la-ball-pulse-sync[_ngcontent-%COMP%], .la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-pulse-sync[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-pulse-sync.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse-sync[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-pulse-sync .6s ease-in-out infinite;animation:ball-pulse-sync .6s ease-in-out infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.14s;animation-delay:-.14s}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.07s;animation-delay:-.07s}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:0s;animation-delay:0s}.la-ball-pulse-sync.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-pulse-sync.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-pulse-sync.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-pulse-sync.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-pulse-sync.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-pulse-sync.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-pulse-sync{33%{transform:translateY(100%)}66%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes ball-pulse-sync{33%{transform:translateY(100%)}66%{transform:translateY(-100%)}to{transform:translateY(0)}}.la-ball-pulse[_ngcontent-%COMP%], .la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.2s;animation-delay:-.2s}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.1s;animation-delay:-.1s}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-pulse 1s ease infinite;animation:ball-pulse 1s ease infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-pulse.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-pulse.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-pulse.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-pulse{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}@keyframes ball-pulse{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}.la-ball-rotate[_ngcontent-%COMP%], .la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-rotate[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-rotate.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-rotate[_ngcontent-%COMP%], .la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:10px;width:10px}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-rotate-animation 1s cubic-bezier(.7,-.13,.22,.86) infinite;animation:ball-rotate-animation 1s cubic-bezier(.7,-.13,.22,.86) infinite;border-radius:100%}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{background:currentColor;border-radius:inherit;content:"";height:inherit;margin:inherit;opacity:.8;position:absolute;width:inherit}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{left:-150%;top:0}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{left:150%;top:0}.la-ball-rotate.la-sm[_ngcontent-%COMP%], .la-ball-rotate.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-rotate.la-2x[_ngcontent-%COMP%], .la-ball-rotate.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-rotate.la-3x[_ngcontent-%COMP%], .la-ball-rotate.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-rotate-animation{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes ball-rotate-animation{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.la-ball-running-dots[_ngcontent-%COMP%], .la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-running-dots[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-running-dots.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-running-dots[_ngcontent-%COMP%]{height:10px;width:10px}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-running-dots-animate 2s linear infinite;animation:ball-running-dots-animate 2s linear infinite;border-radius:100%;height:10px;margin-left:-25px;position:absolute;width:10px}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0s;animation-delay:0s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.6s;animation-delay:-1.6s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-2s;animation-delay:-2s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-2.4s;animation-delay:-2.4s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2.8s;animation-delay:-2.8s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-3.2s;animation-delay:-3.2s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(10){-webkit-animation-delay:-3.6s;animation-delay:-3.6s}.la-ball-running-dots.la-sm[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-running-dots.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-12px;width:4px}.la-ball-running-dots.la-2x[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-running-dots.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-50px;width:20px}.la-ball-running-dots.la-3x[_ngcontent-%COMP%]{height:30px;width:30px}.la-ball-running-dots.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-75px;width:30px}@-webkit-keyframes ball-running-dots-animate{0%,to{height:100%;transform:translateY(0) translateX(500%);width:100%}80%{transform:translateY(0) translateX(0)}85%{height:100%;transform:translateY(-125%) translateX(0);width:100%}90%{height:75%;width:200%}95%{height:100%;transform:translateY(-100%) translateX(500%);width:100%}}@keyframes ball-running-dots-animate{0%,to{height:100%;transform:translateY(0) translateX(500%);width:100%}80%{transform:translateY(0) translateX(0)}85%{height:100%;transform:translateY(-125%) translateX(0);width:100%}90%{height:75%;width:200%}95%{height:100%;transform:translateY(-100%) translateX(500%);width:100%}}.la-ball-scale-multiple[_ngcontent-%COMP%], .la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-multiple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-multiple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-multiple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-multiple 1s linear 0s infinite;animation:ball-scale-multiple 1s linear 0s infinite;border-radius:100%;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.la-ball-scale-multiple.la-sm[_ngcontent-%COMP%], .la-ball-scale-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-multiple.la-2x[_ngcontent-%COMP%], .la-ball-scale-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-multiple.la-3x[_ngcontent-%COMP%], .la-ball-scale-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}@keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}.la-ball-scale-pulse[_ngcontent-%COMP%], .la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-pulse[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-pulse 2s ease-in-out infinite;animation:ball-scale-pulse 2s ease-in-out infinite;border-radius:100%;height:32px;left:0;opacity:.5;position:absolute;top:0;width:32px}.la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-delay:-1s;animation-delay:-1s}.la-ball-scale-pulse.la-sm[_ngcontent-%COMP%], .la-ball-scale-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-pulse.la-2x[_ngcontent-%COMP%], .la-ball-scale-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-pulse.la-3x[_ngcontent-%COMP%], .la-ball-scale-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-scale-pulse{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes ball-scale-pulse{0%,to{transform:scale(0)}50%{transform:scale(1)}}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%], .la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-ripple-multiple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;background:transparent;border-radius:100%;border-width:2px;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0s;animation-delay:0s}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.25s;animation-delay:.25s}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.5s;animation-delay:.5s}.la-ball-scale-ripple-multiple.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-ripple-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px;height:16px;width:16px}.la-ball-scale-ripple-multiple.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-ripple-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px;height:64px;width:64px}.la-ball-scale-ripple-multiple.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-scale-ripple-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-scale-ripple-multiple{0%{opacity:1;transform:scale(.1)}70%{opacity:.5;transform:scale(1)}95%{opacity:0}}@keyframes ball-scale-ripple-multiple{0%{opacity:1;transform:scale(.1)}70%{opacity:.5;transform:scale(1)}95%{opacity:0}}.la-ball-scale-ripple[_ngcontent-%COMP%], .la-ball-scale-ripple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-ripple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-ripple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-ripple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-ripple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-ripple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-ripple 1s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple 1s cubic-bezier(.21,.53,.56,.8) 0s infinite;background:transparent;border-radius:100%;border-width:2px;height:32px;opacity:0;width:32px}.la-ball-scale-ripple.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-ripple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px;height:16px;width:16px}.la-ball-scale-ripple.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-ripple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px;height:64px;width:64px}.la-ball-scale-ripple.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-scale-ripple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-scale-ripple{0%{opacity:1;transform:scale(.1)}70%{opacity:.65;transform:scale(1)}to{opacity:0}}@keyframes ball-scale-ripple{0%{opacity:1;transform:scale(.1)}70%{opacity:.65;transform:scale(1)}to{opacity:0}}.la-ball-scale[_ngcontent-%COMP%], .la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale[_ngcontent-%COMP%], .la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale 1s ease-in-out 0s infinite;animation:ball-scale 1s ease-in-out 0s infinite;border-radius:100%;opacity:0}.la-ball-scale.la-sm[_ngcontent-%COMP%], .la-ball-scale.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale.la-2x[_ngcontent-%COMP%], .la-ball-scale.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale.la-3x[_ngcontent-%COMP%], .la-ball-scale.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-scale{0%{opacity:1;transform:scale(0)}to{opacity:0;transform:scale(1)}}@keyframes ball-scale{0%{opacity:1;transform:scale(0)}to{opacity:0;transform:scale(1)}}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%], .la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise-fade-rotating-rotate 6s linear infinite;animation:ball-spin-clockwise-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise-fade-rotating 1s linear infinite;animation:ball-spin-clockwise-fade-rotating 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@keyframes ball-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@-webkit-keyframes ball-spin-clockwise-fade-rotating{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ball-spin-clockwise-fade-rotating{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%], .la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise-fade 1s linear infinite;animation:ball-spin-clockwise-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-clockwise-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-clockwise-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-clockwise-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise-fade{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ball-spin-clockwise-fade{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.la-ball-spin-clockwise[_ngcontent-%COMP%], .la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-clockwise[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise 1s ease-in-out infinite;animation:ball-spin-clockwise 1s ease-in-out infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-clockwise.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-clockwise.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-clockwise.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}.la-ball-spin-fade-rotating[_ngcontent-%COMP%], .la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade-rotate 6s linear infinite;animation:ball-spin-fade-rotate 6s linear infinite;height:32px;width:32px}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade 1s linear infinite;animation:ball-spin-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-fade-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-fade-rotate{to{transform:rotate(1turn)}}.la-ball-spin-fade[_ngcontent-%COMP%], .la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade 1s linear infinite;animation:ball-spin-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-fade{0%,to{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.5)}}@keyframes ball-spin-fade{0%,to{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.5)}}.la-ball-spin-rotate[_ngcontent-%COMP%], .la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-rotate[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-rotate.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-rotate[_ngcontent-%COMP%]{-webkit-animation:ball-spin-rotate 2s linear infinite;animation:ball-spin-rotate 2s linear infinite;height:32px;width:32px}.la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-bounce 2s ease-in-out infinite;animation:ball-spin-bounce 2s ease-in-out infinite;border-radius:100%;height:60%;position:absolute;top:0;width:60%}.la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-delay:-1s;animation-delay:-1s;bottom:0;top:auto}.la-ball-spin-rotate.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-rotate.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-rotate.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-spin-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes ball-spin-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes ball-spin-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.la-ball-spin[_ngcontent-%COMP%], .la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin 1s ease-in-out infinite;animation:ball-spin 1s ease-in-out infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}.la-ball-square-clockwise-spin[_ngcontent-%COMP%], .la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-square-clockwise-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-square-clockwise-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-square-clockwise-spin[_ngcontent-%COMP%]{height:26px;width:26px}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-square-clockwise-spin 1s ease-in-out infinite;animation:ball-square-clockwise-spin 1s ease-in-out infinite;border-radius:100%;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:0;top:0}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:50%;top:0}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:100%;top:0}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:100%;top:50%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:100%;top:100%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:50%;top:100%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:0;top:100%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:0;top:50%}.la-ball-square-clockwise-spin.la-sm[_ngcontent-%COMP%]{height:12px;width:12px}.la-ball-square-clockwise-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-ball-square-clockwise-spin.la-2x[_ngcontent-%COMP%]{height:52px;width:52px}.la-ball-square-clockwise-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}.la-ball-square-clockwise-spin.la-3x[_ngcontent-%COMP%]{height:78px;width:78px}.la-ball-square-clockwise-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;margin-left:-18px;margin-top:-18px;width:36px}@-webkit-keyframes ball-square-clockwise-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}@keyframes ball-square-clockwise-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}.la-ball-square-spin[_ngcontent-%COMP%], .la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-square-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-square-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-square-spin[_ngcontent-%COMP%]{height:26px;width:26px}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-square-spin 1s ease-in-out infinite;animation:ball-square-spin 1s ease-in-out infinite;border-radius:100%;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:0;top:0}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:50%;top:0}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:100%;top:0}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:100%;top:50%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:100%;top:100%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:50%;top:100%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:0;top:100%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:0;top:50%}.la-ball-square-spin.la-sm[_ngcontent-%COMP%]{height:12px;width:12px}.la-ball-square-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-ball-square-spin.la-2x[_ngcontent-%COMP%]{height:52px;width:52px}.la-ball-square-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}.la-ball-square-spin.la-3x[_ngcontent-%COMP%]{height:78px;width:78px}.la-ball-square-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;margin-left:-18px;margin-top:-18px;width:36px}@-webkit-keyframes ball-square-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}@keyframes ball-square-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}.la-ball-triangle-path[_ngcontent-%COMP%], .la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-triangle-path[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-triangle-path.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-triangle-path[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;left:0;position:absolute;top:0;width:10px}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-triangle-path-ball-one 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-one 2s ease-in-out 0s infinite}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:ball-triangle-path-ball-two 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-two 2s ease-in-out 0s infinite}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation:ball-triangle-path-ball-tree 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-tree 2s ease-in-out 0s infinite}.la-ball-triangle-path.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-triangle-path.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-triangle-path.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-triangle-path.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-triangle-path.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-triangle-path.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-triangle-path-ball-one{0%{transform:translateY(220%)}17%{opacity:.25}33%{opacity:1;transform:translate(110%)}50%{opacity:.25}66%{opacity:1;transform:translate(220%,220%)}83%{opacity:.25}to{opacity:1;transform:translateY(220%)}}@keyframes ball-triangle-path-ball-one{0%{transform:translateY(220%)}17%{opacity:.25}33%{opacity:1;transform:translate(110%)}50%{opacity:.25}66%{opacity:1;transform:translate(220%,220%)}83%{opacity:.25}to{opacity:1;transform:translateY(220%)}}@-webkit-keyframes ball-triangle-path-ball-two{0%{transform:translate(110%)}17%{opacity:.25}33%{opacity:1;transform:translate(220%,220%)}50%{opacity:.25}66%{opacity:1;transform:translateY(220%)}83%{opacity:.25}to{opacity:1;transform:translate(110%)}}@keyframes ball-triangle-path-ball-two{0%{transform:translate(110%)}17%{opacity:.25}33%{opacity:1;transform:translate(220%,220%)}50%{opacity:.25}66%{opacity:1;transform:translateY(220%)}83%{opacity:.25}to{opacity:1;transform:translate(110%)}}@-webkit-keyframes ball-triangle-path-ball-tree{0%{transform:translate(220%,220%)}17%{opacity:.25}33%{opacity:1;transform:translateY(220%)}50%{opacity:.25}66%{opacity:1;transform:translate(110%)}83%{opacity:.25}to{opacity:1;transform:translate(220%,220%)}}@keyframes ball-triangle-path-ball-tree{0%{transform:translate(220%,220%)}17%{opacity:.25}33%{opacity:1;transform:translateY(220%)}50%{opacity:.25}66%{opacity:1;transform:translate(110%)}83%{opacity:.25}to{opacity:1;transform:translate(220%,220%)}}.la-ball-zig-zag-deflect[_ngcontent-%COMP%], .la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-zig-zag-deflect[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-zig-zag-deflect.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-zig-zag-deflect[_ngcontent-%COMP%]{height:32px;position:relative;width:32px}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;left:50%;margin-left:-5px;margin-top:-5px;position:absolute;top:50%;width:10px}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-zig-deflect 1.5s linear 0s infinite;animation:ball-zig-deflect 1.5s linear 0s infinite}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-zag-deflect 1.5s linear 0s infinite;animation:ball-zag-deflect 1.5s linear 0s infinite}.la-ball-zig-zag-deflect.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-zig-zag-deflect.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-zig-zag-deflect.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-zig-zag-deflect.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-zig-zag-deflect.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-zig-zag-deflect.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-zig-deflect{17%{transform:translate(-80%,-160%)}34%{transform:translate(80%,-160%)}50%{transform:translate(0)}67%{transform:translate(80%,-160%)}84%{transform:translate(-80%,-160%)}to{transform:translate(0)}}@keyframes ball-zig-deflect{17%{transform:translate(-80%,-160%)}34%{transform:translate(80%,-160%)}50%{transform:translate(0)}67%{transform:translate(80%,-160%)}84%{transform:translate(-80%,-160%)}to{transform:translate(0)}}@-webkit-keyframes ball-zag-deflect{17%{transform:translate(80%,160%)}34%{transform:translate(-80%,160%)}50%{transform:translate(0)}67%{transform:translate(-80%,160%)}84%{transform:translate(80%,160%)}to{transform:translate(0)}}@keyframes ball-zag-deflect{17%{transform:translate(80%,160%)}34%{transform:translate(-80%,160%)}50%{transform:translate(0)}67%{transform:translate(-80%,160%)}84%{transform:translate(80%,160%)}to{transform:translate(0)}}.la-ball-zig-zag[_ngcontent-%COMP%], .la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-zig-zag[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-zig-zag.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-zig-zag[_ngcontent-%COMP%]{height:32px;position:relative;width:32px}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;left:50%;margin-left:-5px;margin-top:-5px;position:absolute;top:50%;width:10px}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-zig-effect .7s linear 0s infinite;animation:ball-zig-effect .7s linear 0s infinite}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-zag-effect .7s linear 0s infinite;animation:ball-zag-effect .7s linear 0s infinite}.la-ball-zig-zag.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-zig-zag.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-zig-zag.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-zig-zag.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-zig-zag.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-zig-zag.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-zig-effect{0%{transform:translate(0)}33%{transform:translate(-75%,-150%)}66%{transform:translate(75%,-150%)}to{transform:translate(0)}}@keyframes ball-zig-effect{0%{transform:translate(0)}33%{transform:translate(-75%,-150%)}66%{transform:translate(75%,-150%)}to{transform:translate(0)}}@-webkit-keyframes ball-zag-effect{0%{transform:translate(0)}33%{transform:translate(75%,150%)}66%{transform:translate(-75%,150%)}to{transform:translate(0)}}@keyframes ball-zag-effect{0%{transform:translate(0)}33%{transform:translate(75%,150%)}66%{transform:translate(-75%,150%)}to{transform:translate(0)}}.la-cog[_ngcontent-%COMP%], .la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-cog[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-cog.la-dark[_ngcontent-%COMP%]{color:#333}.la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-cog[_ngcontent-%COMP%]{height:31px;width:31px}.la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:cog-rotate 4s linear infinite;animation:cog-rotate 4s linear infinite;background-color:transparent;border-radius:100%;border-style:dashed;border-width:2px;height:100%;width:100%}.la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border:2px solid;border-radius:100%;content:"";height:100%;left:0;position:absolute;top:0;width:100%}.la-cog.la-sm[_ngcontent-%COMP%]{height:15px;width:15px}.la-cog.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-cog.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border-width:1px}.la-cog.la-2x[_ngcontent-%COMP%]{height:61px;width:61px}.la-cog.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-cog.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border-width:4px}.la-cog.la-3x[_ngcontent-%COMP%]{height:91px;width:91px}.la-cog.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-cog.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border-width:6px}@-webkit-keyframes cog-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes cog-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.la-cube-transition[_ngcontent-%COMP%], .la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-cube-transition[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-cube-transition.la-dark[_ngcontent-%COMP%]{color:#333}.la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-cube-transition[_ngcontent-%COMP%]{height:32px;width:32px}.la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:cube-transition 1.6s ease-in-out 0s infinite;animation:cube-transition 1.6s ease-in-out 0s infinite;border-radius:0;height:14px;left:0;margin-left:-7px;margin-top:-7px;position:absolute;top:0;width:14px}.la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-cube-transition.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-cube-transition.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-cube-transition.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-cube-transition.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:28px;margin-left:-14px;margin-top:-14px;width:28px}.la-cube-transition.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-cube-transition.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:42px;margin-left:-21px;margin-top:-21px;width:42px}@-webkit-keyframes cube-transition{25%{left:100%;top:0;transform:scale(.5) rotate(-90deg)}50%{left:100%;top:100%;transform:scale(1) rotate(-180deg)}75%{left:0;top:100%;transform:scale(.5) rotate(-270deg)}to{left:0;top:0;transform:scale(1) rotate(-1turn)}}@keyframes cube-transition{25%{left:100%;top:0;transform:scale(.5) rotate(-90deg)}50%{left:100%;top:100%;transform:scale(1) rotate(-180deg)}75%{left:0;top:100%;transform:scale(.5) rotate(-270deg)}to{left:0;top:0;transform:scale(1) rotate(-1turn)}}.la-fire[_ngcontent-%COMP%], .la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-fire[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-fire.la-dark[_ngcontent-%COMP%]{color:#333}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-fire[_ngcontent-%COMP%]{height:32px;width:32px}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:fire-diamonds 1.5s linear infinite;animation:fire-diamonds 1.5s linear infinite;border-radius:0;border-radius:2px;bottom:0;height:12px;left:50%;position:absolute;transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);width:12px}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.85s;animation-delay:-.85s}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.85s;animation-delay:-1.85s}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-2.85s;animation-delay:-2.85s}.la-fire.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-fire.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;width:6px}.la-fire.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-fire.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;width:24px}.la-fire.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-fire.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;width:36px}@-webkit-keyframes fire-diamonds{0%{transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}to{transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@keyframes fire-diamonds{0%{transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}to{transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}.la-line-scale-party[_ngcontent-%COMP%], .la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale-party[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale-party.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-party[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation-iteration-count:infinite;-webkit-animation-name:line-scale-party;animation-iteration-count:infinite;animation-name:line-scale-party;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.23s;-webkit-animation-duration:.43s;animation-delay:-.23s;animation-duration:.43s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.32s;-webkit-animation-duration:.62s;animation-delay:-.32s;animation-duration:.62s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.44s;-webkit-animation-duration:.43s;animation-delay:-.44s;animation-duration:.43s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.31s;-webkit-animation-duration:.8s;animation-delay:-.31s;animation-duration:.8s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.24s;-webkit-animation-duration:.74s;animation-delay:-.24s;animation-duration:.74s}.la-line-scale-party.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale-party.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale-party.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale-party.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale-party.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale-party.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-party{0%{transform:scaleY(1)}50%{transform:scaleY(.3)}to{transform:scaleY(1)}}@keyframes line-scale-party{0%{transform:scaleY(1)}50%{transform:scaleY(.3)}to{transform:scaleY(1)}}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%], .la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale-pulse-out-rapid.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-scale-pulse-out-rapid .9s cubic-bezier(.11,.49,.38,.78) infinite;animation:line-scale-pulse-out-rapid .9s cubic-bezier(.11,.49,.38,.78) infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2), .la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.65s;animation-delay:-.65s}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.4s;animation-delay:-.4s}.la-line-scale-pulse-out-rapid.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale-pulse-out-rapid.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale-pulse-out-rapid.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale-pulse-out-rapid.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale-pulse-out-rapid.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale-pulse-out-rapid.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-pulse-out-rapid{0%{transform:scaley(1)}80%{transform:scaley(.3)}90%{transform:scaley(1)}}@keyframes line-scale-pulse-out-rapid{0%{transform:scaley(1)}80%{transform:scaley(.3)}90%{transform:scaley(1)}}.la-line-scale-pulse-out[_ngcontent-%COMP%], .la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale-pulse-out[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale-pulse-out.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-pulse-out[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-scale-pulse-out .9s cubic-bezier(.85,.25,.37,.85) infinite;animation:line-scale-pulse-out .9s cubic-bezier(.85,.25,.37,.85) infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2), .la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.7s;animation-delay:-.7s}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-line-scale-pulse-out.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale-pulse-out.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale-pulse-out.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale-pulse-out.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale-pulse-out.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale-pulse-out.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-pulse-out{0%{transform:scaley(1)}50%{transform:scaley(.3)}to{transform:scaley(1)}}@keyframes line-scale-pulse-out{0%{transform:scaley(1)}50%{transform:scaley(.3)}to{transform:scaley(1)}}.la-line-scale[_ngcontent-%COMP%], .la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-scale 1.2s ease infinite;animation:line-scale 1.2s ease infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1s;animation-delay:-1s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-line-scale.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}@keyframes line-scale{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%], .la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-clockwise-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:line-spin-clockwise-fade-rotating-rotate 6s linear infinite;animation:line-spin-clockwise-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-clockwise-fade-rotating 1s ease-in-out infinite;animation:line-spin-clockwise-fade-rotating 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@keyframes line-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@-webkit-keyframes line-spin-clockwise-fade-rotating{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-clockwise-fade-rotating{50%{opacity:.2}to{opacity:1}}.la-line-spin-clockwise-fade[_ngcontent-%COMP%], .la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-clockwise-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-clockwise-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-clockwise-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-clockwise-fade 1s ease-in-out infinite;animation:line-spin-clockwise-fade 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-clockwise-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-clockwise-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-clockwise-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-clockwise-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-clockwise-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-clockwise-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-clockwise-fade{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-clockwise-fade{50%{opacity:.2}to{opacity:1}}.la-line-spin-fade-rotating[_ngcontent-%COMP%], .la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade-rotating-rotate 6s linear infinite;animation:ball-spin-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-fade-rotating 1s ease-in-out infinite;animation:line-spin-fade-rotating 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes ball-spin-fade-rotating-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-fade-rotating-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes line-spin-fade-rotating{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-fade-rotating{50%{opacity:.2}to{opacity:1}}.la-line-spin-fade[_ngcontent-%COMP%], .la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-fade 1s ease-in-out infinite;animation:line-spin-fade 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-fade{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-fade{50%{opacity:.2}to{opacity:1}}.la-pacman[_ngcontent-%COMP%], .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-pacman[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-pacman.la-dark[_ngcontent-%COMP%]{color:#333}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-pacman[_ngcontent-%COMP%]{height:32px;width:32px}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:pacman-rotate-half-up .5s 0s infinite;animation:pacman-rotate-half-up .5s 0s infinite;background:transparent;border-radius:100%;border-right:solid transparent;border-style:solid;border-width:16px;height:0;position:absolute;width:0}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-name:pacman-rotate-half-down;animation-name:pacman-rotate-half-down;top:0}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation:pacman-balls 2s linear 0s infinite;animation:pacman-balls 2s linear 0s infinite;border-radius:100%;height:8px;left:200%;opacity:0;position:absolute;top:50%;width:8px}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.44s;animation-delay:-1.44s}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.94s;animation-delay:-1.94s}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-2.44s;animation-delay:-2.44s}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-2.94s;animation-delay:-2.94s}.la-pacman.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){border-width:8px;position:absolute}.la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:0}.la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){height:4px;width:4px}.la-pacman.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){border-width:32px;position:absolute}.la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:0}.la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){height:16px;width:16px}.la-pacman.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){border-width:48px;position:absolute}.la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:0}.la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){height:24px;width:24px}@-webkit-keyframes pacman-rotate-half-up{0%,to{transform:rotate(270deg)}50%{transform:rotate(1turn)}}@keyframes pacman-rotate-half-up{0%,to{transform:rotate(270deg)}50%{transform:rotate(1turn)}}@-webkit-keyframes pacman-rotate-half-down{0%,to{transform:rotate(90deg)}50%{transform:rotate(0deg)}}@keyframes pacman-rotate-half-down{0%,to{transform:rotate(90deg)}50%{transform:rotate(0deg)}}@-webkit-keyframes pacman-balls{0%{left:200%;opacity:0;transform:translateY(-50%)}5%{opacity:.5}66%{opacity:1}67%{opacity:0}to{left:0;transform:translateY(-50%)}}@keyframes pacman-balls{0%{left:200%;opacity:0;transform:translateY(-50%)}5%{opacity:.5}66%{opacity:1}67%{opacity:0}to{left:0;transform:translateY(-50%)}}.la-square-jelly-box[_ngcontent-%COMP%], .la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-square-jelly-box[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-square-jelly-box.la-dark[_ngcontent-%COMP%]{color:#333}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-jelly-box[_ngcontent-%COMP%]{height:32px;width:32px}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){left:0;position:absolute;width:100%}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:square-jelly-box-animate .6s linear -.1s infinite;animation:square-jelly-box-animate .6s linear -.1s infinite;border-radius:10%;height:100%;top:-25%;z-index:1}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:square-jelly-box-shadow .6s linear -.1s infinite;animation:square-jelly-box-shadow .6s linear -.1s infinite;background:#000;border-radius:50%;bottom:-9%;height:10%;opacity:.2}.la-square-jelly-box.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-square-jelly-box.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-square-jelly-box.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes square-jelly-box-animate{17%{border-bottom-right-radius:10%}25%{transform:translateY(25%) rotate(22.5deg)}50%{border-bottom-right-radius:100%;transform:translateY(50%) scaleY(.9) rotate(45deg)}75%{transform:translateY(25%) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes square-jelly-box-animate{17%{border-bottom-right-radius:10%}25%{transform:translateY(25%) rotate(22.5deg)}50%{border-bottom-right-radius:100%;transform:translateY(50%) scaleY(.9) rotate(45deg)}75%{transform:translateY(25%) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@-webkit-keyframes square-jelly-box-shadow{50%{transform:scaleX(1.25)}}@keyframes square-jelly-box-shadow{50%{transform:scaleX(1.25)}}.la-square-loader[_ngcontent-%COMP%], .la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-square-loader[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-square-loader.la-dark[_ngcontent-%COMP%]{color:#333}.la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-loader[_ngcontent-%COMP%]{height:32px;width:32px}.la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:square-loader 2s ease infinite;animation:square-loader 2s ease infinite;background:transparent;border-radius:0;border-width:2px;height:100%;width:100%}.la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{-webkit-animation:square-loader-inner 2s ease-in infinite;animation:square-loader-inner 2s ease-in infinite;background-color:currentColor;content:"";display:inline-block;vertical-align:top;width:100%}.la-square-loader.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-square-loader.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px}.la-square-loader.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-square-loader.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px}.la-square-loader.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-square-loader.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px}@-webkit-keyframes square-loader{0%{transform:rotate(0deg)}25%{transform:rotate(180deg)}50%{transform:rotate(180deg)}75%{transform:rotate(1turn)}to{transform:rotate(1turn)}}@keyframes square-loader{0%{transform:rotate(0deg)}25%{transform:rotate(180deg)}50%{transform:rotate(180deg)}75%{transform:rotate(1turn)}to{transform:rotate(1turn)}}@-webkit-keyframes square-loader-inner{0%{height:0}25%{height:0}50%{height:100%}75%{height:100%}to{height:0}}@keyframes square-loader-inner{0%{height:0}25%{height:0}50%{height:100%}75%{height:100%}to{height:0}}.la-square-spin[_ngcontent-%COMP%], .la-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-square-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-square-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-spin[_ngcontent-%COMP%]{height:32px;width:32px}.la-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:square-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;animation:square-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;border-radius:0;height:100%;width:100%}.la-square-spin.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-square-spin.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-square-spin.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes square-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}@keyframes square-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}.la-timer[_ngcontent-%COMP%], .la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-timer[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-timer.la-dark[_ngcontent-%COMP%]{color:#333}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-timer[_ngcontent-%COMP%], .la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:32px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:transparent;border-radius:100%;border-width:2px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{-webkit-animation:timer-loader 1.25s linear infinite;-webkit-animation-delay:-625ms;animation:timer-loader 1.25s linear infinite;animation-delay:-625ms;background:currentColor;border-radius:2px;content:"";display:block;left:14px;margin-left:-1px;margin-top:-1px;position:absolute;top:14px;transform-origin:1px 1px 0;width:2px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:12px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{-webkit-animation-delay:-7.5s;-webkit-animation-duration:15s;animation-delay:-7.5s;animation-duration:15s;height:8px}.la-timer.la-sm[_ngcontent-%COMP%], .la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{border-radius:1px;left:7px;margin-left:-.5px;margin-top:-.5px;top:7px;transform-origin:.5px .5px 0;width:1px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:6px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{height:4px}.la-timer.la-2x[_ngcontent-%COMP%], .la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{border-radius:4px;left:28px;margin-left:-2px;margin-top:-2px;top:28px;transform-origin:2px 2px 0;width:4px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:24px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{height:16px}.la-timer.la-3x[_ngcontent-%COMP%], .la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{border-radius:6px;left:42px;margin-left:-3px;margin-top:-3px;top:42px;transform-origin:3px 3px 0;width:6px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:36px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{height:24px}@-webkit-keyframes timer-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes timer-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.la-triangle-skew-spin[_ngcontent-%COMP%], .la-triangle-skew-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-triangle-skew-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-triangle-skew-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-triangle-skew-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-triangle-skew-spin[_ngcontent-%COMP%]{height:16px;width:32px}.la-triangle-skew-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:triangle-skew-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;animation:triangle-skew-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;background:transparent;border-color:currentcolor transparent;border-left:none;border-right:none;border-style:solid;border-width:0 16px 16px;height:0;width:0}.la-triangle-skew-spin.la-sm[_ngcontent-%COMP%]{height:8px;width:16px}.la-triangle-skew-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:0 8px 8px}.la-triangle-skew-spin.la-2x[_ngcontent-%COMP%]{height:32px;width:64px}.la-triangle-skew-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:0 32px 32px}.la-triangle-skew-spin.la-3x[_ngcontent-%COMP%]{height:48px;width:96px}.la-triangle-skew-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:0 48px 48px}@-webkit-keyframes triangle-skew-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}@keyframes triangle-skew-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}.overlay[_ngcontent-%COMP%]{height:100%;left:0;position:fixed;top:0;width:100%}.overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{left:50%;position:absolute;top:60%;transform:translate(-50%,-60%)}'],data:{animation:[Wv("fadeIn",[Qv("in",$v({opacity:1})),Kv(":enter",[$v({opacity:0}),Jv(300)]),Kv(":leave",Jv(200,$v({opacity:0})))])]},changeDetection:0}),nL),cL=((tL=function(){return d((function e(t){c(this,e),this._sanitizer=t}),[{key:"transform",value:function(e){if(e)return this._sanitizer.bypassSecurityTrustHtml(e)}}])}()).\u0275fac=function(e){return new(e||tL)($r(ff))},tL.\u0275pipe=Bt({name:"safeHtml",type:tL,pure:!0}),tL),uL=((eL=d((function e(){c(this,e)}))).\u0275mod=Ft({type:eL}),eL.\u0275inj=Pe({factory:function(e){return new(e||eL)},imports:[[Ph]]}),eL),dL=((XO=function(){return d((function e(t){c(this,e),this.ngxSpinnerService=t}),[{key:"show",value:function(){this.ngxSpinnerService.show()}},{key:"hide",value:function(){this.ngxSpinnerService.hide()}}])}()).\u0275fac=function(e){return new(e||XO)(ut(sL))},XO.\u0275prov=Se({token:XO,factory:XO.\u0275fac,providedIn:"root"}),XO),hL=((ZO=function(){return d((function e(t){c(this,e),this.titleService=t}),[{key:"setTitle",value:function(e){this.titleService.setTitle((Wu.production?"":"DEV - ")+"iopoint - "+e)}}])}()).\u0275fac=function(e){return new(e||ZO)(ut(_f))},ZO.\u0275prov=Se({token:ZO,factory:ZO.\u0275fac,providedIn:"root"}),ZO);function fL(e){return function(t,n){Object.defineProperty(t,n,{get:function(){throw new Error(e||"Attribute "+n.toString()+" is required")},set:function(e){Object.defineProperty(this,n,{value:e,writable:!0,configurable:!0})}})}}function mL(e){return(mL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){pL(e,t,n[t])}))}return e}function vL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var r,s=e[Symbol.iterator]();!(i=(r=s.next()).done)&&(n.push(r.value),!t||n.length!==t);i=!0);}catch(l){o=!0,a=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var yL={},bL={};try{"undefined"!=typeof window&&(yL=window),"undefined"!=typeof document&&(bL=document),"undefined"!=typeof MutationObserver&&MutationObserver,"undefined"!=typeof performance&&performance}catch(Dwe){}var _L=(yL.navigator||{}).userAgent,kL=void 0===_L?"":_L,CL=yL,wL=bL,xL=!!wL.documentElement&&!!wL.head&&"function"==typeof wL.addEventListener&&"function"==typeof wL.createElement,ML=(~kL.indexOf("MSIE")||kL.indexOf("Trident/"),[1,2,3,4,5,6,7,8,9,10]),SL=ML.concat([11,12,13,14,15,16,17,18,19,20]),PL={GROUP:"group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},TL=(["xs","sm","lg","fw","ul","li","border","pull-left","pull-right","spin","pulse","rotate-90","rotate-180","rotate-270","flip-horizontal","flip-vertical","flip-both","stack","stack-1x","stack-2x","inverse","layers","layers-text","layers-counter",PL.GROUP,PL.SWAP_OPACITY,PL.PRIMARY,PL.SECONDARY].concat(ML.map((function(e){return"".concat(e,"x")}))).concat(SL.map((function(e){return"w-".concat(e)}))),CL.FontAwesomeConfig||{});wL&&"function"==typeof wL.querySelector&&[["data-family-prefix","familyPrefix"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=vL(e,2),n=t[1],i=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=wL.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t[0]));null!=i&&(TL[n]=i)}));var OL=gL({},{familyPrefix:"fa",replacementClass:"svg-inline--fa",autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0},TL);OL.autoReplaceSvg||(OL.observeMutations=!1);var LL=gL({},OL);CL.FontAwesomeConfig=LL;var DL=CL||{};DL.___FONT_AWESOME___||(DL.___FONT_AWESOME___={}),DL.___FONT_AWESOME___.styles||(DL.___FONT_AWESOME___.styles={}),DL.___FONT_AWESOME___.hooks||(DL.___FONT_AWESOME___.hooks={}),DL.___FONT_AWESOME___.shims||(DL.___FONT_AWESOME___.shims=[]);var IL=DL.___FONT_AWESOME___,FL=[];xL&&((wL.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(wL.readyState)||wL.addEventListener("DOMContentLoaded",(function e(){wL.removeEventListener("DOMContentLoaded",e),FL.map((function(e){return e()}))})));var AL,EL=function(){},BL="undefined"!=typeof global&&void 0!==global.process&&"function"==typeof global.process.emit,NL="undefined"==typeof setImmediate?setTimeout:setImmediate,RL=[];function jL(){for(var e=0;e<RL.length;e++)RL[e][0](RL[e][1]);RL=[],AL=!1}function zL(e,t){RL.push([e,t]),AL||(AL=!0,NL(jL,0))}function VL(e){var t=e.owner,n=t._state,i=t._data,o=e[n],a=e.then;if("function"==typeof o){n="fulfilled";try{i=o(i)}catch(Dwe){UL(a,Dwe)}}HL(a,i)||("fulfilled"===n&&YL(a,i),"rejected"===n&&UL(a,i))}function HL(e,t){var n;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===mL(t))){var i=t.then;if("function"==typeof i)return i.call(t,(function(i){n||(n=!0,t===i?qL(e,i):YL(e,i))}),(function(t){n||(n=!0,UL(e,t))})),!0}}catch(Dwe){return n||UL(e,Dwe),!0}return!1}function YL(e,t){e!==t&&HL(e,t)||qL(e,t)}function qL(e,t){"pending"===e._state&&(e._state="settled",e._data=t,zL(JL,e))}function UL(e,t){"pending"===e._state&&(e._state="settled",e._data=t,zL(GL,e))}function WL(e){e._then=e._then.forEach(VL)}function JL(e){e._state="fulfilled",WL(e)}function GL(e){e._state="rejected",WL(e),!e._handled&&BL&&global.process.emit("unhandledRejection",e._data,e)}function $L(e){global.process.emit("rejectionHandled",e)}function QL(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof QL==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function n(e){UL(t,e)}try{e((function(e){YL(t,e)}),n)}catch(Dwe){n(Dwe)}}(e,this)}QL.prototype={constructor:QL,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var n={owner:this,then:new this.constructor(EL),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&BL&&zL($L,this)),"fulfilled"===this._state||"rejected"===this._state?zL(VL,n):this._then.push(n),n.then},catch:function(e){return this.then(null,e)}},QL.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new QL((function(t,n){var i=[],o=0;function a(e){return o++,function(n){i[e]=n,--o||t(i)}}for(var r,s=0;s<e.length;s++)(r=e[s])&&"function"==typeof r.then?r.then(a(s),n):i[s]=r;o||t(i)}))},QL.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new QL((function(t,n){for(var i,o=0;o<e.length;o++)(i=e[o])&&"function"==typeof i.then?i.then(t,n):t(i)}))},QL.resolve=function(e){return e&&"object"===mL(e)&&e.constructor===QL?e:new QL((function(t){t(e)}))},QL.reject=function(e){return new QL((function(t,n){n(e)}))};var KL={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function ZL(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function XL(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eD(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function tD(e){return e.size!==KL.size||e.x!==KL.x||e.y!==KL.y||e.rotate!==KL.rotate||e.flipX||e.flipY}function nD(e){var t=e.transform,n=e.iconWidth,i={transform:"translate(".concat(e.containerWidth/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),r="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(r)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}var iD={x:0,y:0,width:"100%",height:"100%"};function oD(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aD(e){var t=e.icons,n=t.main,i=t.mask,o=e.prefix,a=e.iconName,r=e.transform,s=e.symbol,l=e.title,c=e.maskId,u=e.titleId,d=e.extra,h=e.watchable,f=void 0!==h&&h,m=i.found?i:n,p=m.width,g=m.height,v="fak"===o,y=v?"":"fa-w-".concat(Math.ceil(p/g*16)),b=[LL.replacementClass,a?"".concat(LL.familyPrefix,"-").concat(a):"",y].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),_={children:[],attributes:gL({},d.attributes,{"data-prefix":o,"data-icon":a,class:b,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(g)})},k=v&&!~d.classes.indexOf("fa-fw")?{width:"".concat(p/g*16*.0625,"em")}:{};f&&(_.attributes["data-fa-i2svg"]=""),l&&_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(u||ZL())},children:[l]});var C=gL({},_,{prefix:o,iconName:a,main:n,mask:i,maskId:c,transform:r,symbol:s,styles:gL({},k,d.styles)}),w=i.found&&n.found?function(e){var t,n=e.children,i=e.attributes,o=e.main,a=e.mask,r=e.maskId,s=o.icon,l=a.icon,c=nD({transform:e.transform,containerWidth:a.width,iconWidth:o.width}),u={tag:"rect",attributes:gL({},iD,{fill:"white"})},d=s.children?{children:s.children.map(oD)}:{},h={tag:"g",attributes:gL({},c.inner),children:[oD(gL({tag:s.tag,attributes:gL({},s.attributes,c.path)},d))]},f={tag:"g",attributes:gL({},c.outer),children:[h]},m="mask-".concat(r||ZL()),p="clip-".concat(r||ZL()),g={tag:"mask",attributes:gL({},iD,{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[u,f]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:p},children:(t=l,"g"===t.tag?t.children:[t])},g]};return n.push(v,{tag:"rect",attributes:gL({fill:"currentColor","clip-path":"url(#".concat(p,")"),mask:"url(#".concat(m,")")},iD)}),{children:n,attributes:i}}(C):function(e){var t=e.children,n=e.attributes,i=e.main,o=e.transform,a=eD(e.styles);if(a.length>0&&(n.style=a),tD(o)){var r=nD({transform:o,containerWidth:i.width,iconWidth:i.width});t.push({tag:"g",attributes:gL({},r.outer),children:[{tag:"g",attributes:gL({},r.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:gL({},i.icon.attributes,r.path)}]}]})}else t.push(i.icon);return{children:t,attributes:n}}(C),x=w.attributes;return C.children=w.children,C.attributes=x,s?function(e){var t=e.iconName,n=e.children,i=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:gL({},e.attributes,{id:!0===i?"".concat(e.prefix,"-").concat(LL.familyPrefix,"-").concat(t):i}),children:n}]}]}(C):function(e){var t=e.children,n=e.main,i=e.mask,o=e.attributes,a=e.styles,r=e.transform;if(tD(r)&&n.found&&!i.found){var s={x:n.width/n.height/2,y:.5};o.style=eD(gL({},a,{"transform-origin":"".concat(s.x+r.x/16,"em ").concat(s.y+r.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(C)}var rD=function(e,t,n,i){var o,a,r,s=Object.keys(e),l=s.length,c=void 0!==i?function(e,t){return function(n,i,o,a){return e.call(t,n,i,o,a)}}(t,i):t;for(void 0===n?(o=1,r=e[s[0]]):(o=0,r=n);o<l;o++)r=c(r,e[a=s[o]],a,e);return r};function sD(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.skipHooks,o=void 0!==i&&i,a=Object.keys(t).reduce((function(e,n){var i=t[n];return i.icon?e[i.iconName]=i.icon:e[n]=i,e}),{});"function"!=typeof IL.hooks.addPack||o?IL.styles[e]=gL({},IL.styles[e]||{},a):IL.hooks.addPack(e,a),"fas"===e&&sD("fa",t)}var lD=IL.styles,cD=IL.shims,uD=function(){var e=function(e){return rD(lD,(function(t,n,i){return t[i]=rD(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var i=t[2];return e[n]=n,i.forEach((function(t){e[t]=n})),e}));var t="far"in lD;rD(cD,(function(e,n){var i=n[1];return"far"!==i||t||(i="fas"),e[n[0]]={prefix:i,iconName:n[2]},e}),{})};function dD(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function hD(e){var t=e.tag,n=e.attributes,i=void 0===n?{}:n,o=e.children,a=void 0===o?[]:o;return"string"==typeof e?XL(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(XL(e[n]),'" ')}),"").trim()}(i),">").concat(a.map(hD).join(""),"</").concat(t,">")}function fD(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}uD(),(fD.prototype=Object.create(Error.prototype)).constructor=fD;var mD={fill:"currentColor"},pD={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},gD=(gL({},mD,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}),gL({},pD,{attributeName:"opacity"}));function vD(e){var t=e[0],n=e[1],i=vL(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(LL.familyPrefix,"-").concat(PL.GROUP)},children:[{tag:"path",attributes:{class:"".concat(LL.familyPrefix,"-").concat(PL.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(LL.familyPrefix,"-").concat(PL.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}function yD(){LL.autoAddCss&&!TD&&(function(e){if(e&&xL){var t=wL.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=wL.head.childNodes,i=null,o=n.length-1;o>-1;o--){var a=n[o],r=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(i=a)}wL.head.insertBefore(t,i)}}(function(){var e="svg-inline--fa",t=LL.familyPrefix,n=LL.replacementClass,i='svg:not(:root).svg-inline--fa {\n  overflow: visible;\n}\n\n.svg-inline--fa {\n  display: inline-block;\n  font-size: inherit;\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n  width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n  width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n  width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n  width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n  width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n  width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n  width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n  width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n  width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n  width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n  width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n  width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n  width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n  width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n  width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n  width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n  width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n  width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n  width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n  width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: 0.3em;\n  width: auto;\n}\n.svg-inline--fa.fa-border {\n  height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n  width: 2em;\n}\n.svg-inline--fa.fa-fw {\n  width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  -webkit-transform: translate(-50%, -50%);\n          transform: translate(-50%, -50%);\n  -webkit-transform-origin: center center;\n          transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: #ff253a;\n  border-radius: 1em;\n  -webkit-box-sizing: border-box;\n          box-sizing: border-box;\n  color: #fff;\n  height: 1.5em;\n  line-height: 1;\n  max-width: 5em;\n  min-width: 1.5em;\n  overflow: hidden;\n  padding: 0.25em;\n  right: 0;\n  text-overflow: ellipsis;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: 0;\n  right: 0;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom right;\n          transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: 0;\n  left: 0;\n  right: auto;\n  top: auto;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: bottom left;\n          transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  right: 0;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top right;\n          transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: 0;\n  right: auto;\n  top: 0;\n  -webkit-transform: scale(0.25);\n          transform: scale(0.25);\n  -webkit-transform-origin: top left;\n          transform-origin: top left;\n}\n\n.fa-lg {\n  font-size: 1.3333333333em;\n  line-height: 0.75em;\n  vertical-align: -0.0667em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: 2.5em;\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: -2em;\n  position: absolute;\n  text-align: center;\n  width: 2em;\n  line-height: inherit;\n}\n\n.fa-border {\n  border: solid 0.08em #eee;\n  border-radius: 0.1em;\n  padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n  float: left;\n}\n\n.fa-pull-right {\n  float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n  margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n  margin-left: 0.3em;\n}\n\n.fa-spin {\n  -webkit-animation: fa-spin 2s infinite linear;\n          animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n  -webkit-animation: fa-spin 1s infinite steps(8);\n          animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n\n@keyframes fa-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n            transform: rotate(0deg);\n  }\n  100% {\n    -webkit-transform: rotate(360deg);\n            transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n  -webkit-transform: rotate(90deg);\n          transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n  -webkit-transform: rotate(180deg);\n          transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n  -webkit-transform: rotate(270deg);\n          transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n  -webkit-transform: scale(-1, 1);\n          transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(1, -1);\n          transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n  -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n  -webkit-transform: scale(-1, -1);\n          transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n  -webkit-filter: none;\n          filter: none;\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: #fff;\n}\n\n.sr-only {\n  border: 0;\n  clip: rect(0, 0, 0, 0);\n  height: 1px;\n  margin: -1px;\n  overflow: hidden;\n  padding: 0;\n  position: absolute;\n  width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n  clip: auto;\n  height: auto;\n  margin: 0;\n  overflow: visible;\n  position: static;\n  width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: 0.4;\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: 1;\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.fad.fa-inverse {\n  color: #fff;\n}';if("fa"!==t||n!==e){var o=new RegExp("\\.".concat("fa","\\-"),"g"),a=new RegExp("\\--".concat("fa","\\-"),"g"),r=new RegExp("\\.".concat(e),"g");i=i.replace(o,".".concat(t,"-")).replace(a,"--".concat(t,"-")).replace(r,".".concat(n))}return i}()),TD=!0)}function bD(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return hD(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(xL){var t=wL.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function _D(e){var t=e.prefix,n=void 0===t?"fa":t,i=e.iconName;if(i)return dD(PD.definitions,n,i)||dD(IL.styles,n,i)}gL({},mD,{cx:"256",cy:"364",r:"28"}),gL({},pD,{attributeName:"r",values:"28;14;28;28;14;28;"}),gL({},gD,{values:"1;0;1;1;0;1;"}),gL({},mD,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),gL({},gD,{values:"1;0;0;0;0;1;"}),gL({},mD,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),gL({},gD,{values:"0;0;1;1;0;0;"});var kD,CD,wD,xD,MD,SD,PD=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t;return(t=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach((function(t){e.definitions[t]=gL({},e.definitions[t]||{},o[t]),sD(t,o[t]),uD()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var i=n[t],o=i.prefix,a=i.iconName,r=i.icon;e[o]||(e[o]={}),e[o][a]=r})),e}}])&&function(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)}}(e.prototype,t),e}()),TD=!1,OD=(kD=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?KL:n,o=t.symbol,a=void 0!==o&&o,r=t.mask,s=void 0===r?null:r,l=t.maskId,c=void 0===l?null:l,u=t.title,d=void 0===u?null:u,h=t.titleId,f=void 0===h?null:h,m=t.classes,p=void 0===m?[]:m,g=t.attributes,v=void 0===g?{}:g,y=t.styles,b=void 0===y?{}:y;if(e){var _=e.prefix,k=e.iconName,C=e.icon;return bD(gL({type:"icon"},e),(function(){return yD(),LL.autoA11y&&(d?v["aria-labelledby"]="".concat(LL.replacementClass,"-title-").concat(f||ZL()):(v["aria-hidden"]="true",v.focusable="false")),aD({icons:{main:vD(C),mask:s?vD(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:k,transform:gL({},KL,i),symbol:a,title:d,maskId:c,titleId:f,extra:{attributes:v,styles:b,classes:p}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:_D(e||{}),i=t.mask;return i&&(i=(i||{}).icon?i:_D(i||{})),kD(n,gL({},t,{mask:i}))}),LD=((wD=d((function e(){c(this,e),this.defaultPrefix="fas",this.globalLibrary="unset"}))).\u0275fac=function(e){return new(e||wD)},wD.\u0275prov=Se({token:wD,factory:wD.\u0275fac,providedIn:"root"}),wD.ngInjectableDef=Se({factory:function(){return new wD},token:wD,providedIn:"root"}),wD),DD=((CD=function(){return d((function e(){c(this,e),this.definitions={}}),[{key:"addIcons",value:function(){for(var e=0;e<arguments.length;e++){var t=e<0||arguments.length<=e?void 0:arguments[e];t.prefix in this.definitions||(this.definitions[t.prefix]={}),this.definitions[t.prefix][t.iconName]=t}}},{key:"addIconPacks",value:function(){for(var e=arguments,t=this,n=function(){var n=i<0||e.length<=i?void 0:e[i],o=Object.keys(n).map((function(e){return n[e]}));t.addIcons.apply(t,r(o))},i=0;i<arguments.length;i++)n()}},{key:"getIconDefinition",value:function(e,t){return e in this.definitions&&t in this.definitions[e]?this.definitions[e][t]:null}}])}()).\u0275fac=function(e){return new(e||CD)},CD.\u0275prov=Se({token:CD,factory:CD.\u0275fac,providedIn:"root"}),CD.ngInjectableDef=Se({factory:function(){return new CD},token:CD,providedIn:"root"}),CD),ID=((SD=function(){return d((function e(){c(this,e),this.stackItemSize="1x"}),[{key:"ngOnChanges",value:function(e){if("size"in e)throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.')}}])}()).\u0275fac=function(e){return new(e||SD)},SD.\u0275dir=Et({type:SD,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[dl]}),SD),FD=((MD=function(){return d((function e(t,n,i,o){c(this,e),this.sanitizer=t,this.config=n,this.iconLibrary=i,this.stackItem=o,this.classes=[]}),[{key:"iconProp",get:function(){return this.icon},set:function(e){this.icon=e}},{key:"ngOnChanges",value:function(e){if(null!=this.icon){if(e){var t=this.findIconDefinition(this.icon);if(null!=t){var n=this.buildParams();this.renderIcon(t,n)}}}else console.error("FontAwesome: Property `icon` is required for `fa-icon`/`fa-duotone-icon` components. This warning will become a hard error in 0.6.0.")}},{key:"render",value:function(){this.ngOnChanges({})}},{key:"findIconDefinition",value:function(e){var t=function(e,t){return void 0!==(n=e).prefix&&void 0!==n.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:t,iconName:e}:void 0;var n}(e,this.config.defaultPrefix);if("icon"in t)return t;var n=this.iconLibrary.getIconDefinition(t.prefix,t.iconName);if(null!=n)return n;var i,o=_D(t);if(null!=o){var a="Global icon library is deprecated. Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md for the migration instructions.";if("unset"===this.config.globalLibrary)console.error("FontAwesome: "+a);else if(!this.config.globalLibrary)throw new Error(a);return o}return i=t,console.error("FontAwesome: Could not find icon with iconName=".concat(i.iconName," and prefix=").concat(i.prefix,". This warning will become a hard error in 0.6.0.")),null}},{key:"buildParams",value:function(){var t,n,i,o,a={flip:this.flip,spin:this.spin,pulse:this.pulse,border:this.border,inverse:this.inverse,listItem:this.listItem,size:this.size||null,pull:this.pull||null,rotate:this.rotate||null,fixedWidth:this.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize:null},s="string"==typeof this.transform?(t=this.transform,n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0},t?t.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),i=n[0],o=n.slice(1).join("-");if(i&&"h"===o)return e.flipX=!0,e;if(i&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(i){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),n):n):this.transform;return{title:this.title,transform:s,classes:[].concat(r((i=a,o=e(e(e(e({"fa-spin":i.spin,"fa-pulse":i.pulse,"fa-fw":i.fixedWidth,"fa-border":i.border,"fa-li":i.listItem,"fa-inverse":i.inverse,"fa-layers-counter":i.counter,"fa-flip-horizontal":"horizontal"===i.flip||"both"===i.flip,"fa-flip-vertical":"vertical"===i.flip||"both"===i.flip},"fa-"+i.size,null!==i.size),"fa-rotate-"+i.rotate,null!==i.rotate),"fa-pull-"+i.pull,null!==i.pull),"fa-stack-"+i.stackItemSize,null!=i.stackItemSize),Object.keys(o).map((function(e){return o[e]?e:null})).filter((function(e){return e})))),r(this.classes)),mask:null!=this.mask?this.findIconDefinition(this.mask):null,styles:null!=this.styles?this.styles:{},symbol:this.symbol,attributes:{role:this.a11yRole}}}},{key:"renderIcon",value:function(e,t){var n=OD(e,t);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml(n.html.join("\n"))}}])}()).\u0275fac=function(e){return new(e||MD)($r(ff),$r(LD),$r(DD),$r(ID,8))},MD.\u0275cmp=Ot({type:MD,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(e,t){2&e&&(nl("innerHTML",t.renderedIconHTML,fo),Yr("title",t.title))},inputs:{classes:"classes",icon:"icon",title:"title",spin:"spin",pulse:"pulse",mask:"mask",styles:"styles",flip:"flip",size:"size",pull:"pull",border:"border",inverse:"inverse",symbol:"symbol",listItem:"listItem",rotate:"rotate",fixedWidth:"fixedWidth",transform:"transform",a11yRole:"a11yRole"},features:[dl],decls:0,vars:0,template:function(e,t){},encapsulation:2}),MD),AD=((xD=d((function e(){c(this,e)}))).\u0275mod=Ft({type:xD}),xD.\u0275inj=Pe({factory:function(e){return new(e||xD)}}),xD);function ED(e,t){1&e&&ns(0,"fa-icon",3),2&e&&Zr("icon",fs(2).iconSolidService.faUpload)}function BD(e,t){1&e&&ns(0,"fa-icon",3),2&e&&Zr("icon",fs(2).iconRegularService.faFilePdf)}function ND(e,t){if(1&e){var n=as();es(0,"button",1),ls("click",(function(){return mn(n),fs().handleClick()})),Jr(1,ED,1,1,"fa-icon",2),Jr(2,BD,1,1,"fa-icon",2),Gs(3),ts()}if(2&e){var i=fs();tl("btn ",i.btnColor," ",i.btnClassList," ",i.btnTypeUpload||i.btnTypePDF?"btn-upload":"",""),Zr("disabled",i.btnDisabled)("title",i.btnTitle),Bo(1),Zr("ngIf",i.btnTypeUpload),Bo(1),Zr("ngIf",i.btnTypePDF),Bo(1),Qs(" ",i.btnText,"\n")}}var RD,jD=((RD=function(){return d((function e(t,n,i,o){c(this,e),this.router=t,this.iconRegularService=n,this.iconSolidService=i,this.permissionService=o,this.moduleId=null,this.btnClassList="",this.btnColor="btn-blue",this.btnDisabled=!1,this.btnText="",this.btnTitle="",this.btnTypePDF=!1,this.btnTypeUpload=!1,this.urlNavigation="",this.urlStateData=null,this.useValidation=!0,this.btnClick=new Mc,this.btnAllowed=!1}),[{key:"ngOnInit",value:function(){this.useValidation&&(this.btnAllowed=this.permissionService.canAccess(this.moduleName,this.action,this.moduleId))}},{key:"handleClick",value:function(){""!=this.urlNavigation?this.navigateToUrl():this.emmitBtnClick()}},{key:"emmitBtnClick",value:function(){this.btnClick.emit()}},{key:"navigateToUrl",value:function(){this.router.navigate(["/"+this.urlNavigation],this.urlStateData?{state:this.urlStateData}:{}).then((function(){}))}}])}()).\u0275fac=function(e){return new(e||RD)($r(yM),$r(WO),$r(JO),$r(iT))},RD.\u0275cmp=Ot({type:RD,selectors:[["io-btn"]],inputs:{moduleName:"moduleName",action:"action",moduleId:"moduleId",btnClassList:"btnClassList",btnColor:"btnColor",btnDisabled:"btnDisabled",btnText:"btnText",btnTitle:"btnTitle",btnTypePDF:"btnTypePDF",btnTypeUpload:"btnTypeUpload",urlNavigation:"urlNavigation",urlStateData:"urlStateData",useValidation:"useValidation"},outputs:{btnClick:"btnClick"},decls:1,vars:1,consts:[["type","button",3,"disabled","class","title","click",4,"ngIf"],["type","button",3,"disabled","title","click"],["size","3x","class","iconItem iconSizeG cl-blue iconAttachment",3,"icon",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-blue","iconAttachment",3,"icon"]],template:function(e,t){1&e&&Jr(0,ND,4,10,"button",0),2&e&&Zr("ngIf",t.btnAllowed||!t.useValidation)},directives:[sh,FD],styles:[""]}),X_([fL()],RD.prototype,"moduleName",void 0),X_([fL()],RD.prototype,"action",void 0),RD);function zD(e,t){if(1&e){var n=as();es(0,"div",12),es(1,"io-btn",13),ls("btnClick",(function(){return mn(n),fs().handleClick()})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("moduleName",i.moduleName)("action","create")("btnText",i.btnDataText)("btnTitle",i.btnDataText)("btnColor","btn-blue")("btnClassList",i.btnTypeSmall?"btnShort btnAuto":"")("btnTypeUpload",i.btnTypeAttachment)}}function VD(e,t){if(1&e&&(es(0,"p",14),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.textTop)}}function HD(e,t){if(1&e&&(es(0,"p",14),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.textTop2)}}function YD(e,t){if(1&e&&(es(0,"p",15),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.textTop3)}}function qD(e,t){if(1&e&&(es(0,"p",16),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.textPointName)}}function UD(e,t){if(1&e&&(es(0,"p",17),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.textPointDepartment)}}function WD(e,t){if(1&e&&(es(0,"span",19),Gs(1),ts()),2&e){var n=fs(2);Bo(1),$s(n.textTop4Bold)}}function JD(e,t){if(1&e&&(es(0,"p",14),Gs(1),Jr(2,WD,2,1,"span",18),Gs(3,"."),ts()),2&e){var n=fs();Bo(1),$s(n.textTop4),Bo(1),Zr("ngIf",""!==n.textTop4Bold)}}function GD(e,t){if(1&e&&(es(0,"span",19),Gs(1),ts()),2&e){var n=fs(2);Bo(1),$s(n.textTop5Bold)}}function $D(e,t){if(1&e&&(es(0,"p",14),Gs(1),Jr(2,GD,2,1,"span",18),Gs(3,"."),ts()),2&e){var n=fs();Bo(1),$s(n.textTop5),Bo(1),Zr("ngIf",""!==n.textTop5Bold)}}var QD,KD,ZD,XD,eI=((XD=function(){return d((function e(t,n){c(this,e),this.iconSolidService=t,this.router=n,this.moduleName=null,this.textTop2="",this.textTop3="",this.textTop4="",this.textTop4Bold="",this.textTop5="",this.textTop5Bold="",this.textPointName="",this.textPointDepartment="",this.btnDataText="Cadastrar",this.btnDataUrl="",this.btnTypeAttachment=!1,this.btnTypeExternalUrl=!1,this.btnTypeSmall=!1,this.showBtn=!1,this.btnClick=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"handleClick",value:function(){""!=this.btnDataUrl&&this.navigateToUrl(),this.emmitBtnClick()}},{key:"navigateToUrl",value:function(){this.router.navigate(["/"+this.btnDataUrl]).then((function(){}))}},{key:"emmitBtnClick",value:function(){this.btnClick.emit()}},{key:"goBack",value:function(){window.history.back()}}])}()).\u0275fac=function(e){return new(e||XD)($r(JO),$r(yM))},XD.\u0275cmp=Ot({type:XD,selectors:[["io-main-top"]],inputs:{moduleName:"moduleName",titleTop:"titleTop",textTop:"textTop",textTop2:"textTop2",textTop3:"textTop3",textTop4:"textTop4",textTop4Bold:"textTop4Bold",textTop5:"textTop5",textTop5Bold:"textTop5Bold",textPointName:"textPointName",textPointDepartment:"textPointDepartment",btnDataText:"btnDataText",btnDataUrl:"btnDataUrl",btnTypeAttachment:"btnTypeAttachment",btnTypeExternalUrl:"btnTypeExternalUrl",btnTypeSmall:"btnTypeSmall",showBtn:"showBtn"},outputs:{btnClick:"btnClick"},decls:16,vars:10,consts:[[1,"mainTop","mrgB2"],[1,"mainTopBox"],[1,"block"],[1,"flex","start","titleBox"],["size","3x","title","Voltar para p\xe1gina anterior",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgR1",3,"icon","click"],[1,"sizeA","cl-blue","fontUp","fontBold"],["class","block btnBox",4,"ngIf"],[1,"mainTopTextBox"],["class","sizeC",4,"ngIf"],["class","sizeC mrgT20",4,"ngIf"],["class","sizeC fontBold",4,"ngIf"],["class","sizeD",4,"ngIf"],[1,"block","btnBox"],[3,"moduleName","action","btnText","btnTitle","btnColor","btnClassList","btnTypeUpload","btnClick"],[1,"sizeC"],[1,"sizeC","mrgT20"],[1,"sizeC","fontBold"],[1,"sizeD"],["class","fontBold",4,"ngIf"],[1,"fontBold"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),es(3,"div",3),es(4,"fa-icon",4),ls("click",(function(){return t.goBack()})),ts(),es(5,"h2",5),Gs(6),ts(),ts(),ts(),Jr(7,zD,2,7,"div",6),ts(),es(8,"div",7),Jr(9,VD,2,1,"p",8),Jr(10,HD,2,1,"p",8),Jr(11,YD,2,1,"p",9),Jr(12,qD,2,1,"p",10),Jr(13,UD,2,1,"p",11),Jr(14,JD,4,2,"p",8),Jr(15,$D,4,2,"p",8),ts(),ts()),2&e&&(Bo(4),Zr("icon",t.iconSolidService.faArrowLeft),Bo(2),$s(t.titleTop),Bo(1),Zr("ngIf",t.showBtn),Bo(2),Zr("ngIf",""!==t.textTop),Bo(1),Zr("ngIf",""!==t.textTop2),Bo(1),Zr("ngIf",""!==t.textTop3),Bo(1),Zr("ngIf",""!==t.textPointName),Bo(1),Zr("ngIf",""!==t.textPointDepartment),Bo(1),Zr("ngIf",""!==t.textTop4),Bo(1),Zr("ngIf",""!==t.textTop5))},directives:[FD,sh,jD],styles:[".mainTopBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%;max-width:650px}.mainTopBox[_ngcontent-%COMP%]   .block.mrgLess[_ngcontent-%COMP%]{margin:-10px 0 -50px}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .titleBox[_ngcontent-%COMP%]{height:35px;margin-bottom:10px}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2){max-width:220px;width:48%;margin-left:10px}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2)   .btn[_ngcontent-%COMP%]:nth-child(2){margin-top:10px}@media (max-width:800px){.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .titleBox[_ngcontent-%COMP%]{height:46px}}@media (max-width:530px){.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .titleBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:none}}@media (max-width:380px){.mainTopBox[_ngcontent-%COMP%]{display:block;padding-bottom:10px}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child, .mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .titleBox[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2){width:auto;margin:0}.mainTopBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2)   .btn[_ngcontent-%COMP%]{height:34px;width:auto}}"]}),X_([fL()],XD.prototype,"moduleName",void 0),XD),tI=((ZD=function(){return d((function e(t,n){c(this,e),this.functionService=t,this.storageService=n,this.id=null,this.idEmitter=new Mc,this.minDate=null,this.minDateEmitter=new Mc,this.tradingName=null,this.tradingNameEmitter=new Mc}),[{key:"ngOnInit",value:function(){var e=this.storageService.decodeFromLocalStorage("companyId");this.setId(e);var t=this.storageService.decodeFromLocalStorage("companyTradingName");this.setTradingName(t)}},{key:"getIdEmitter",value:function(){return this.idEmitter}},{key:"getMinDateEmitter",value:function(){return this.minDateEmitter}},{key:"getTradingNameEmitter",value:function(){return this.tradingNameEmitter}},{key:"getId",value:function(){var e;return null!==(e=this.id)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("companyId")}},{key:"getMinDate",value:function(){var e,t=null!==(e=this.minDate)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("companyMinDate");return null!=t?t:"2020-01-01"}},{key:"getName",value:function(){return this.tradingName}},{key:"setId",value:function(e){if(this.getId()!=e){if(null==e||"null"==e)return this.id=null,void this.storageService.removeLocalStorage("companyId");this.id=e,this.storageService.encodeToLocalStorage("companyId",e),this.idEmitter.emit(e)}}},{key:"setMinDate",value:function(e){this.minDate=e,this.storageService.encodeToLocalStorage("companyMinDate",e),this.minDateEmitter.emit(e)}},{key:"setTradingName",value:function(e){this.tradingName=e,this.storageService.encodeToLocalStorage("companyTradingName",e),this.tradingNameEmitter.emit(e)}}])}()).\u0275fac=function(e){return new(e||ZD)(ut(zP),ut(YP))},ZD.\u0275prov=Se({token:ZD,factory:ZD.\u0275fac,providedIn:"root"}),ZD),nI=((KD=function(){return d((function e(t,n){c(this,e),this.functionService=t,this.storageService=n,this.intervalFirstDate=null,this.intervalFirstDateEmitter=new Mc,this.intervalSecondDate=null,this.intervalSecondDateEmitter=new Mc}),[{key:"ngOnInit",value:function(){var e,t,n=null!==(e=this.intervalFirstDate)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("intervalFirstDate"),i=null!==(t=this.intervalSecondDate)&&void 0!==t?t:this.storageService.decodeFromLocalStorage("intervalSecondDate");n||(n=this.functionService.getFirstLastDay()[0]),i||(i=this.functionService.getFirstLastDay()[1]),this.setIntervalFirstDate(n),this.setIntervalSecondDate(i)}},{key:"getIntervalFirstDateEmitter",value:function(){return this.intervalFirstDateEmitter}},{key:"getIntervalSecondDateEmitter",value:function(){return this.intervalSecondDateEmitter}},{key:"getIntervalFirstDate",value:function(){var e,t=null!==(e=this.intervalFirstDate)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("intervalFirstDate");return t||(t=this.functionService.getFirstLastDay()[0]),t}},{key:"getIntervalSecondDate",value:function(){var e,t=null!==(e=this.intervalSecondDate)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("intervalSecondDate");return t||(t=this.functionService.getFirstLastDay()[1]),t}},{key:"setIntervalFirstDate",value:function(e){this.intervalFirstDate=e,this.storageService.encodeToLocalStorage("intervalFirstDate",e),this.intervalFirstDateEmitter.emit(e)}},{key:"setIntervalSecondDate",value:function(e){this.intervalSecondDate=e,this.storageService.encodeToLocalStorage("intervalSecondDate",e),this.intervalFirstDateEmitter.emit(e)}},{key:"setIntervalFirstDay",value:function(e){if(null!=e){var t=this.getIntervalFirstDate().slice(0,8)+e;this.setIntervalFirstDate(t),this.validIntervalFirstSecondDate()}}},{key:"setIntervalSecondDay",value:function(e){if(null!=e){var t=this.getIntervalSecondDate().slice(0,8)+e;this.setIntervalSecondDate(t),this.validIntervalFirstSecondDate()}}},{key:"validIntervalFirstSecondDate",value:function(){var e=parseInt(this.getIntervalFirstDate().split("-")[1]+this.getIntervalFirstDate().split("-")[2]),t=parseInt(this.getIntervalSecondDate().split("-")[1]+this.getIntervalSecondDate().split("-")[2]),n=parseInt(this.functionService.currentDateEN("00/00/0000","min").split("-")[1]+this.functionService.currentDateEN("00/00/0000","min").split("-")[2]);e>t&&(t<n?this.setIntervalSecondDate(this.functionService.getMonthAfterEN(this.getIntervalSecondDate())):this.setIntervalFirstDate(this.functionService.getMonthBeforeEN(this.getIntervalFirstDate())))}}])}()).\u0275fac=function(e){return new(e||KD)(ut(zP),ut(YP))},KD.\u0275prov=Se({token:KD,factory:KD.\u0275fac,providedIn:"root"}),KD),iI=((QD=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getClosureList",value:function(e,t){this.databaseService.get("/closure",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getClosureListFromCollaborator",value:function(e,t){this.databaseService.get("/closure/listFromCollaborator/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getClosureLastDateFromCollaboratorIdList",value:function(e,t){this.databaseService.get("/closure/lastDateFromCollaboratorIdList",{collaboratorIdList:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postClosure",value:function(e,t){this.databaseService.post("/closure",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteClosure",value:function(e,t){var n=JSON.stringify(e);this.databaseService.delete("/closure/"+n,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||QD)(ut(tT))},QD.\u0275prov=Se({token:QD,factory:QD.\u0275fac,providedIn:"root"}),QD),oI=["underline"],aI=["connectionContainer"],rI=["inputContainer"],sI=["label"];function lI(e,t){1&e&&(is(0),es(1,"div",14),ns(2,"div",15),ns(3,"div",16),ns(4,"div",17),ts(),es(5,"div",18),ns(6,"div",15),ns(7,"div",16),ns(8,"div",17),ts(),os())}function cI(e,t){1&e&&(es(0,"div",19),gs(1,1),ts())}function uI(e,t){if(1&e&&(is(0),gs(1,2),es(2,"span"),Gs(3),ts(),os()),2&e){var n=fs(2);Bo(3),$s(n._control.placeholder)}}function dI(e,t){1&e&&gs(0,3,["*ngSwitchCase","true"])}function hI(e,t){1&e&&(es(0,"span",23),Gs(1," *"),ts())}function fI(e,t){if(1&e){var n=as();es(0,"label",20,21),ls("cdkObserveContent",(function(){return mn(n),fs().updateOutlineGap()})),Jr(2,uI,4,1,"ng-container",12),Jr(3,dI,1,0,void 0,12),Jr(4,hI,2,0,"span",22),ts()}if(2&e){var i=fs();Fs("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Zr("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Yr("for",i._control.id)("aria-owns",i._control.id),Bo(2),Zr("ngSwitchCase",!1),Bo(1),Zr("ngSwitchCase",!0),Bo(1),Zr("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function mI(e,t){1&e&&(es(0,"div",24),gs(1,4),ts())}function pI(e,t){if(1&e&&(es(0,"div",25,26),ns(2,"span",27),ts()),2&e){var n=fs();Bo(2),Fs("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function gI(e,t){1&e&&(es(0,"div"),gs(1,5),ts()),2&e&&Zr("@transitionMessages",fs()._subscriptAnimationState)}function vI(e,t){if(1&e&&(es(0,"div",31),Gs(1),ts()),2&e){var n=fs(2);Zr("id",n._hintLabelId),Bo(1),$s(n.hintLabel)}}function yI(e,t){if(1&e&&(es(0,"div",28),Jr(1,vI,2,2,"div",29),gs(2,6),ns(3,"div",30),gs(4,7),ts()),2&e){var n=fs();Zr("@transitionMessages",n._subscriptAnimationState),Bo(1),Zr("ngIf",n.hintLabel)}}var bI,_I,kI=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],CI=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],wI=0,xI=((bI=d((function e(){c(this,e),this.id="mat-error-"+wI++}))).\u0275fac=function(e){return new(e||bI)},bI.\u0275dir=Et({type:bI,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(e,t){2&e&&Yr("id",t.id)},inputs:{id:"id"}}),bI),MI={transitionMessages:Wv("transitionMessages",[Qv("enter",$v({opacity:1,transform:"translateY(0%)"})),Kv("void => enter",[$v({opacity:0,transform:"translateY(-100%)"}),Jv("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},SI=((_I=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||_I)},_I.\u0275dir=Et({type:_I}),_I);function PI(e){return Error("A hint was already declared for 'align=\"".concat(e,"\"'."))}var TI,OI,LI,DI,II,FI,AI,EI,BI,NI,RI,jI=0,zI=((II=d((function e(){c(this,e),this.align="start",this.id="mat-hint-"+jI++}))).\u0275fac=function(e){return new(e||II)},II.\u0275dir=Et({type:II,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(e,t){2&e&&(Yr("id",t.id)("align",null),Fs("mat-right","end"==t.align))},inputs:{align:"align",id:"id"}}),II),VI=((DI=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||DI)},DI.\u0275dir=Et({type:DI,selectors:[["mat-label"]]}),DI),HI=((LI=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||LI)},LI.\u0275dir=Et({type:LI,selectors:[["mat-placeholder"]]}),LI),YI=((OI=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||OI)},OI.\u0275dir=Et({type:OI,selectors:[["","matPrefix",""]]}),OI),qI=((TI=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||TI)},TI.\u0275dir=Et({type:TI,selectors:[["","matSuffix",""]]}),TI),UI=0,WI=C_(d((function e(t){c(this,e),this._elementRef=t})),"primary"),JI=new tt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),GI=new tt("MatFormField"),$I=((AI=function(e){function t(e,n,i,o,a,r,s,l){var u;return c(this,t),(u=f(this,t,[e]))._elementRef=e,u._changeDetectorRef=n,u._dir=o,u._defaults=a,u._platform=r,u._ngZone=s,u._outlineGapCalculationNeededImmediately=!1,u._outlineGapCalculationNeededOnStable=!1,u._destroyed=new V,u._showAlwaysAnimate=!1,u._subscriptAnimationState="",u._hintLabel="",u._hintLabelId="mat-hint-"+UI++,u._labelId="mat-form-field-label-"+UI++,u._labelOptions=i||{},u.floatLabel=u._getDefaultFloatLabelState(),u._animationsEnabled="NoopAnimations"!==l,u.appearance=a&&a.appearance?a.appearance:"legacy",u._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,u}return p(t,e),d(t,[{key:"appearance",get:function(){return this._appearance},set:function(e){var t=this._appearance;this._appearance=e||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&t!==e&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(e){this._hideRequiredMarker=jg(e)}},{key:"_shouldAlwaysFloat",get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",get:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(e){this._hintLabel=e,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(e){e!==this._floatLabel&&(this._floatLabel=e||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(e){this._explicitFormFieldControl=e}},{key:"_labelChild",get:function(){return this._labelChildNonStatic||this._labelChildStatic}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var e=this;this._validateControlChild();var t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(qv(null)).subscribe((function(){e._validatePlaceholders(),e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(kk(this._destroyed)).subscribe((function(){return e._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(kk(e._destroyed)).subscribe((function(){e._outlineGapCalculationNeededOnStable&&e.updateOutlineGap()}))})),le(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){e._outlineGapCalculationNeededOnStable=!0,e._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(qv(null)).subscribe((function(){e._processHints(),e._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(qv(null)).subscribe((function(){e._syncDescribedByIds(),e._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(kk(this._destroyed)).subscribe((function(){"function"==typeof requestAnimationFrame?e._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e.updateOutlineGap()}))})):e.updateOutlineGap()}))}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(e){var t=this._control?this._control.ngControl:null;return t&&t[e]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!!this._labelChild}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var e=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,QM(this._label.nativeElement,"transitionend").pipe(Eg(1)).subscribe((function(){e._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){var e,t,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(e||n.hintLabel)throw PI("start");e=i}else if("end"===i.align){if(t)throw PI("end");t=i}}))}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var e=[];if("hint"===this._getDisplayedMessages()){var t=this._hintChildren?this._hintChildren.find((function(e){return"start"===e.align})):null,n=this._hintChildren?this._hintChildren.find((function(e){return"end"===e.align})):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),n&&e.push(n.id)}else this._errorChildren&&(e=this._errorChildren.map((function(e){return e.id})));this._control.setDescribedByIds(e)}}},{key:"_validateControlChild",value:function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")}},{key:"updateOutlineGap",value:function(){var e=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&e&&e.children.length&&e.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var t=0,n=0,i=this._connectionContainerRef.nativeElement,a=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);var l,c=this._getStartEnd(s),u=this._getStartEnd(e.children[0].getBoundingClientRect()),d=0,h=o(e.children);try{for(h.s();!(l=h.n()).done;)d+=l.value.offsetWidth}catch(p){h.e(p)}finally{h.f()}t=Math.abs(u-c)-5,n=d>0?.75*d+10:0}for(var f=0;f<a.length;f++)a[f].style.width=t+"px";for(var m=0;m<r.length;m++)r[m].style.width=n+"px";this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}else this._outlineGapCalculationNeededImmediately=!0}},{key:"_getStartEnd",value:function(e){return this._dir&&"rtl"===this._dir.value?e.right:e.left}},{key:"_isAttachedToDOM",value:function(){var e=this._elementRef.nativeElement;if(e.getRootNode){var t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}}])}(WI)).\u0275fac=function(e){return new(e||AI)($r(Ml),$r(ur),$r(Z_,8),$r(jv,8),$r(JI,8),$r($g),$r(gu),$r(g_,8))},AI.\u0275cmp=Ot({type:AI,selectors:[["mat-form-field"]],contentQueries:function(e,t,n){var i;1&e&&(zc(n,SI,!0),Vc(n,SI,!0),zc(n,VI,!0),Vc(n,VI,!0),zc(n,HI,!0),zc(n,xI,!0),zc(n,zI,!0),zc(n,YI,!0),zc(n,qI,!0)),2&e&&(Bc(i=Yc())&&(t._controlNonStatic=i.first),Bc(i=Yc())&&(t._controlStatic=i.first),Bc(i=Yc())&&(t._labelChildNonStatic=i.first),Bc(i=Yc())&&(t._labelChildStatic=i.first),Bc(i=Yc())&&(t._placeholderChild=i.first),Bc(i=Yc())&&(t._errorChildren=i),Bc(i=Yc())&&(t._hintChildren=i),Bc(i=Yc())&&(t._prefixChildren=i),Bc(i=Yc())&&(t._suffixChildren=i))},viewQuery:function(e,t){var n;1&e&&(Rc(oI,!0),Nc(aI,!0),Rc(rI,!0),Rc(sI,!0)),2&e&&(Bc(n=Yc())&&(t.underlineRef=n.first),Bc(n=Yc())&&(t._connectionContainerRef=n.first),Bc(n=Yc())&&(t._inputContainerRef=n.first),Bc(n=Yc())&&(t._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(e,t){2&e&&Fs("mat-form-field-appearance-standard","standard"==t.appearance)("mat-form-field-appearance-fill","fill"==t.appearance)("mat-form-field-appearance-outline","outline"==t.appearance)("mat-form-field-appearance-legacy","legacy"==t.appearance)("mat-form-field-invalid",t._control.errorState)("mat-form-field-can-float",t._canLabelFloat)("mat-form-field-should-float",t._shouldLabelFloat())("mat-form-field-has-label",t._hasFloatingLabel())("mat-form-field-hide-placeholder",t._hideControlPlaceholder())("mat-form-field-disabled",t._control.disabled)("mat-form-field-autofilled",t._control.autofilled)("mat-focused",t._control.focused)("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)("ng-untouched",t._shouldForward("untouched"))("ng-touched",t._shouldForward("touched"))("ng-pristine",t._shouldForward("pristine"))("ng-dirty",t._shouldForward("dirty"))("ng-valid",t._shouldForward("valid"))("ng-invalid",t._shouldForward("invalid"))("ng-pending",t._shouldForward("pending"))("_mat-animation-noopable",!t._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[kl([{provide:GI,useExisting:AI}]),al],ngContentSelectors:CI,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],["underline",""],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(e,t){1&e&&(ps(kI),es(0,"div",0),es(1,"div",1,2),ls("click",(function(e){return t._control.onContainerClick&&t._control.onContainerClick(e)})),Jr(3,lI,9,0,"ng-container",3),Jr(4,cI,2,0,"div",4),es(5,"div",5,6),gs(7),es(8,"span",7),Jr(9,fI,5,16,"label",8),ts(),ts(),Jr(10,mI,2,0,"div",9),ts(),Jr(11,pI,3,4,"div",10),es(12,"div",11),Jr(13,gI,2,1,"div",12),Jr(14,yI,5,2,"div",13),ts(),ts()),2&e&&(Bo(3),Zr("ngIf","outline"==t.appearance),Bo(1),Zr("ngIf",t._prefixChildren.length),Bo(5),Zr("ngIf",t._hasFloatingLabel()),Bo(1),Zr("ngIf",t._suffixChildren.length),Bo(1),Zr("ngIf","outline"!=t.appearance),Bo(1),Zr("ngSwitch",t._getDisplayedMessages()),Bo(1),Zr("ngSwitchCase","error"),Bo(1),Zr("ngSwitchCase","hint"))},directives:[sh,mh,ph,lv],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:scaleX(1);transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px);-ms-transform:none}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[MI.transitionMessages]},changeDetection:0}),AI),QI=((FI=d((function e(){c(this,e)}))).\u0275mod=Ft({type:FI}),FI.\u0275inj=Pe({factory:function(e){return new(e||FI)},imports:[[Ph,cv]]}),FI),KI=Xg({passive:!0}),ZI=((BI=function(){return d((function e(t,n){c(this,e),this._platform=t,this._ngZone=n,this._monitoredElements=new Map}),[{key:"monitor",value:function(e){var t=this;if(!this._platform.isBrowser)return Fg;var n=Yg(e),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var o=new V,a="cdk-text-field-autofilled",r=function(e){"cdk-text-field-autofill-start"!==e.animationName||n.classList.contains(a)?"cdk-text-field-autofill-end"===e.animationName&&n.classList.contains(a)&&(n.classList.remove(a),t._ngZone.run((function(){return o.next({target:e.target,isAutofilled:!1})}))):(n.classList.add(a),t._ngZone.run((function(){return o.next({target:e.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",r,KI),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:o,unlisten:function(){n.removeEventListener("animationstart",r,KI)}}),o.asObservable()}},{key:"stopMonitoring",value:function(e){var t=Yg(e),n=this._monitoredElements.get(t);n&&(n.unlisten(),n.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}},{key:"ngOnDestroy",value:function(){var e=this;this._monitoredElements.forEach((function(t,n){return e.stopMonitoring(n)}))}}])}()).\u0275fac=function(e){return new(e||BI)(ut($g),ut(gu))},BI.\u0275prov=Se({factory:function(){return new BI(ut($g),ut(gu))},token:BI,providedIn:"root"}),BI),XI=((EI=d((function e(){c(this,e)}))).\u0275mod=Ft({type:EI}),EI.\u0275inj=Pe({factory:function(e){return new(e||EI)},imports:[[Qg]]}),EI),eF=new tt("MAT_INPUT_VALUE_ACCESSOR"),tF=["button","checkbox","file","hidden","image","radio","range","reset","submit"],nF=0,iF=function(e){return function(e){function t(){var e;c(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=f(this,t,[].concat(i))).errorState=!1,e.stateChanges=new V,e}return p(t,e),d(t,[{key:"updateErrorState",value:function(){var e=this.errorState,t=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);t!==e&&(this.errorState=t,this.stateChanges.next())}}])}(e)}(d((function e(t,n,i,o){c(this,e),this._defaultErrorStateMatcher=t,this._parentForm=n,this._parentFormGroup=i,this.ngControl=o}))),oF=((RI=function(e){function t(e,n,i,o,a,r,s,l,u){var d;c(this,t),(d=f(this,t,[r,o,a,i]))._elementRef=e,d._platform=n,d.ngControl=i,d._autofillMonitor=l,d._uid="mat-input-"+nF++,d._isServer=!1,d._isNativeSelect=!1,d.focused=!1,d.stateChanges=new V,d.controlType="mat-input",d.autofilled=!1,d._disabled=!1,d._required=!1,d._type="text",d._readonly=!1,d._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(e){return Zg().has(e)}));var h=d._elementRef.nativeElement;return d._inputValueAccessor=s||h,d._previousNativeValue=d.value,d.id=d.id,n.IOS&&u.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(e){var t=e.target;t.value||t.selectionStart||t.selectionEnd||(t.setSelectionRange(1,1),t.setSelectionRange(0,0))}))})),d._isServer=!d._platform.isBrowser,d._isNativeSelect="select"===h.nodeName.toLowerCase(),d._isNativeSelect&&(d.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select"),d}return p(t,e),d(t,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(e){this._disabled=jg(e),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(e){this._id=e||this._uid}},{key:"required",get:function(){return this._required},set:function(e){this._required=jg(e)}},{key:"type",get:function(){return this._type},set:function(e){this._type=e||"text",this._validateType(),!this._isTextarea()&&Zg().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(e){e!==this.value&&(this._inputValueAccessor.value=e,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(e){this._readonly=jg(e)}},{key:"ngOnInit",value:function(){var e=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(t){e.autofilled=t.isAutofilled,e.stateChanges.next()}))}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()}},{key:"focus",value:function(e){this._elementRef.nativeElement.focus(e)}},{key:"_focusChanged",value:function(e){e===this.focused||this.readonly&&e||(this.focused=e,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_isTextarea",value:function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()}},{key:"_dirtyCheckNativeValue",value:function(){var e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}},{key:"_validateType",value:function(){if(tF.indexOf(this._type)>-1)throw Error('Input type "'.concat(this._type,"\" isn't supported by matInput."))}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var e=this._elementRef.nativeElement.validity;return e&&e.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(e){this._ariaDescribedby=e.join(" ")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}])}(iF)).\u0275fac=function(e){return new(e||RI)($r(Ml),$r($g),$r(jf,10),$r(Km,8),$r(ip,8),$r(H_),$r(eF,10),$r(ZI),$r(gu))},RI.\u0275dir=Et({type:RI,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(e,t){1&e&&ls("focus",(function(){return t._focusChanged(!0)}))("blur",(function(){return t._focusChanged(!1)}))("input",(function(){return t._onInput()})),2&e&&(nl("disabled",t.disabled)("required",t.required),Yr("id",t.id)("placeholder",t.placeholder)("readonly",t.readonly&&!t._isNativeSelect||null)("aria-describedby",t._ariaDescribedby||null)("aria-invalid",t.errorState)("aria-required",t.required.toString()),Fs("mat-input-server",t._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[kl([{provide:SI,useExisting:RI}]),al,dl]}),RI),aF=((NI=d((function e(){c(this,e)}))).\u0275mod=Ft({type:NI}),NI.\u0275inj=Pe({factory:function(e){return new(e||NI)},providers:[H_],imports:[[XI,QI],XI,QI]}),NI);function rF(e,t){}var sF=d((function e(){c(this,e),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0})),lF={dialogContainer:Wv("dialogContainer",[Qv("void, exit",$v({opacity:0,transform:"scale(0.7)"})),Qv("enter",$v({transform:"none"})),Kv("* => enter",Jv("150ms cubic-bezier(0, 0, 0.2, 1)",$v({transform:"none",opacity:1}))),Kv("* => void, * => exit",Jv("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",$v({opacity:0})))])};function cF(){throw Error("Attempting to attach dialog content after content is already attached")}var uF,dF,hF,fF=((uF=function(e){function t(e,n,i,o,a){var r;return c(this,t),(r=f(this,t))._elementRef=e,r._focusTrapFactory=n,r._changeDetectorRef=i,r._config=a,r._elementFocusedBeforeDialogWasOpened=null,r._state="enter",r._animationStateChanged=new Mc,r.attachDomPortal=function(e){return r._portalOutlet.hasAttached()&&cF(),r._savePreviouslyFocusedElement(),r._portalOutlet.attachDomPortal(e)},r._ariaLabelledBy=a.ariaLabelledBy||null,r._document=o,r}return p(t,e),d(t,[{key:"attachComponentPortal",value:function(e){return this._portalOutlet.hasAttached()&&cF(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(e)}},{key:"attachTemplatePortal",value:function(e){return this._portalOutlet.hasAttached()&&cF(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(e)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._getFocusTrap().focusInitialElement()||this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._getFocusTrap().focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var e=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&e&&"function"==typeof e.focus){var t=this._document.activeElement,n=this._elementRef.nativeElement;t&&t!==this._document.body&&t!==n&&!n.contains(t)||e.focus()}this._focusTrap&&this._focusTrap.destroy()}},{key:"_savePreviouslyFocusedElement",value:function(){var e=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return e._elementRef.nativeElement.focus()})))}},{key:"_containsFocus",value:function(){var e=this._elementRef.nativeElement,t=this._document.activeElement;return e===t||e.contains(t)}},{key:"_getFocusTrap",value:function(){return this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._focusTrap}},{key:"_onAnimationDone",value:function(e){"enter"===e.toState?this._trapFocus():"exit"===e.toState&&this._restoreFocus(),this._animationStateChanged.emit(e)}},{key:"_onAnimationStart",value:function(e){this._animationStateChanged.emit(e)}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}])}(yS)).\u0275fac=function(e){return new(e||uF)($r(Ml),$r(gv),$r(ur),$r(Qu,8),$r(sF))},uF.\u0275cmp=Ot({type:uF,selectors:[["mat-dialog-container"]],viewQuery:function(e,t){var n;1&e&&Nc(_S,!0),2&e&&Bc(n=Yc())&&(t._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(e,t){1&e&&cs("@dialogContainer.start",(function(e){return t._onAnimationStart(e)}))("@dialogContainer.done",(function(e){return t._onAnimationDone(e)})),2&e&&(Yr("id",t._id)("role",t._config.role)("aria-labelledby",t._config.ariaLabel?null:t._ariaLabelledBy)("aria-label",t._config.ariaLabel)("aria-describedby",t._config.ariaDescribedBy||null),il("@dialogContainer",t._state))},features:[al],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(e,t){1&e&&Jr(0,rF,0,0,"ng-template",0)},directives:[_S],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[lF.dialogContainer]}}),uF),mF=0,pF=function(){return d((function e(t,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-"+mF++;c(this,e),this._overlayRef=t,this._containerInstance=n,this.id=o,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new V,this._afterClosed=new V,this._beforeClosed=new V,this._state=0,n._id=o,n._animationStateChanged.pipe(Tp((function(e){return"done"===e.phaseName&&"enter"===e.toState})),Eg(1)).subscribe((function(){i._afterOpened.next(),i._afterOpened.complete()})),n._animationStateChanged.pipe(Tp((function(e){return"done"===e.phaseName&&"exit"===e.toState})),Eg(1)).subscribe((function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()})),t.detachments().subscribe((function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()})),t.keydownEvents().pipe(Tp((function(e){return 27===e.keyCode&&!i.disableClose&&!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 n.length?n.some((function(t){return e[t]})):e.altKey||e.shiftKey||e.ctrlKey||e.metaKey}(e)}))).subscribe((function(e){e.preventDefault(),i.close()})),t.backdropClick().subscribe((function(){i.disableClose?i._containerInstance._recaptureFocus():i.close()}))}),[{key:"close",value:function(e){var t=this;this._result=e,this._containerInstance._animationStateChanged.pipe(Tp((function(e){return"start"===e.phaseName})),Eg(1)).subscribe((function(n){t._beforeClosed.next(e),t._beforeClosed.complete(),t._overlayRef.detachBackdrop(),t._closeFallbackTimeout=setTimeout((function(){return t._finishDialogClose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1}},{key:"afterOpened",value:function(){return this._afterOpened.asObservable()}},{key:"afterClosed",value:function(){return this._afterClosed.asObservable()}},{key:"beforeClosed",value:function(){return this._beforeClosed.asObservable()}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(e){var t=this._getPositionStrategy();return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._getPositionStrategy().width(e).height(t),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(e){return this._overlayRef.addPanelClass(e),this}},{key:"removePanelClass",value:function(e){return this._overlayRef.removePanelClass(e),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}])}(),gF=new tt("MatDialogData"),vF=new tt("mat-dialog-default-options"),yF=new tt("mat-dialog-scroll-strategy"),bF={provide:yF,deps:[oP],useFactory:function(e){return function(){return e.scrollStrategies.block()}}},_F=((hF=function(){return d((function e(t,n,i,o,a,r,s){var l=this;c(this,e),this._overlay=t,this._injector=n,this._defaultOptions=o,this._parentDialog=r,this._overlayContainer=s,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new V,this._afterOpenedAtThisLevel=new V,this._ariaHiddenElements=new Map,this.afterAllClosed=LC((function(){return l.openDialogs.length?l._afterAllClosed:l._afterAllClosed.pipe(qv(void 0))})),this._scrollStrategy=a}),[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_afterAllClosed",get:function(){var e=this._parentDialog;return e?e._afterAllClosed:this._afterAllClosedAtThisLevel}},{key:"open",value:function(e,t){var n=this;if((t=function(e,t){return Object.assign(Object.assign({},t),e)}(t,this._defaultOptions||new sF)).id&&this.getDialogById(t.id))throw Error('Dialog with id "'.concat(t.id,'" exists already. The dialog id must be unique.'));var i=this._createOverlay(t),o=this._attachDialogContainer(i,t),a=this._attachDialogContent(e,o,i,t);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(e){return this.openDialogs.find((function(t){return t.id===e}))}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(e){var t=this._getOverlayConfig(e);return this._overlay.create(t)}},{key:"_getOverlayConfig",value:function(e){var t=new IS({positionStrategy:this._overlay.position().global(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}},{key:"_attachDialogContainer",value:function(e,t){var n=Sr.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:sF,useValue:t}]}),i=new pS(fF,t.viewContainerRef,n,t.componentFactoryResolver);return e.attach(i).instance}},{key:"_attachDialogContent",value:function(e,t,n,i){var o=new pF(n,t,i.id);if(e instanceof $l)t.attachTemplatePortal(new gS(e,null,{$implicit:i.data,dialogRef:o}));else{var a=this._createInjector(i,o,t),r=t.attachComponentPortal(new pS(e,i.viewContainerRef,a));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}},{key:"_createInjector",value:function(e,t,n){var i=e&&e.viewContainerRef&&e.viewContainerRef.injector,o=[{provide:fF,useValue:n},{provide:gF,useValue:e.data},{provide:pF,useValue:t}];return!e.direction||i&&i.get(jv,null)||o.push({provide:jv,useValue:{value:e.direction,change:Sp()}}),Sr.create({parent:i||this._injector,providers:o})}},{key:"_removeOpenDialog",value:function(e){var t=this.openDialogs.indexOf(e);t>-1&&(this.openDialogs.splice(t,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var e=this._overlayContainer.getContainerElement();if(e.parentElement)for(var t=e.parentElement.children,n=t.length-1;n>-1;n--){var i=t[n];i===e||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(e){for(var t=e.length;t--;)e[t].close()}}])}()).\u0275fac=function(e){return new(e||hF)(ut(oP),ut(Sr),ut(gd,8),ut(vF,8),ut(yF),ut(hF,12),ut(VS))},hF.\u0275prov=Se({token:hF,factory:hF.\u0275fac}),hF),kF=((dF=d((function e(){c(this,e)}))).\u0275mod=Ft({type:dF}),dF.\u0275inj=Pe({factory:function(e){return new(e||dF)},providers:[_F,bF],imports:[[rP,kS,k_],k_]}),dF),CF=["mat-calendar-body",""];function wF(e,t){if(1&e&&(es(0,"tr",2),es(1,"td",3),Gs(2),ts(),ts()),2&e){var n=fs();Bo(1),Is("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Yr("colspan",n.numCols),Bo(1),Qs(" ",n.label," ")}}function xF(e,t){if(1&e&&(es(0,"td",7),Gs(1),ts()),2&e){var n=fs(2);Is("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Yr("colspan",n._firstRowOffset),Bo(1),Qs(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function MF(e,t){if(1&e){var n=as();es(0,"td",8),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2)._cellClicked(e)})),es(1,"div",9),Gs(2),ts(),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs().index,r=fs();Is("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),Fs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",r._isActiveCell(a,o)),Zr("ngClass",i.cssClasses)("tabindex",r._isActiveCell(a,o)?0:-1),Yr("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",r.selectedValue===i.value),Bo(1),Fs("mat-calendar-body-selected",r.selectedValue===i.value)("mat-calendar-body-today",r.todayValue===i.value),Bo(1),Qs(" ",i.displayValue," ")}}function SF(e,t){if(1&e&&(es(0,"tr",4),Jr(1,xF,2,6,"td",5),Jr(2,MF,3,20,"td",6),ts()),2&e){var n=t.$implicit,i=t.index,o=fs();Bo(1),Zr("ngIf",0===i&&o._firstRowOffset),Bo(1),Zr("ngForOf",n)}}function PF(e,t){if(1&e&&(es(0,"th",5),Gs(1),ts()),2&e){var n=t.$implicit;Yr("aria-label",n.long),Bo(1),$s(n.narrow)}}var TF=["*"];function OF(e,t){}function LF(e,t){if(1&e){var n=as();es(0,"mat-month-view",5),ls("activeDateChange",(function(e){return mn(n),fs().activeDate=e}))("selectedChange",(function(e){return mn(n),fs()._dateSelected(e)}))("_userSelection",(function(){return mn(n),fs()._userSelected()})),ts()}if(2&e){var i=fs();Zr("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function DF(e,t){if(1&e){var n=as();es(0,"mat-year-view",6),ls("activeDateChange",(function(e){return mn(n),fs().activeDate=e}))("monthSelected",(function(e){return mn(n),fs()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return mn(n),fs()._goToDateInView(e,"month")})),ts()}if(2&e){var i=fs();Zr("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function IF(e,t){if(1&e){var n=as();es(0,"mat-multi-year-view",7),ls("activeDateChange",(function(e){return mn(n),fs().activeDate=e}))("yearSelected",(function(e){return mn(n),fs()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return mn(n),fs()._goToDateInView(e,"year")})),ts()}if(2&e){var i=fs();Zr("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var FF=["button"];function AF(e,t){1&e&&(un.lFrame.currentNamespace="http://www.w3.org/2000/svg",es(0,"svg",3),ns(1,"path",4),ts())}var EF=[[["","matDatepickerToggleIcon",""]]],BF=["[matDatepickerToggleIcon]"];function NF(e){return Error("MatDatepicker: No provider found for ".concat(e,". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation."))}var RF,jF,zF,VF,HF=((RF=function(){return d((function e(){c(this,e),this.changes=new V,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}),[{key:"formatYearRange",value:function(e,t){return"".concat(e," \u2013 ").concat(t)}}])}()).\u0275fac=function(e){return new(e||RF)},RF.\u0275prov=Se({factory:function(){return new RF},token:RF,providedIn:"root"}),RF),YF=d((function e(t,n,i,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};c(this,e),this.value=t,this.displayValue=n,this.ariaLabel=i,this.enabled=o,this.cssClasses=a})),qF=((VF=function(){return d((function e(t,n){c(this,e),this._elementRef=t,this._ngZone=n,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Mc}),[{key:"_cellClicked",value:function(e){e.enabled&&this.selectedValueChange.emit(e.value)}},{key:"ngOnChanges",value:function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")}},{key:"_isActiveCell",value:function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var e=this;this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(Eg(1)).subscribe((function(){var t=e._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&t.focus()}))}))}}])}()).\u0275fac=function(e){return new(e||VF)($r(Ml),$r(gu))},VF.\u0275cmp=Ot({type:VF,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[dl],attrs:CF,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell mat-focus-indicator",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell","mat-focus-indicator",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(e,t){1&e&&(Jr(0,wF,3,6,"tr",0),Jr(1,SF,3,2,"tr",1)),2&e&&(Zr("ngIf",t._firstRowOffset<t.labelMinRequiredCells),Bo(1),Zr("ngForOf",t.rows))},directives:[sh,ah,ih],styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n"],encapsulation:2,changeDetection:0}),VF),UF=((zF=function(){return d((function e(t,n,i,o){if(c(this,e),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=i,this._dir=o,this._rerenderSubscription=M.EMPTY,this.selectedChange=new Mc,this._userSelection=new Mc,this.activeDateChange=new Mc,!this._dateAdapter)throw NF("DateAdapter");if(!this._dateFormats)throw NF("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}),[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedDate=this._getDateInCurrentMonth(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(qv(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(e){if(this._selectedDate!=e){var t=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(t,n,e);this.selectedChange.emit(i)}this._userSelection.emit()}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),e.preventDefault()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_initWeekdays",value:function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(e,n){return{long:e,narrow:t[n]}}));this._weekdays=n.slice(e).concat(n.slice(0,e))}},{key:"_createWeekCells",value:function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);var o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),a=this._shouldEnableDate(o),r=this._dateAdapter.format(o,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(o):void 0;this._weeks[this._weeks.length-1].push(new YF(n+1,t[n],r,a,s))}}},{key:"_shouldEnableDate",value:function(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}},{key:"_getDateInCurrentMonth",value:function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}},{key:"_hasSameMonthAndYear",value:function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}}])}()).\u0275fac=function(e){return new(e||zF)($r(ur),$r(S_,8),$r(M_,8),$r(jv,8))},zF.\u0275cmp=Ot({type:zF,selectors:[["mat-month-view"]],viewQuery:function(e,t){var n;1&e&&Rc(qF,!0),2&e&&Bc(n=Yc())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(e,t){1&e&&(es(0,"table",0),es(1,"thead",1),es(2,"tr"),Jr(3,PF,2,2,"th",2),ts(),es(4,"tr"),ns(5,"th",3),ts(),ts(),es(6,"tbody",4),ls("selectedValueChange",(function(e){return t._dateSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),ts(),ts()),2&e&&(Bo(3),Zr("ngForOf",t._weekdays),Bo(3),Zr("label",t._monthLabel)("rows",t._weeks)("todayValue",t._todayDate)("selectedValue",t._selectedDate)("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1))},directives:[ah,qF],encapsulation:2,changeDetection:0}),zF),WF=((jF=function(){return d((function e(t,n,i){if(c(this,e),this._changeDetectorRef=t,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=M.EMPTY,this.selectedChange=new Mc,this.yearSelected=new Mc,this.activeDateChange=new Mc,!this._dateAdapter)throw NF("DateAdapter");this._activeDate=this._dateAdapter.today()}),[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),JF(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(qv(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-GF(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map((function(t){return e._createCellForYear(t)}))),i=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(e){this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));var t=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));this.selectedChange.emit(this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-GF(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-GF(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_getActiveCell",value:function(){return GF(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(e){var t=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return new YF(e,t,t,this._shouldEnableYear(e))}},{key:"_shouldEnableYear",value:function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}}])}()).\u0275fac=function(e){return new(e||jF)($r(ur),$r(M_,8),$r(jv,8))},jF.\u0275cmp=Ot({type:jF,selectors:[["mat-multi-year-view"]],viewQuery:function(e,t){var n;1&e&&Rc(qF,!0),2&e&&Bc(n=Yc())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:6,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","selectedValue","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(e,t){1&e&&(es(0,"table",0),es(1,"thead",1),es(2,"tr"),ns(3,"th",2),ts(),ts(),es(4,"tbody",3),ls("selectedValueChange",(function(e){return t._yearSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),ts(),ts()),2&e&&(Bo(4),Zr("rows",t._years)("todayValue",t._todayYear)("selectedValue",t._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},directives:[qF],encapsulation:2,changeDetection:0}),jF);function JF(e,t,n,i,o){var a=e.getYear(t),r=e.getYear(n),s=$F(e,i,o);return Math.floor((a-s)/24)===Math.floor((r-s)/24)}function GF(e,t,n,i){return((e.getYear(t)-$F(e,n,i))%24+24)%24}function $F(e,t,n){var i=0;return n?i=e.getYear(n)-24+1:t&&(i=e.getYear(t)),i}var QF,KF,ZF,XF,eA,tA,nA,iA,oA,aA=((ZF=function(){return d((function e(t,n,i,o){if(c(this,e),this._changeDetectorRef=t,this._dateFormats=n,this._dateAdapter=i,this._dir=o,this._rerenderSubscription=M.EMPTY,this.selectedChange=new Mc,this.monthSelected=new Mc,this.activeDateChange=new Mc,!this._dateAdapter)throw NF("DateAdapter");if(!this._dateFormats)throw NF("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}),[{key:"activeDate",get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._selectedMonth=this._getMonthInCurrentYear(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"ngAfterContentInit",value:function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(qv(null)).subscribe((function(){return e._init()}))}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_monthSelected",value:function(e){var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(t);var n=this._dateAdapter.getNumDaysInMonth(t);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}},{key:"_handleCalendarBodyKeydown",value:function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._monthSelected(this._dateAdapter.getMonth(this._activeDate));break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()}},{key:"_init",value:function(){var e=this;this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map((function(n){return n.map((function(n){return e._createCellForMonth(n,t[n])}))})),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_getMonthInCurrentYear",value:function(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}},{key:"_createCellForMonth",value:function(e,t){var n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),this._dateFormats.display.monthYearA11yLabel);return new YF(e,t.toLocaleUpperCase(),n,this._shouldEnableMonth(e))}},{key:"_shouldEnableMonth",value:function(e){var t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(var n=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}},{key:"_isYearAndMonthAfterMaxDate",value:function(e,t){if(this.maxDate){var n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(e,t){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<i}return!1}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}}])}()).\u0275fac=function(e){return new(e||ZF)($r(ur),$r(S_,8),$r(M_,8),$r(jv,8))},ZF.\u0275cmp=Ot({type:ZF,selectors:[["mat-year-view"]],viewQuery:function(e,t){var n;1&e&&Rc(qF,!0),2&e&&Bc(n=Yc())&&(t._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:8,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","keydown"]],template:function(e,t){1&e&&(es(0,"table",0),es(1,"thead",1),es(2,"tr"),ns(3,"th",2),ts(),ts(),es(4,"tbody",3),ls("selectedValueChange",(function(e){return t._monthSelected(e)}))("keydown",(function(e){return t._handleCalendarBodyKeydown(e)})),ts(),ts()),2&e&&(Bo(4),Zr("label",t._yearLabel)("rows",t._months)("todayValue",t._todayMonth)("selectedValue",t._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},directives:[qF],encapsulation:2,changeDetection:0}),ZF),rA=((KF=function(){return d((function e(t,n,i,o,a){c(this,e),this._intl=t,this.calendar=n,this._dateAdapter=i,this._dateFormats=o,this.calendar.stateChanges.subscribe((function(){return a.markForCheck()}))}),[{key:"periodButtonText",get:function(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);var e=this._dateAdapter.getYear(this.calendar.activeDate)-GF(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=e+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)}},{key:"periodButtonLabel",get:function(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}},{key:"prevButtonLabel",get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}},{key:"nextButtonLabel",get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}},{key:"currentPeriodClicked",value:function(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}},{key:"previousClicked",value:function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}},{key:"nextClicked",value:function(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}},{key:"previousEnabled",value:function(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}},{key:"nextEnabled",value:function(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}},{key:"_isSameView",value:function(e,t){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):JF(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}}])}()).\u0275fac=function(e){return new(e||KF)($r(HF),$r(je((function(){return sA}))),$r(M_,8),$r(S_,8),$r(ur))},KF.\u0275cmp=Ot({type:KF,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:TF,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,t){1&e&&(ps(),es(0,"div",0),es(1,"div",1),es(2,"button",2),ls("click",(function(){return t.currentPeriodClicked()})),Gs(3),ns(4,"div",3),ts(),ns(5,"div",4),gs(6),es(7,"button",5),ls("click",(function(){return t.previousClicked()})),ts(),es(8,"button",6),ls("click",(function(){return t.nextClicked()})),ts(),ts(),ts()),2&e&&(Bo(2),Yr("aria-label",t.periodButtonLabel),Bo(1),Qs(" ",t.periodButtonText," "),Bo(1),Fs("mat-calendar-invert","month"!=t.calendar.currentView),Bo(3),Zr("disabled",!t.previousEnabled()),Yr("aria-label",t.prevButtonLabel),Bo(1),Zr("disabled",!t.nextEnabled()),Yr("aria-label",t.nextButtonLabel))},directives:[dP,wv],encapsulation:2,changeDetection:0}),KF),sA=((QF=function(){return d((function e(t,n,i,o){var a=this;if(c(this,e),this._dateAdapter=n,this._dateFormats=i,this._changeDetectorRef=o,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new Mc,this.yearSelected=new Mc,this.monthSelected=new Mc,this._userSelection=new Mc,this.stateChanges=new V,!this._dateAdapter)throw NF("DateAdapter");if(!this._dateFormats)throw NF("MAT_DATE_FORMATS");this._intlChanges=t.changes.subscribe((function(){o.markForCheck(),a.stateChanges.next()}))}),[{key:"startAt",get:function(){return this._startAt},set:function(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"selected",get:function(){return this._selected},set:function(e){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"minDate",get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"maxDate",get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"activeDate",get:function(){return this._clampedActiveDate},set:function(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}},{key:"currentView",get:function(){return this._currentView},set:function(e){this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}},{key:"ngAfterContentInit",value:function(){this._calendarHeaderPortal=new pS(this.headerComponent||rA),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}},{key:"ngAfterViewChecked",value:function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}},{key:"ngOnChanges",value:function(e){var t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){var n=this._getCurrentViewComponent();n&&(this._changeDetectorRef.detectChanges(),n._init())}this.stateChanges.next()}},{key:"focusActiveCell",value:function(){this._getCurrentViewComponent()._focusActiveCell()}},{key:"updateTodaysDate",value:function(){var e=this.currentView;("month"===e?this.monthView:"year"===e?this.yearView:this.multiYearView)._init()}},{key:"_dateSelected",value:function(e){e&&!this._dateAdapter.sameDate(e,this.selected)&&this.selectedChange.emit(e)}},{key:"_yearSelectedInMultiYearView",value:function(e){this.yearSelected.emit(e)}},{key:"_monthSelectedInYearView",value:function(e){this.monthSelected.emit(e)}},{key:"_userSelected",value:function(){this._userSelection.emit()}},{key:"_goToDateInView",value:function(e,t){this.activeDate=e,this.currentView=t}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}},{key:"_getCurrentViewComponent",value:function(){return this.monthView||this.yearView||this.multiYearView}}])}()).\u0275fac=function(e){return new(e||QF)($r(HF),$r(M_,8),$r(S_,8),$r(ur))},QF.\u0275cmp=Ot({type:QF,selectors:[["mat-calendar"]],viewQuery:function(e,t){var n;1&e&&(Rc(UF,!0),Rc(aA,!0),Rc(WF,!0)),2&e&&(Bc(n=Yc())&&(t.monthView=n.first),Bc(n=Yc())&&(t.yearView=n.first),Bc(n=Yc())&&(t.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[dl],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","selectedChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","activeDateChange","yearSelected","selectedChange"]],template:function(e,t){1&e&&(Jr(0,OF,0,0,"ng-template",0),es(1,"div",1),Jr(2,LF,1,6,"mat-month-view",2),Jr(3,DF,1,5,"mat-year-view",3),Jr(4,IF,1,5,"mat-multi-year-view",4),ts()),2&e&&(Zr("cdkPortalOutlet",t._calendarHeaderPortal),Bo(1),Zr("ngSwitch",t.currentView),Bo(1),Zr("ngSwitchCase","month"),Bo(1),Zr("ngSwitchCase","year"),Bo(1),Zr("ngSwitchCase","multi-year"))},directives:[_S,Ev,mh,ph,UF,aA,WF],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),QF),lA={transformPanel:Wv("transformPanel",[Qv("void",$v({opacity:0,transform:"scale(1, 0.8)"})),Kv("void => enter",Jv("120ms cubic-bezier(0, 0, 0.2, 1)",$v({opacity:1,transform:"scale(1, 1)"}))),Kv("* => void",Jv("100ms linear",$v({opacity:0})))]),fadeInCalendar:Wv("fadeInCalendar",[Qv("void",$v({opacity:0})),Qv("enter",$v({opacity:1})),Kv("void => *",Jv("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},cA=0,uA=new tt("mat-datepicker-scroll-strategy"),dA={provide:uA,deps:[oP],useFactory:function(e){return function(){return e.scrollStrategies.reposition()}}},hA=C_(d((function e(t){c(this,e),this._elementRef=t}))),fA=((eA=function(e){function t(e,n){var i;return c(this,t),(i=f(this,t,[e]))._changeDetectorRef=n,i._animationState="enter",i._animationDone=new V,i}return p(t,e),d(t,[{key:"ngAfterViewInit",value:function(){this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._animationDone.complete()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}}])}(hA)).\u0275fac=function(e){return new(e||eA)($r(Ml),$r(ur))},eA.\u0275cmp=Ot({type:eA,selectors:[["mat-datepicker-content"]],viewQuery:function(e,t){var n;1&e&&Rc(sA,!0),2&e&&Bc(n=Yc())&&(t._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,t){1&e&&cs("@transformPanel.done",(function(){return t._animationDone.next()})),2&e&&(il("@transformPanel",t._animationState),Fs("mat-datepicker-content-touch",t.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[al],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(e,t){1&e&&(es(0,"mat-calendar",0),ls("selectedChange",(function(e){return t.datepicker.select(e)}))("yearSelected",(function(e){return t.datepicker._selectYear(e)}))("monthSelected",(function(e){return t.datepicker._selectMonth(e)}))("_userSelection",(function(){return t.datepicker.close()})),ts()),2&e&&Zr("id",t.datepicker.id)("ngClass",t.datepicker.panelClass)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._minDate)("maxDate",t.datepicker._maxDate)("dateFilter",t.datepicker._dateFilter)("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t.datepicker._selected)("dateClass",t.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[sA,vv,ih],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[lA.transformPanel,lA.fadeInCalendar]},changeDetection:0}),eA),mA=((XF=function(){return d((function e(t,n,i,o,a,r,s,l){if(c(this,e),this._dialog=t,this._overlay=n,this._ngZone=i,this._viewContainerRef=o,this._dateAdapter=r,this._dir=s,this._document=l,this.startView="month",this._touchUi=!1,this.yearSelected=new Mc,this.monthSelected=new Mc,this.openedStream=new Mc,this.closedStream=new Mc,this._opened=!1,this.id="mat-datepicker-"+cA++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=M.EMPTY,this._disabledChange=new V,this._selectedChanged=new V,!this._dateAdapter)throw NF("DateAdapter");this._scrollStrategy=a}),[{key:"startAt",get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(e){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(e))}},{key:"color",get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(e){this._color=e}},{key:"touchUi",get:function(){return this._touchUi},set:function(e){this._touchUi=jg(e)}},{key:"disabled",get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=jg(e);t!==this._disabled&&(this._disabled=t,this._disabledChange.next(t))}},{key:"opened",get:function(){return this._opened},set:function(e){e?this.open():this.close()}},{key:"_selected",get:function(){return this._validSelected},set:function(e){this._validSelected=e}},{key:"_minDate",get:function(){return this._datepickerInput&&this._datepickerInput.min}},{key:"_maxDate",get:function(){return this._datepickerInput&&this._datepickerInput.max}},{key:"_dateFilter",get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter}},{key:"ngOnDestroy",value:function(){this._destroyPopup(),this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete()}},{key:"select",value:function(e){var t=this._selected;this._selected=e,this._dateAdapter.sameDate(t,this._selected)||this._selectedChanged.next(e)}},{key:"_selectYear",value:function(e){this.yearSelected.emit(e)}},{key:"_selectMonth",value:function(e){this.monthSelected.emit(e)}},{key:"_registerInput",value:function(e){var t=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=e,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(e){return t._selected=e}))}},{key:"open",value:function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}}},{key:"close",value:function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Eg(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_openAsDialog",value:function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(fA,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._dialogRef.componentInstance.datepicker=this,this._dialogRef.componentInstance.color=this.color}},{key:"_openAsPopup",value:function(){var e=this,t=new pS(fA,this._viewContainerRef);this._destroyPopup(),this._createPopup();var n=this._popupComponentRef=this._popupRef.attach(t);n.instance.datepicker=this,n.instance.color=this.color,this._ngZone.onStable.asObservable().pipe(Eg(1)).subscribe((function(){e._popupRef.updatePosition()}))}},{key:"_createPopup",value:function(){var e=this,t=new IS({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(t),this._popupRef.overlayElement.setAttribute("role","dialog"),le(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Tp((function(t){return 27===t.keyCode||e._datepickerInput&&t.altKey&&38===t.keyCode})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))}},{key:"_destroyPopup",value:function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}},{key:"_createPopupPositionStrategy",value:function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}}])}()).\u0275fac=function(e){return new(e||XF)($r(_F),$r(oP),$r(gu),$r(Kl),$r(uA),$r(M_,8),$r(jv,8),$r(Qu,8))},XF.\u0275cmp=Ot({type:XF,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(e,t){},encapsulation:2,changeDetection:0}),XF),pA={provide:Pf,useExisting:je((function(){return yA})),multi:!0},gA={provide:qf,useExisting:je((function(){return yA})),multi:!0},vA=d((function e(t,n){c(this,e),this.target=t,this.targetElement=n,this.value=this.target.value})),yA=((oA=function(){return d((function e(t,n,i,o){var a=this;if(c(this,e),this._elementRef=t,this._dateAdapter=n,this._dateFormats=i,this._formField=o,this.dateChange=new Mc,this.dateInput=new Mc,this._valueChange=new Mc,this._disabledChange=new Mc,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=M.EMPTY,this._localeSubscription=M.EMPTY,this._parseValidator=function(){return a._lastValueValid?null:{matDatepickerParse:{text:a._elementRef.nativeElement.value}}},this._minValidator=function(e){var t=a._getValidDateOrNull(a._dateAdapter.deserialize(e.value));return!a.min||!t||a._dateAdapter.compareDate(a.min,t)<=0?null:{matDatepickerMin:{min:a.min,actual:t}}},this._maxValidator=function(e){var t=a._getValidDateOrNull(a._dateAdapter.deserialize(e.value));return!a.max||!t||a._dateAdapter.compareDate(a.max,t)>=0?null:{matDatepickerMax:{max:a.max,actual:t}}},this._filterValidator=function(e){var t=a._getValidDateOrNull(a._dateAdapter.deserialize(e.value));return a._dateFilter&&t&&!a._dateFilter(t)?{matDatepickerFilter:!0}:null},this._validator=Jf.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw NF("DateAdapter");if(!this._dateFormats)throw NF("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe((function(){a.value=a.value}))}),[{key:"matDatepicker",set:function(e){var t=this;e&&(this._datepicker=e,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(e){t.value=e,t._cvaOnChange(e),t._onTouched(),t.dateInput.emit(new vA(t,t._elementRef.nativeElement)),t.dateChange.emit(new vA(t,t._elementRef.nativeElement))})))}},{key:"matDatepickerFilter",set:function(e){this._dateFilter=e,this._validatorOnChange()}},{key:"value",get:function(){return this._value},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e);var t=this.value;this._value=e,this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)}},{key:"min",get:function(){return this._min},set:function(e){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}},{key:"max",get:function(){return this._max},set:function(e){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()}},{key:"disabled",get:function(){return!!this._disabled},set:function(e){var t=jg(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this._disabledChange.emit(t)),t&&this._isInitialized&&n.blur&&n.blur()}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()}},{key:"registerOnValidatorChange",value:function(e){this._validatorOnChange=e}},{key:"validate",value:function(e){return this._validator?this._validator(e):null}},{key:"getPopupConnectionElementRef",value:function(){return this.getConnectedOverlayOrigin()}},{key:"getConnectedOverlayOrigin",value:function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}},{key:"writeValue",value:function(e){this.value=e}},{key:"registerOnChange",value:function(e){this._cvaOnChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e}},{key:"_onKeydown",value:function(e){this._datepicker&&e.altKey&&40===e.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),e.preventDefault())}},{key:"_onInput",value:function(e){var t=this._lastValueValid,n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=!n||this._dateAdapter.isValid(n),n=this._getValidDateOrNull(n),this._dateAdapter.sameDate(n,this._value)?t!==this._lastValueValid&&this._validatorOnChange():(this._value=n,this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new vA(this,this._elementRef.nativeElement)))}},{key:"_onChange",value:function(){this.dateChange.emit(new vA(this,this._elementRef.nativeElement))}},{key:"_getThemePalette",value:function(){return this._formField?this._formField.color:void 0}},{key:"_onBlur",value:function(){this.value&&this._formatValue(this.value),this._onTouched()}},{key:"_formatValue",value:function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}},{key:"_getValidDateOrNull",value:function(e){return this._dateAdapter.isDateInstance(e)&&this._dateAdapter.isValid(e)?e:null}}])}()).\u0275fac=function(e){return new(e||oA)($r(Ml),$r(M_,8),$r(S_,8),$r(GI,8))},oA.\u0275dir=Et({type:oA,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(e,t){1&e&&ls("input",(function(e){return t._onInput(e.target.value)}))("change",(function(){return t._onChange()}))("blur",(function(){return t._onBlur()}))("keydown",(function(e){return t._onKeydown(e)})),2&e&&(nl("disabled",t.disabled),Yr("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",(null==t._datepicker?null:t._datepicker.opened)&&t._datepicker.id||null)("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null))},inputs:{value:"value",matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[kl([pA,gA,{provide:eF,useExisting:oA}])]}),oA),bA=((iA=d((function e(){c(this,e)}))).\u0275fac=function(e){return new(e||iA)},iA.\u0275dir=Et({type:iA,selectors:[["","matDatepickerToggleIcon",""]]}),iA),_A=((nA=function(){return d((function e(t,n,i){c(this,e),this._intl=t,this._changeDetectorRef=n,this._stateChanges=M.EMPTY;var o=Number(i);this.tabIndex=o||0===o?o:null}),[{key:"disabled",get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=jg(e)}},{key:"ngOnChanges",value:function(e){e.datepicker&&this._watchStateChanges()}},{key:"ngOnDestroy",value:function(){this._stateChanges.unsubscribe()}},{key:"ngAfterContentInit",value:function(){this._watchStateChanges()}},{key:"_open",value:function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}},{key:"_watchStateChanges",value:function(){var e=this,t=this.datepicker?this.datepicker._disabledChange:Sp(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Sp(),i=this.datepicker?le(this.datepicker.openedStream,this.datepicker.closedStream):Sp();this._stateChanges.unsubscribe(),this._stateChanges=le(this._intl.changes,t,n,i).subscribe((function(){return e._changeDetectorRef.markForCheck()}))}}])}()).\u0275fac=function(e){return new(e||nA)($r(HF),$r(ur),Qr("tabindex"))},nA.\u0275cmp=Ot({type:nA,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,t,n){var i;1&e&&zc(n,bA,!0),2&e&&Bc(i=Yc())&&(t._customIcon=i.first)},viewQuery:function(e,t){var n;1&e&&Rc(FF,!0),2&e&&Bc(n=Yc())&&(t._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(e,t){1&e&&ls("focus",(function(){return t._button.focus()})),2&e&&(Yr("tabindex",t.disabled?null:-1),Fs("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&"accent"===t.datepicker.color)("mat-warn",t.datepicker&&"warn"===t.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[dl],ngContentSelectors:BF,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,t){1&e&&(ps(EF),es(0,"button",0,1),ls("click",(function(e){return t._open(e)})),Jr(2,AF,2,0,"svg",2),gs(3),ts()),2&e&&(Zr("disabled",t.disabled)("disableRipple",t.disableRipple),Yr("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t._intl.openCalendarLabel)("tabindex",t.disabled?-1:t.tabIndex),Bo(2),Zr("ngIf",!t._customIcon))},directives:[dP,sh],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),nA),kA=((tA=d((function e(){c(this,e)}))).\u0275mod=Ft({type:tA}),tA.\u0275inj=Pe({factory:function(e){return new(e||tA)},providers:[HF,dA],imports:[[Ph,hP,kF,rP,Nv,kS],cS]}),tA),CA=["*"];function wA(e){return Error('Unable to find icon with the name "'.concat(e,'"'))}function xA(e){return Error("The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \"".concat(e,'".'))}function MA(e){return Error("The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was \"".concat(e,'".'))}var SA,PA=d((function e(t,n){c(this,e),this.options=n,t.nodeName?this.svgElement=t:this.url=t})),TA=((SA=function(){return d((function e(t,n,i,o){c(this,e),this._httpClient=t,this._sanitizer=n,this._errorHandler=o,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}),[{key:"addSvgIcon",value:function(e,t,n){return this.addSvgIconInNamespace("",e,t,n)}},{key:"addSvgIconLiteral",value:function(e,t,n){return this.addSvgIconLiteralInNamespace("",e,t,n)}},{key:"addSvgIconInNamespace",value:function(e,t,n,i){return this._addSvgIconConfig(e,t,new PA(n,i))}},{key:"addSvgIconLiteralInNamespace",value:function(e,t,n,i){var o=this._sanitizer.sanitize(lo.HTML,n);if(!o)throw MA(n);var a=this._createSvgElementForSingleIcon(o,i);return this._addSvgIconConfig(e,t,new PA(a,i))}},{key:"addSvgIconSet",value:function(e,t){return this.addSvgIconSetInNamespace("",e,t)}},{key:"addSvgIconSetLiteral",value:function(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}},{key:"addSvgIconSetInNamespace",value:function(e,t,n){return this._addSvgIconSetConfig(e,new PA(t,n))}},{key:"addSvgIconSetLiteralInNamespace",value:function(e,t,n){var i=this._sanitizer.sanitize(lo.HTML,t);if(!i)throw MA(t);var o=this._svgElementFromString(i);return this._addSvgIconSetConfig(e,new PA(o,n))}},{key:"registerFontClassAlias",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return this._fontCssClassesByAlias.set(e,t),this}},{key:"classNameForFontAlias",value:function(e){return this._fontCssClassesByAlias.get(e)||e}},{key:"setDefaultFontSetClass",value:function(e){return this._defaultFontSetClass=e,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(e){var t=this,n=this._sanitizer.sanitize(lo.RESOURCE_URL,e);if(!n)throw xA(e);var i=this._cachedIconsByUrl.get(n);return i?Sp(OA(i)):this._loadSvgIconFromConfig(new PA(e)).pipe(kg((function(e){return t._cachedIconsByUrl.set(n,e)})),Z((function(e){return OA(e)})))}},{key:"getNamedSvgIcon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=LA(t,e),i=this._svgIconConfigs.get(n);if(i)return this._getSvgFromConfig(i);var o=this._iconSetConfigs.get(t);return o?this._getSvgFromIconSetConfigs(e,o):sk(wA(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(e){return e.svgElement?Sp(OA(e.svgElement)):this._loadSvgIconFromConfig(e).pipe(kg((function(t){return e.svgElement=t})),Z((function(e){return OA(e)})))}},{key:"_getSvgFromIconSetConfigs",value:function(e,t){var n=this,i=this._extractIconWithNameFromAnySet(e,t);return i?Sp(i):kf(t.filter((function(e){return!e.svgElement})).map((function(e){return n._loadSvgIconSetFromConfig(e).pipe(HC((function(t){var i="Loading icon set URL: ".concat(n._sanitizer.sanitize(lo.RESOURCE_URL,e.url)," failed: ").concat(t.message);return n._errorHandler?n._errorHandler.handleError(new Error(i)):console.error(i),Sp(null)})))}))).pipe(Z((function(){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw wA(e);return i})))}},{key:"_extractIconWithNameFromAnySet",value:function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.svgElement){var o=this._extractSvgIconFromSet(i.svgElement,e,i.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(e){var t=this;return this._fetchUrl(e.url).pipe(Z((function(n){return t._createSvgElementForSingleIcon(n,e.options)})))}},{key:"_loadSvgIconSetFromConfig",value:function(e){var t=this;return e.svgElement?Sp(e.svgElement):this._fetchUrl(e.url).pipe(Z((function(n){return e.svgElement||(e.svgElement=t._svgElementFromString(n)),e.svgElement})))}},{key:"_createSvgElementForSingleIcon",value:function(e,t){var n=this._svgElementFromString(e);return this._setSvgAttributes(n,t),n}},{key:"_extractSvgIconFromSet",value:function(e,t,n){var i=e.querySelector('[id="'.concat(t,'"]'));if(!i)return null;var o=i.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,n);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),n);var a=this._svgElementFromString("<svg></svg>");return a.appendChild(o),this._setSvgAttributes(a,n)}},{key:"_svgElementFromString",value:function(e){var t=this._document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}},{key:"_toSvgElement",value:function(e){for(var t=this._svgElementFromString("<svg></svg>"),n=e.attributes,i=0;i<n.length;i++){var o=n[i],a=o.name,r=o.value;"id"!==a&&t.setAttribute(a,r)}for(var s=0;s<e.childNodes.length;s++)e.childNodes[s].nodeType===this._document.ELEMENT_NODE&&t.appendChild(e.childNodes[s].cloneNode(!0));return t}},{key:"_setSvgAttributes",value:function(e,t){return e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),t&&t.viewBox&&e.setAttribute("viewBox",t.viewBox),e}},{key:"_fetchUrl",value:function(e){var t=this;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==e)throw Error('Cannot fetch icon from URL "'.concat(e,'".'));var n=this._sanitizer.sanitize(lo.RESOURCE_URL,e);if(!n)throw xA(e);var i=this._inProgressUrlFetches.get(n);if(i)return i;var o=this._httpClient.get(n,{responseType:"text"}).pipe(KC((function(){return t._inProgressUrlFetches.delete(n)})),ge());return this._inProgressUrlFetches.set(n,o),o}},{key:"_addSvgIconConfig",value:function(e,t,n){return this._svgIconConfigs.set(LA(e,t),n),this}},{key:"_addSvgIconSetConfig",value:function(e,t){var n=this._iconSetConfigs.get(e);return n?n.push(t):this._iconSetConfigs.set(e,[t]),this}}])}()).\u0275fac=function(e){return new(e||SA)(ut(ng,8),ut(ff),ut(Qu,8),ut(Pi,8))},SA.\u0275prov=Se({factory:function(){return new SA(ut(ng,8),ut(ff),ut(Qu,8),ut(Pi,8))},token:SA,providedIn:"root"}),SA);function OA(e){return e.cloneNode(!0)}function LA(e,t){return e+":"+t}var DA,IA,FA=C_(d((function e(t){c(this,e),this._elementRef=t}))),AA=new tt("mat-icon-location",{providedIn:"root",factory:function(){var e=dt(Qu),t=e?e.location:null;return{getPathname:function(){return t?t.pathname+t.search:""}}}}),EA=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],BA=EA.map((function(e){return"[".concat(e,"]")})).join(", "),NA=/^url\(['"]?#(.*?)['"]?\)$/,RA=((IA=function(e){function t(e,n,i,o,a){var r;return c(this,t),(r=f(this,t,[e]))._iconRegistry=n,r._location=o,r._errorHandler=a,r._inline=!1,i||e.nativeElement.setAttribute("aria-hidden","true"),r}return p(t,e),d(t,[{key:"inline",get:function(){return this._inline},set:function(e){this._inline=jg(e)}},{key:"fontSet",get:function(){return this._fontSet},set:function(e){this._fontSet=this._cleanupFontValue(e)}},{key:"fontIcon",get:function(){return this._fontIcon},set:function(e){this._fontIcon=this._cleanupFontValue(e)}},{key:"_splitIconName",value:function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error('Invalid icon name: "'.concat(e,'"'))}}},{key:"ngOnChanges",value:function(e){var t=this,n=e.svgIcon;if(n)if(this.svgIcon){var o=i(this._splitIconName(this.svgIcon),2),a=o[0],r=o[1];this._iconRegistry.getNamedSvgIcon(r,a).pipe(Eg(1)).subscribe((function(e){return t._setSvgElement(e)}),(function(e){var n="Error retrieving icon ".concat(a,":").concat(r,"! ").concat(e.message);t._errorHandler?t._errorHandler.handleError(new Error(n)):console.error(n)}))}else n.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngOnInit",value:function(){this._usingFontIcon()&&this._updateFontIconClasses()}},{key:"ngAfterViewChecked",value:function(){var e=this._elementsWithExternalReferences;if(e&&this._location&&e.size){var t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}},{key:"ngOnDestroy",value:function(){this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}},{key:"_usingFontIcon",value:function(){return!this.svgIcon}},{key:"_setSvgElement",value:function(e){this._clearSvgElement();for(var t=e.querySelectorAll("style"),n=0;n<t.length;n++)t[n].textContent+=" ";if(this._location){var i=this._location.getPathname();this._previousPath=i,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(i)}this._elementRef.nativeElement.appendChild(e)}},{key:"_clearSvgElement",value:function(){var e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){var n=e.childNodes[t];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||e.removeChild(n)}}},{key:"_updateFontIconClasses",value:function(){if(this._usingFontIcon()){var e=this._elementRef.nativeElement,t=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&e.classList.remove(this._previousFontSetClass),t&&e.classList.add(t),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}}},{key:"_cleanupFontValue",value:function(e){return"string"==typeof e?e.trim().split(" ")[0]:e}},{key:"_prependPathToReferences",value:function(e){var t=this._elementsWithExternalReferences;t&&t.forEach((function(t,n){t.forEach((function(t){n.setAttribute(t.name,"url('".concat(e,"#").concat(t.value,"')"))}))}))}},{key:"_cacheChildrenWithExternalReferences",value:function(e){for(var t=e.querySelectorAll(BA),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map,i=function(e){EA.forEach((function(i){var o=t[e],a=o.getAttribute(i),r=a?a.match(NA):null;if(r){var s=n.get(o);s||(s=[],n.set(o,s)),s.push({name:i,value:r[1]})}}))},o=0;o<t.length;o++)i(o)}}])}(FA)).\u0275fac=function(e){return new(e||IA)($r(Ml),$r(TA),Qr("aria-hidden"),$r(AA,8),$r(Pi,8))},IA.\u0275cmp=Ot({type:IA,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:4,hostBindings:function(e,t){2&e&&Fs("mat-icon-inline",t.inline)("mat-icon-no-color","primary"!==t.color&&"accent"!==t.color&&"warn"!==t.color)},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[al,dl],ngContentSelectors:CA,decls:1,vars:0,template:function(e,t){1&e&&(ps(),gs(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),IA),jA=((DA=d((function e(){c(this,e)}))).\u0275mod=Ft({type:DA}),DA.\u0275inj=Pe({factory:function(e){return new(e||DA)},imports:[[k_],k_]}),DA);function zA(e,t){if(1&e){var n=as();es(0,"div",1),es(1,"span",2),ls("click",(function(){return mn(n),Gr(11).open()})),ts(),es(2,"mat-form-field",3),es(3,"mat-label",4),Gs(4),ts(),es(5,"input",5,6),ls("dateChange",(function(){mn(n);var e=Gr(6);return fs().dateEmit(e.value)})),ts(),es(7,"mat-datepicker-toggle",7),es(8,"mat-icon",8),ns(9,"fa-icon",9),ts(),ts(),ns(10,"mat-datepicker",10,11),ts(),ts()}if(2&e){var i=Gr(11),o=fs();Bo(2),Zr("formGroup",o.dateForm),Bo(2),$s(o.labelText),Bo(1),Zr("formControlName","date")("min",o.functionsService.getDayAfter(o.minDateSaved))("max",o.functionsService.getDayAfter(o.maxDate))("matDatepicker",i),Bo(2),Zr("for",i),Bo(2),Zr("icon",o.iconSolidService.faCalendarAlt),Bo(1),Zr("startAt",o.startDateBr)}}function VA(e,t){if(1&e){var n=as();es(0,"div",1),es(1,"span",2),ls("click",(function(){return mn(n),Gr(12).open()})),ts(),es(2,"mat-form-field",3),es(3,"span",12),Gs(4),ts(),es(5,"span"),Gs(6),ts(),ns(7,"input",13),es(8,"mat-datepicker-toggle",7),es(9,"mat-icon",8),ns(10,"fa-icon",9),ts(),ts(),es(11,"mat-datepicker",14,15),ls("monthSelected",(function(e){mn(n);var t=Gr(12);return fs().chosenMonthHandler(e),t.close()})),ts(),ts(),ts()}if(2&e){var i=Gr(12),o=fs();Bo(2),Zr("formGroup",o.dateForm),Bo(2),$s(o.labelText),Bo(2),$s(o.dateSelectedMonth+"/"+o.dateSelectedYear),Bo(1),Zr("formControlName","date")("min",o.functionsService.getDayAfter(o.minDateSaved))("max",o.functionsService.getDayAfter(o.maxDate))("matDatepicker",i),Bo(1),Zr("for",i),Bo(2),Zr("icon",o.iconSolidService.faCalendarAlt),Bo(1),Zr("calendarHeaderComponent",o.customHeader)("startAt",o.startDateBr)}}function HA(e,t){if(1&e){var n=as();es(0,"div",1),es(1,"span",2),ls("click",(function(){return mn(n),Gr(12).open()})),ts(),es(2,"mat-form-field",3),es(3,"span",12),Gs(4),ts(),es(5,"span"),Gs(6),ts(),ns(7,"input",13),es(8,"mat-datepicker-toggle",7),es(9,"mat-icon",8),ns(10,"fa-icon",9),ts(),ts(),es(11,"mat-datepicker",16,17),ls("yearSelected",(function(e){mn(n);var t=Gr(12),i=fs();return t.close(),i.chosenYearHandler(e)})),ts(),ts(),ts()}if(2&e){var i=Gr(12),o=fs();Bo(2),Zr("formGroup",o.dateForm),Bo(2),$s(o.labelText),Bo(2),$s(o.dateSelectedYear),Bo(1),Zr("formControlName","date")("min",o.functionsService.getDayAfter(o.minDateSaved))("max",o.functionsService.getDayAfter(o.maxDate))("matDatepicker",i),Bo(1),Zr("for",i),Bo(2),Zr("icon",o.iconSolidService.faCalendarAlt),Bo(1),Zr("calendarHeaderComponent",o.customHeader)("startAt",o.startDateBr)}}var YA,qA,UA=((qA=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.closureDatabase=t,this.functionsService=n,this.formBuilder=i,this.companyService=o,this.iconRegularService=a,this.iconSolidService=r,this.collaboratorListId=[],this.currentDate="",this.datepickerMonth=!1,this.datepickerYear=!1,this.labelText="",this.maxDate="",this.minDate="",this.validMinDate=!0,this.validMinDateClosure=!1,this.resetDate=new E,this.startDate="",this.dateSelectedBR=new Mc,this.dateSelectedEN=new Mc,this.collaboratorListIdSaved=[],this.dateSelectedMonth="",this.dateSelectedSaved="1",this.dateSelectedShow="",this.dateSelectedYear="",this.minDateSaved="1",this.maxDateSaved="1",this.resetActive=!1,this.startDateBr="1",this.customHeader=WA,this.dateForm=this.formBuilder.group({date:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;if(this.resetDate.subscribe((function(){e.resetDateForm()})),""!=this.startDate){var t=new Date(this.startDate);t.setDate(t.getDate()+1),this.dateSelectedSaved=this.startDate,this.startDateBr=this.dateSelectedShow=this.functionsService.dateENtoBR(this.startDate),this.dateForm.controls.date.setValue(t),this.dateEmit(this.startDateBr)}if(""==this.startDate&&(this.datepickerMonth||this.datepickerYear)){var n=new Date;this.dateSelectedSaved=this.functionsService.getSmallDateEN(n),this.dateEmit(this.functionsService.getSmallDateBR(this.dateSelectedSaved))}""==this.minDate&&this.validMinDate&&(this.minDate=this.companyService.getMinDate(),this.companyService.getMinDateEmitter().subscribe((function(t){return e.minDate=t}))),""==this.minDate&&this.validMinDateClosure&&this.getClosureLastDate()}},{key:"resetDateForm",value:function(){this.dateForm.reset(),this.resetActive=!0}},{key:"getClosureLastDate",value:function(){var e=this,t=this.getCollaboratorListIdValid(this.collaboratorListId);this.collaboratorListIdSaved=[],this.collaboratorListId.forEach((function(t){e.collaboratorListIdSaved.push(t)})),0!=t.length?this.closureDatabase.getClosureLastDateFromCollaboratorIdList(JSON.stringify(this.collaboratorListId),(function(t){if(t.error)e.setMinDate(e.functionsService.getCurrentDateEN());else{if(!t.data.closureLastDate.toString())return;var n=e.functionsService.getDayAfter(t.data.closureLastDate.toString(),1);if(e.setMinDate(n),e.functionsService.removeSings(n)<=e.functionsService.removeSings(e.dateSelectedSaved))return;e.resetDateForm(),e.dateEmitReset()}})):this.setMinDate("")}},{key:"getCollaboratorListIdValid",value:function(e){return e.filter((function(e){return null!=e&&""!=e}))}},{key:"setMinDate",value:function(e){var t=this.minDate&&this.functionsService.getDateAsInt(this.minDate)>this.functionsService.getDateAsInt(e);this.minDateSaved=t?this.minDate:e}},{key:"ngOnChanges",value:function(){this.validMinDateClosure&&JSON.stringify(this.collaboratorListId)!=JSON.stringify(this.collaboratorListIdSaved)&&this.getClosureLastDate(),this.resetActive?this.resetActive=!1:(this.minDateSaved=this.minDate,this.maxDateSaved=this.maxDate,null==this.currentDate||""==this.currentDate||this.currentDate==this.dateSelectedSaved?"1"!=this.dateSelectedSaved&&""!=this.minDate&&this.functionsService.removeSings(this.dateSelectedSaved)<this.functionsService.removeSings(this.minDate)?this.setDate(this.minDate):"1"!=this.dateSelectedSaved&&""!=this.maxDate&&this.functionsService.removeSings(this.dateSelectedSaved)>this.functionsService.removeSings(this.maxDate)&&this.setDate(this.maxDate):this.setDate(this.currentDate))}},{key:"setDate",value:function(e){this.dateSelectedSaved=e;var t=new Date(e+" 00:00:00");this.dateForm.controls.date.setValue(t),this.dateEmit(this.functionsService.getSmallDateBR(t))}},{key:"chosenMonthHandler",value:function(e){this.dateForm.controls.date.setValue(e),this.dateEmit(this.functionsService.getSmallDateBR(e))}},{key:"chosenYearHandler",value:function(e){this.dateForm.controls.date.setValue(e),this.dateEmit(this.functionsService.getSmallDateBR(e))}},{key:"getDatepickerYear",value:function(){return this.datepickerYear}},{key:"getDatepickerYearSelected",value:function(){return this.dateSelectedYear}},{key:"dateEmit",value:function(e){this.dateSelectedShow=e,e=this.functionsService.dateBRtoEN(e),this.dateSelectedSaved=e,this.dateSelectedMonth=e.split("-")[1],this.dateSelectedYear=e.split("-")[0],this.dateSelectedBR.emit(this.functionsService.dateENtoBR(e)),this.dateSelectedEN.emit(e)}},{key:"dateEmitReset",value:function(){this.dateSelectedBR.emit(null),this.dateSelectedEN.emit(null)}}])}()).\u0275fac=function(e){return new(e||qA)($r(iI),$r(zP),$r(wp),$r(tI),$r(WO),$r(JO))},qA.\u0275cmp=Ot({type:qA,selectors:[["io-datepicker"]],inputs:{collaboratorListId:"collaboratorListId",currentDate:"currentDate",datepickerMonth:"datepickerMonth",datepickerYear:"datepickerYear",labelText:"labelText",maxDate:"maxDate",minDate:"minDate",validMinDate:"validMinDate",validMinDateClosure:"validMinDateClosure",resetDate:"resetDate",startDate:"startDate"},outputs:{dateSelectedBR:"dateSelectedBR",dateSelectedEN:"dateSelectedEN"},features:[dl],decls:3,vars:3,consts:[["class","relativePlace",4,"ngIf"],[1,"relativePlace"],[1,"inputCover",3,"click"],[3,"formGroup"],[1,"cl-gray"],["matInput","",3,"formControlName","min","max","matDatepicker","dateChange"],["date",""],["matSuffix","",3,"for"],["matDatepickerToggleIcon",""],["size","1x",1,"iconItem","iconSizeF","cl-gray-dark",3,"icon"],[3,"startAt"],["picker",""],[1,"labelDetail"],["matInput","",1,"hide",3,"formControlName","min","max","matDatepicker"],["startView","year",3,"calendarHeaderComponent","startAt","monthSelected"],["pickerMonth",""],["startView","multi-year",3,"calendarHeaderComponent","startAt","yearSelected"],["pickerYear",""]],template:function(e,t){1&e&&(Jr(0,zA,12,9,"div",0),Jr(1,VA,13,11,"div",0),Jr(2,HA,13,11,"div",0)),2&e&&(Zr("ngIf",!t.datepickerMonth&&!t.datepickerYear),Bo(1),Zr("ngIf",t.datepickerMonth),Bo(1),Zr("ngIf",t.datepickerYear))},directives:[sh,$I,Hf,ip,VI,oF,If,yA,Vf,vp,_A,qI,RA,bA,FD,mA],styles:[".example-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:10px}.example-header-label[_ngcontent-%COMP%]{flex:1;height:1em;font-weight:500;text-align:left;margin:0}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:inline-block;width:40px;padding:10px 0;cursor:pointer;line-height:20px;border-radius:50px}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:first-child{margin-left:10px}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{display:block;width:10px;margin:0 auto;font-size:14px}div.relativePlace[_ngcontent-%COMP%]{height:45px;overflow:hidden}div.relativePlace[_ngcontent-%COMP%]   mat-label[_ngcontent-%COMP%]{color:var(--primary-color-dark-30);font-weight:bolder}div.relativePlace[_ngcontent-%COMP%]   .inputCover[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:2}div.relativePlace[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{z-index:0}div.relativePlace[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}div.relativePlace[_ngcontent-%COMP%]   .mat-form-field-appearance-legacy[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{padding-top:4px}mat-icon[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{display:block;width:17px;height:16px;margin:-1px 0 0}mat-icon[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]   svg.svg-inline--fa[_ngcontent-%COMP%]{max-width:17px;max-height:16px}.mat-form-field.mat-form-field-appearance-legacy[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{padding:4px 0}.mat-form-field.mat-form-field-appearance-legacy[_ngcontent-%COMP%]   .mat-form-field-label[_ngcontent-%COMP%]{color:#444}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{padding-top:10px}.labelDetail[_ngcontent-%COMP%]{position:absolute;top:-18px;left:0;width:200%;transform:scale(.5) translate(-50%);font-size:22px}"],changeDetection:0}),qA),WA=((YA=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.datePicker=t,this.iconSolidService=n,this._calendar=i,this._dateAdapter=o,this._dateFormats=a,this._destroyed=new V,this.datepickerYear=this.datePicker.getDatepickerYear(),i.stateChanges.pipe(kk(this._destroyed)).subscribe((function(){return r.markForCheck()}))}),[{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"periodLabel",get:function(){return this.datepickerYear?"Ano atual: "+this.datePicker.getDatepickerYearSelected():this._dateAdapter.format(this._calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase()}},{key:"nextClicked",value:function(){this._calendar.activeDate=this._dateAdapter.addCalendarYears(this._calendar.activeDate,this.datepickerYear?24:1)}},{key:"previousClicked",value:function(){this._calendar.activeDate=this._dateAdapter.addCalendarYears(this._calendar.activeDate,this.datepickerYear?-24:-1)}}])}()).\u0275fac=function(e){return new(e||YA)($r(UA),$r(JO),$r(sA),$r(M_),$r(S_),$r(ur))},YA.\u0275cmp=Ot({type:YA,selectors:[["datepicker-custom-header"]],inputs:{datepickerYear:"datepickerYear"},decls:7,vars:3,consts:[[1,"example-header"],[1,"example-header-label"],[1,"arrow",3,"click"],["size","1x",3,"icon"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"span",1),Gs(2),ts(),es(3,"span",2),ls("click",(function(){return t.previousClicked()})),ns(4,"fa-icon",3),ts(),es(5,"span",2),ls("click",(function(){return t.nextClicked()})),ns(6,"fa-icon",3),ts(),ts()),2&e&&(Bo(2),$s(t.periodLabel),Bo(2),Zr("icon",t.iconSolidService.faChevronLeft),Bo(2),Zr("icon",t.iconSolidService.faChevronRight))},directives:[FD],styles:[".example-header[_ngcontent-%COMP%]{display:flex;align-items:center;padding:10px}.example-header-label[_ngcontent-%COMP%]{flex:1;height:1em;font-weight:500;text-align:left;margin:0}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:inline-block;width:40px;padding:10px 0;cursor:pointer;line-height:20px;border-radius:50px}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:first-child{margin-left:10px}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.example-header[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{display:block;width:10px;margin:0 auto;font-size:14px}div.relativePlace[_ngcontent-%COMP%]{height:45px;overflow:hidden}div.relativePlace[_ngcontent-%COMP%]   mat-label[_ngcontent-%COMP%]{color:var(--primary-color-dark-30);font-weight:bolder}div.relativePlace[_ngcontent-%COMP%]   .inputCover[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;cursor:pointer;z-index:2}div.relativePlace[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{z-index:0}div.relativePlace[_ngcontent-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}div.relativePlace[_ngcontent-%COMP%]   .mat-form-field-appearance-legacy[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{padding-top:4px}mat-icon[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{display:block;width:17px;height:16px;margin:-1px 0 0}mat-icon[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%], mat-icon[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]   svg.svg-inline--fa[_ngcontent-%COMP%]{max-width:17px;max-height:16px}.mat-form-field.mat-form-field-appearance-legacy[_ngcontent-%COMP%]   .mat-form-field-infix[_ngcontent-%COMP%]{padding:4px 0}.mat-form-field.mat-form-field-appearance-legacy[_ngcontent-%COMP%]   .mat-form-field-label[_ngcontent-%COMP%]{color:#444}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{padding-top:10px}.labelDetail[_ngcontent-%COMP%]{position:absolute;top:-18px;left:0;width:200%;transform:scale(.5) translate(-50%);font-size:22px}"],changeDetection:0}),YA);function JA(e,t){if(1&e){var n=as();es(0,"div",5),es(1,"fa-icon",6),ls("click",(function(){return mn(n),fs().skipMonth(-1)})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconSolidService.faArrowLeft)}}function GA(e,t){if(1&e){var n=as();es(0,"io-datepicker",7),ls("dateSelectedEN",(function(e){return mn(n),fs().setSecondDate(e)})),ts()}if(2&e){var i=fs();Zr("labelText",i.secondDateLabel)("minDate",i.functionsService.getDayAfter(i.firstDate,1))("startDate",i.secondDateStart)("currentDate",i.secondDateSkip)("maxDate",i.secondDateMax)}}function $A(e,t){if(1&e){var n=as();es(0,"io-datepicker",7),ls("dateSelectedEN",(function(e){return mn(n),fs().setSecondDate(e)})),ts()}if(2&e){var i=fs();Zr("labelText",i.secondDateLabel)("minDate",i.functionsService.getDayAfter(i.firstDate,0))("startDate",i.secondDateStart)("currentDate",i.secondDateSkip)("maxDate",i.functionsService.getDayAfter(i.firstDate,30))}}function QA(e,t){if(1&e){var n=as();es(0,"div",5),es(1,"fa-icon",8),ls("click",(function(){return mn(n),fs().skipMonth(1)})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconSolidService.faArrowRight)}}var KA,ZA=((KA=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.companyService=t,this.functionsService=n,this.iconRegularService=i,this.iconSolidService=o,this.userSettingsService=a,this.storageService=r,this.firstDateLabel="",this.firstDateStart="",this.maxDate="",this.validMinDate=!0,this.secondDateLabel="",this.secondDateStart="",this.skipMonthBtn=!0,this.mapPoint=!1,this.minDate="",this.firstDateSelected=new Mc,this.secondDateSelected=new Mc,this.firstDate="",this.firstDateMax="",this.firstDateSkip="",this.secondDate="",this.secondDateMax="",this.secondDateSkip="",this.todayDate=(new Date).toISOString().slice(0,10)}),[{key:"ngOnInit",value:function(){var e=this;""==this.minDate&&this.validMinDate&&(this.minDate=this.companyService.getMinDate(),this.companyService.getMinDateEmitter().subscribe((function(t){return e.minDate=t}))),""!=this.maxDate&&(this.firstDateMax=this.functionsService.getDayBefore(this.maxDate,1),this.secondDateMax=this.maxDate),""==this.firstDate&&""==this.firstDateStart&&(this.firstDateStart=this.userSettingsService.getIntervalFirstDate(),""!=this.firstDateMax&&parseInt(this.functionsService.removeSings(this.firstDateStart))>parseInt(this.functionsService.removeSings(this.firstDateMax))&&(this.firstDateStart=this.firstDateMax)),""==this.secondDate&&""==this.secondDateStart&&(this.secondDateStart=this.userSettingsService.getIntervalSecondDate(),""!=this.secondDateMax&&parseInt(this.functionsService.removeSings(this.secondDateStart))>parseInt(this.functionsService.removeSings(this.secondDateMax))&&(this.secondDateStart=this.secondDateMax)),1==this.mapPoint&&(this.firstDateStart=this.todayDate,this.secondDateStart=this.todayDate)}},{key:"setFirstDate",value:function(e){this.firstDate=e,this.storageService.encodeToLocalStorage("intervalFirstDate",e),this.emitFirstDate(e)}},{key:"setSecondDate",value:function(e){this.secondDate=e,this.storageService.encodeToLocalStorage("intervalSecondDate",e),this.emitSecondDate(e)}},{key:"emitFirstDate",value:function(e){this.firstDateSelected.emit(e)}},{key:"emitSecondDate",value:function(e){this.secondDateSelected.emit(e)}},{key:"skipMonth",value:function(e){var t=this.functionsService.getFirstLastDay(this.firstDate)[1],n="",i=this.functionsService.getFirstLastDay(this.secondDate)[1],o="";1==e?(n=this.functionsService.getMonthAfterEN(this.firstDate),o=this.functionsService.getMonthAfterEN(this.secondDate)):(n=this.functionsService.getMonthBeforeEN(this.firstDate),o=this.functionsService.getMonthBeforeEN(this.secondDate)),this.firstDate==t&&(n=this.functionsService.getFirstLastDay(n)[1]),this.secondDate==i&&(o=this.functionsService.getFirstLastDay(o)[1]),this.firstDate=n,this.secondDate=o,this.firstDateSkip=this.firstDate,this.secondDateSkip=this.secondDate}}])}()).\u0275fac=function(e){return new(e||KA)($r(tI),$r(zP),$r(WO),$r(JO),$r(nI),$r(YP))},KA.\u0275cmp=Ot({type:KA,selectors:[["io-interval-selector"]],inputs:{firstDateLabel:"firstDateLabel",firstDateStart:"firstDateStart",maxDate:"maxDate",validMinDate:"validMinDate",secondDateLabel:"secondDateLabel",secondDateStart:"secondDateStart",skipMonthBtn:"skipMonthBtn",mapPoint:"mapPoint",minDate:"minDate"},outputs:{firstDateSelected:"firstDateSelected",secondDateSelected:"secondDateSelected"},decls:7,vars:10,consts:[[1,"flex","start"],["class","skipMonthBtn flex start",4,"ngIf"],[3,"labelText","minDate","validMinDate","startDate","currentDate","maxDate","dateSelectedEN"],[1,"spacer"],[3,"labelText","minDate","startDate","currentDate","maxDate","dateSelectedEN",4,"ngIf"],[1,"skipMonthBtn","flex","start"],["size","3x","title","Retroceder um m\xeas",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgR1",3,"icon","click"],[3,"labelText","minDate","startDate","currentDate","maxDate","dateSelectedEN"],["size","3x","title","Avan\xe7ar um m\xeas",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),Jr(1,JA,2,1,"div",1),es(2,"io-datepicker",2),ls("dateSelectedEN",(function(e){return t.setFirstDate(e)})),ts(),ns(3,"span",3),Jr(4,GA,1,5,"io-datepicker",4),Jr(5,$A,1,5,"io-datepicker",4),Jr(6,QA,2,1,"div",1),ts()),2&e&&(Bo(1),Zr("ngIf",t.skipMonthBtn),Bo(1),Zr("labelText",t.firstDateLabel)("minDate",t.minDate)("validMinDate",t.validMinDate)("startDate",t.firstDateStart)("currentDate",t.firstDateSkip)("maxDate",t.firstDateMax),Bo(2),Zr("ngIf",0==t.mapPoint),Bo(1),Zr("ngIf",1==t.mapPoint),Bo(1),Zr("ngIf",t.skipMonthBtn))},directives:[sh,UA,FD],styles:["io-datepicker[_ngcontent-%COMP%]{min-width:140px}.spacer[_ngcontent-%COMP%], io-datepicker[_ngcontent-%COMP%]{display:inline-block;width:100%}.spacer[_ngcontent-%COMP%]{min-width:20px;max-width:20px}.skipMonthBtn[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{max-width:10px}@media (max-width:400px){io-datepicker[_ngcontent-%COMP%]{min-width:110px}}"]}),KA),XA=["searchInput"];function eE(e,t){if(1&e){var n=as();es(0,"div",6),es(1,"fa-icon",7),ls("click",(function(){return mn(n),fs().setPreviousCollaborator()})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconSolidService.faArrowLeft)}}function tE(e,t){if(1&e){var n=as();es(0,"fa-icon",8),ls("click",(function(){return mn(n),fs().resetSearchLine()})),ts()}2&e&&Zr("icon",fs().iconSolidService.faTimes)}function nE(e,t){if(1&e){var n=as();es(0,"div",6),es(1,"fa-icon",9),ls("click",(function(){return mn(n),fs().setNextCollaborator()})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconSolidService.faArrowRight)}}var iE,oE=((iE=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.iconSolidService=o,this.paddingLeft="",this.paddingRight="",this.paddingBottom="pdgB1",this.searchValue=null,this.selectFull=!1,this.reset=new E,this.collaboratorSelectedData=new Mc,this.onKeyPress=new Mc,this.resetText=new Mc,this.collaboratorSkipDataNext=null,this.collaboratorSkipDataPrevious=null,this.searchLineForm=this.formBuilder.group({searchLineInput:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.searchLineForm.controls.searchLineInput.valueChanges.subscribe((function(t){e.search(t)})),this.reset.subscribe((function(){e.resetSearchLine()}))}},{key:"resetSearchLine",value:function(){this.resetText.emit(),this.setInputValue("")}},{key:"ngOnChanges",value:function(){null!=this.searchValue&&(this.searchLineForm.controls.searchLineInput.setValue(this.searchValue),clearTimeout(this.interval)),this.collaboratorSkipData&&(this.collaboratorSkipDataNext=this.collaboratorSkipData.collaboratorAfter,this.collaboratorSkipDataPrevious=this.collaboratorSkipData.collaboratorBefore)}},{key:"setInputValue",value:function(e){this.searchLineForm.get("searchLineInput").setValue(e)}},{key:"setFocus",value:function(){this.searchInput.nativeElement.focus()}},{key:"havePreviousCollaborator",value:function(){return null!=this.collaboratorSkipDataPrevious&&""!=this.searchLineForm.get("searchLineInput").value}},{key:"setPreviousCollaborator",value:function(){this.setInputValue(this.collaboratorSkipDataPrevious.name),this.emitCollaboratorSelectedData(this.collaboratorSkipDataPrevious)}},{key:"haveNextCollaborator",value:function(){return null!=this.collaboratorSkipDataNext&&""!=this.searchLineForm.get("searchLineInput").value}},{key:"setNextCollaborator",value:function(){this.setInputValue(this.collaboratorSkipDataNext.name),this.emitCollaboratorSelectedData(this.collaboratorSkipDataNext)}},{key:"emitCollaboratorSelectedData",value:function(e){this.collaboratorSelectedData.emit(e)}},{key:"search",value:function(e){var t=this;clearTimeout(this.interval),this.interval=setTimeout((function(){t.onKeyPress.emit(e)}),600)}}])}()).\u0275fac=function(e){return new(e||iE)($r(wp),$r(yM),$r(tT),$r(JO))},iE.\u0275cmp=Ot({type:iE,selectors:[["io-search-line"]],viewQuery:function(e,t){var n;1&e&&Rc(XA,!0),2&e&&Bc(n=Yc())&&(t.searchInput=n.first)},inputs:{collaboratorSkipData:"collaboratorSkipData",paddingLeft:"paddingLeft",paddingRight:"paddingRight",paddingBottom:"paddingBottom",searchLineForm:"searchLineForm",searchValue:"searchValue",selectFull:"selectFull",reset:"reset"},outputs:{collaboratorSelectedData:"collaboratorSelectedData",onKeyPress:"onKeyPress",resetText:"resetText"},features:[dl],decls:8,vars:11,consts:[["class","skip-box flex center",4,"ngIf"],[1,"wdFull","relativePlace",3,"formGroup"],["size","3x",1,"iconItem","iconSizeF","cl-blue","iconSearch","clickPlace",3,"icon","click"],["onClick","this.select();","autocomplete","off","placeholder","Pesquisar","name","searchLineInput","type","text",1,"sizeB","pdgL1","wdFull",3,"formControlName"],["searchInput",""],["size","3x","class","iconItem iconSizeG cl-gray-dark iconClose clickPlace",3,"icon","click",4,"ngIf"],[1,"skip-box","flex","center"],["size","3x","title","Funcion\xe1rio anterior",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgR1",3,"icon","click"],["size","3x",1,"iconItem","iconSizeG","cl-gray-dark","iconClose","clickPlace",3,"icon","click"],["size","3x","title","Pr\xf3ximo funcion\xe1rio",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div"),Jr(1,eE,2,1,"div",0),es(2,"div",1),es(3,"fa-icon",2),ls("click",(function(){return t.setFocus()})),ts(),ns(4,"input",3,4),Jr(6,tE,1,1,"fa-icon",5),ts(),Jr(7,nE,2,1,"div",0),ts()),2&e&&(tl("searchLine borderBottom ",t.paddingBottom," ",t.paddingLeft,"  ",t.paddingRight,""),Bo(1),Zr("ngIf",t.havePreviousCollaborator()),Bo(1),Zr("formGroup",t.searchLineForm),Bo(1),Zr("icon",t.iconSolidService.faSearch),Bo(1),Zr("formControlName","searchLineInput"),Bo(2),Zr("ngIf",""!=t.searchLineForm.get("searchLineInput").value),Bo(1),Zr("ngIf",t.haveNextCollaborator()))},directives:[sh,Hf,ip,FD,If,Vf,vp],styles:[".relativePlace[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:0 20px 0 25px}.relativePlace[_ngcontent-%COMP%]   .iconSearch[_ngcontent-%COMP%]{position:absolute;left:0}.relativePlace[_ngcontent-%COMP%]   .iconClose[_ngcontent-%COMP%]{position:absolute;right:10px;padding:10px}.searchLine[_ngcontent-%COMP%]   .skip-box[_ngcontent-%COMP%]:nth-child(2){padding-left:30px}.searchLine[_ngcontent-%COMP%]   .skip-box[_ngcontent-%COMP%]   .iconSearch[_ngcontent-%COMP%]{left:30px}"]}),iE);function aE(e,t){if(1&e){var n=as();es(0,"div",10),ls("click",(function(){return mn(n),fs(2).emitFirstPage()})),ns(1,"fa-icon",11),ts()}if(2&e){var i=fs(2);Bo(1),Zr("icon",i.iconSolidService.faAngleDoubleLeft)}}function rE(e,t){if(1&e){var n=as();es(0,"div",12),ls("click",(function(){return mn(n),fs(2).emitReturnPage()})),ns(1,"fa-icon",13),ts()}if(2&e){var i=fs(2);Bo(1),Zr("icon",i.iconSolidService.faChevronLeft)}}function sE(e,t){if(1&e&&(es(0,"div",14),es(1,"span",15),Gs(2),ts(),ts()),2&e){var n=fs(2);Bo(2),$s(n.currentPage)}}function lE(e,t){if(1&e){var n=as();es(0,"div",16),ls("click",(function(){return mn(n),fs(2).emitNextPage()})),ns(1,"fa-icon",13),ts()}if(2&e){var i=fs(2);Bo(1),Zr("icon",i.iconSolidService.faChevronRight)}}function cE(e,t){if(1&e){var n=as();es(0,"div",17),ls("click",(function(){return mn(n),fs(2).emitLastPage()})),ns(1,"fa-icon",11),ts()}if(2&e){var i=fs(2);ys("title","\xdaltima p\xe1gina: ",i.lastPageNum,""),Bo(1),Zr("icon",i.iconSolidService.faAngleDoubleRight)}}function uE(e,t){if(1&e&&(es(0,"div",1),es(1,"div",2),es(2,"div",3),Gs(3),ts(),ts(),es(4,"div",4),Jr(5,aE,2,1,"div",5),Jr(6,rE,2,1,"div",6),Jr(7,sE,3,1,"div",7),Jr(8,lE,2,1,"div",8),Jr(9,cE,2,2,"div",9),ts(),ts()),2&e){var n=fs();Bo(3),Zs("Exibindo ",n.from," at\xe9 ",n.to," de ",n.total," registros"),Bo(2),Zr("ngIf",n.canGoBackward()),Bo(1),Zr("ngIf",n.canGoBackward()),Bo(1),Zr("ngIf",n.lastPageNum>1),Bo(1),Zr("ngIf",n.canGoForward()),Bo(1),Zr("ngIf",n.canGoForward())}}var dE,hE=((dE=function(){return d((function e(t){c(this,e),this.iconSolidService=t,this.paginationData=null,this.setCurrentPage=new Mc,this.currentPage=1,this.lastPageNum=1,this.from=0,this.to=0,this.total=0}),[{key:"ngOnChanges",value:function(){this.paginationData&&(this.currentPage=this.paginationData.current_page||1,this.lastPageNum=this.paginationData.last_page||null,this.total=this.paginationData.total||null,this.from=this.paginationData.from||null,this.to=this.paginationData.to||null)}},{key:"canGoBackward",value:function(){return this.currentPage>1}},{key:"canGoForward",value:function(){return this.currentPage<this.lastPageNum}},{key:"emitFirstPage",value:function(){this.emitLoadPage(1)}},{key:"emitReturnPage",value:function(){var e=this.currentPage-1;this.emitLoadPage(e>1?e:1)}},{key:"emitNextPage",value:function(){var e=this.currentPage+1;this.emitLoadPage(e<=this.lastPageNum?e:this.lastPageNum)}},{key:"emitLastPage",value:function(){this.emitLoadPage(this.lastPageNum)}},{key:"emitLoadPage",value:function(e){this.setCurrentPage.emit(e)}}])}()).\u0275fac=function(e){return new(e||dE)($r(JO))},dE.\u0275cmp=Ot({type:dE,selectors:[["io-pagination"]],inputs:{paginationData:"paginationData"},outputs:{setCurrentPage:"setCurrentPage"},features:[dl],decls:1,vars:1,consts:[["class","flex mrgT1",4,"ngIf"],[1,"flex","mrgT1"],[1,"paginationDataBox","flex","start","cl-primary-dark-50"],[1,"item"],[1,"paginationBox","flex","end"],["class","item flex center clickPlace","title","Primeira p\xe1gina",3,"click",4,"ngIf"],["class","item flex center clickPlace","title","P\xe1gina anterior",3,"click",4,"ngIf"],["class","item flex center current","title","P\xe1gina atual",4,"ngIf"],["class","item flex center clickPlace","title","Pr\xf3xima p\xe1gina",3,"click",4,"ngIf"],["class","item flex center clickPlace",3,"title","click",4,"ngIf"],["title","Primeira p\xe1gina",1,"item","flex","center","clickPlace",3,"click"],["size","3x",1,"iconItem","iconSizeF","iconSearch",3,"icon"],["title","P\xe1gina anterior",1,"item","flex","center","clickPlace",3,"click"],["size","3x",1,"iconItem","iconSizeG","iconSearch",3,"icon"],["title","P\xe1gina atual",1,"item","flex","center","current"],[1,"sizeC"],["title","Pr\xf3xima p\xe1gina",1,"item","flex","center","clickPlace",3,"click"],[1,"item","flex","center","clickPlace",3,"title","click"]],template:function(e,t){1&e&&Jr(0,uE,10,8,"div",0),2&e&&Zr("ngIf",t.total>0)},directives:[sh,FD],styles:[".paginationDataBox[_ngcontent-%COMP%]{margin-left:5px}.paginationBox[_ngcontent-%COMP%]{overflow:hidden;border-radius:3px;border:1px solid var(--primary-color-light-30);color:var(--primary-color-light-30);background-color:var(--cl-white)}.paginationBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:26px;padding:0 4px;border-right:1px solid var(--primary-color-light-30);color:var(--primary-color-light-30)}.paginationBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:hover{background:var(--primary-color);color:var(--cl-white)}.paginationBox[_ngcontent-%COMP%]   .item.current[_ngcontent-%COMP%]{background:var(--primary-color-light-30)}.paginationBox[_ngcontent-%COMP%]   .item.current[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--cl-white);font-weight:700}.paginationBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{margin-right:0;border:none}.paginationBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span.sizeC[_ngcontent-%COMP%]{padding:0 5px}.paginationBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{color:var(--cl-white)}"]}),dE),fE=["modalFilter"];function mE(e,t){if(1&e){var n=as();es(0,"span",3),ls("click",(function(){return mn(n),fs().closeModal()})),es(1,"span",4),Gs(2,"Fechar"),ts(),ns(3,"fa-icon",5),ts()}if(2&e){var i=fs();Bo(3),Zr("icon",i.iconSolidService.faTimes)}}var pE,gE,vE,yE,bE,_E,kE=["*"],CE=((pE=function(){return d((function e(t,n){var i=this;c(this,e),this.renderer=t,this.iconSolidService=n,this.showModal=!0,this.smallSize=!1,this.mediumSize=!1,this.hideModal=new Mc,this.renderer.listen("window","click",(function(e){e.target==i.modalFilter.nativeElement&&i.closeModal()}))}),[{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||pE)($r(Ol),$r(JO))},pE.\u0275cmp=Ot({type:pE,selectors:[["io-modal-default"]],viewQuery:function(e,t){var n;1&e&&Rc(fE,!0),2&e&&Bc(n=Yc())&&(t.modalFilter=n.first)},inputs:{showModal:"showModal",smallSize:"smallSize",mediumSize:"mediumSize"},outputs:{hideModal:"hideModal"},ngContentSelectors:kE,decls:5,vars:5,consts:[[1,"filterBlack","modalFilter",3,"ngClass"],["modalFilter",""],["class","btnCloseModal flex",3,"click",4,"ngIf"],[1,"btnCloseModal","flex",3,"click"],[1,"sizeC","mrgR10"],["size","2x","title","Fechar",1,"cl-gray-dark","iconItem","iconSizeG","clickPlace",3,"icon"]],template:function(e,t){1&e&&(ps(),es(0,"div",0,1),es(2,"div"),Jr(3,mE,4,1,"span",2),gs(4),ts(),ts()),2&e&&(Zr("ngClass",1==t.showModal?"active":""),Bo(2),Xs("",t.smallSize?"modalBoxSmall":t.mediumSize?"modalBoxMedium":"modalBox"," bg-white"),Bo(1),Zr("ngIf",!t.smallSize))},directives:[ih,sh,FD],styles:[""]}),pE),wE=new tt("config"),xE=new tt("NEW_CONFIG"),ME=new tt("INITIAL_CONFIG"),SE={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},PE=["Hh:m0:s0","Hh:m0","m0:s0"],TE=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"],OE=((_E=function(){return d((function e(t){var n=this;c(this,e),this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=function(e,t,i,o){var a=e.split(i),r=a.length>1?"".concat(i).concat(a[1]):"",s=a[0],l=n.separatorLimit.replace(/\s/g,"");l&&+l&&(s="-"===s[0]?"-"+s.slice(1,s.length).slice(0,l.length):s.slice(0,l.length));for(var c=/(\d+)(\d{3})/;c.test(s);)s=s.replace(c,"$1"+t+"$2");return void 0===o?s+r:0===o?s:s+r.substr(0,o+1)},this.percentage=function(e){return Number(e)>=0&&Number(e)<=100},this.getPrecision=function(e){var t=e.split(".");return t.length>1?Number(t[t.length-1]):1/0},this.checkInputPrecision=function(e,t,i){if(t<1/0){var o=new RegExp(n._charToRegExpExpression(i)+"\\d{".concat(t,"}.*$")),a=e.match(o);(a&&a[0].length-1>t||0===t&&e.endsWith(i))&&(e=e.substring(0,e.length-1))}return e},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers}),[{key:"applyMaskWithPattern",value:function(e,t){var n=i(t,2),o=n[0],a=n[1];return this.customPattern=a,this.applyMask(e,o)}},{key:"applyMask",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(null==e||void 0===t)return"";var o=0,a="",r=!1,s=!1,l=1,c=!1;e.slice(0,this.prefix.length)===this.prefix&&(e=e.slice(this.prefix.length,e.length)),this.suffix&&e.endsWith(this.suffix)&&(e=e.slice(0,e.length-this.suffix.length));var u=e.toString().split("");if("IP"===t&&(this.ipError=!!(u.filter((function(e){return"."===e})).length<3&&u.length<7),t="099.099.099.099"),t.startsWith("percent")){if(e.match("[a-z]|[A-Z]")||e.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/]/)){e=this._stripToDecimal(e);var d=this.getPrecision(t);e=this.checkInputPrecision(e,d,".")}if(e.indexOf(".")>0&&!this.percentage(e.substring(0,e.indexOf(".")))){var h=e.substring(0,e.indexOf(".")-1);e="".concat(h).concat(e.substring(e.indexOf("."),e.length))}a=this.percentage(e)?e:e.substring(0,e.length-1)}else if(t.startsWith("separator")){(e.match("[w\u0430-\u044f\u0410-\u042f]")||e.match("[\u0401\u0451\u0410-\u044f]")||e.match("[a-z]|[A-Z]")||e.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||e.match("[^A-Za-z0-9,]"))&&(e=this._stripToDecimal(e)),e=e.length>1&&"0"===e[0]&&e[1]!==this.decimalMarker?e.slice(1,e.length):e;var f=this._charToRegExpExpression(this.thousandSeparator),m=this._charToRegExpExpression(this.decimalMarker),p='@#!$%^&*()_+|~=`{}\\[\\]:\\s,";<>?\\/'.replace(f,"").replace(m,""),g=new RegExp("["+p+"]");e.match(g)&&(e=e.substring(0,e.length-1));var v=this.getPrecision(t),y=(e=this.checkInputPrecision(e,v,this.decimalMarker)).replace(new RegExp(f,"g"),""),b=(a=this._formatWithSeparators(y,this.thousandSeparator,this.decimalMarker,v)).indexOf(",")-e.indexOf(","),_=a.length-e.length;if(_>0&&","!==a[n]){s=!0;var k=0;do{this._shift.add(n+k),k++}while(k<_)}else 0!==b&&n>0&&!(a.indexOf(",")>=n&&n>3)||!(a.indexOf(".")>=n&&n>3)&&_<=0?(this._shift.clear(),s=!0,l=_,this._shift.add(n+=_)):this._shift.clear()}else for(var C=0,w=u[0];C<u.length&&o!==t.length;w=u[++C])if(this._checkSymbolMask(w,t[o])&&"?"===t[o+1])a+=w,o+=2;else if("*"===t[o+1]&&r&&this._checkSymbolMask(w,t[o+2]))a+=w,o+=3,r=!1;else if(this._checkSymbolMask(w,t[o])&&"*"===t[o+1])a+=w,r=!0;else if("?"===t[o+1]&&this._checkSymbolMask(w,t[o+2]))a+=w,o+=3;else if(this._checkSymbolMask(w,t[o])||this.hiddenInput&&this.maskAvailablePatterns[t[o]]&&this.maskAvailablePatterns[t[o]].symbol===w){if("H"===t[o]&&Number(w)>2){o+=1;var x=/[*?]/g.test(t.slice(0,o))?u.length:o;this._shift.add(x+this.prefix.length||0),C--;continue}if("h"===t[o]&&"2"===a&&Number(w)>3){o+=1,C--;continue}if("m"===t[o]&&Number(w)>5){o+=1;var M=/[*?]/g.test(t.slice(0,o))?u.length:o;this._shift.add(M+this.prefix.length||0),C--;continue}if("s"===t[o]&&Number(w)>5){o+=1;var S=/[*?]/g.test(t.slice(0,o))?u.length:o;this._shift.add(S+this.prefix.length||0),C--;continue}var P=31;if("d"===t[o]&&(Number(e.slice(o,o+2))>P||"/"===e[o+1])){o+=1;var T=/[*?]/g.test(t.slice(0,o))?u.length:o;this._shift.add(T+this.prefix.length||0),C--;continue}if("M"===t[o]){var O=12,L=0===o&&(Number(w)>2||Number(e.slice(o,o+2))>O||"/"===e[o+1]),D=e.slice(o-3,o-1).includes("/")&&("/"===e[o-2]&&Number(e.slice(o-1,o+1))>O&&"/"!==e[o]||"/"===e[o]||"/"===e[o-3]&&Number(e.slice(o-2,o))>O&&"/"!==e[o-1]||"/"===e[o-1]),I=Number(e.slice(o-3,o-1))<=P&&!e.slice(o-3,o-1).includes("/")&&"/"===e[o-1]&&(Number(e.slice(o,o+2))>O||"/"===e[o+1]),F=Number(e.slice(o-3,o-1))>P&&!e.slice(o-3,o-1).includes("/")&&!e.slice(o-2,o).includes("/")&&Number(e.slice(o-2,o))>O,A=Number(e.slice(o-3,o-1))<=P&&!e.slice(o-3,o-1).includes("/")&&"/"!==e[o-1]&&Number(e.slice(o-1,o+1))>O;if(L||D||I||F||A){o+=1;var E=/[*?]/g.test(t.slice(0,o))?u.length:o;this._shift.add(E+this.prefix.length||0),C--;continue}}a+=w,o++}else if(-1!==this.maskSpecialCharacters.indexOf(t[o])){a+=t[o],o++;var B=/[*?]/g.test(t.slice(0,o))?u.length:o;this._shift.add(B+this.prefix.length||0),C--}else this.maskSpecialCharacters.indexOf(w)>-1&&this.maskAvailablePatterns[t[o]]&&this.maskAvailablePatterns[t[o]].optional?(u[o]&&"099.099.099.099"!==t&&(a+=u[o]),o++,C--):"*"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(w)===this.maskExpression[o+2]&&r||"?"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(w)===this.maskExpression[o+2]&&r?(o+=3,a+=w):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(w)<0&&w!==this.placeHolderCharacter&&(c=!0);a.length+1===t.length&&-1!==this.maskSpecialCharacters.indexOf(t[t.length-1])&&(a+=t[t.length-1]);for(var N=n+1;this._shift.has(N);)l++,N++;var R=this._shift.has(n)?l:0;c&&R--,i(R,s),l<0&&this._shift.clear();var j="".concat(this.prefix).concat(a).concat(this.suffix);return 0===a.length&&(j="".concat(this.prefix).concat(a)),j}},{key:"_findSpecialChar",value:function(e){return this.maskSpecialCharacters.find((function(t){return t===e}))}},{key:"_checkSymbolMask",value:function(e,t){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[t]&&this.maskAvailablePatterns[t].pattern&&this.maskAvailablePatterns[t].pattern.test(e)}},{key:"_stripToDecimal",value:function(e){return e.split("").filter((function(e,t){return e.match("^-?\\d")||"."===e||","===e||"-"===e&&0===t})).join("")}},{key:"_charToRegExpExpression",value:function(e){return" "===e?"\\s":"[\\^$.|?*+()".indexOf(e)>=0?"\\"+e:e}}])}()).\u0275fac=function(e){return new(e||_E)(ut(wE))},_E.\u0275prov=Se({token:_E,factory:_E.\u0275fac}),_E),LE=((bE=function(e){function n(e,t,i,o){var a;return c(this,n),(a=f(this,n,[t])).document=e,a._config=t,a._elementRef=i,a._renderer=o,a.maskExpression="",a.isNumberValue=!1,a.placeHolderCharacter="_",a.maskIsShown="",a.selStart=null,a.selEnd=null,a.onChange=function(e){},a._formElement=a._elementRef.nativeElement,a}return p(n,e),d(n,[{key:"applyMask",value:function(e,i){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){};if(!i)return e;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(e||"#")),!e&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;var s=e&&"number"==typeof this.selStart?e[this.selStart]:"",l="";if(void 0!==this.hiddenInput){var c=this.actualValue.split("");""!==e&&c.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(e.length>c.length?c.splice(this.selStart,0,s):e.length<c.length&&(c.length-e.length==1?c.splice(this.selStart-1,1):c.splice(this.selStart,this.selEnd-this.selStart))):c=[],l=this.actualValue.length?this.shiftTypedSymbols(c.join("")):e}l=Boolean(l)&&l.length?l:e;var u=t(_(n.prototype),"applyMask",this).call(this,l,i,a,r);if(this.actualValue=this.getActualValue(u),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter((function(e){return e!==o.decimalMarker}))),this.formControlResult(u),!this.showMaskTyped)return this.hiddenInput&&u&&u.length?this.hideInput(u,this.maskExpression):u;var d=this.prefix+this.maskIsShown;return u+("IP"===this.maskExpression?d:d.slice(u.length))}},{key:"applyValueChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};this._formElement.value=this.applyMask(this._formElement.value,this.maskExpression,e,t),this._formElement!==this.document.activeElement&&this.clearIfNotMatchFn()}},{key:"hideInput",value:function(e,t){var n=this;return e.split("").map((function(e,i){return n.maskAvailablePatterns&&n.maskAvailablePatterns[t[i]]&&n.maskAvailablePatterns[t[i]].symbol?n.maskAvailablePatterns[t[i]].symbol:e})).join("")}},{key:"getActualValue",value:function(e){var t=this,n=e.split("").filter((function(e,n){return t._checkSymbolMask(e,t.maskExpression[n])||t.maskSpecialCharacters.includes(t.maskExpression[n])&&e===t.maskExpression[n]}));return n.join("")===e?n.join(""):e}},{key:"shiftTypedSymbols",value:function(e){var t=this,n="";return(e&&e.split("").map((function(i,o){if(t.maskSpecialCharacters.includes(e[o+1])&&e[o+1]!==t.maskExpression[o+1])return n=i,e[o+1];if(n.length){var a=n;return n="",a}return i}))||[]).join("")}},{key:"showMaskInInput",value:function(e){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}return this.showMaskTyped?e?this._checkForIp(e):this.maskExpression.replace(/\w/g,this.placeHolderCharacter):""}},{key:"clearIfNotMatchFn",value:function(){this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==this._formElement.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(this._formElement.value,this.maskExpression))}},{key:"formElementProperty",set:function(e){var t=i(e,2),n=t[0],o=t[1];this._renderer.setProperty(this._formElement,n,o)}},{key:"checkSpecialCharAmount",value:function(e){var t=this;return e.split("").filter((function(e){return t._findSpecialChar(e)})).length}},{key:"_checkForIp",value:function(e){if("#"===e)return"".concat(this.placeHolderCharacter,".").concat(this.placeHolderCharacter,".").concat(this.placeHolderCharacter,".").concat(this.placeHolderCharacter);for(var t=[],n=0;n<e.length;n++)e[n].match("\\d")&&t.push(e[n]);return t.length<=3?"".concat(this.placeHolderCharacter,".").concat(this.placeHolderCharacter,".").concat(this.placeHolderCharacter):t.length>3&&t.length<=6?"".concat(this.placeHolderCharacter,".").concat(this.placeHolderCharacter):t.length>6&&t.length<=9?this.placeHolderCharacter:""}},{key:"formControlResult",value:function(e){Array.isArray(this.dropSpecialCharacters)?this.onChange(this._removeMask(this._removeSuffix(this._removePrefix(e)),this.dropSpecialCharacters)):this.onChange(this.dropSpecialCharacters?this._checkSymbols(e):this._removeSuffix(this._removePrefix(e)))}},{key:"_removeMask",value:function(e,t){return e?e.replace(this._regExpForRemove(t),""):e}},{key:"_removePrefix",value:function(e){return this.prefix&&e?e.replace(this.prefix,""):e}},{key:"_removeSuffix",value:function(e){return this.suffix&&e?e.replace(this.suffix,""):e}},{key:"_retrieveSeparatorValue",value:function(e){return this._removeMask(this._removeSuffix(this._removePrefix(e)),this.maskSpecialCharacters)}},{key:"_regExpForRemove",value:function(e){return new RegExp(e.map((function(e){return"\\"+e})).join("|"),"gi")}},{key:"_checkSymbols",value:function(e){if(""===e)return e;var t=this._retrieveSeparatorPrecision(this.maskExpression),n=this._retrieveSeparatorValue(e);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?t?e===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}},{key:"_retrieveSeparatorPrecision",value:function(e){var t=e.match(new RegExp("^separator\\.([^d]*)"));return t?Number(t[1]):null}},{key:"_checkPrecision",value:function(e,t){return e.indexOf("2")>0?Number(t).toFixed(2):Number(t)}}])}(OE)).\u0275fac=function(e){return new(e||bE)(ut(Qu),ut(wE),ut(Ml),ut(Ol))},bE.\u0275prov=Se({token:bE,factory:bE.\u0275fac}),bE),DE=((yE=function(){return d((function e(t,n,i){c(this,e),this.document=t,this._maskService=n,this._config=i,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this._maskValue="",this._position=null,this.onChange=function(e){},this.onTouch=function(){}}),[{key:"ngOnChanges",value:function(e){var t=e.maskExpression,n=e.specialCharacters,i=e.patterns,o=e.prefix,a=e.suffix,r=e.thousandSeparator,s=e.decimalMarker,l=e.dropSpecialCharacters,c=e.hiddenInput,u=e.showMaskTyped,d=e.placeHolderCharacter,h=e.shownMaskExpression,f=e.showTemplate,m=e.clearIfNotMatch,p=e.validation,g=e.separatorLimit,v=e.allowNegativeNumbers;if(t&&(this._maskValue=e.maskExpression.currentValue||""),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=e.specialCharacters.currentValue||[]}i&&i.currentValue&&(this._maskService.maskAvailablePatterns=i.currentValue),o&&(this._maskService.prefix=o.currentValue),a&&(this._maskService.suffix=a.currentValue),r&&(this._maskService.thousandSeparator=r.currentValue),s&&(this._maskService.decimalMarker=s.currentValue),l&&(this._maskService.dropSpecialCharacters=l.currentValue),c&&(this._maskService.hiddenInput=c.currentValue),u&&(this._maskService.showMaskTyped=u.currentValue),d&&(this._maskService.placeHolderCharacter=d.currentValue),h&&(this._maskService.shownMaskExpression=h.currentValue),f&&(this._maskService.showTemplate=f.currentValue),m&&(this._maskService.clearIfNotMatch=m.currentValue),p&&(this._maskService.validation=p.currentValue),g&&(this._maskService.separatorLimit=g.currentValue),v&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter((function(e){return"-"!==e}))),this._applyMask()}},{key:"validate",value:function(e){var t=this,n=e.value;if(!this._maskService.validation)return null;if(this._maskService.ipError)return this._createValidationError(n);if(this._maskValue.startsWith("separator"))return null;if(TE.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(PE.includes(this._maskValue))return this._validateTime(n);if(n&&n.toString().length>=1){var i,o=0,a=function(e){if(t._maskService.maskAvailablePatterns[e].optional&&!0===t._maskService.maskAvailablePatterns[e].optional){if(t._maskValue.indexOf(e)!==t._maskValue.lastIndexOf(e)?o+=t._maskValue.split("").filter((function(t){return t===e})).join("").length:-1!==t._maskValue.indexOf(e)&&o++,-1!==t._maskValue.indexOf(e)&&n.toString().length>=t._maskValue.indexOf(e))return{v:null};if(o===t._maskValue.length)return{v:null}}};for(var r in this._maskService.maskAvailablePatterns)if(i=a(r))return i.v;if(1===this._maskValue.indexOf("{")&&n.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&n.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&n.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(n);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){var s=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-o:this._maskValue.length-o;if(n.toString().length<s)return this._createValidationError(n)}}return null}},{key:"onInput",value:function(e){var t=e.target;if(this._inputValue=t.value,this._maskValue){var n=1===t.selectionStart?t.selectionStart+this._maskService.prefix.length:t.selectionStart,i=0,o=!1;if(this._maskService.applyValueChanges(n,(function(e,t){i=e,o=t})),this.document.activeElement===t){this._position=1===this._position&&1===this._inputValue.length?null:this._position;var a=this._position?this._inputValue.length+n+i:n+("Backspace"!==this._code||o?i:0);a>this._getActualInputLength()&&(a=this._getActualInputLength()),t.setSelectionRange(a,a),(this.maskExpression.includes("H")||this.maskExpression.includes("M"))&&0===i&&t.setSelectionRange(t.selectionStart+1,t.selectionStart+1),this._position=null}}else this.onChange(t.value)}},{key:"onBlur",value:function(){this._maskService.clearIfNotMatchFn(),this.onTouch()}},{key:"onFocus",value:function(e){var t=e.target;null!==t&&null!==t.selectionStart&&t.selectionStart===t.selectionEnd&&t.selectionStart>this._maskService.prefix.length&&38!==e.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),t.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===t.value?(t.focus(),t.setSelectionRange(0,0)):t.selectionStart>this._maskService.actualValue.length&&t.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));var n=t.value&&t.value!==this._maskService.prefix?t.value:this._maskService.prefix+this._maskService.maskIsShown;t.value!==n&&(t.value=n),(t.selectionStart||t.selectionEnd)<=this._maskService.prefix.length?t.selectionStart=this._maskService.prefix.length:t.selectionEnd>this._getActualInputLength()&&(t.selectionEnd=this._getActualInputLength())}},{key:"onKeyDown",value:function(e){this._code=e.code?e.code:e.key;var t=e.target;if(this._inputValue=t.value,38===e.keyCode&&e.preventDefault(),37===e.keyCode||8===e.keyCode||46===e.keyCode){if(8===e.keyCode&&0===t.value.length&&(t.selectionStart=t.selectionEnd),8===e.keyCode&&0!==t.selectionStart)if(this.specialCharacters=this.specialCharacters||this._config.specialCharacters,this.prefix.length>1&&t.selectionStart<=this.prefix.length)t.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==t.selectionStart&&1!==t.selectionStart)for(;this.specialCharacters.includes(this._inputValue[t.selectionStart-1].toString())&&(this.prefix.length>=1&&t.selectionStart>this.prefix.length||0===this.prefix.length);)t.setSelectionRange(t.selectionStart-1,t.selectionStart-1);this.suffixCheckOnPressDelete(e.keyCode,t)}this.suffixCheckOnPressDelete(e.keyCode,t),this._maskService.prefix.length&&t.selectionStart<=this._maskService.prefix.length&&t.selectionEnd<=this._maskService.prefix.length&&e.preventDefault();var n=t.selectionStart;8!==e.keyCode||t.readOnly||0!==n||t.selectionEnd!==t.value.length||0===t.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<t.selectionStart?t.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===e.keyCode&&!0===e.ctrlKey||65===e.keyCode&&!0===e.metaKey)&&(t.setSelectionRange(0,this._getActualInputLength()),e.preventDefault()),this._maskService.selStart=t.selectionStart,this._maskService.selEnd=t.selectionEnd}},{key:"writeValue",value:function(e){return ek(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:void 0===e&&(e=""),"number"==typeof e&&(e=String(e),e="."!==this.decimalMarker?e.replace(".",this.decimalMarker):e,this._maskService.isNumberValue=!0),this._maskService.formElementProperty=e&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?["value",this._maskService.applyMask(e,this._maskService.maskExpression)]:["value",e],this._inputValue=e;case 1:case"end":return t.stop()}}),t,this)})))}},{key:"registerOnChange",value:function(e){this.onChange=e,this._maskService.onChange=this.onChange}},{key:"registerOnTouched",value:function(e){this.onTouch=e}},{key:"suffixCheckOnPressDelete",value:function(e,t){46===e&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=t.selectionStart&&t.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===e&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<t.selectionStart&&t.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===t.selectionStart&&t.setSelectionRange(t.selectionStart-1,t.selectionStart-1))}},{key:"setDisabledState",value:function(e){this._maskService.formElementProperty=["disabled",e]}},{key:"onModelChange",value:function(e){e||(this._maskService.actualValue="")}},{key:"_repeatPatternSymbols",value:function(e){var t=this;return e.match(/{[0-9]+}/)&&e.split("").reduce((function(n,i,o){if(t._start="{"===i?o:t._start,"}"!==i)return t._maskService._findSpecialChar(i)?n+i:n;t._end=o;var a=Number(e.slice(t._start+1,t._end));return n+new Array(a+1).join(e[t._start-1])}),"")||e}},{key:"_applyMask",value:function(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}},{key:"_validateTime",value:function(e){var t=this._maskValue.split("").filter((function(e){return":"!==e})).length;return null===e||0===e.length?null:0==+e[e.length-1]&&e.length<t||e.length<=t-2?this._createValidationError(e):null}},{key:"_getActualInputLength",value:function(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}},{key:"_createValidationError",value:function(e){return{mask:{requiredMask:this._maskValue,actualValue:e}}}}])}()).\u0275fac=function(e){return new(e||yE)($r(Qu),$r(LE),$r(wE))},yE.\u0275dir=Et({type:yE,selectors:[["","mask",""]],hostBindings:function(e,t){1&e&&ls("input",(function(e){return t.onInput(e)}))("blur",(function(){return t.onBlur()}))("click",(function(e){return t.onFocus(e)}))("keydown",(function(e){return t.onKeyDown(e)}))("ngModelChange",(function(e){return t.onModelChange(e)}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers"},features:[kl([{provide:Pf,useExisting:je((function(){return yE})),multi:!0},{provide:qf,useExisting:je((function(){return yE})),multi:!0},LE]),dl]}),yE),IE=((vE=function(){return d((function e(t){c(this,e),this._maskService=t}),[{key:"transform",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e||"number"==typeof e?(n&&(this._maskService.thousandSeparator=n),"string"==typeof t?this._maskService.applyMask(""+e,t):this._maskService.applyMaskWithPattern(""+e,t)):""}}])}()).\u0275fac=function(e){return new(e||vE)($r(OE))},vE.\u0275pipe=Bt({name:"mask",type:vE,pure:!0}),vE),FE=((gE=function(){function e(){c(this,e)}return d(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[{provide:xE,useValue:t},{provide:ME,useValue:SE},{provide:wE,useFactory:AE,deps:[ME,xE]},OE]}}},{key:"forChild",value:function(t){return{ngModule:e}}}])}()).\u0275mod=Ft({type:gE}),gE.\u0275inj=Pe({factory:function(e){return new(e||gE)}}),gE);function AE(e,t){return Object.assign({},e,t instanceof Function?t():t)}function EE(e,t){1&e&&(es(0,"div",18),es(1,"div",19),es(2,"div",20),es(3,"span",21),Gs(4,"Carregando.."),ts(),ts(),ts(),ts())}function BE(e,t){if(1&e){var n=as();es(0,"a",34),ls("click",(function(){return mn(n),fs(2).showModalCollaborator()})),Gs(1,"Visualizar funcion\xe1rios"),ts()}}function NE(e,t){if(1&e&&(es(0,"span",36),Gs(1),ts()),2&e){var n=fs(3);Bo(1),Qs("CID: ",n.absenceData.absenceCid+".","")}}function RE(e,t){if(1&e&&(es(0,"div",20),Jr(1,NE,2,1,"span",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",""!==n.absenceData.absenceCid)}}function jE(e,t){if(1&e&&(es(0,"span",21),Gs(1),ts()),2&e){var n=fs(2);Bo(1),$s(n.absenceData.begin_date.split(" ")[0].split("-").reverse().join("/"))}}function zE(e,t){if(1&e&&(es(0,"span",21),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs(" at\xe9 ",n.absenceData.end_date.split(" ")[0].split("-").reverse().join("/"),"")}}function VE(e,t){if(1&e&&(es(0,"span",21),Gs(1),ts()),2&e){var n=fs(3);Bo(1),$s(n.absenceData.reference_date.split(" ")[0].split("-").reverse().join("/"))}}function HE(e,t){if(1&e&&(es(0,"div",20),es(1,"span",21),Gs(2,"Data de Refer\xeancia: "),ts(),Jr(3,VE,2,1,"span",25),ts()),2&e){var n=fs(2);Bo(3),Zr("ngIf",null!=n.absenceData.reference_date)}}function YE(e,t){if(1&e&&(es(0,"span",21),Gs(1),_c(2,"mask"),ts()),2&e){var n=fs(2);Bo(1),$s(Cc(2,1,n.absenceData.begin_date.split(" ")[1],"00:00"))}}function qE(e,t){if(1&e&&(es(0,"span",21),Gs(1),_c(2,"mask"),ts()),2&e){var n=fs(2);Bo(1),Qs(" at\xe9 ",Cc(2,1,n.absenceData.end_date.split(" ")[1],"00:00"),"")}}function UE(e,t){1&e&&(es(0,"span",21),Gs(1,"Dia todo"),ts())}function WE(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(2).iconRegularService.faCheckCircle)}function JE(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(2).iconRegularService.faTimesCircle)}function GE(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(2).iconRegularService.faCheckCircle)}function $E(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(2).iconRegularService.faTimesCircle)}function QE(e,t){1&e&&(es(0,"span"),Gs(1,"Descontar horas"),ts())}function KE(e,t){if(1&e){var n=as();es(0,"label",41),es(1,"input",42),ls("click",(function(){return mn(n),fs(3).toggleCheckbox(1)})),ts(),ns(2,"span",43),Jr(3,QE,2,0,"span",40),ts()}if(2&e){var i=fs(3);Bo(1),Zr("checked",i.compTimeCheck),Bo(2),Zr("ngIf",1==i.openCheckBox)}}function ZE(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(3).iconRegularService.faCheckCircle)}function XE(e,t){1&e&&(es(0,"span"),Gs(1,"Descontar horas"),ts())}function eB(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(3).iconRegularService.faTimesCircle)}function tB(e,t){1&e&&(es(0,"span"),Gs(1,"Descontar horas"),ts())}function nB(e,t){if(1&e&&(es(0,"div",28),Jr(1,KE,4,2,"label",39),Jr(2,ZE,1,1,"fa-icon",29),Jr(3,XE,2,0,"span",40),Jr(4,eB,1,1,"fa-icon",30),Jr(5,tB,2,0,"span",40),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",1==n.openCheckBox),Bo(1),Zr("ngIf",1==n.absenceData.absence_type_comp_time&&0==n.absenceData.absence_type_paid_leave),Bo(1),Zr("ngIf",1==n.absenceData.absence_type_comp_time&&0==n.absenceData.absence_type_paid_leave),Bo(1),Zr("ngIf",0==n.absenceData.absence_type_comp_time&&1==n.absenceData.absence_type_paid_leave),Bo(1),Zr("ngIf",0==n.absenceData.absence_type_comp_time&&1==n.absenceData.absence_type_paid_leave)}}function iB(e,t){1&e&&(es(0,"span"),Gs(1,"Afastamento Remunerado"),ts())}function oB(e,t){if(1&e){var n=as();es(0,"label",41),es(1,"input",44),ls("click",(function(){return mn(n),fs(3).toggleCheckbox(2)})),ts(),ns(2,"span",43),Jr(3,iB,2,0,"span",40),ts()}if(2&e){var i=fs(3);Bo(1),Zr("checked",i.paidLeaveCheck)("disabled",0==i.absenceData.absence_type_paid_leave),Bo(2),Zr("ngIf",1==i.openCheckBox)}}function aB(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(3).iconRegularService.faCheckCircle)}function rB(e,t){1&e&&(es(0,"span"),Gs(1,"Afastamento Remunerado"),ts())}function sB(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(3).iconRegularService.faTimesCircle)}function lB(e,t){1&e&&(es(0,"span"),Gs(1,"Afastamento Remunerado"),ts())}function cB(e,t){if(1&e&&(es(0,"div",28),Jr(1,oB,4,3,"label",39),Jr(2,aB,1,1,"fa-icon",29),Jr(3,rB,2,0,"span",40),Jr(4,sB,1,1,"fa-icon",30),Jr(5,lB,2,0,"span",40),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",1==n.openCheckBox),Bo(1),Zr("ngIf",1==n.absenceData.absence_type_paid_leave&&0==n.absenceData.absence_type_comp_time),Bo(1),Zr("ngIf",1==n.absenceData.absence_type_paid_leave&&0==n.absenceData.absence_type_comp_time),Bo(1),Zr("ngIf",0==n.absenceData.absence_type_paid_leave&&1==n.absenceData.absence_type_comp_time),Bo(1),Zr("ngIf",0==n.absenceData.absence_type_paid_leave&&1==n.absenceData.absence_type_comp_time)}}function uB(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(3).iconRegularService.faCheckCircle)}function dB(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(3).iconRegularService.faTimesCircle)}function hB(e,t){if(1&e&&(es(0,"div",28),Jr(1,uB,1,1,"fa-icon",29),Jr(2,dB,1,1,"fa-icon",30),es(3,"span",21),Gs(4,"Descontar horas"),ts(),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",n.absenceData.comp_time),Bo(1),Zr("ngIf",!n.absenceData.comp_time)}}function fB(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(3).iconRegularService.faCheckCircle)}function mB(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(3).iconRegularService.faTimesCircle)}function pB(e,t){if(1&e&&(es(0,"div",28),Jr(1,fB,1,1,"fa-icon",29),Jr(2,mB,1,1,"fa-icon",30),es(3,"span",21),Gs(4,"Afastamento Remunerado"),ts(),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",n.absenceData.paid_leave),Bo(1),Zr("ngIf",!n.absenceData.paid_leave)}}function gB(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(2).iconRegularService.faCheckCircle)}function vB(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(2).iconRegularService.faTimesCircle)}function yB(e,t){1&e&&ns(0,"fa-icon",37),2&e&&Zr("icon",fs(2).iconRegularService.faCheckCircle)}function bB(e,t){1&e&&ns(0,"fa-icon",38),2&e&&Zr("icon",fs(2).iconRegularService.faTimesCircle)}function _B(e,t){if(1&e&&(es(0,"div",22),es(1,"div",19),es(2,"div",20),es(3,"span",21),Gs(4),ts(),Jr(5,BE,2,0,"a",23),ts(),es(6,"div",20),es(7,"span",21),Gs(8,"Tipo de Aus\xeancia: "),ts(),es(9,"span",21),Gs(10),ts(),ts(),Jr(11,RE,2,1,"div",24),es(12,"div",20),es(13,"span",21),Gs(14,"Data: "),ts(),Jr(15,jE,2,1,"span",25),Jr(16,zE,2,1,"span",25),ts(),Jr(17,HE,4,1,"div",24),es(18,"div",20),es(19,"span",21),Gs(20,"Hor\xe1rio: "),ts(),Jr(21,YE,3,4,"span",25),Jr(22,qE,3,4,"span",25),Jr(23,UE,2,0,"span",25),ts(),ts(),es(24,"div",26),es(25,"div",27),es(26,"div",28),Jr(27,WE,1,1,"fa-icon",29),Jr(28,JE,1,1,"fa-icon",30),es(29,"span",21),Gs(30,"Um dia"),ts(),ts(),es(31,"div",28),Jr(32,GE,1,1,"fa-icon",29),Jr(33,$E,1,1,"fa-icon",30),es(34,"span",21),Gs(35,"V\xe1rios dias"),ts(),ts(),Jr(36,nB,6,5,"div",31),Jr(37,cB,6,5,"div",31),Jr(38,hB,5,2,"div",31),Jr(39,pB,5,2,"div",31),es(40,"div",32),Gs(41,"Adicionar \xe0s horas trabalhadas:"),ts(),es(42,"div",33),Jr(43,gB,1,1,"fa-icon",29),Jr(44,vB,1,1,"fa-icon",30),es(45,"span",21),Gs(46,"Limitado a jornada"),ts(),ts(),es(47,"div",33),Jr(48,yB,1,1,"fa-icon",29),Jr(49,bB,1,1,"fa-icon",30),es(50,"span",21),Gs(51,"Total"),ts(),ts(),ts(),ts(),ts()),2&e){var n=fs();Bo(4),Ks("Funcion\xe1rio",1!=n.collaboratorList.length?"s":""," : ",n.collaboratorListText,""),Bo(1),Zr("ngIf",n.collaboratorList.length>1),Bo(5),Qs("",n.absenceData.absence_type_description," "),Bo(1),Zr("ngIf",3==n.absenceData.absence_type_id),Bo(4),Zr("ngIf",n.absenceData.begin_date),Bo(1),Zr("ngIf",n.multiDays&&n.absenceData.end_date),Bo(1),Zr("ngIf",1==n.absenceData.absence_type_id),Bo(4),Zr("ngIf",!n.fullDay&&n.absenceData.begin_date),Bo(1),Zr("ngIf",!n.fullDay&&n.absenceData.end_date),Bo(1),Zr("ngIf",n.fullDay),Bo(4),Zr("ngIf",!n.multiDays),Bo(1),Zr("ngIf",n.multiDays),Bo(4),Zr("ngIf",n.multiDays),Bo(1),Zr("ngIf",!n.multiDays),Bo(3),Zr("ngIf",1==n.notificationScreen),Bo(1),Zr("ngIf",1==n.notificationScreen),Bo(1),Zr("ngIf",0==n.notificationScreen),Bo(1),Zr("ngIf",0==n.notificationScreen),Bo(4),Zr("ngIf",n.absenceData.sum_on_work_time),Bo(1),Zr("ngIf",!n.absenceData.sum_on_work_time),Bo(4),Zr("ngIf",n.absenceData.sum_total_on_work_time),Bo(1),Zr("ngIf",!n.absenceData.sum_total_on_work_time)}}function kB(e,t){if(1&e&&(es(0,"p",46),Gs(1),ts()),2&e){var n=fs(2);Bo(1),$s(n.absenceData.details)}}function CB(e,t){1&e&&(es(0,"p",46),Gs(1,"N\xe3o foram adicionados detalhes."),ts())}function wB(e,t){if(1&e&&(es(0,"div",45),es(1,"span",46),Gs(2,"Detalhes:"),ts(),es(3,"div",47),Jr(4,kB,2,1,"p",48),Jr(5,CB,2,0,"p",48),ts(),ts()),2&e){var n=fs();Bo(4),Zr("ngIf",n.absenceData.details),Bo(1),Zr("ngIf",!n.absenceData.details)}}function xB(e,t){1&e&&ns(0,"fa-icon",60),2&e&&Zr("icon",fs(3).iconRegularService.faEye)}function MB(e,t){if(1&e){var n=as();es(0,"div",54),es(1,"span",55),Gs(2),ts(),es(3,"span",56),es(4,"a",57),Jr(5,xB,1,1,"fa-icon",58),ts(),es(6,"fa-icon",59),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2).downloadAttachment(e.attachment)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2);Bo(2),Qs(" ",i.attachment," "),Bo(2),Zr("href",o.currentDatabase+"/storage/company_"+o.companyId+"/absence/absence_"+o.absenceId+"/"+i.attachment,mo),Bo(1),Zr("ngIf",i.isVisible),Bo(1),Zr("icon",o.iconSolidService.faDownload)}}function SB(e,t){if(1&e){var n=as();es(0,"div",49),es(1,"div",50),es(2,"h3",51),Gs(3,"Anexos"),ts(),es(4,"fa-icon",52),ls("click",(function(){return mn(n),fs().downloadAttachmentZip()})),ts(),ts(),Jr(5,MB,7,4,"div",53),ts()}if(2&e){var i=fs();Bo(4),Zr("icon",i.iconSolidService.faDownload),Bo(1),Zr("ngForOf",i.absenceAttachmentList)}}function PB(e,t){if(1&e&&(es(0,"h4",62),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Zs("Editado em: ",n.getDateBr(n.absenceData.updated_at)," \xe0s ",n.getHour(n.absenceData.updated_at)," ",n.absenceData.updatedByName,"")}}function TB(e,t){if(1&e&&(es(0,"div",61),es(1,"h4",62),Gs(2),ts(),Jr(3,PB,2,3,"h4",63),ts()),2&e){var n=fs();Bo(2),Zs("Adicionado em: ",n.getDateBr(n.absenceData.created_at)," \xe0s ",n.getHour(n.absenceData.created_at)," ",n.absenceData.createdByName||"solicitado pelo funcion\xe1rio",""),Bo(1),Zr("ngIf",n.absenceData.created_at!=n.absenceData.updated_at)}}function OB(e,t){if(1&e){var n=as();es(0,"div",64),es(1,"io-btn",65),ls("btnClick",(function(){return mn(n),fs().setAbsenceApproveReprove(!1)})),ts(),es(2,"io-btn",66),ls("btnClick",(function(){return mn(n),fs().setAbsenceApproveReprove(!0)})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","absence")("action","update")("btnColor","btn-red-bg")("btnText","Recusar"),Bo(1),Zr("moduleName","absence")("action","update")("btnColor","btn-blue-bg")("btnText","Aceitar"))}function LB(e,t){if(1&e&&(es(0,"li",67),es(1,"span",68),Gs(2),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.name)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;var DB,IB=((DB=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.absenceDatabase=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.router=l,this.showModal=!0,this.absenceId=null,this.isRequested=!1,this.notificationScreen=!1,this.hideModal=new Mc,this.updateList=new Mc,this.absenceAceppted=new Mc,this.absenceAttachmentList=[],this.filterTypeDiscountSelected="",this.absenceData={loading:!0},this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.collaboratorList=[],this.collaboratorListText="",this.currentDatabase=this.databaseService.currentDatabaseUrl(),this.fullDay=!1,this.hasAttachment=0,this.modalCollaborator=!1,this.multiDays=!0,this.showEnable=!1,this.compTimeCheck=!1,this.paidLeaveCheck=!1,this.openCheckBox=!1,this.checkSelect=0}),[{key:"ngOnChanges",value:function(){null!=this.absenceId?this.loadAbsence():(this.showEnable=!1,this.modalCollaborator=!1,this.showEnable=!0,this.fullDay=!1,this.hasAttachment=0,this.absenceData={loading:!0})}},{key:"loadAbsence",value:function(){var e=this;this.absenceDatabase.getAbsence(this.companyId,this.absenceId,(function(t){if(!t.error){if(!e.showModal)return;e.absenceData=t.data.absence,e.collaboratorList=e.absenceData.collaborators,e.absenceData.begin_date.split(" ")[0]==e.absenceData.end_date.split(" ")[0]&&(e.multiDays=!1),"00:00:00"==e.absenceData.begin_date.split(" ")[1]&&"23:59:00"==e.absenceData.end_date.split(" ")[1]&&(e.fullDay=!0),e.isRequested=1==e.absenceData.requested,e.hasAttachment=e.absenceData.amount_files,0==e.collaboratorList.length&&(e.collaboratorListText="Todos"),1==e.collaboratorList.length&&(e.collaboratorListText=e.collaboratorList[0].name),e.collaboratorList.length>1&&(e.collaboratorListText="M\xfaltiplos"),1==e.absenceData.comp_time&&0==e.absenceData.paid_leave&&(e.absenceData.comp_time=1,e.absenceData.paid_leave=0),0==e.absenceData.comp_time&&1==e.absenceData.paid_leave&&(e.absenceData.comp_time=0,e.absenceData.paid_leave=1),1==e.absenceData.comp_time&&1==e.absenceData.paid_leave&&e.toggleCheckbox(2),e.openCheckBox=1==e.absenceData.absence_type_comp_time&&1==e.absenceData.absence_type_paid_leave,e.absenceAttachmentList=e.absenceData.absence_attachments,e.absenceAttachmentList.forEach((function(t,n){var i=t.attachment.split(".")[t.attachment.split(".").length-1],o=["jpg","png","txt"].includes(i);e.absenceAttachmentList[n]=Object.assign(Object.assign({},e.absenceAttachmentList[n]),{isVisible:o})}))}}))}},{key:"downloadAttachment",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[t.split(".").length-1];this.absenceDatabase.getAbsenceAttachment({absence_id:this.absenceId,attachment:t},(function(i){i.error||e.functionsService.downloadFile(i.data,n,t.split("."+n)[0])}))}},{key:"downloadAttachmentZip",value:function(){var e=this;this.absenceDatabase.getFileZip(this.companyId,[],"absence",this.absenceId,(function(t){t.error||e.functionsService.downloadFile(t.data,"zip","anexos")}))}},{key:"setAbsenceApproveReprove",value:function(e){var t=this;if(e){var n=[];this.absenceData.collaborators.forEach((function(e){n.push(e.collaborator_id)})),this.absenceData.requested=0,this.absenceData.is_approved=1,this.absenceData.is_read=1,this.absenceData.filterTypeDiscountSelected=this.filterTypeDiscountSelected;var i=Object.assign(Object.assign({},this.absenceData),{collaborator_id:JSON.stringify(n)});this.absenceDatabase.putAbsence(this.absenceId,i,(function(e){e.error||(t.absenceAceppted.emit(!0),t.closeModal())}))}else this.absenceDatabase.deleteAbsence([this.absenceId],(function(e){e.error||(t.absenceAceppted.emit(!1),t.closeModal())}))}},{key:"showModalCollaborator",value:function(){this.modalCollaborator=!0}},{key:"hideModalCollaborator",value:function(){this.modalCollaborator=!1}},{key:"getDateBr",value:function(e){return e?e.split(" ")[0].split("-").reverse().join("/"):""}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}},{key:"closeModal",value:function(){this.showEnable=!1,this.modalCollaborator=!1,this.showEnable=!0,this.fullDay=!1,this.hasAttachment=0,this.absenceData={loading:!0},this.hideModal.emit(!1)}},{key:"toggleCheckbox",value:function(e){1===e?1===this.checkSelect?(this.checkSelect=2,this.compTimeCheck=!1,this.paidLeaveCheck=!0,this.filterTypeDiscountSelected="paidLeave"):(this.compTimeCheck=!0,this.paidLeaveCheck=!1,this.filterTypeDiscountSelected="compTime",this.checkSelect=e):2===e&&(2===this.checkSelect?(this.checkSelect=1,this.compTimeCheck=!0,this.paidLeaveCheck=!1,this.filterTypeDiscountSelected="compTime"):(this.compTimeCheck=!1,this.paidLeaveCheck=!0,this.filterTypeDiscountSelected="paidLeave",this.checkSelect=e)),!1===this.compTimeCheck&&(this.absenceData.paid_leave=1,this.absenceData.comp_time=0),!1===this.paidLeaveCheck&&(this.absenceData.paid_leave=0,this.absenceData.comp_time=1)}}])}()).\u0275fac=function(e){return new(e||DB)($r(wp),$r(aT),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r(yM))},DB.\u0275cmp=Ot({type:DB,selectors:[["io-absence-modal-view"]],inputs:{showModal:"showModal",absenceId:"absenceId",isRequested:"isRequested",notificationScreen:"notificationScreen"},outputs:{hideModal:"hideModal",updateList:"updateList",absenceAceppted:"absenceAceppted"},features:[dl],decls:21,vars:14,consts:[[3,"showModal","hideModal"],[1,"modalBody","relativePlace"],[1,"flex","mrgB2"],[1,"sizeA","cl-blue","fontUp","fontBold"],["class","absenceTop flex",4,"ngIf"],["class","absenceTop flex top",4,"ngIf"],["class","absenceBottom",4,"ngIf"],["class","attachmentList",4,"ngIf"],["class","flex Desk",4,"ngIf"],["class","flex mrgT2 pdgT2",4,"ngIf"],[1,"modalBody"],[1,"flex","start"],[1,"sizeB"],[1,"relativePlace"],[1,"listBox"],["class","flex start spcDesk bg-white",4,"ngFor","ngForOf"],[1,"flex","center"],[3,"moduleName","btnColor","btnText","useValidation","btnClick"],[1,"absenceTop","flex"],[1,"absenceLeft"],[1,"leftLine"],[1,"sizeC"],[1,"absenceTop","flex","top"],["class","flex fontBold cl-bluesizeC clickPlace",3,"click",4,"ngIf"],["class","leftLine",4,"ngIf"],["class","sizeC",4,"ngIf"],[1,"absenceRight"],[1,"optionBox"],[1,"optionLine"],["size","1x","class","cl-blue",3,"icon",4,"ngIf"],["size","1x","class","cl-red",3,"icon",4,"ngIf"],["class","optionLine",4,"ngIf"],[1,"optionLine","pdgT0","fontBold"],[1,"optionLine","pdgT0"],[1,"flex","fontBold","cl-bluesizeC","clickPlace",3,"click"],["class","sizeC wrap",4,"ngIf"],[1,"sizeC","wrap"],["size","1x",1,"cl-blue",3,"icon"],["size","1x",1,"cl-red",3,"icon"],["class","item radioBox sizeC",4,"ngIf"],[4,"ngIf"],[1,"item","radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","click"],[1,"checkmark"],["type","checkbox",1,"radioBoxInput",3,"checked","disabled","click"],[1,"absenceBottom"],[1,"flexsizeC","pdgB1","mrgT2"],[1,"absenceDetailBox"],["class","flexsizeC pdgB1 mrgT2",4,"ngIf"],[1,"attachmentList"],[1,"flex","borderBottom","mrgB1"],[1,"sizeC","fontBold"],["size","3x","title","Baixar todos os anexos",1,"iconItem","iconSizeG","cl-blue","clickPlace",3,"icon","click"],["class","flex attachmentItem ",4,"ngFor","ngForOf"],[1,"flex","attachmentItem"],[1,"sizeC","cl-blue"],[1,"flexDesk","end"],["target","_blank",1,"linkFlex","clickPlace","mrgR1",3,"href"],["size","3x","class","iconItem iconSizeG cl-blue",3,"icon",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-blue","clickPlace",3,"icon","click"],["size","3x",1,"iconItem","iconSizeG","cl-blue",3,"icon"],[1,"flex","Desk"],[1,"sizeD","pdgT1"],["class","sizeD pdgT1",4,"ngIf"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"],[1,"flex","start","spcDesk","bg-white"],[1,"mrgR1sizeC"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4),ts(),ts(),Jr(5,EE,5,0,"div",4),Jr(6,_B,52,23,"div",5),Jr(7,wB,6,2,"div",6),Jr(8,SB,6,2,"div",7),Jr(9,TB,4,4,"div",8),Jr(10,OB,3,8,"div",9),ts(),ts(),es(11,"io-modal-default",0),ls("hideModal",(function(){return t.hideModalCollaborator()})),es(12,"div",10),es(13,"div",11),es(14,"h2",12),Gs(15,"Funcion\xe1rios vinculados \xe0 essa aus\xeancia:"),ts(),ts(),es(16,"div",13),es(17,"ul",14),Jr(18,LB,3,1,"li",15),ts(),ts(),ts(),es(19,"div",16),es(20,"io-btn",17),ls("btnClick",(function(){return t.hideModalCollaborator()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(4),Qs("",t.isRequested?"Solicita\xe7\xe3o":"Visualiza\xe7\xe3o"," de aus\xeancia"),Bo(1),Zr("ngIf",t.absenceData.loading),Bo(1),Zr("ngIf",!t.absenceData.loading),Bo(1),Zr("ngIf",!t.absenceData.loading),Bo(1),Zr("ngIf",t.absenceAttachmentList.length>0),Bo(1),Zr("ngIf",!t.absenceData.loading),Bo(1),Zr("ngIf",!t.absenceData.loading&&t.isRequested),Bo(1),Zr("showModal",t.modalCollaborator),Bo(7),Zr("ngForOf",t.absenceData.collaborators),Bo(2),Zr("moduleName","absence")("btnColor","")("btnText","Fechar")("useValidation",!1))},directives:[CE,sh,ah,jD,FD],pipes:[IE],styles:[".absenceTop[_ngcontent-%COMP%]{margin:60px 0 20px}.absenceTop[_ngcontent-%COMP%]   .absenceLeft[_ngcontent-%COMP%]{width:100%;max-width:60%;padding:10px 0 0}.absenceTop[_ngcontent-%COMP%]   .absenceLeft[_ngcontent-%COMP%]   .leftLine[_ngcontent-%COMP%]{margin:0 0 20px}.absenceTop[_ngcontent-%COMP%]   .absenceRight[_ngcontent-%COMP%]{width:100%;max-width:220px}.absenceTop[_ngcontent-%COMP%]   .absenceRight[_ngcontent-%COMP%]   .optionBox[_ngcontent-%COMP%]{border:1px solid var(--cl-gray-light);border-radius:4px}.absenceTop[_ngcontent-%COMP%]   .absenceRight[_ngcontent-%COMP%]   .optionBox[_ngcontent-%COMP%]   .optionLine[_ngcontent-%COMP%]{display:block;padding:10px;margin:0 0 10px}.absenceTop[_ngcontent-%COMP%]   .absenceRight[_ngcontent-%COMP%]   .optionBox[_ngcontent-%COMP%]   .optionLine[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-left:5px}.absenceBottom[_ngcontent-%COMP%]{margin:0}.absenceBottom[_ngcontent-%COMP%]   .absenceDetailBox[_ngcontent-%COMP%]{padding:10px;border:1px solid var(--cl-gray);border-radius:4px}.listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}.attachmentList[_ngcontent-%COMP%]{max-width:100%;margin:10px 0 0}.attachmentList[_ngcontent-%COMP%]   .attachmentItem[_ngcontent-%COMP%]{margin:0 0 10px}.absenceTop[_ngcontent-%COMP%]   .absenceRight[_ngcontent-%COMP%]   .optionBox[_ngcontent-%COMP%]   .optionLine.pdgT0[_ngcontent-%COMP%]{padding-top:0}@media (max-width:470px){.absenceTop[_ngcontent-%COMP%]{display:block}.absenceTop[_ngcontent-%COMP%]   .absenceLeft[_ngcontent-%COMP%]{width:100%;max-width:100%}.absenceTop[_ngcontent-%COMP%]   .absenceRight[_ngcontent-%COMP%]{width:100%;max-width:220px}}"]}),DB);function FB(e,t){if(1&e){var n=as();es(0,"span"),es(1,"fa-icon",2),ls("click",(function(){return mn(n),fs().handleClick()})),ts(),ts()}if(2&e){var i=fs();Xs("iconBox round2 ",i.iconBoxColor,""),Bo(1),tl("iconItem ",i.iconSize," ",i.iconColor," ",i.iconClassList," clickPlace"),Zr("icon",i.iconSelected[i.action])("title",i.iconTitle)}}function AB(e,t){if(1&e){var n=as();es(0,"fa-icon",2),ls("click",(function(){return mn(n),fs().handleClick()})),ts()}if(2&e){var i=fs();tl("iconItem round2 ",i.iconSize," ",i.iconColor," ",i.iconClassList," clickPlace"),Zr("icon",i.iconSelected[i.action])("title",i.iconTitle)}}var EB,BB=((EB=function(){return d((function e(t,n,i,o){c(this,e),this.router=t,this.iconRegularService=n,this.iconSolidService=i,this.permissionService=o,this.moduleId="",this.useValidation=!0,this.iconBox=!1,this.iconBoxColor="bg-blue",this.iconClassList="",this.iconColor="cl-gray-dark",this.iconSize="iconSizeG",this.iconTitle="",this.urlNavigation="",this.urlStateData={},this.iconClick=new Mc,this.iconAllowed=!1,this.iconSelected={show:this.iconRegularService.faEye,create:"",update:this.iconRegularService.faEdit,delete:this.iconSolidService.faTrashAlt,reactive:this.iconSolidService.faHistory,approve:this.iconSolidService.faCheck,reprove:this.iconSolidService.faTimes,change:this.iconSolidService.faExchangeAlt,updatePayment:this.iconSolidService.faCalculator,faceRecognition:this.iconSolidService.faPortrait,copy:this.iconRegularService.faCopy,showCollaboratorLinked:this.iconSolidService.faUser,info:this.iconSolidService.faInfo,download:this.iconSolidService.faDownload},this.actionEquivalent={show:"show",create:"create",update:"update",delete:"delete",reactive:"update",approve:"update",reprove:"update",change:"update",updatePayment:"update",faceRecognition:"update",copy:"show",showCollaboratorLinked:"show",info:"show",download:"show"}}),[{key:"ngOnInit",value:function(){this.useValidation&&(this.iconAllowed=this.permissionService.canAccess(this.moduleName,this.actionEquivalent[this.action],this.moduleId))}},{key:"handleClick",value:function(){""!=this.urlNavigation?this.navigateToUrl():this.emmitIconClick()}},{key:"emmitIconClick",value:function(){this.iconClick.emit()}},{key:"navigateToUrl",value:function(){this.router.navigate(["/"+this.urlNavigation],{state:this.urlStateData}).then((function(){}))}}])}()).\u0275fac=function(e){return new(e||EB)($r(yM),$r(WO),$r(JO),$r(iT))},EB.\u0275cmp=Ot({type:EB,selectors:[["io-icon"]],inputs:{moduleName:"moduleName",action:"action",moduleId:"moduleId",useValidation:"useValidation",iconBox:"iconBox",iconBoxColor:"iconBoxColor",iconClassList:"iconClassList",iconColor:"iconColor",iconSize:"iconSize",iconTitle:"iconTitle",urlNavigation:"urlNavigation",urlStateData:"urlStateData"},outputs:{iconClick:"iconClick"},decls:2,vars:2,consts:[[3,"class",4,"ngIf"],["size","3x",3,"icon","class","title","click",4,"ngIf"],["size","3x",3,"icon","title","click"]],template:function(e,t){1&e&&(Jr(0,FB,2,10,"span",0),Jr(1,AB,1,7,"fa-icon",1)),2&e&&(Zr("ngIf",t.iconBox&&(t.iconAllowed||!t.useValidation)),Bo(1),Zr("ngIf",!t.iconBox&&(t.iconAllowed||!t.useValidation)))},directives:[sh,FD],styles:[""]}),X_([fL()],EB.prototype,"moduleName",void 0),X_([fL()],EB.prototype,"action",void 0),EB);function NB(e,t){if(1&e){var n=as();es(0,"io-icon",18),ls("iconClick",(function(){return mn(n),fs(2).decreaseDuplicateCount()})),ts()}2&e&&Zr("moduleName","absence")("action","delete")("iconTitle","Visualizar aus\xeancia")("useValidation",!1)}function RB(e,t){if(1&e){var n=as();es(0,"div",14),es(1,"io-datepicker",15),ls("dateSelectedEN",(function(e){mn(n);var i=t.$implicit;return fs().setDate(e,i)})),ts(),es(2,"div",16),Jr(3,NB,1,4,"io-icon",17),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("labelText","*Data da aus\xeancia")("collaboratorListId",i.collaboratorIdList)("validMinDateClosure",!0),Bo(2),Zr("ngIf",i.duplicateCount>1)}}function jB(e,t){if(1&e){var n=as();es(0,"div",19),ls("click",(function(){return mn(n),fs().increaseDuplicateCount()})),ns(1,"fa-icon",20),es(2,"span",21),Gs(3,"Dia"),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconRegularService.faTimesCircle)}}var zB,VB=((zB=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.functionsService=n,this.absenceDatabase=i,this.iconRegularService=o,this.showModal=!1,this.absenceId=null,this.absenceData=null,this.hideModal=new Mc,this.absenceCreated=new Mc,this.collaboratorIdList=[],this.duplicateCount=1,this.dateForm=this.formBuilder.group({description:new Wm("",[Jf.required]),date_0:new Wm("",[Jf.required]),date_1:new Wm("",[Jf.required]),date_2:new Wm("",[Jf.required]),date_3:new Wm("",[Jf.required]),date_4:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){this.dateForm.controls.description.setValue("")}},{key:"arrayForRepeat",value:function(){return Array.from(Array(this.duplicateCount).keys())}},{key:"increaseDuplicateCount",value:function(){this.duplicateCount++}},{key:"decreaseDuplicateCount",value:function(){this.duplicateCount--}},{key:"setDate",value:function(e,t){this.dateForm.get("date_"+t.toString()).setValue(e)}},{key:"validDateSelected",value:function(){var e=this,t=[],n=!1;return this.arrayForRepeat().forEach((function(i){t.includes(e.dateForm.get("date_"+i.toString()).value)?n=!0:t.push(e.dateForm.get("date_"+i.toString()).value)})),n?(this.functionsService.openSnackBar("Os dias n\xe3o podem ter datas repetidas. Favor, verificar."),!1):0!=t.length||(this.functionsService.openSnackBar("Selecione uma data para a nova aus\xeancia"),!1)}},{key:"sendAbsence",value:function(){var e=this;if(this.validDateSelected()){var t=[];this.arrayForRepeat().forEach((function(n){var i=e.dateForm.get("date_"+n.toString()).value;i&&""!=i&&t.push(i)})),this.postAbsence({dateList:JSON.stringify(t),description:this.dateForm.get("description").value})}}},{key:"postAbsence",value:function(e){var t=this;this.absenceDatabase.putAbsenceDuplicate(this.absenceId,e,(function(e){e.error||(t.absenceCreated.emit(),t.closeModal())}))}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||zB)($r(wp),$r(zP),$r(aT),$r(WO))},zB.\u0275cmp=Ot({type:zB,selectors:[["io-absence-modal-duplicate"]],inputs:{showModal:"showModal",absenceId:"absenceId",absenceData:"absenceData"},outputs:{hideModal:"hideModal",absenceCreated:"absenceCreated"},features:[dl],decls:19,vars:15,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeA","cl-blue","fontBold","fontUp","mrgB2"],[1,"pdgB2","mrgB2"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","required","","type","text",3,"formControlName"],["for","description",1,"form-label"],[1,"sizeD","mrgB2"],["class","flex",4,"ngFor","ngForOf"],["class","flex start clickPlace mrgT1 mrgB1","title","Adicionar dia",3,"click",4,"ngIf"],[1,"sizeC"],[1,"flex","mrgT2","pdgT2"],[1,"btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"flex"],[1,"datepicker","max-width-here",3,"labelText","collaboratorListId","validMinDateClosure","dateSelectedEN"],[1,"pdgT1"],[3,"moduleName","action","iconTitle","useValidation","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","useValidation","iconClick"],["title","Adicionar dia",1,"flex","start","clickPlace","mrgT1","mrgB1",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue","fa-rotate-45",3,"icon"],[1,"mrgL1"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Duplicar aus\xeancia"),ts(),ns(4,"div",3),es(5,"div",4),ns(6,"input",5),es(7,"label",6),Gs(8,"Descri\xe7\xe3o"),ts(),ts(),es(9,"p",7),Gs(10,"Se deseja manter a mesma descri\xe7\xe3o da aus\xeancia original, deixe este campo em branco"),ts(),Jr(11,RB,4,4,"div",8),Jr(12,jB,4,1,"div",9),ns(13,"div",3),es(14,"p",10),Gs(15,"Os demais dados da aus\xeancia ser\xe3o os mesmos da aus\xeancia selecionada."),ts(),ts(),es(16,"div",11),es(17,"io-btn",12),ls("btnClick",(function(){return t.closeModal()})),ts(),es(18,"io-btn",13),ls("btnClick",(function(){return t.sendAbsence()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.dateForm),Bo(5),Zr("formControlName","description"),Bo(5),Zr("ngForOf",t.arrayForRepeat()),Bo(1),Zr("ngIf",t.duplicateCount<5),Bo(5),Zr("moduleName","absence")("action","update")("btnColor","btn-red")("btnText","Voltar")("btnTitle","Voltar"),Bo(1),Zr("moduleName","absence")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,ah,sh,jD,UA,BB,FD],styles:[".max-width-here[_ngcontent-%COMP%]{max-width:180px}"]}),zB);function HB(e,t){if(1&e&&(es(0,"h2",7),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.title)}}function YB(e,t){if(1&e&&(es(0,"h2",8),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.text)}}var qB,UB=((qB=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.databaseService=n,this.router=i,this.btnTextConfirm="",this.btnTextDeny="Cancelar",this.showModal=!0,this.text="",this.hideModal=new Mc,this.confirmClick=new Mc,this.denyClick=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}},{key:"confirm",value:function(){this.confirmClick.emit()}},{key:"deny",value:function(){this.denyClick.emit()}}])}()).\u0275fac=function(e){return new(e||qB)($r(wp),$r(tT),$r(yM))},qB.\u0275cmp=Ot({type:qB,selectors:[["io-modal-confirm"]],inputs:{btnTextConfirm:"btnTextConfirm",btnTextDeny:"btnTextDeny",showModal:"showModal",title:"title",text:"text"},outputs:{hideModal:"hideModal",confirmClick:"confirmClick",denyClick:"denyClick"},decls:7,vars:15,consts:[[1,"filterBlack","modalFilter",3,"ngClass"],[1,"pdg2","bg-white","modalBoxConfirm","round2"],["class","sizeA cl-blue fontUp fontBold mrgB2",4,"ngIf"],["class","sizeC mrgB2",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC","mrgB2"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),Jr(2,HB,2,1,"h2",2),Jr(3,YB,2,1,"h2",3),es(4,"div",4),es(5,"io-btn",5),ls("btnClick",(function(){return t.closeModal()})),ts(),es(6,"io-btn",6),ls("btnClick",(function(){return t.confirm()})),ts(),ts(),ts(),ts()),2&e&&(Zr("ngClass",!0===t.showModal?"active":""),Bo(2),Zr("ngIf",""!=t.title),Bo(1),Zr("ngIf",""!=t.text),Bo(2),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","")("action","")("btnColor","btn-blue-bg")("btnText",t.btnTextConfirm)("btnTitle",t.btnTextConfirm)("useValidation",!1))},directives:[ih,sh,jD],styles:[".modalBoxConfirm[_ngcontent-%COMP%]{min-width:300px;padding:20px;margin:auto}"]}),qB);function WB(e,t){if(1&e&&(es(0,"option",24),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.description)}}function JB(e,t){if(1&e&&(es(0,"span",35),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function GB(e,t){if(1&e&&ns(0,"fa-icon",36),2&e){var n=fs().$implicit,i=fs();Zr("icon",i.iconSolidService.faExclamation)("title","Data do \xfaltimo fechamento de um dos funcion\xe1rios dessa aus\xeancia: "+i.getDate(n.closureEndDate))}}function $B(e,t){if(1&e&&(es(0,"span",26),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" Dia ",i.getDate(n.begin_date)!=i.getDate(n.end_date)?i.getDate(n.begin_date)+" at\xe9 dia "+i.getDate(n.end_date):i.getDate(n.begin_date)," ")}}function QB(e,t){if(1&e&&(es(0,"span",26),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" Dia ",i.getDate(n.begin_date)!=i.getDate(n.end_date)?i.getDate(n.begin_date)+" \xe0s "+i.getHour(n.begin_date)+"h at\xe9 "+i.getDate(n.end_date)+" \xe0s "+i.getHour(n.end_date)+"h":i.getDate(n.begin_date)+" \xe0s "+i.getHour(n.begin_date)+"h at\xe9 "+i.getHour(n.end_date)+"h"," ")}}function KB(e,t){if(1&e){var n=as();es(0,"io-icon",37),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDuplicate(e.id,e)})),ts()}2&e&&Zr("moduleName","absence")("action","copy")("iconClassList","mrgL1")("iconTitle","Duplicar aus\xeancia")}function ZB(e,t){if(1&e&&ns(0,"io-icon",38),2&e){var n=fs().$implicit;Zr("moduleName","absence")("action","update")("iconTitle","Editar aus\xeancia")("iconClassList","mrgL1")("urlNavigation","absence-update/"+n.id)}}function XB(e,t){if(1&e){var n=as();es(0,"io-icon",39),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalRemove(e.id)})),ts()}2&e&&Zr("moduleName","absence")("action","delete")("iconTitle","Excluir aus\xeancia")("iconClassList","mrgL1")}function eN(e,t){if(1&e){var n=as();es(0,"li",25),es(1,"span",26),Jr(2,JB,2,1,"span",27),Jr(3,GB,1,2,"fa-icon",28),Gs(4),ts(),Jr(5,$B,2,1,"span",29),Jr(6,QB,2,1,"span",29),es(7,"span",26),Gs(8),ts(),es(9,"span",30),es(10,"io-icon",31),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalAbsence(e.id)})),ts(),Jr(11,KB,1,4,"io-icon",32),Jr(12,ZB,1,5,"io-icon",33),Jr(13,XB,1,4,"io-icon",34),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Zr("ngIf",i.has_closure),Bo(1),Qs(" ",i.description," "),Bo(1),Zr("ngIf",i.full_day),Bo(1),Zr("ngIf",!i.full_day),Bo(2),$s(i.type),Bo(2),Zr("moduleName","absence")("action","show")("iconTitle","Visualizar aus\xeancia"),Bo(1),Zr("ngIf",o.canDuplicate(i)),Bo(1),Zr("ngIf",!i.has_closure),Bo(1),Zr("ngIf",!i.has_closure)}}function tN(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function nN(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma aus\xeancia encontrada."),ts())}function iN(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 registro de aus\xeancias."),ts())}function oN(e,t){if(1&e&&(es(0,"li"),Jr(1,tN,2,0,"p",19),Jr(2,nN,2,0,"p",19),Jr(3,iN,2,0,"p",19),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.absenceList.length>0&&n.absenceList[0].loading),Bo(1),Zr("ngIf",n.absenceList.length>0&&!n.absenceList[0].loading&&0==n.absenceListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.absenceList.length)}}var aN,rN,sN=function(){return["/absence-type"]},lN=((rN=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.absenceDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.loadingScreenService=s,this.storageService=l,this.titleService=u,this.absenceList=[{loading:!0}],this.absenceListFilteredIsRead=[],this.absenceListFilteredTypeId=[],this.absenceListFilteredSearch=[],this.absenceSelectedData=null,this.absenceSelectedId=null,this.absenceTypeList=[{id:"3",description:"Atestado"},{id:"7",description:"Benef\xedcio Previdenci\xe1rio"},{id:"6",description:"Dispensa Legal"},{id:"1",description:"DSR"},{id:"4",description:"F\xe9rias"},{id:"5",description:"Folga / Compensa\xe7\xe3o"},{id:"2",description:"Suspens\xe3o Disciplinar"}],this.modalAbsence=!1,this.modalDuplicate=!1,this.modalRemove=!1,this.selectedDate="",this.paginationData=null,this.currentPage=1,this.beginDateStart="",this.endDateStart="",this.beginDateSelected="",this.endDateSelected="",this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Aus\xeancias"),this.loadingScreenService.show(),this.searchForm=this.formBuilder.group({absence_type_id:new Wm("all",[Jf.required]),is_read:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required])}),this.absenceDatabase.getAbsenceTypeList({onlyActives:!0},(function(e){e.error||(e.data.absenceTypeList.forEach((function(e){d.absenceTypeList.push(e)})),d.absenceTypeList=d.functionsService.arrayReOder(d.absenceTypeList,"description"))}));var h=this.router.getCurrentNavigation().extras.state;h&&h.date&&(this.beginDateStart=this.functionsService.getFirstLastDay(h.date)[0],this.endDateStart=this.functionsService.getFirstLastDay(h.date)[1])}),[{key:"ngOnInit",value:function(){this.selectedDate=this.functionsService.dateBRtoEN(this.functionsService.currentDateBR("01/01/2020","min"))}},{key:"validGetList",value:function(){return!(""==this.beginDateSelected||""==this.endDateSelected)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getAbsenceList()}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e,this.getAbsenceList()}},{key:"setEndDate",value:function(e){this.endDateSelected=e,this.getAbsenceList()}},{key:"getAbsenceList",value:function(e){var t=this;if(this.validGetList){var n={page:this.currentPage.toString(),beginDate:this.beginDateSelected,endDate:this.endDateSelected,type:this.searchForm.controls.absence_type_id.value,search:e};this.loadingScreenService.show(),new Date(this.beginDateSelected)<new Date(this.endDateSelected)&&this.absenceDatabase.getAbsenceList(n,(function(e){e.error||(t.absenceList=e.data.absenceList.data,t.paginationData=e.data.absenceList,t.filterAbsenceTypeId()),t.loadingScreenService.hide()}))}}},{key:"filterAbsenceTypeId",value:function(){var e=this.searchForm.controls.absence_type_id.value;this.absenceListFilteredTypeId=this.absenceList.filter((function(t){return t.absence_type_id==e})),"all"==e&&(this.absenceListFilteredTypeId=this.absenceList),this.filterAbsenceIsRead()}},{key:"filterAbsenceIsRead",value:function(){var e=this.searchForm.controls.is_read.value;this.absenceListFilteredIsRead=this.absenceListFilteredTypeId.filter((function(t){return t.is_read==e})),"all"==e&&(this.absenceListFilteredIsRead=this.absenceListFilteredTypeId),this.filterAbsenseSearch(this.searchForm.controls.search.value)}},{key:"filterAbsenseSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.absenceListFilteredSearch=this.functionsService.arrayFilterWords(this.absenceListFilteredIsRead,e,"description")}},{key:"showModalAbsence",value:function(e){this.absenceSelectedId=e,this.modalAbsence=!0}},{key:"hideModalAbsence",value:function(){this.modalAbsence=!1,this.absenceSelectedId=null}},{key:"showModalRemove",value:function(e){this.absenceSelectedId=e,this.modalRemove=!0}},{key:"deleteAbsence",value:function(){var e=this,t=this.absenceSelectedId;this.absenceDatabase.deleteAbsence([t],(function(n){n.error||(e.absenceList=e.absenceList.filter((function(e){return e.id!=t})),e.filterAbsenceTypeId(),e.hideModalRemove())}))}},{key:"hideModalRemove",value:function(){this.modalRemove=!1,this.absenceSelectedId=null}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0]).slice(0,5)}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}},{key:"canDuplicate",value:function(e){return e.begin_date.split(" ")[0]===e.end_date.split(" ")[0]}},{key:"showModalDuplicate",value:function(e,t){this.absenceSelectedId=e,this.absenceSelectedData=t,this.modalDuplicate=!0}},{key:"hideModalDuplicate",value:function(){this.absenceSelectedId=null,this.absenceSelectedData=null,this.modalDuplicate=!1}}])}()).\u0275fac=function(e){return new(e||rN)($r(wp),$r(yM),$r(aT),$r(zP),$r(WO),$r(JO),$r(dL),$r(YP),$r(hL))},rN.\u0275cmp=Ot({type:rN,selectors:[["io-absence-page-list"]],decls:31,vars:26,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"flexPad"],[3,"firstDateLabel","firstDateStart","secondDateLabel","secondDateStart","firstDateSelected","secondDateSelected"],["title","Visualizar tipos de aus\xeancia",1,"flex","start","downloadMirrorBox","mrgB2","border-gray-light","btn","w-auto","clickPlace",3,"routerLink"],[1,"sizeC","fontUp"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[3,"showModal","absenceId","hideModal"],[3,"showModal","absenceId","absenceData","hideModal","absenceCreated"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"value"],[1,"flex","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],["size","3x","class","iconItem iconSizeH cl-red",3,"icon","title",4,"ngIf"],["class","item sizeC",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","urlNavigation",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon","title"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","urlNavigation"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-interval-selector",4),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),es(5,"div",5),es(6,"span",6),Gs(7,"Tipos de aus\xeancia"),ts(),ts(),ts(),es(8,"div",7),es(9,"io-search-line",8),ls("onKeyPress",(function(e){return t.getAbsenceList(e)})),ts(),ts(),es(10,"div",9),es(11,"div",10),es(12,"h3",11),Gs(13,"Descri\xe7\xe3o"),ts(),es(14,"h3",11),Gs(15,"Per\xedodo"),ts(),es(16,"div",12),es(17,"select",13),ls("change",(function(){return t.getAbsenceList()})),es(18,"option",14),Gs(19,"Tipo de aus\xeancia"),ts(),Jr(20,WB,2,2,"option",15),ts(),ns(21,"fa-icon",16),ts(),es(22,"h3",11),Gs(23,"A\xe7\xe3o"),ts(),ts(),es(24,"ul",17),Jr(25,eN,14,12,"li",18),Jr(26,oN,4,3,"li",19),ts(),ts(),es(27,"io-pagination",20),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),es(28,"io-absence-modal-view",21),ls("hideModal",(function(){return t.hideModalAbsence()})),ts(),es(29,"io-absence-modal-duplicate",22),ls("hideModal",(function(){return t.hideModalDuplicate()}))("absenceCreated",(function(){return t.getAbsenceList()})),ts(),es(30,"io-modal-confirm",23),ls("confirmClick",(function(){return t.deleteAbsence()}))("hideModal",(function(){return t.hideModalRemove()})),ts()),2&e&&(Bo(2),Zr("moduleName","absence")("titleTop","Aus\xeancias")("showBtn",!0)("btnDataUrl","absence-register"),Bo(2),Zr("firstDateLabel","Data inicial")("firstDateStart",t.beginDateStart)("secondDateLabel","Data final")("secondDateStart",t.endDateStart),Bo(1),Zr("routerLink",mc(25,sN)),Bo(6),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","absence_type_id"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.absenceTypeList),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.absenceListFilteredSearch),Bo(1),Zr("ngIf",0==t.absenceListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("showModal",t.modalAbsence)("absenceId",t.absenceSelectedId),Bo(1),Zr("showModal",t.modalDuplicate)("absenceId",t.absenceSelectedId)("absenceData",t.absenceSelectedData),Bo(1),Zr("showModal",t.modalRemove)("title","Deseja realmente excluir essa aus\xeancia?")("btnTextConfirm","Excluir"))},directives:[eI,ZA,bM,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,ah,FD,sh,hE,IB,VB,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%;margin:0;text-align:right}li.listAlign[_ngcontent-%COMP%]{background-color:#fff;transition:all .2s ease}"]}),rN),cN=((aN=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.absenceDatabase=n,this.functionsService=i,this.absenceTypeId=null,this.showModal=!0,this.hideModal=new Mc,this.reloadList=new Mc,this.stateFields={description:{class:""}},this.absenceTypeForm=this.formBuilder.group({description:new Wm(null,[Jf.required]),comp_time:new Wm(0,[Jf.required]),paid_leave:new Wm(0,[Jf.required]),can_request_app:new Wm(0,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.absenceTypeForm.reset(),this.absenceTypeForm.get("can_request_app").setValue(!0),this.showModal&&this.absenceTypeId&&this.absenceDatabase.getAbsenceTypeById(this.absenceTypeId,(function(t){t.error||Object.keys(e.absenceTypeForm.controls).forEach((function(n){e.absenceTypeForm.get(n).setValue(t.data.absenceType[n])}))}))}},{key:"sendAbsenceType",value:function(){this.absenceTypeForm.get("description").valid?this.absenceTypeForm.get("comp_time").value||this.absenceTypeForm.get("paid_leave").value?this.absenceTypeId?this.putAbsenceType(this.absenceTypeForm.value,this.absenceTypeId):this.postAbsenceType(this.absenceTypeForm.value):this.functionsService.openSnackBar("Selecione ao menos uma op\xe7\xe3o de pagamento de horas para o padr\xe3o da aus\xeancia."):this.functionsService.openSnackBar("Informe uma descri\xe7\xe3o para cadastrar um novo tipo de aus\xeancia")}},{key:"postAbsenceType",value:function(e){var t=this;this.absenceDatabase.postAbsenceType(e,(function(e){e.error||(t.emitReloadList(),t.closeModal())}))}},{key:"putAbsenceType",value:function(e,t){var n=this;this.absenceDatabase.putAbsenceType(t,e,(function(e){e.error||(n.emitReloadList(),n.closeModal())}))}},{key:"emitReloadList",value:function(){this.reloadList.emit()}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||aN)($r(wp),$r(aT),$r(zP))},aN.\u0275cmp=Ot({type:aN,selectors:[["io-absence-modal-form-type"]],inputs:{absenceTypeId:"absenceTypeId",showModal:"showModal"},outputs:{hideModal:"hideModal",reloadList:"reloadList"},features:[dl],decls:31,vars:16,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeB"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","maxlength","20","required","","type","text",3,"formControlName"],["for","description",1,"form-label"],[1,"mrgT2","sizeD","cl-blue","fontUp","fontBold","mrgB2"],[1,"selectBox","mrgT2","flexPad"],[1,"item","radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"formControlName"],[1,"checkmark"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2),ts(),es(3,"p",2),Gs(4,"D\xfavidas? Entre em contato com a contabilidade."),ts(),es(5,"div",3),es(6,"div",4),es(7,"div",5),es(8,"div",6),ns(9,"input",7),es(10,"label",8),Gs(11,"*Descri\xe7\xe3o"),ts(),ts(),es(12,"h3",9),Gs(13,"Op\xe7\xe3o para pagamento de horas"),ts(),es(14,"div",10),es(15,"label",11),Gs(16,"Afastamento remunerado "),ns(17,"input",12),ns(18,"span",13),ts(),es(19,"label",11),Gs(20,"Permitir solicita\xe7\xe3o via app "),ns(21,"input",12),ns(22,"span",13),ts(),ts(),es(23,"div",10),es(24,"label",11),Gs(25,"Desconto de horas "),ns(26,"input",12),ns(27,"span",13),ts(),ts(),ts(),es(28,"div",14),es(29,"io-btn",15),ls("btnClick",(function(){return t.closeModal()})),ts(),es(30,"io-btn",16),ls("btnClick",(function(){return t.sendAbsenceType()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Qs("",t.absenceTypeId?"Editar":"Novo"," tipo de aus\xeancia"),Bo(3),Zr("formGroup",t.absenceTypeForm),Bo(4),Zr("formControlName","description"),Bo(8),Zr("formControlName","paid_leave"),Bo(4),Zr("formControlName","can_request_app"),Bo(5),Zr("formControlName","comp_time"),Bo(3),Zr("moduleName","absence")("action","update")("btnColor","btn-red")("btnText","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","absence")("action",t.absenceTypeId?"update":"create")("btnColor","btn-blue-bg")("btnText",t.absenceTypeId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,kp,bp,Vf,vp,Of,jD],styles:[""]}),aN),uN=["class","component"];function dN(e,t){1&e&&(es(0,"span",26),Gs(1,"- Descontar horas"),ts())}function hN(e,t){1&e&&(es(0,"span",26),Gs(1,"- Afastamento remunerado"),ts())}function fN(e,t){1&e&&(es(0,"span",26),Gs(1,"- Permitir solita\xe7\xe3o via app"),ts())}function mN(e,t){if(1&e){var n=as();es(0,"io-icon",24),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}2&e&&Zr("moduleName","absence")("action","delete")("iconTitle","Excluir tipo de aus\xeancia")("iconClassList","mrgL1")}function pN(e,t){if(1&e){var n=as();es(0,"io-icon",24),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactive(e.id)})),ts()}2&e&&Zr("moduleName","absence")("action","reactive")("iconTitle","Reativar tipo de aus\xeancia")("iconClassList","mrgL1")}function gN(e,t){if(1&e){var n=as();es(0,"li",18),es(1,"span",19),Gs(2),ts(),es(3,"span",20),Jr(4,dN,2,0,"span",21),Jr(5,hN,2,0,"span",21),Jr(6,fN,2,0,"span",21),ts(),es(7,"span",22),Gs(8),ts(),es(9,"span",23),es(10,"io-icon",24),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalAbsenceType(e.id)})),ts(),Jr(11,mN,1,4,"io-icon",25),Jr(12,pN,1,4,"io-icon",25),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.description),Bo(2),Zr("ngIf",i.comp_time),Bo(1),Zr("ngIf",i.paid_leave),Bo(1),Zr("ngIf",i.can_request_app),Bo(2),$s(i.active?"ativo":"inativo"),Bo(2),Zr("moduleName","absence")("action","update")("iconTitle","Editar tipo de aus\xeancia")("iconClassList","mrgL1"),Bo(1),Zr("ngIf",i.active),Bo(1),Zr("ngIf",!i.active)}}function vN(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function yN(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum tipo de aus\xeancia encontrado."),ts())}function bN(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 tipos de aus\xeancia cadastrados."),ts())}function _N(e,t){if(1&e&&(es(0,"li"),Jr(1,vN,2,0,"p",14),Jr(2,yN,2,0,"p",14),Jr(3,bN,2,0,"p",14),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.absenceTypeList.length>0&&n.absenceTypeList[0].loading),Bo(1),Zr("ngIf",n.absenceTypeList.length>0&&!n.absenceTypeList[0].loading&&0==n.absenceTypeListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.absenceTypeList.length)}}var kN,CN,wN,xN,MN,SN,PN=((CN=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.absenceDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.absenceTypeList=[{loading:!0}],this.absenceTypeListFilteredSearch=[],this.absenceTypeListFilteredStatus=[],this.absenceTypeSelectedId=null,this.modalAbsenceType=!1,this.modalDelete=!1,this.modalReactive=!1,this.titleService.setTitle("Tipos de aus\xeancia"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm(1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getAbsenceTypeList()}},{key:"getAbsenceTypeList",value:function(){var e=this;this.absenceTypeList=[{loading:!0}],this.absenceTypeListFilteredSearch=[],this.absenceDatabase.getAbsenceTypeList([],(function(t){t.error||(e.absenceTypeList=t.data.absenceTypeList,e.filterAbsenceTypeStatus())}))}},{key:"filterAbsenceTypeStatus",value:function(){var e=this.searchForm.controls.status.value;this.absenceTypeListFilteredStatus="all"==e?this.absenceTypeList:this.absenceTypeList.filter((function(t){return t.active==e})),this.filterAbsenceTypeSearch(this.searchForm.controls.search.value)}},{key:"filterAbsenceTypeSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.absenceTypeListFilteredSearch=this.functionsService.arrayFilterWords(this.absenceTypeListFilteredStatus,e,"description")}},{key:"showModalAbsenceType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.absenceTypeSelectedId=e,this.modalAbsenceType=!0}},{key:"hideModalAbsenceType",value:function(){this.modalAbsenceType=!1,this.absenceTypeSelectedId=null}},{key:"showModalDelete",value:function(e){this.absenceTypeSelectedId=e,this.modalDelete=!0}},{key:"deleteAbsenceType",value:function(){var e=this,t=this.absenceTypeSelectedId;this.absenceDatabase.deleteAbsenceType(t,(function(n){n.error||(e.absenceTypeList=e.absenceTypeList.filter((function(e){return e.id!=t})),e.filterAbsenceTypeStatus(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.absenceTypeSelectedId=null}},{key:"showModalReactive",value:function(e){this.absenceTypeSelectedId=e,this.modalReactive=!0}},{key:"reactive",value:function(e){var t=this;this.absenceDatabase.putAbsenceType(e,{active:1},(function(n){if(!n.error){var i=t.absenceTypeList.findIndex((function(t){return t.id==e}));t.absenceTypeList[i].active=1,t.filterAbsenceTypeStatus(),t.hideModalReactive()}}))}},{key:"hideModalReactive",value:function(){this.absenceTypeSelectedId=null,this.modalReactive=!1}}])}()).\u0275fac=function(e){return new(e||CN)($r(wp),$r(yM),$r(aT),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},CN.\u0275cmp=Ot({type:CN,selectors:[["io-absence-page-list-type",8,"component"]],attrs:uN,decls:27,vars:19,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnClick"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","status","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","absenceTypeId","reloadList","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item","sizeD"],["class","flex start",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"flex","start"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalAbsenceType()})),ts(),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterAbsenceTypeSearch(e)})),ts(),es(4,"div",4),es(5,"div",5),es(6,"h3",6),Gs(7,"Tipo de aus\xeancia"),ts(),es(8,"h3",6),Gs(9,"Op\xe7\xf5es"),ts(),es(10,"div",7),es(11,"select",8),ls("change",(function(){return t.filterAbsenceTypeStatus()})),es(12,"option",9),Gs(13,"Todos"),ts(),es(14,"option",9),Gs(15,"Inativo"),ts(),es(16,"option",10),Gs(17,"Ativo"),ts(),ts(),ns(18,"fa-icon",11),ts(),es(19,"h3",6),Gs(20,"A\xe7\xe3o"),ts(),ts(),es(21,"ul",12),Jr(22,gN,13,11,"li",13),Jr(23,_N,4,3,"li",14),ts(),ts(),ts(),ts(),es(24,"io-absence-modal-form-type",15),ls("reloadList",(function(){return t.getAbsenceTypeList()}))("hideModal",(function(){return t.hideModalAbsenceType()})),ts(),es(25,"io-modal-confirm",16),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteAbsenceType()})),ts(),es(26,"io-modal-confirm",17),ls("confirmClick",(function(){return t.reactive(t.absenceTypeSelectedId)}))("hideModal",(function(){return t.hideModalReactive()})),ts()),2&e&&(Bo(2),Zr("moduleName","absence")("titleTop","Tipos de Aus\xeancia")("showBtn",!0),Bo(3),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",0),Bo(2),Zr("value",1),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.absenceTypeListFilteredSearch),Bo(1),Zr("ngIf",0==t.absenceTypeListFilteredSearch.length),Bo(1),Zr("showModal",t.modalAbsenceType)("absenceTypeId",t.absenceTypeSelectedId),Bo(1),Zr("title","Excluir tipo de aus\xeancia?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("showModal",t.modalReactive)("title","Deseja Reativar este  tipo de aus\xeancia?")("btnTextConfirm","Reativar"))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,cN,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:90px;margin:0;text-align:right}"]}),CN),TN=((kN=function(){return d((function e(){c(this,e)}),[{key:"removeLetter",value:function(e){return e.replace(/\D/g,"").toLowerCase()}},{key:"removeSings",value:function(e){return e.replace(/([-.*+?^=!:$%{}()|\[\]\/\\])/g,"").toLowerCase()}},{key:"validCEI",value:function(e){for(var t=(e=this.removeSings(e)).split(""),n=[7,4,1,8,5,2,1,6,3,7,4],i=0,o=0;o<=10;o++)i+=parseInt(t[o])*n[o];var a=i.toString().split("").reverse(),r=parseInt(a[0])+parseInt(a[1]),s=10-parseInt(r.toString().split("").reverse()[0]);return parseInt(s.toString().split("").reverse()[0])==parseInt(t[11])}},{key:"validCNPJ",value:function(e){if(""==(e=this.removeSings(e)))return!1;if(14!=e.length)return!1;if("00000000000000"==e||"11111111111111"==e||"22222222222222"==e||"33333333333333"==e||"44444444444444"==e||"55555555555555"==e||"66666666666666"==e||"77777777777777"==e||"88888888888888"==e||"99999999999999"==e)return!1;for(var t=e.length-2,n=e.substring(0,t),i=e.substring(t),o=0,a=t-7,r=t;r>=1;r--)o+=n.charAt(t-r)*a--,a<2&&(a=9);var s=o%11<2?0:11-o%11;if(s!=i.charAt(0))return!1;t+=1,n=e.substring(0,t),o=0,a=t-7;for(var l=t;l>=1;l--)o+=n.charAt(t-l)*a--,a<2&&(a=9);return(s=o%11<2?0:11-o%11)==i.charAt(1)}},{key:"validCPF",value:function(e){if(""==(e=this.removeSings(e)))return!1;if(11!=e.length||"00000000000"==e||"11111111111"==e||"22222222222"==e||"33333333333"==e||"44444444444"==e||"55555555555"==e||"66666666666"==e||"77777777777"==e||"88888888888"==e||"99999999999"==e)return!1;for(var t=0,n=0;n<9;n++)t+=parseInt(e.charAt(n))*(10-n);var i=11-t%11;if(10!=i&&11!=i||(i=0),i!=parseInt(e.charAt(9)))return!1;t=0;for(var o=0;o<10;o++)t+=parseInt(e.charAt(o))*(11-o);return 10!=(i=11-t%11)&&11!=i||(i=0),i==parseInt(e.charAt(10))}},{key:"validDate",value:function(e){e.length<10&&(e="00/00/0000");var t=e.toString().split("/")[2],n=e.toString().split("/")[1],i=e.split("/")[0],o=(new Date).getFullYear()+5;return t>o&&(t=o),n>12&&(n=12),i>31&&(i=4==n||6==n||9==n||11==n?30:31),i>28&&2==n&&(i=t%4==0&&t%100!=0||t%400==0?29:28),i+"/"+n+"/"+t}},{key:"validEmail",value:function(e){if(null==e)return!1;var t,n=e.toString().substring(0,e.toString().indexOf("@")),i=e.toString().substring(e.toString().indexOf("@")+1,e.toString().length);return!(t=/[`!@#$%^&*()+ =\[\]{};':"\\|,<>\/?\xe1\xe0\xe2\xe3\xe9\xe8\xea\xed\xef\xf3\xf4\xf5\xf6\xfa\xe7\xf1\xc1\xc0\xc2\xc3\xc9\xc8\xca\xcd\xcf\xd3\xd4\xd5\xd6\xda\xc7\xd1~]/).test(n)&&!t.test(i)&&n.length>=1&&i.length>=3&&-1==n.search("@")&&-1==i.search("@")&&-1==n.search(" ")&&-1==i.search(" ")&&-1!=i.search(".")&&i.indexOf(".")>=1&&i.lastIndexOf(".")<i.length-1}},{key:"validHour",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.length<1&&(e="00:00"),1==e.length&&(e="0"+e+":00"),2==e.length&&(e+=":00"),3==e.length&&(e+="00"),4==e.length&&(e+="0");var n=e.toString().split(":")[1],i=e.toString().split(":")[0];return 1==t&&i>23&&(i="23",n="59"),n>59&&(n="59"),i+":"+n}},{key:"validHourNegativeGreaterThan24",value:function(e){if(null==e||0==e.length)return e;var t="",n=e;"-"==e.charAt(0)&&(t="-",n=e.slice(1)),1==n.length&&(n="00"+n),2==n.length&&(n="0"+n),3==n.length&&(n+=":00"),4==n.length&&(n+="00"),5==n.length&&(n+="0");var i=n.toString().split(":")[1],o=n.toString().split(":")[0];return i>59&&(i="00"),o>838&&(o="838"),t+o+":"+i}},{key:"validMoneyValue",value:function(e){var t=this.removeLetter(e.split(",")[0]||"")+","+this.removeLetter(e.split(",")[1]||"00");return t.includes(",")||(t+="00"),t.includes(",")&&1==t.split(",")[1].length&&(t=t.split(",")[0]+t.split(",")[1]+"0"),t.includes(",")&&2==t.split(",")[1].length&&(t=t.split(",")[0]+t.split(",")[1]),t}},{key:"validMoneyValueNumber",value:function(e){return this.validMoneyValueString(e.toString().split(".").join(","))}},{key:"validMoneyValueString",value:function(e){var t=this.removeLetter(e.split(",")[0]||""),n=this.removeLetter(e.split(",")[1]||"00");return 1==n.length&&(n+="0"),this.validMoneyValuePeriodMarker(t)+","+n}},{key:"validMoneyValuePeriodMarker",value:function(e){var t=e.split("").reverse(),n="";return t.forEach((function(e,t){t>0&&t%3==0&&(n="."+n),n=e+n})),n}}])}()).\u0275fac=function(e){return new(e||kN)},kN.\u0275prov=Se({token:kN,factory:kN.\u0275fac,providedIn:"root"}),kN),ON=l("MCLT"),LN=((SN=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteCollaboratorPhoto",value:function(e,t){this.databaseService.delete("/collaborator/photoFaceRecognition/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaborator",value:function(e,t){this.databaseService.get("/collaborator/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserIdByCollaboratorId",value:function(e,t){this.databaseService.get("/collaborator/userIdByCollaboratorId/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorList",value:function(e,t){this.databaseService.get("/collaborator",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorListCardId",value:function(e){this.databaseService.get("/collaborator/collaboratorListCardId",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getCollaboratorListActive",value:function(e){this.databaseService.get("/collaborator/listActive",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getCollaboratorLastPoints",value:function(e,t){this.databaseService.get("/pointManage/getLastPoints",{collaborator_id:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorPassword",value:function(e,t,n,i){this.databaseService.get("/collaborator/showPassword",{collaborator_id:e,company_id:t,user_id:n}).subscribe((function(e){i({data:e})}),(function(e){i({error:e})}))}},{key:"getPersonByNationalRegister",value:function(e,t){this.databaseService.get("/collaborator/getPersonByNationalRegister",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getResendPassword",value:function(e,t){this.databaseService.get("/collaborator/resendPassword",{collaborator_id:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getSendPasswordToSms",value:function(e,t){this.databaseService.get("/collaborator/sendSMSPassword",{collaborator_id:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaborator",value:function(e,t){this.databaseService.post("/collaborator",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaboratorList",value:function(e,t){this.databaseService.post("/collaborator/importCollaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaboratorDismissalAll",value:function(e,t){this.databaseService.post("/collaborator/dismissalAll",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaboratorFaceRecognitionPhoto",value:function(e,t){this.databaseService.post("/collaborator/photoFaceRecognition",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaboratorImg",value:function(e,t){this.databaseService.post("/collaborator/image",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaboratorImportFile",value:function(e,t){this.databaseService.post("/collaborator/importCollaboratorExcel",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCollaboratorReadmitAll",value:function(e){this.databaseService.post("/collaborator/readmitAll",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postCollaboratorTransfer",value:function(e,t){this.databaseService.post("/collaborator/transfer",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCollaborator",value:function(e,t,n){this.databaseService.put("/collaborator/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCollaboratorDismissal",value:function(e,t,n){this.databaseService.put("/collaborator/collaboratorDismissal/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCollaboratorExportCodeAsCardId",value:function(e,t){this.databaseService.put("/collaborator/collaboratorExportCodeCardId",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCollaboratorPasswordAsCardId",value:function(e,t){this.databaseService.put("/collaborator/collaboratorPasswordCardId",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||SN)(ut(tT))},SN.\u0275prov=Se({token:SN,factory:SN.\u0275fac,providedIn:"root"}),SN),DN=((MN=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteIntermittentCall",value:function(e,t,n){this.databaseService.delete("/intermittentCall/"+e,[]).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"deleteJourney",value:function(e,t,n){this.databaseService.delete("/journey/"+e,[]).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"deleteJourneyCollaborator",value:function(e,t){this.databaseService.delete("/journey/journeyCollaborator/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getIntermittentCall",value:function(e,t){this.databaseService.get("/intermittentCall/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getIntermittentCallList",value:function(e){this.databaseService.get("/intermittentCall",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getIntermittentCallCollaboratorList",value:function(e,t){this.databaseService.get("/intermittentCall/"+e+"/collaborators",{}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getIntermittentCallCollaboratorListAvailable",value:function(e){this.databaseService.get("/intermittentCall/collaboratorListAvailable",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getJourney",value:function(e,t){this.databaseService.get("/journey/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getJourneyList",value:function(e){this.databaseService.get("/journey",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getJourneyHours",value:function(e,t){this.databaseService.get("/journey/getHours/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getFirstDayJourney",value:function(e,t,n){this.databaseService.get("/journey/getFirstDayJourney/"+e,{collaboratorId:t}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getJourneyCollaboratorList",value:function(e,t){this.databaseService.get("/journey/journeyCollaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getChangeOfShift",value:function(e,t){this.databaseService.get("/journey/getChangeOfShift/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postIntermittentCall",value:function(e,t){this.databaseService.post("/intermittentCall",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postJourney",value:function(e,t){this.databaseService.post("/journey",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postJourneyCollaboratorList",value:function(e,t){this.databaseService.post("/journey/journeyCollaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putJourney",value:function(e,t,n){this.databaseService.put("/journey/"+t,e).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||MN)(ut(tT))},MN.\u0275prov=Se({token:MN,factory:MN.\u0275fac,providedIn:"root"}),MN),IN=((xN=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteDocument",value:function(e,t){this.databaseService.delete("/documentRegister/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteDocumentType",value:function(e,t){this.databaseService.delete("/documentType/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDocument",value:function(e,t,n){this.databaseService.get("/documentRegister/"+t,[]).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getDocumentAttachment",value:function(e,t){this.databaseService.getFile("/documentRegister/downloadAttachment",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDocumentList",value:function(e,t){this.databaseService.get("/documentRegister",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDocumentTypeList",value:function(e,t){this.databaseService.get("/documentType",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDocumentTypeById",value:function(e,t){this.databaseService.get("/documentType/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getFileZip",value:function(e,t,n,i,o){this.databaseService.getFile("/generic/downloadFile",Object.assign(Object.assign({company_id:e},t),{action:n,action_id:i})).subscribe((function(e){o({data:e})}),(function(e){o({error:e})}))}},{key:"postDocument",value:function(e,t){this.databaseService.post("/documentRegister",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postDocumentType",value:function(e,t){this.databaseService.post("/documentType",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putDocument",value:function(e,t,n){this.databaseService.put("/documentRegister/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putDocumentType",value:function(e,t,n){this.databaseService.put("/documentType/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getDocumentCollaboratorList",value:function(e,t){this.databaseService.get("/documentRegister/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||xN)(ut(tT))},xN.\u0275prov=Se({token:xN,factory:xN.\u0275fac,providedIn:"root"}),xN),FN=((wN=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteUnit",value:function(e,t){this.databaseService.delete("/unit/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBarrier",value:function(e){this.databaseService.get("/unit/getBarrier",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getUnit",value:function(e,t){this.databaseService.get("/unit/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUnitList",value:function(e){this.databaseService.get("/unit",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getUnitCollaboratorList",value:function(e,t){this.databaseService.get("/unit/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUnitCollaboratorListOut",value:function(e,t,n){this.databaseService.get("/unit/"+e+"/collaboratorListOut",{date:t}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postUnit",value:function(e,t){this.databaseService.post("/unit",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postUnitCollaboratorList",value:function(e,t,n){this.databaseService.post("/unit/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putUnit",value:function(e,t,n){this.databaseService.put("/unit/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putUnitReactive",value:function(e,t){this.databaseService.put("/unit/reactive/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putUnitInactivate",value:function(e,t){this.databaseService.put("/unit/inactivate/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||wN)(ut(tT))},wN.\u0275prov=Se({token:wN,factory:wN.\u0275fac,providedIn:"root"}),wN);function AN(e,t){if(1&e){var n=as();es(0,"io-btn",17),ls("btnClick",(function(){return mn(n),fs().btnAddClickEmit()})),ts()}if(2&e){var i=fs();Zr("moduleName",i.moduleName)("action",i.btnAddAction)("btnText",i.btnAddText)("btnTitle",i.btnAddText)}}function EN(e,t){if(1&e){var n=as();es(0,"div",18),es(1,"io-datepicker",19),ls("dateSelectedEN",(function(e){return mn(n),fs().setDateSelected(e)})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("labelText","Dia")("minDate",i.minDate)("startDate",i.dateSelected)}}function BN(e,t){if(1&e&&(es(0,"div",20),es(1,"span",21),Gs(2),ts(),ts()),2&e){var n=fs();Bo(2),$s(n.reminder)}}function NN(e,t){1&e&&ns(0,"div",22)}function RN(e,t){if(1&e){var n=as();es(0,"div",23),es(1,"label",24),Gs(2,"Todos os funcion\xe1rios "),es(3,"input",25),ls("change",(function(){return mn(n),fs().verifyAll()})),ts(),ns(4,"span",26),ts(),ts()}2&e&&(Zr("formGroup",fs().searchForm),Bo(3),Zr("formControlName","allSelected"))}function jN(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.name)}}function zN(e,t){if(1&e&&(ns(0,"fa-icon",34),_c(1,"date")),2&e){var n=fs(2).$implicit,i=fs();ys("title","Existe uma troca de unidade programada para ",kc(1,2,n.date_next_unit),""),Zr("icon",i.iconSolidService.faExclamation)}}function VN(e,t){if(1&e){var n=as();es(0,"span",31),es(1,"label",24),Gs(2),es(3,"input",32),ls("change",(function(){mn(n);var e=fs().$implicit;return fs().toCollaboratorList(e.id)})),ts(),ns(4,"span",26),Jr(5,zN,2,4,"fa-icon",33),ts(),ts()}if(2&e){var i=fs().$implicit,o=fs();Bo(2),Qs("",i.name," "),Bo(1),Zr("checked",o.collaboratorListSelectedId.indexOf(i.id)>=0),Bo(2),Zr("ngIf",i.date_next_unit)}}var HN=function(e,t){return{"cl-green":e,"cl-red":t}};function YN(e,t){if(1&e&&ns(0,"fa-icon",35),2&e){var n=fs().$implicit,i=fs();Zr("icon",n.is_signed?i.iconSolidService.faCheck:i.iconSolidService.faExclamation)("ngClass",gc(3,HN,n.is_signed,!n.is_signed))("title",n.is_signed?"Assinado em: "+n.signed_at:"N\xe3o assinado")}}function qN(e,t){if(1&e){var n=as();es(0,"fa-icon",36),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().downloadSignedDocument(e.documentId,e.attachment)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faDownload)}function UN(e,t){if(1&e&&(es(0,"li",27),Jr(1,jN,2,1,"span",28),Jr(2,VN,6,3,"span",28),Jr(3,YN,1,6,"fa-icon",29),Jr(4,qN,1,1,"fa-icon",30),ts()),2&e){var n=t.$implicit,i=fs();Bo(1),Zr("ngIf",!i.selectionEnabled),Bo(1),Zr("ngIf",i.selectionEnabled),Bo(1),Zr("ngIf",n.is_signed||null!=n.is_signed),Bo(1),Zr("ngIf",n.is_signed)}}function WN(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function JN(e,t){1&e&&(es(0,"p"),Gs(1," Carregando..."),ts())}function GN(e,t){if(1&e&&(es(0,"p"),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs(" Nenhum ",n.selectUser?"gestor":"funcion\xe1rio"," encontrado.")}}function $N(e,t){if(1&e&&(es(0,"p"),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs("N\xe3o h\xe1 ",n.selectUser?"gestor":"funcion\xe1rio"," disponivel.")}}function QN(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 associado a escala intermittente."),ts())}function KN(e,t){if(1&e&&(es(0,"li"),Jr(1,WN,2,0,"p",14),Jr(2,JN,2,0,"p",14),Jr(3,GN,2,1,"p",14),Jr(4,$N,2,1,"p",14),Jr(5,QN,2,0,"p",14),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFiltered.length&&""==n.filterText),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFiltered.length&&""!=n.filterText),Bo(1),Zr("ngIf",0==n.collaboratorList.length&&!n.getCollaboratorListIntermittentFromDatabase),Bo(1),Zr("ngIf",0==n.collaboratorList.length&&n.getCollaboratorListIntermittentFromDatabase)}}function ZN(e,t){if(1&e){var n=as();es(0,"div",2),es(1,"io-btn",37),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts(),es(2,"io-btn",38),ls("btnClick",(function(){return mn(n),fs().finishSelection()})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("moduleName",i.moduleName)("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName",i.moduleName)("action",i.btnConfirmAction)("btnColor","btn-blue-bg")("btnText",i.btnConfirmText)("btnTitle",i.btnConfirmText)}}function XN(e,t){if(1&e){var n=as();es(0,"div",39),es(1,"io-btn",37),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","")("action","")("btnColor","btn-blue")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1))}var eR,tR=((eR=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.collaboratorDatabase=n,this.journeyDatabase=i,this.registerDocumentDatabase=o,this.storageService=a,this.functionsService=r,this.iconSolidService=s,this.unitDatabase=l,this.btnAddText="",this.btnAddAction="create",this.btnConfirmText="Confirmar",this.btnConfirmAction="create",this.closeOnSelectedEmission=!0,this.listForSelection=null,this.getCollaboratorListIntermittentFromDatabase=!1,this.getCollaboratorListFromDatabase=!0,this.moduleName="collaborator",this.showModal=!0,this.unitSelectedId=null,this.departmentSelectedId=null,this.documentSelectedId=null,this.title="Selecionar funcion\xe1rio(s)",this.selectedListId=[],this.selectionEnabled=!0,this.selectUser=!1,this.datePicker=!1,this.singleSelect=!1,this.btnAddClick=new Mc,this.hideModal=new Mc,this.selectedId=new Mc,this.selectedName=new Mc,this.selectedDate=new Mc,this.collaboratorList=[{loading:!0}],this.collaboratorListFiltered=[],this.collaboratorListSelectedId=[],this.collaboratorListSelectedName=[],this.collaboratorListOut=[],this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.filterText="",this.resetSearchEmitter=new Mc,this.dateSelected=this.functionsService.dateBRtoEN(this.functionsService.currentDateBR("00/00/0000","min")),this.minDate=new Date,this.reminder="*ATEN\xc7\xc3O: A troca de unidade ser\xe1 efetuada apenas na data selecionada, n\xe3o sendo efetivada imediatamente ap\xf3s a vincula\xe7\xe3o.",this.log=ON.log,this.document=document,this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[])})}),[{key:"ngOnInit",value:function(){var e=Rd(new Date(this.minDate.getFullYear(),this.minDate.getMonth(),1),"yyyy-MM-dd","en");this.minDate=this.functionsService.getMonthBeforeEN(e)}},{key:"ngOnChanges",value:function(){this.showModal&&this.loadList()}},{key:"loadList",value:function(){var e=this;if(null!=this.listForSelection&&!this.getCollaboratorListFromDatabase)return this.collaboratorListOut.length>=1?(this.collaboratorList=this.collaboratorListOut,this.collaboratorListOut=[]):this.collaboratorList=this.listForSelection,this.collaboratorListFiltered=this.collaboratorList[0]&&this.collaboratorList[0].loading?[]:this.collaboratorList,void this.resetForm();if(this.collaboratorList.length<2||this.collaboratorList[0].loading){if(this.getCollaboratorListIntermittentFromDatabase)return void this.journeyDatabase.getIntermittentCallCollaboratorListAvailable((function(t){t.error||(e.collaboratorList=t.data.collaboratorList.length>0?t.data.collaboratorList:[],e.collaboratorListFiltered=e.collaboratorList,e.loadSelectedList())}));this.getCollaboratorListFromDatabase&&this.collaboratorDatabase.getCollaboratorListActive((function(t){t.error||(e.collaboratorList=t.data.collaboratorList.length>0?t.data.collaboratorList:[],e.collaboratorListFiltered=e.collaboratorList,e.loadSelectedList())}))}else this.loadSelectedList()}},{key:"resetForm",value:function(){this.searchForm.get("allSelected").setValue(!1),this.collaboratorListSelectedId=[],this.collaboratorListSelectedName=[]}},{key:"loadSelectedList",value:function(){var e=this;this.collaboratorListSelectedId=[],this.collaboratorListSelectedName=[],(this.collaboratorList.length<1||!this.collaboratorList[0].loading)&&(this.selectedListId.forEach((function(t){return e.toCollaboratorList(t)})),this.collaboratorFilter(""))}},{key:"collaboratorFilter",value:function(e){this.filterText=e,this.collaboratorListFiltered=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name")}},{key:"resetCollaboratorList",value:function(){this.filterText="",this.collaboratorListFiltered=[]}},{key:"toCollaboratorList",value:function(e){var t=this.collaboratorList.findIndex((function(t){return t.id==e})),n=this.collaboratorList[t].name;this.collaboratorListSelectedId.find((function(t){return t==e}))?(this.collaboratorListSelectedId=this.collaboratorListSelectedId.filter((function(t){return t!=e})),this.collaboratorListSelectedName=this.collaboratorListSelectedName.filter((function(e){return e!=n}))):(this.collaboratorListSelectedId.push(e),this.collaboratorListSelectedName.push(n)),this.validAllSelected()}},{key:"validAllSelected",value:function(){this.searchForm.get("allSelected").setValue(this.collaboratorListSelectedId.length==this.collaboratorList.length)}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.collaboratorListSelectedId=[],this.collaboratorListSelectedName=[],this.collaboratorList.forEach((function(t){e.collaboratorListSelectedId.push(t.id),e.collaboratorListSelectedName.push(t.name)}))):(this.collaboratorListSelectedId=[],this.collaboratorListSelectedName=[])}},{key:"finishSelection",value:function(){this.singleSelect&&this.collaboratorListSelectedId.length>1?this.functionsService.openSnackBar("Selecione apenas um funcin\xe1rio"):(this.emitList(),this.closeOnSelectedEmission&&this.closeModal())}},{key:"setDateSelected",value:function(e){var t=this;this.dateSelected=e,null!==this.unitSelectedId&&this.unitDatabase.getUnitCollaboratorListOut(this.unitSelectedId,this.dateSelected,(function(e){e.error||(t.collaboratorListOut=[{loading:!0}],t.collaboratorListOut=e.data.CollaboratorListOut||[],t.loadList())}))}},{key:"emitList",value:function(){this.selectedDate.emit([this.dateSelected]),this.selectedId.emit(this.collaboratorListSelectedId),this.selectedName.emit(this.collaboratorListSelectedName)}},{key:"btnAddClickEmit",value:function(){this.btnAddClick.emit()}},{key:"closeModal",value:function(){this.hideModal.emit(),this.resetForm(),this.resetCollaboratorList(),this.resetSearchEmitter.emit()}},{key:"downloadSignedDocument",value:function(e,t){var n=this;this.registerDocumentDatabase.getDocumentAttachment({document_id:e,attachment:"signed_"+t},(function(e){e.data&&n.functionsService.downloadFile(e.data,"pdf","document",!0)}))}}])}()).\u0275fac=function(e){return new(e||eR)($r(wp),$r(LN),$r(DN),$r(IN),$r(YP),$r(zP),$r(JO),$r(FN))},eR.\u0275cmp=Ot({type:eR,selectors:[["io-modal-multi-select-id"]],inputs:{btnAddText:"btnAddText",btnAddAction:"btnAddAction",btnConfirmText:"btnConfirmText",btnConfirmAction:"btnConfirmAction",closeOnSelectedEmission:"closeOnSelectedEmission",listForSelection:"listForSelection",getCollaboratorListIntermittentFromDatabase:"getCollaboratorListIntermittentFromDatabase",getCollaboratorListFromDatabase:"getCollaboratorListFromDatabase",moduleName:"moduleName",showModal:"showModal",unitSelectedId:"unitSelectedId",departmentSelectedId:"departmentSelectedId",documentSelectedId:"documentSelectedId",title:"title",selectedListId:"selectedListId",selectionEnabled:"selectionEnabled",selectUser:"selectUser",datePicker:"datePicker",singleSelect:"singleSelect"},outputs:{btnAddClick:"btnAddClick",hideModal:"hideModal",selectedId:"selectedId",selectedName:"selectedName",selectedDate:"selectedDate"},features:[dl],decls:19,vars:12,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2"],[1,"flex"],[1,"wdFull","mrgB2"],[1,"sizeA","cl-blue","mrgB2","fontBold","fontUp"],["class","btnSmall mrgL2 mrgB2",3,"moduleName","action","btnText","btnTitle","btnClick",4,"ngIf"],["class","mrgB2 wdMax25",4,"ngIf"],["class","bg-yellow-light mrgB2 pdg1",4,"ngIf"],[3,"reset","onKeyPress"],[1,"relativePlace"],["class","mrgT1 mrgB2",4,"ngIf"],["class","flex start wdFull mrgT1",3,"formGroup",4,"ngIf"],[1,"listBox"],["class","flex top listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex",4,"ngIf"],["class","flex center",4,"ngIf"],[1,"btnSmall","mrgL2","mrgB2",3,"moduleName","action","btnText","btnTitle","btnClick"],[1,"mrgB2","wdMax25"],[3,"labelText","minDate","startDate","dateSelectedEN"],[1,"bg-yellow-light","mrgB2","pdg1"],[1,"sizeC","fontBold"],[1,"mrgT1","mrgB2"],[1,"flex","start","wdFull","mrgT1",3,"formGroup"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"flex","top","listAlign"],["class","item sizeC",4,"ngIf"],["size","3x","class","iconItem iconSizeG clickPlace iconViewJourney iconViewFutureJourney",3,"icon","ngClass","title",4,"ngIf"],["size","3x","class","iconItem mrgL1 iconSizeG cl-blue clickPlace iconViewJourney iconViewFutureJourney","title","Baixar arquivo assinado.",3,"icon","click",4,"ngIf"],[1,"item","sizeC"],["type","checkbox",3,"checked","change"],["size","3x","class","iconItem iconSizeG cl-red clickPlace iconViewJourney iconViewFutureJourney",3,"icon","title",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-red","clickPlace","iconViewJourney","iconViewFutureJourney",3,"icon","title"],["size","3x",1,"iconItem","iconSizeG","clickPlace","iconViewJourney","iconViewFutureJourney",3,"icon","ngClass","title"],["size","3x","title","Baixar arquivo assinado.",1,"iconItem","mrgL1","iconSizeG","cl-blue","clickPlace","iconViewJourney","iconViewFutureJourney",3,"icon","click"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"flex","center"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"div",3),es(4,"div",2),es(5,"h2",4),Gs(6),ts(),ts(),ts(),Jr(7,AN,1,4,"io-btn",5),ts(),Jr(8,EN,2,3,"div",6),Jr(9,BN,3,1,"div",7),es(10,"io-search-line",8),ls("onKeyPress",(function(e){return t.collaboratorFilter(e)})),ts(),es(11,"div",9),Jr(12,NN,1,0,"div",10),Jr(13,RN,5,2,"div",11),es(14,"ul",12),Jr(15,UN,5,4,"li",13),Jr(16,KN,6,5,"li",14),ts(),ts(),ts(),Jr(17,ZN,3,11,"div",15),Jr(18,XN,2,6,"div",16),ts()),2&e&&(Zr("showModal",t.showModal),Bo(6),$s(t.title),Bo(1),Zr("ngIf",""!=t.btnAddText),Bo(1),Zr("ngIf",t.datePicker),Bo(1),Zr("ngIf",t.datePicker),Bo(1),Zr("reset",t.resetSearchEmitter),Bo(2),Zr("ngIf",!t.selectionEnabled||0===t.collaboratorList.length),Bo(1),Zr("ngIf",t.selectionEnabled&&t.collaboratorList.length>0),Bo(2),Zr("ngForOf",t.collaboratorListFiltered),Bo(1),Zr("ngIf",0==t.collaboratorListFiltered.length),Bo(1),Zr("ngIf",""!==t.btnConfirmText),Bo(1),Zr("ngIf",""===t.btnConfirmText))},directives:[CE,sh,oE,ah,jD,UA,Hf,ip,Of,Vf,vp,FD,ih],pipes:[xh],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}"]}),eR);function nR(e,t){if(1&e&&(es(0,"div"),es(1,"span",40),Gs(2,"Funcion\xe1rio:"),ts(),es(3,"div",41),es(4,"span",42),Gs(5),ts(),ts(),ts()),2&e){var n=fs();Bo(5),$s(n.description)}}function iR(e,t){if(1&e&&(es(0,"option",43),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.description)}}function oR(e,t){1&e&&(es(0,"div",44),es(1,"label",45),Gs(2,"Classifica\xe7\xe3o internacional de doen\xe7as (CID)"),ts(),ns(3,"input",46),ts()),2&e&&(Bo(3),Zr("formControlName","cid"))}function aR(e,t){if(1&e){var n=as();es(0,"io-datepicker",47),ls("dateSelectedEN",(function(e){return mn(n),fs().setEndDate(e)})),ts()}if(2&e){var i=fs();Zr("labelText","Data Final")("startDate",i.beginDateSelected)("currentDate",i.absenceForm.get("endDate").value)("minDate",i.minDateForEndDate)("resetDate",i.resetEndDateEmitter)}}function rR(e,t){if(1&e){var n=as();es(0,"div",48),es(1,"io-datepicker",49),ls("dateSelectedEN",(function(e){return mn(n),fs().absenceForm.get("reference_date").setValue(e)})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("labelText","Data de Refer\xeancia")("currentDate",i.absenceForm.get("reference_date").value)("validMinDateClosure",!0)("collaboratorListId",i.collaboratorListSelectedId)}}function sR(e,t){if(1&e){var n=as();es(0,"div",50),es(1,"div",2),es(2,"input",51),ls("change",(function(){return mn(n),fs().verifyHour("beginHour")})),ts(),es(3,"label",52),Gs(4,"Hor\xe1rio Inicial"),ts(),ts(),es(5,"div",2),es(6,"input",53),ls("change",(function(){return mn(n),fs().verifyHour("endHour")})),ts(),es(7,"label",54),Gs(8,"Hor\xe1rio Final"),ts(),ts(),ts()}if(2&e){var i=fs();Bo(2),Es(i.stateFields.beginHour.class),Zr("dropSpecialCharacters",!1)("formControlName","beginHour"),Bo(4),Es(i.stateFields.endHour.class),Zr("dropSpecialCharacters",!1)("formControlName","endHour")}}function lR(e,t){if(1&e){var n=as();es(0,"label",55),Gs(1,"Um dia "),es(2,"input",56),ls("change",(function(){return mn(n),fs().checkMultiDays()})),ts(),ns(3,"span",19),ts()}if(2&e){var i=fs();Bo(2),Zr("checked",!i.multiDays)}}function cR(e,t){if(1&e){var n=as();es(0,"label",55),Gs(1,"V\xe1rios dias "),es(2,"input",57),ls("change",(function(){return mn(n),fs().checkMultiDays()})),ts(),ns(3,"span",19),ts()}if(2&e){var i=fs();Bo(2),Zr("formControlName","multiDays")("checked",i.multiDays)}}function uR(e,t){if(1&e){var n=as();es(0,"label",55),Gs(1,"Descontar horas "),es(2,"input",18),ls("change",(function(){return mn(n),fs().checkCompTime()})),ts(),ns(3,"span",19),ts()}2&e&&(Bo(2),Zr("formControlName","comp_time"))}function dR(e,t){if(1&e){var n=as();es(0,"label",55),Gs(1,"Afastamento remunerado "),es(2,"input",18),ls("change",(function(){return mn(n),fs().checkPaidLeave()})),ts(),ns(3,"span",19),ts()}2&e&&(Bo(2),Zr("formControlName","paid_leave"))}function hR(e,t){if(1&e){var n=as();es(0,"div",59),es(1,"label",55),Gs(2,"Limitado \xe0 jornada "),es(3,"input",18),ls("change",(function(){return mn(n),fs(2).checkSumOnWorkTime()})),ts(),ns(4,"span",19),ts(),es(5,"label",55),Gs(6,"Total "),es(7,"input",18),ls("change",(function(){return mn(n),fs(2).checkSumTotalOnWorkTime()})),ts(),ns(8,"span",19),ts(),ts()}2&e&&(Bo(3),Zr("formControlName","sum_on_work_time"),Bo(4),Zr("formControlName","sum_total_on_work_time"))}function fR(e,t){if(1&e){var n=as();es(0,"div"),es(1,"label",55),Gs(2,"Adicionar \xe0s horas trabalhadas "),es(3,"input",18),ls("change",(function(){return mn(n),fs().checkSumWorkTime()})),ts(),ns(4,"span",19),ts(),Jr(5,hR,9,2,"div",58),ts()}if(2&e){var i=fs();Bo(3),Zr("formControlName","sum_work_time"),Bo(2),Zr("ngIf",i.showSumWorkTime)}}function mR(e,t){if(1&e){var n=as();es(0,"fa-icon",70),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(2).showModalAttachment(e.attachment)})),ts()}2&e&&Zr("icon",fs(3).iconRegularService.faEye)}function pR(e,t){if(1&e){var n=as();es(0,"div",65),es(1,"span",66),Gs(2),ts(),es(3,"span",67),es(4,"a",68),Jr(5,mR,1,1,"fa-icon",69),ts(),es(6,"fa-icon",70),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2).downloadAttachment(e.attachment)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2);Bo(2),Qs(" ",i.attachment," "),Bo(2),Zr("href",o.currentDatabase+"/storage/company_"+o.companyId+"/absence/absence_"+o.absenceId+"/"+i.attachment,mo),Bo(1),Zr("ngIf",i.isVisible),Bo(1),Zr("icon",o.iconSolidService.faDownload)}}function gR(e,t){if(1&e){var n=as();es(0,"div",60),es(1,"div",61),es(2,"h3",62),Gs(3,"Anexos"),ts(),es(4,"fa-icon",63),ls("click",(function(){return mn(n),fs().downloadAttachmentZip()})),ts(),ts(),Jr(5,pR,7,4,"div",64),ts()}if(2&e){var i=fs();Bo(4),Zr("icon",i.iconSolidService.faDownload),Bo(1),Zr("ngForOf",i.absenceAttachmentList)}}function vR(e,t){if(1&e&&(es(0,"span",73),ns(1,"fa-icon",75),ts()),2&e){var n=fs(2);Bo(1),Zr("icon",n.iconSolidService.faCheck)}}function yR(e,t){if(1&e){var n=as();es(0,"div",71),ls("click",(function(){return mn(n),fs(),Gr(47).click()})),ns(1,"fa-icon",72),es(2,"span",73),Gs(3,"Adicionar Anexos"),ts(),Jr(4,vR,2,1,"span",74),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconSolidService.faUpload),Bo(3),Zr("ngIf",null!=i.files&&i.files.length>0)}}function bR(e,t){if(1&e){var n=as();es(0,"io-btn",76),ls("btnClick",(function(){return mn(n),fs().sendAbsence()})),ts()}if(2&e){var i=fs();Zr("moduleName","absence")("action",i.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",i.updateOn?"Salvar":"Cadastrar")}}var _R,kR,CR,wR,xR=((wR=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.storageService=i,this.absenceDatabase=o,this.databaseService=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.validService=u,this.absenceId=null,this.showAsModal=!1,this.beginDateSelected="",this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.hideModal=new Mc,this.updateList=new Mc,this.resetEndDateEmitter=new Mc,this.btnEnable=!1,this.updateOn=!1,this.absenceAttachmentList=[],this.absenceMotive=0,this.absenceMotiveSelected="",this.absenceMotiveText=["DSR","Suspens\xe3o Disciplinar","Atestado"," F\xe9rias","Folga / Compensa\xe7\xe3o","Dispensa Legal","Benef\xedcio Previdenci\xe1rio","Outros"],this.absenceTypeList=[{id:"3",description:"Atestado"},{id:"9",description:"Abono"},{id:"7",description:"Benef\xedcio Previdenci\xe1rio"},{id:"6",description:"Dispensa Legal"},{id:"1",description:"DSR"},{id:"4",description:"F\xe9rias"},{id:"5",description:"Folga / Compensa\xe7\xe3o"},{id:"2",description:"Suspens\xe3o Disciplinar"},{id:"8",description:"Outros"}],this.collaboratorListSelectedId=[],this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.currentDatabase=this.databaseService.currentDatabaseUrl(),this.description="Descri\xe7\xe3o",this.modalCollaborator=!1,this.minDateForEndDate="",this.fullDay=!1,this.partial=!1,this.multiDays=!0,this.compTimeEnable=!0,this.paidLeaveEnable=!0,this.showSumWorkTime=!1,this.showCid=!1,this.isPaidLeave=!1,this.files=null,this.amount_files=0,this.stateFields={description:{class:""},beginDate:{class:""},endDate:{class:""},beginHour:{class:""},endHour:{class:""},absence_type_id:{class:""}},this.absenceForm=this.formBuilder.group({absence_type_id:new Wm(null,[Jf.required]),comp_time:new Wm(!1,[Jf.required]),cid:new Wm(null,[Jf.required]),description:new Wm("",[Jf.required]),paid_leave:new Wm(!1,[Jf.required]),sum_work_time:new Wm(!1,[Jf.required]),sum_on_work_time:new Wm(!1,[Jf.required]),sum_total_on_work_time:new Wm(!1,[Jf.required]),begin_date:new Wm("",[Jf.required]),end_date:new Wm("",[Jf.required]),details:new Wm("",[Jf.required]),full_day:new Wm(!1,[Jf.required]),reference_date:new Wm("",[Jf.required]),beginDate:new Wm("",[Jf.required]),endDate:new Wm("",[Jf.required]),beginHour:new Wm("",[Jf.required]),endHour:new Wm("",[Jf.required]),multiDays:new Wm(!0,[Jf.required])}),this.absenceDatabase.getAbsenceTypeList({onlyActives:!0},(function(e){e.error||e.data.absenceTypeList.length>0&&(e.data.absenceTypeList.forEach((function(e){d.absenceTypeList.push(e)})),d.absenceTypeList=d.functionsService.arrayReOder(d.absenceTypeList,"description"))}))}),[{key:"ngOnInit",value:function(){var e=this;this.absenceId?(this.updateOn=!0,this.absenceDatabase.getAbsence(this.companyId,this.absenceId,(function(t){if(!t.error){var n=t.data.absence,i=[];n.collaborators.forEach((function(t){e.collaboratorListSelectedId.push(t.collaborator_id),i.push(t.name)})),e.setDescription(i),e.absenceForm.get("absence_type_id").setValue(n.absence_type_id),e.setMotive(e.absenceForm.get("absence_type_id").value),e.setSumWorkDay(n.sum_on_work_time,n.sum_total_on_work_time),e.absenceForm.get("description").setValue(n.description),e.absenceForm.get("comp_time").setValue(n.comp_time),1==n.comp_time&&(e.isPaidLeave=!1),e.absenceForm.get("paid_leave").setValue(n.paid_leave),e.absenceForm.get("cid").setValue(n.absenceCid),e.absenceForm.get("sum_on_work_time").setValue(n.sum_on_work_time),e.absenceForm.get("sum_total_on_work_time").setValue(n.sum_total_on_work_time),e.absenceForm.get("details").setValue(n.details),e.absenceForm.get("reference_date").setValue(n.reference_date),e.amount_files=n.amount_files,e.absenceForm.get("beginDate").setValue(n.begin_date.toString().split(" ")[0]),e.absenceForm.get("endDate").setValue(n.end_date.toString().split(" ")[0]),e.absenceForm.get("beginHour").setValue(n.begin_date.toString().split(" ")[1]),e.absenceForm.get("endHour").setValue(n.end_date.toString().split(" ")[1]),e.multiDays=!1,e.absenceForm.get("multiDays").setValue(!1),n.begin_date.toString().split(" ")[0]!=n.end_date.toString().split(" ")[0]&&(e.absenceForm.get("multiDays").setValue(!0),e.multiDays=!0),"00:00:00"==n.begin_date.toString().split(" ")[1]&&"23:59:00"==n.end_date.toString().split(" ")[1]&&e.absenceForm.get("full_day").setValue(!0),e.absenceAttachmentList=n.absence_attachments,e.absenceAttachmentList.forEach((function(t,n){var i=t.attachment.split(".")[t.attachment.split(".").length-1];e.absenceAttachmentList[n]=Object.assign(Object.assign({},e.absenceAttachmentList[n]),{isVisible:["jpg","jpeg","png","txt"].includes(i)})})),e.btnEnable=!0}}))):this.btnEnable=!0,this.showAsModal&&(this.absenceForm.get("beginDate").setValue(this.beginDateSelected),this.absenceForm.get("endDate").setValue(this.beginDateSelected),this.setMinDateForEndDate(this.beginDateSelected),this.setCollaboratorListSelect([this.collaboratorSelectedId]),this.setDescription([this.collaboratorSelectedName]))}},{key:"setBeginDate",value:function(e){this.absenceForm.get("beginDate").setValue(e),""!=e?this.setMinDateForEndDate(e):this.resetEndDate()}},{key:"resetEndDate",value:function(){this.resetEndDateEmitter.emit()}},{key:"setMinDateForEndDate",value:function(e){this.minDateForEndDate=this.functionsService.getDayAfter(e,1)}},{key:"setEndDate",value:function(e){var t=this;this.interval=setTimeout((function(){t.absenceForm.get("endDate").setValue(e)}),1)}},{key:"showModalCollaborator",value:function(){this.modalCollaborator=!0}},{key:"setCollaboratorListSelect",value:function(e){var t=this;this.collaboratorListSelectedId=[],e.forEach((function(e){t.collaboratorListSelectedId.push(e)}))}},{key:"setDescription",value:function(e){this.description=1==e.length?e[0]:"M\xfaltiplos",this.absenceForm.get("description").valid||this.absenceForm.get("description").setValue(this.description)}},{key:"hideModalCollaborator",value:function(){this.modalCollaborator=!1}},{key:"handleFile",value:function(e){this.files=e}},{key:"setMotive",value:function(e){var t=this;this.absenceMotive=parseInt(e),this.compTimeEnable=!1,this.paidLeaveEnable=!1,this.multiDays=!0,this.absenceForm.get("multiDays").setValue(!0),this.absenceForm.get("reference_date").setValue(""),this.absenceMotiveSelected=this.absenceTypeList.filter((function(e){return e.id==t.absenceMotive.toString()}))[0].description,1==this.absenceMotive&&(this.absenceForm.get("endDate").setValue(""),this.absenceForm.get("full_day").setValue(!0),this.multiDays=!1,this.absenceForm.get("multiDays").setValue(!1)),this.showCid=3==this.absenceMotive,4==this.absenceMotive&&(this.absenceForm.get("full_day").setValue(!0),this.multiDays=!0),5!=this.absenceMotive&&8!=this.absenceMotive||(this.compTimeEnable=!0),2!=this.absenceMotive&&this.absenceMotive<=9&&(this.paidLeaveEnable=!0),this.checkCompTime(),this.checkPaidLeave(!1)}},{key:"checkMultiDays",value:function(){if(4==this.absenceMotive)return this.absenceForm.get("multiDays").setValue(!0),this.functionsService.openSnackBar("Este campo n\xe3o pode ser editado se o tipo for "+this.absenceMotiveSelected),void this.setMotive("4");this.multiDays=!this.multiDays,this.multiDays&&this.absenceForm.get("endDate").setValue("")}},{key:"checkFullDay",value:function(){1==this.absenceMotive&&(this.multiDays=!1,this.absenceForm.get("full_day").setValue("true"),this.functionsService.openSnackBar("O DSR \xe9 obrigat\xf3riamente um dia inteiro.")),4==this.absenceMotive&&(this.multiDays=!0,this.absenceForm.get("full_day").setValue("true"),this.functionsService.openSnackBar("No tipo F\xe9rias, o dia todo \xe9 obrigat\xf3rio."))}},{key:"checkCompTime",value:function(){var e=this,t=this.absenceMotive;this.isPaidLeave=!1,this.absenceTypeList.map((function(n){n.id==t&&1==n.comp_time&&(e.absenceForm.get("comp_time").setValue(!0),e.compTimeEnable=!0)})),5!=t&&8!=t&&t<=9&&(this.absenceForm.get("comp_time").setValue(!1),this.showSumWorkTime=!1,this.absenceForm.get("sum_work_time").setValue(!1),this.absenceForm.get("sum_on_work_time").setValue(!1),this.absenceForm.get("sum_total_on_work_time").setValue(!1)),this.absenceForm.get("paid_leave").value||this.absenceForm.get("comp_time").setValue(!0),this.absenceForm.get("comp_time").value&&(this.absenceForm.get("paid_leave").setValue(!1),this.showSumWorkTime=!1,this.absenceForm.get("sum_work_time").setValue(!1),this.absenceForm.get("sum_on_work_time").setValue(!1),this.absenceForm.get("sum_total_on_work_time").setValue(!1))}},{key:"checkPaidLeave",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this.absenceMotive;this.absenceTypeList.map((function(t){t.id==n&&1==t.paid_leave&&(e.absenceForm.get("paid_leave").setValue(!0),e.paidLeaveEnable=!0)})),2!=n&&5!=n&&8!=n&&n<=9&&(this.absenceForm.get("paid_leave").setValue(!0),this.isPaidLeave=!0),2==n&&(this.absenceForm.get("paid_leave").setValue(!1),this.isPaidLeave=!1),5!=n&&8!=n&&n<9&&t&&this.functionsService.openSnackBar("Estes campos n\xe3o podem ser editados se o tipo for "+this.absenceMotiveSelected),this.absenceForm.get("comp_time").value||(this.absenceForm.get("paid_leave").setValue(!0),this.isPaidLeave=!0),this.absenceForm.get("paid_leave").value&&(this.absenceForm.get("comp_time").setValue(!1),this.isPaidLeave=!0)}},{key:"setSumWorkDay",value:function(e,t){this.showSumWorkTime=e||t,this.absenceForm.get("sum_work_time").setValue(this.showSumWorkTime)}},{key:"checkSumWorkTime",value:function(){this.showSumWorkTime=this.absenceForm.get("sum_work_time").value,this.showSumWorkTime||(this.absenceForm.get("sum_total_on_work_time").setValue(!1),this.absenceForm.get("sum_on_work_time").setValue(!1))}},{key:"checkSumOnWorkTime",value:function(){this.absenceForm.get("sum_on_work_time").value&&this.absenceForm.get("sum_total_on_work_time").setValue(!1)}},{key:"checkSumTotalOnWorkTime",value:function(){this.absenceForm.get("sum_total_on_work_time").value&&this.absenceForm.get("sum_on_work_time").setValue(!1)}},{key:"validAbsence",value:function(){if(0==this.collaboratorListSelectedId.length)return this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio para cadastrar"),!1;if(null==this.absenceForm.get("absence_type_id").value)return this.functionsService.openSnackBar("Selecione o tipo de aus\xeancia"),!1;if(0==this.multiDays&&this.absenceForm.get("endDate").setValue(this.absenceForm.get("beginDate").value),1!=this.absenceForm.get("full_day").value&&4!=this.absenceMotive||(this.absenceForm.get("beginHour").setValue("00:00"),this.absenceForm.get("endHour").setValue("23:59")),!this.checkErrorField("description"))return this.functionsService.openSnackBar("Informe a descri\xe7\xe3o"),!1;if(!this.checkErrorField("beginDate"))return this.functionsService.openSnackBar("Informe a data inicial"),!1;if(!this.checkErrorField("endDate"))return this.functionsService.openSnackBar("Informe a data final"),!1;if(!this.checkErrorField("beginHour"))return this.functionsService.openSnackBar("Informe a hora inicial"),!1;if(!this.checkErrorField("endHour"))return this.functionsService.openSnackBar("Informe a hora final"),!1;var e=this.functionsService.removeSings(this.absenceForm.get("beginDate").value),t=this.functionsService.removeSings(this.absenceForm.get("endDate").value);return e>t?(this.functionsService.openSnackBar("endDateBigger"),!1):!(e==t&&this.functionsService.removeSings(this.absenceForm.get("beginHour").value)>this.functionsService.removeSings(this.absenceForm.get("endHour").value)&&(this.functionsService.openSnackBar("endHourBigger"),1))}},{key:"absenceCanBeCreated",value:function(){var e=this;this.multiDays?this.absenceForm.get("multiDays").setValue(!0):this.absenceForm.get("multiDays").setValue(!1);var t=new FormData;return t.append("full_day",this.absenceForm.get("full_day").value?"1":"0"),t.append("multi_day",this.absenceForm.get("multiDays").value),t.append("begin_date",this.absenceForm.get("beginDate").value),t.append("end_date",this.absenceForm.get("endDate").value),t.append("hour_begin",this.absenceForm.get("beginHour").value),t.append("hour_end",this.absenceForm.get("endHour").value),t.append("collaborator_id",JSON.stringify(this.collaboratorListSelectedId)),new Promise((function(n,i){e.absenceDatabase.postValidAbsenceOnDate(t,(function(t){t.error?(e.functionsService.openSnackBar("N\xe3o \xe9 poss\xedvel criar uma aus\xeancia no per\xedodo selecionado pois j\xe1 h\xe1 pontos registrados","error"),n(!1)):n(!0)}))}))}},{key:"sendAbsence",value:function(){return ek(this,void 0,void 0,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.validAbsence(),!e.t0){e.next=5;break}return e.next=4,this.absenceCanBeCreated();case 4:e.t0=e.sent;case 5:if(e.t1=e.t0,!e.t1){e.next=8;break}this.absenceForm.get("begin_date").setValue(this.absenceForm.get("beginDate").value+" "+this.absenceForm.get("beginHour").value+":00"),this.absenceForm.get("end_date").setValue(this.absenceForm.get("endDate").value+" "+this.absenceForm.get("endHour").value+":00"),this.absenceId?this.updateAbsence():this.postAbsence();case 8:case"end":return e.stop()}}),e,this)})))}},{key:"postAbsence",value:function(){var e=this,t=new FormData;if(this.files)for(var n=0;n<this.files.length;n++)t.append("attachment[]",this.files[n]);t.append("company_id",this.companyId),t.append("collaborator_id",JSON.stringify(this.collaboratorListSelectedId)),t.append("cid",this.absenceForm.get("cid").value),t.append("absence_type_id",this.absenceForm.get("absence_type_id").value),t.append("description",this.absenceForm.get("description").value),t.append("begin_date",this.absenceForm.get("begin_date").value),t.append("end_date",this.absenceForm.get("end_date").value),t.append("reference_date",this.absenceForm.get("reference_date").value),t.append("comp_time",this.absenceForm.get("comp_time").value?"1":"0"),t.append("paid_leave",this.absenceForm.get("paid_leave").value?"1":"0"),t.append("sum_on_work_time",this.absenceForm.get("sum_on_work_time").value?"1":"0"),t.append("sum_total_on_work_time",this.absenceForm.get("sum_total_on_work_time").value?"1":"0"),t.append("full_day",this.absenceForm.get("full_day").value?"1":"0"),t.append("details",this.absenceForm.get("details").value),t.append("is_read","1"),this.absenceDatabase.postAbsence(t,(function(t){t.error||(e.updateList.emit(),e.endRegister())}))}},{key:"updateAbsence",value:function(){var e=this,t=JSON.stringify(this.collaboratorListSelectedId),n=Object.assign({company_id:this.companyId,collaborator_id:t},this.absenceForm.value);this.absenceDatabase.putAbsence(this.absenceId,n,(function(t){t.error||(e.updateList.emit(),e.endRegister())}))}},{key:"showModalAttachment",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[t.split(".").length-1];this.absenceDatabase.getAbsenceAttachment({absence_id:this.absenceId,attachment:t},(function(i){i.error||e.functionsService.downloadFile(i.data,n,t.split("."+n)[0],!0)}))}},{key:"downloadAttachment",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[t.split(".").length-1];this.absenceDatabase.getAbsenceAttachment({absence_id:this.absenceId,attachment:t},(function(i){i.error||e.functionsService.downloadFile(i.data,n,t.split("."+n)[0])}))}},{key:"downloadAttachmentZip",value:function(){var e=this;this.absenceDatabase.getFileZip(this.companyId,[],"absence",this.absenceId,(function(t){t.error||e.functionsService.downloadFile(t.data,"zip","anexos")}))}},{key:"checkErrorField",value:function(e){return this.absenceForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"verifyHour",value:function(e){this.absenceForm.get(e).setValue(this.validService.validHour(this.absenceForm.get(e).value))}},{key:"endRegister",value:function(){this.showAsModal?this.hideModal.emit():this.router.navigate(["/absence"]).then((function(){return!1}))}}])}()).\u0275fac=function(e){return new(e||wR)($r(wp),$r(yM),$r(YP),$r(aT),$r(tT),$r(zP),$r(WO),$r(JO),$r(TN))},wR.\u0275cmp=Ot({type:wR,selectors:[["io-absence-form"]],inputs:{absenceId:"absenceId",showAsModal:"showAsModal",beginDateSelected:"beginDateSelected",collaboratorSelectedId:"collaboratorSelectedId",collaboratorSelectedName:"collaboratorSelectedName"},outputs:{hideModal:"hideModal",updateList:"updateList",resetEndDateEmitter:"resetEndDateEmitter"},decls:50,vars:42,consts:[[1,"formBox",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","required","","type","text",3,"formControlName"],["for","description",1,"form-label","required"],[4,"ngIf"],[1,"minHeightBox","mrgB2"],[1,"flex","fullHeight","absenceBox"],[1,"block"],[1,"flex","top","mrgB2"],[1,"form-group","selectAbsenceType","inputAnimated"],["id","absence_type_id","required","",3,"formControlName","change","keyup"],["typeId",""],[3,"value",4,"ngFor","ngForOf"],["for","absence_type_id",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"form-group","checkFullDay"],[1,"radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"formControlName","change"],[1,"checkmark"],["class","form-group",4,"ngIf"],[1,"flex","top","mrgB2",3,"ngClass"],[1,"datepicker","required",3,"labelText","startDate","currentDate","validMinDateClosure","collaboratorListId","dateSelectedEN"],["class","datepicker required",3,"labelText","startDate","currentDate","minDate","resetDate","dateSelectedEN",4,"ngIf"],["class","flex start mrgB2",4,"ngIf"],["class","flex mrgB2",4,"ngIf"],[1,"selectBox"],["class","item radioBox sizeC",4,"ngIf"],[1,"flex","sizeC","pdgB1"],[1,"flexDesk","round2"],[1,"form-group","wdFull","inputAnimated"],["placeholder","","required","",1,"sizeC","round2",3,"formControlName"],["class","attachmentList",4,"ngIf"],[1,"flex"],[3,"moduleName","btnColor","btnText","useValidation","btnClick"],["class","clickPlace flex center wdMax25 btn","title","Adicionar anexos",3,"click",4,"ngIf"],["hidden","","type","file","multiple","multiple",1,"hide",3,"change"],["fileInput",""],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnClick",4,"ngIf"],[3,"showModal","selectedListId","selectedId","selectedName","hideModal"],[1,"sizeD"],[1,"flex","start"],[1,"sizeC","borderBottom"],[3,"value"],[1,"form-group"],["for","cid",1,"form-label"],["autocomplete","off","id","cid","placeholder","Separe as CID's por v\xedrgula. EX: A01,A02,A01.0","required","","type","text",3,"formControlName"],[1,"datepicker","required",3,"labelText","startDate","currentDate","minDate","resetDate","dateSelectedEN"],[1,"flex","start","mrgB2"],[1,"datepicker",3,"labelText","currentDate","validMinDateClosure","collaboratorListId","dateSelectedEN"],[1,"flex","mrgB2"],["onClick","this.select();","autocomplete","off","id","beginHour1","mask","00:00","maxlength","5","placeholder","","type","text","required","",3,"dropSpecialCharacters","formControlName","change"],["for","beginHour1",1,"form-label","required"],["onClick","this.select();","autocomplete","off","id","endHour1","mask","00:00","maxlength","5","placeholder","","type","text","required","",3,"dropSpecialCharacters","formControlName","change"],["for","endHour1",1,"form-label","required"],[1,"item","radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","change"],["type","checkbox",1,"radioBoxInput",3,"formControlName","checked","change"],["class","pdgL2 mrgB2",4,"ngIf"],[1,"pdgL2","mrgB2"],[1,"attachmentList"],[1,"flex","borderBottom","mrgB1"],[1,"sizeC","fontBold"],["size","3x","title","Baixar todos os anexos",1,"iconItem","iconSizeG","cl-blue","clickPlace",3,"icon","click"],["class","flex attachmentItem ",4,"ngFor","ngForOf"],[1,"flex","attachmentItem"],[1,"sizeC","cl-blue"],[1,"flexDesk","end"],["target","_blank",1,"linkFlex","clickPlace","mrgR1",3,"href"],["size","3x","class","iconItem iconSizeG cl-blue clickPlace",3,"icon","click",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-blue","clickPlace",3,"icon","click"],["title","Adicionar anexos",1,"clickPlace","flex","center","wdMax25","btn",3,"click"],["size","3x",1,"iconItem","iconSizeE","cl-blue",3,"icon"],[1,"sizeC","mrgL1"],["class","sizeC mrgL1",4,"ngIf"],[1,"cl-green",3,"icon"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){if(1&e){var n=as();es(0,"form",0),es(1,"div"),es(2,"io-main-top",1),ls("btnClick",(function(){return t.showModalCollaborator()})),ts(),es(3,"div",2),ns(4,"input",3),es(5,"label",4),Gs(6,"Descri\xe7\xe3o"),ts(),ts(),Jr(7,nR,6,1,"div",5),es(8,"div",6),es(9,"div",7),es(10,"div",8),es(11,"div",9),es(12,"div",10),es(13,"select",11,12),ls("change",(function(){mn(n);var e=Gr(14);return t.setMotive(e.value)}))("keyup",(function(){return t.checkErrorField("absence_type_id")})),Jr(15,iR,2,2,"option",13),ts(),es(16,"label",14),Gs(17,"Tipo de aus\xeancia"),ts(),ns(18,"fa-icon",15),ts(),es(19,"div",16),es(20,"label",17),Gs(21,"Dia todo "),es(22,"input",18),ls("change",(function(){return t.checkFullDay()})),ts(),ns(23,"span",19),ts(),ts(),ts(),Jr(24,oR,4,1,"div",20),es(25,"div",21),es(26,"io-datepicker",22),ls("dateSelectedEN",(function(e){return t.setBeginDate(e)})),ts(),Jr(27,aR,1,5,"io-datepicker",23),ts(),Jr(28,rR,2,4,"div",24),Jr(29,sR,9,10,"div",25),ts(),es(30,"div",8),es(31,"div",26),Jr(32,lR,4,1,"label",27),Jr(33,cR,4,2,"label",27),Jr(34,uR,4,1,"label",27),Jr(35,dR,4,1,"label",27),Jr(36,fR,6,2,"div",5),ts(),ts(),ts(),es(37,"span",28),Gs(38,"Detalhes:"),ts(),es(39,"div",29),es(40,"div",30),ns(41,"textarea",31),ts(),ts(),ts(),ts(),Jr(42,gR,6,2,"div",32),es(43,"div",33),es(44,"io-btn",34),ls("btnClick",(function(){return t.endRegister()})),ts(),Jr(45,yR,5,2,"div",35),es(46,"input",36,37),ls("change",(function(e){return t.handleFile(e.target.files)})),ts(),Jr(48,bR,1,4,"io-btn",38),ts(),ts(),es(49,"io-modal-multi-select-id",39),ls("selectedId",(function(e){return t.setCollaboratorListSelect(e)}))("selectedName",(function(e){return t.setDescription(e)}))("hideModal",(function(){return t.hideModalCollaborator()})),ts()}2&e&&(Zr("formGroup",t.absenceForm),Bo(2),Zr("moduleName","absence")("titleTop",t.updateOn?"Edi\xe7\xe3o de Aus\xeancia":"Cadastro de Aus\xeancia")("showBtn",!t.showAsModal)("btnDataText","Selecionar Funcion\xe1rios"),Bo(2),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(3),Zr("ngIf",1==t.collaboratorListSelectedId.length),Bo(6),Es(t.stateFields.absence_type_id.class),Zr("formControlName","absence_type_id"),Bo(2),Zr("ngForOf",t.absenceTypeList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(4),Zr("formControlName","full_day"),Bo(2),Zr("ngIf",t.showCid),Bo(1),Zr("ngClass",t.multiDays||1==t.absenceMotive?"":"start"),Bo(1),Zr("labelText",t.multiDays?"Data Inicial":"Data")("startDate",t.beginDateSelected)("currentDate",t.absenceForm.get("beginDate").value)("validMinDateClosure",!0)("collaboratorListId",t.collaboratorListSelectedId),Bo(1),Zr("ngIf",t.multiDays),Bo(1),Zr("ngIf",1==t.absenceMotive),Bo(1),Zr("ngIf",0==t.absenceForm.get("full_day").value&&4!=t.absenceMotive),Bo(3),Zr("ngIf",1!=t.absenceMotive&&4!=t.absenceMotive),Bo(1),Zr("ngIf",1!=t.absenceMotive),Bo(1),Zr("ngIf",0!=t.absenceMotive&&t.compTimeEnable),Bo(1),Zr("ngIf",0!=t.absenceMotive&&t.paidLeaveEnable),Bo(1),Zr("ngIf",0!=t.absenceMotive&&t.isPaidLeave),Bo(5),Zr("formControlName","details"),Bo(1),Zr("ngIf",t.absenceAttachmentList.length>0),Bo(2),Zr("moduleName","absence")("btnColor","btn-red")("btnText","Cancelar")("useValidation",!1),Bo(1),Zr("ngIf",!t.updateOn),Bo(3),Zr("ngIf",t.btnEnable),Bo(1),Zr("showModal",t.modalCollaborator)("selectedListId",t.collaboratorListSelectedId))},directives:[ep,Hf,ip,eI,If,bp,Vf,vp,sh,vm,ah,FD,Of,ih,UA,jD,tR,ym,xm,DE,kp],styles:[".absenceBox[_ngcontent-%COMP%]{padding:20px 0}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%], .absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{width:100%}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .checkBoxLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;max-width:24%}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flexDesk[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{max-width:24%}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:49%}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker.checkFullDay[_ngcontent-%COMP%], .absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group.checkFullDay[_ngcontent-%COMP%]{margin:0}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker.checkFullDay[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group.checkFullDay[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:3px 0 0;padding-bottom:7px;height:32px}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{width:100%;height:100%;max-width:23%;margin-left:20px}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .selectBox[_ngcontent-%COMP%]{padding:15px 15px 0;border:1px solid var(--cl-gray-dark);border-radius:4px}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .selectBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin:0 0 20px}textarea[_ngcontent-%COMP%]{overflow:hidden;margin:0}.attachmentList[_ngcontent-%COMP%]{max-width:100%;margin:0 0 20px}.attachmentList[_ngcontent-%COMP%]   .attachmentItem[_ngcontent-%COMP%]{margin:0 0 10px}input[_ngcontent-%COMP%]::-webkit-input-placeholder{opacity:.7}@media (max-width:700px){.absenceBox[_ngcontent-%COMP%]{display:block}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:250px;margin:0 auto 20px 0}}@media (max-width:550px){.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]{display:block}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}}"]}),wR),MR=((CR=function(){return d((function e(t){c(this,e),this.titleService=t,this.titleService.setTitle("Aus\xeancias - Cadastro")}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||CR)($r(hL))},CR.\u0275cmp=Ot({type:CR,selectors:[["io-absence-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-absence-form"),ts(),ts())},directives:[xR],styles:[""]}),CR),SR=((kR=function(){return d((function e(t,n,i){var o=this;c(this,e),this.titleService=t,this.activatedRoute=n,this.storageService=i,this.absenceId="",this.titleService.setTitle("Aus\xeancias - Edi\xe7\xe3o"),this.activatedRoute.params.subscribe((function(e){o.absenceId=e.absenceId}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||kR)($r(hL),$r(lx),$r(YP))},kR.\u0275cmp=Ot({type:kR,selectors:[["io-update-absence"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"absenceId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-absence-form",2),ts(),ts()),2&e&&(Bo(2),Zr("absenceId",t.absenceId))},directives:[xR],styles:[""]}),kR),PR=((_R=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getAdjustmentList",value:function(e,t){this.databaseService.get("/adjustment",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAdjustment",value:function(e,t,n){this.databaseService.get("/adjustment/getAdjustmentByDate",{collaboratorId:e,date:t}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putAdjustment",value:function(e,t,n){this.databaseService.put("/adjustment/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putAdjustmentAllFromCollaborator",value:function(e,t){this.databaseService.put("/adjustment/adjustmentAllFromCollaborator",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"approveMultiplesAdjusttments",value:function(e,t){this.databaseService.put("/adjustment/approveMultiplesAdjustments",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||_R)(ut(tT))},_R.\u0275prov=Se({token:_R,factory:_R.\u0275fac,providedIn:"root"}),_R);function TR(e,t){if(1&e&&(is(0),es(1,"p",8),Gs(2,"Justificativa do Gestor:"),ts(),es(3,"p",4),Gs(4),ts(),os()),2&e){var n=fs();Bo(4),$s(n.justificationManager)}}var OR,LR=((OR=function(){return d((function e(t){c(this,e),this.functionsService=t,this.showModal=!0,this.justification="",this.justificationManager="",this.hideModal=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit()}},{key:"getFullDateBr",value:function(e){return this.functionsService.getFullDateBR(e.split(" ")[0]).split(", ")[1]}},{key:"getDateBr",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])}},{key:"getHour",value:function(e){return e.split(" ")[1]}}])}()).\u0275fac=function(e){return new(e||OR)($r(zP))},OR.\u0275cmp=Ot({type:OR,selectors:[["io-adjustment-modal-justification"]],inputs:{showModal:"showModal",justification:"justification",justificationManager:"justificationManager",date:"date"},outputs:{hideModal:"hideModal"},decls:15,vars:12,consts:[[3,"showModal","mediumSize","hideModal"],[1,"mrgB2","fontBold"],[1,"sizeB","cl-blue","fontUp","pdgT2","fontBold"],[1,"justificationText"],[1,"sizeC","mrgB1"],[4,"ngIf"],[1,"flex","center","pdgT1","pdgB1","mrgT2"],[1,"btnSmall","btnShort",3,"moduleName","action","btnClassList","btnText","btnTitle","useValidation","btnClick"],[1,"sizeC","fontBold"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div"),es(2,"p",1),Gs(3),ts(),es(4,"h2",2),Gs(5,"Justificativa:"),ts(),es(6,"div",3),ns(7,"br"),es(8,"p",4),Gs(9),ts(),ts(),es(10,"div",3),ns(11,"br"),Jr(12,TR,5,1,"ng-container",5),ts(),es(13,"div",6),es(14,"io-btn",7),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal)("mediumSize",!0),Bo(3),Ks("Solicitado em ",t.getFullDateBr(t.date)," \xe0s ",t.getHour(t.date),""),Bo(6),$s(t.justification),Bo(3),Zr("ngIf",null!=t.justificationManager),Bo(2),Zr("moduleName","adjustment")("action","")("btnClassList","btnSmall btnShort")("btnText","fechar")("btnTitle","fechar")("useValidation",!1))},directives:[CE,sh,jD],styles:[""]}),OR);function DR(e,t){1&e&&(es(0,"div",10),es(1,"label",11),Gs(2,"Estou ciente que, ap\xf3s a aprova\xe7\xe3o, este ponto n\xe3o poder\xe1 ser alterado. "),ns(3,"input",12),ns(4,"span",13),ts(),ts()),2&e&&(Bo(3),Zr("formControlName","awareApproved"))}var IR,FR=((IR=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.adjustmentDatabase=n,this.functionsService=i,this.showModal=!0,this.hideModal=new Mc,this.adjustmentApproveForm=this.formBuilder.group({manager_justification:new Wm("",[Jf.required]),awareApproved:new Wm(!1,[Jf.required])})}),[{key:"approveMultiplesAdjustments",value:function(e){var t=this;1!=e||0!=this.adjustmentApproveForm.get("awareApproved").value?this.adjustmentDatabase.approveMultiplesAdjusttments({adjustments:this.adjustments,manager_justification:this.adjustmentApproveForm.controls.manager_justification.value,emailNotification:!0,notification:!0,approved:this.approved},(function(e){e.error||t.closeModal()})):this.functionsService.openSnackBar("\xc9 necess\xe1rio declarar ci\xeancia sobre a n\xe3o altera\xe7\xe3o do ponto ap\xf3s a confirma\xe7\xe3o","error",4e3)}},{key:"closeModal",value:function(){this.adjustmentApproveForm.controls.awareApproved.setValue(!1),this.adjustmentApproveForm.controls.manager_justification.setValue(""),this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||IR)($r(wp),$r(PR),$r(zP))},IR.\u0275cmp=Ot({type:IR,selectors:[["io-adjustment-approve-modal"]],inputs:{showModal:"showModal",approved:"approved",adjustments:"adjustments"},outputs:{hideModal:"hideModal"},decls:12,vars:16,consts:[[3,"showModal","hideModal"],[1,"adjustmentTextBox",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","pdgT2","pdgB2","fontBold"],[1,"form-group","inputAnimated"],["placeholder","Coment\xe1rio ou justificativa...","required","",1,"sizeC",3,"formControlName"],[1,"detail","bg-gray","mrgB1"],["class","pdgT1 pdgB2 mrgT2 mrgB2",4,"ngIf"],[1,"flex"],[1,"btnSmall","btnShort",3,"moduleName","action","btnClassList","btnText","btnTitle","useValidation","btnClick"],[1,"btnSmall","btnShort","mrgL2",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[1,"pdgT1","pdgB2","mrgT2","mrgB2"],[1,"radioBox","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Coment\xe1rio ou justificativa"),ts(),es(4,"div"),es(5,"div",3),ns(6,"textarea",4),ts(),ts(),ns(7,"div",5),Jr(8,DR,5,1,"div",6),es(9,"div",7),es(10,"io-btn",8),ls("btnClick",(function(){return t.closeModal()})),ts(),es(11,"io-btn",9),ls("btnClick",(function(){return t.approveMultiplesAdjustments(t.approved)})),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.adjustmentApproveForm),Bo(5),Zr("formControlName","manager_justification"),Bo(2),Zr("ngIf",1==t.approved),Bo(2),Zr("moduleName","adjustment")("action","")("btnClassList","btnSmall btnShort")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","adjustment")("action","update")("btnClassList","btnSmall btnShort")("btnColor",1==t.approved?"btn-blue-bg":"btn-red-bg")("btnText",1==t.approved?"Aprovar":"Reprovar")("btnTitle",1==t.approved?"Aprovar":"Reprovar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,sh,jD,Of],styles:[".adjustmentTextBox[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]{padding:35px 45px;transform:translateY(-20px)}.adjustmentTextBox[_ngcontent-%COMP%]   .justificationText[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]   .justificationText[_ngcontent-%COMP%]{padding:10px 0}.adjustmentTextBox[_ngcontent-%COMP%]   .menuUserItem[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]   .menuUserItem[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin:0 0 10px}.adjustmentTextBox[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:1px}.adjustmentTextBox.active[_ngcontent-%COMP%], .justificationTextBox.active[_ngcontent-%COMP%]{transform:translateY(35px)}"]}),IR);function AR(e,t){1&e&&(es(0,"span",33),Gs(1,"Escala do tipo: Flex\xedvel, n\xe3o possui hor\xe1rios definidos."),ts())}function ER(e,t){if(1&e&&(es(0,"div",36),es(1,"div",37),es(2,"div",38),ns(3,"fa-icon",39),ts(),es(4,"div",40),es(5,"span",41),Gs(6,"Entrada"),ts(),es(7,"span",42),Gs(8),_c(9,"mask"),ts(),ts(),ts(),es(10,"div",37),es(11,"div",38),ns(12,"fa-icon",39),ts(),es(13,"div",40),es(14,"span",41),Gs(15,"Sa\xedda"),ts(),es(16,"span",42),Gs(17),_c(18,"mask"),ts(),ts(),ts(),ts()),2&e){var n=t.$implicit,i=fs(3);Bo(3),Zr("icon",i.iconRegularService.faClock),Bo(5),$s(Cc(9,4,n.time_in,"00:00")),Bo(4),Zr("icon",i.iconRegularService.faClock),Bo(5),$s(Cc(18,7,n.time_out,"00:00"))}}function BR(e,t){if(1&e&&(es(0,"div",34),Jr(1,ER,19,10,"div",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngForOf",n.journeyData.journeyHourList)}}function NR(e,t){if(1&e&&(es(0,"div",28),es(1,"span",29),Gs(2),ts(),es(3,"span",30),Gs(4),ts(),Jr(5,AR,2,0,"span",31),Jr(6,BR,2,1,"div",32),ts()),2&e){var n=fs();Bo(2),$s(n.collaboratorData.name),Bo(2),Qs("Escala: ",n.journeyData.description,""),Bo(1),Zr("ngIf","flex"==n.journeyData.type||"flex_week"==n.journeyData.type),Bo(1),Zr("ngIf","flex"!=n.journeyData.type&&"flex_week"!=n.journeyData.type)}}function RR(e,t){if(1&e&&(es(0,"div",37),es(1,"div",40),es(2,"span",60),Gs(3),ts(),es(4,"span",60),Gs(5,"adicionada"),ts(),ts(),ts()),2&e){var n=fs().index;Bo(3),$s(n%2==0?"Entrada":"Sa\xedda")}}function jR(e,t){if(1&e&&(es(0,"span",63),Gs(1),_c(2,"mask"),ts()),2&e){var n=fs(2).$implicit;Bo(1),$s(Cc(2,1,n.punch_date_time.split(" ")[1],"00:00"))}}function zR(e,t){if(1&e&&(es(0,"span",63),Gs(1),_c(2,"mask"),ts()),2&e){var n=fs(2).$implicit;Bo(1),$s(Cc(2,1,n.adjustment_hour,"00:00"))}}function VR(e,t){if(1&e&&(es(0,"div",37),es(1,"div",40),es(2,"span",61),Gs(3),ts(),Jr(4,jR,3,4,"span",62),Jr(5,zR,3,4,"span",62),ts(),ts()),2&e){var n=fs().$implicit;Bo(3),$s(n.in_out?"Sa\xedda":"Entrada"),Bo(1),Zr("ngIf",1!=n.adjustmentApproved),Bo(1),Zr("ngIf",1==n.adjustmentApproved)}}function HR(e,t){1&e&&(es(0,"span",64),Gs(1," (Ajustado) "),ts())}function YR(e,t){if(1&e&&(es(0,"span",64),es(1,"span"),es(2,"span",65),Gs(3),_c(4,"mask"),ts(),es(5,"span",65),Gs(6,"(Recusado)"),ts(),ts(),ts()),2&e){var n=fs().$implicit;Bo(3),$s(Cc(4,1,n.adjustment_hour,"00:00"))}}function qR(e,t){if(1&e&&(es(0,"div",66),es(1,"div",40),es(2,"span"),Gs(3,"Ajuste"),ts(),es(4,"span"),Gs(5),_c(6,"mask"),ts(),ts(),ts()),2&e){var n=fs().$implicit,i=fs(2);Bo(2),Xs("flex center sizeB mrgB1 ",n.enableUpdate?"cl-red":"cl-gray-dark",""),Bo(2),Xs("flex center sizeB ",n.enableUpdate?"cl-red":"cl-gray-dark",""),Bo(1),Ks(" ",Cc(6,8,n.adjustment_hour,"00:00")," ",null==n.adjustmentApproved&&n.enableUpdate&&i.selectedDateLessThanClosure()?"*":""," ")}}function UR(e,t){if(1&e){var n=as();es(0,"div",67),es(1,"span",68),es(2,"io-icon",69),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs(2).showAdjustmentForm(0,e.adjustmentId,e.id)})),ts(),ts(),es(3,"span",68),es(4,"io-icon",69),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs(2).showAdjustmentForm(1,e.adjustmentId,e.id)})),ts(),ts(),ts()}2&e&&(Bo(2),Zr("moduleName","adjustment")("action","reprove")("iconColor","cl-red")("iconSize","iconSizeE")("iconTitle","Reprovar ajuste"),Bo(2),Zr("moduleName","adjustment")("action","approve")("iconColor","cl-blue")("iconSize","iconSizeE")("iconTitle","Aprovar ajuste"))}function WR(e,t){if(1&e){var n=as();es(0,"span",70),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(2).showJustificationText(e.collaboratorJustification,"",e.created_at)})),es(1,"span",71),Gs(2,"Funcion\xe1rio"),ts(),es(3,"span",72),ns(4,"fa-icon",73),ts(),ts()}if(2&e){var i=fs(3);Bo(4),Zr("icon",i.iconRegularService.faEye)}}function JR(e,t){1&e&&(es(0,"span",56),Gs(1,"N\xe3o justificado"),ts())}function GR(e,t){if(1&e){var n=as();es(0,"span",74),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(2).showJustificationText(e.manager_justification,e.managerName||"",e.created_at)})),es(1,"span",71),Gs(2,"Gestor"),ts(),es(3,"span",72),ns(4,"fa-icon",73),ts(),ts()}if(2&e){var i=fs(3);Bo(4),Zr("icon",i.iconRegularService.faEye)}}function $R(e,t){if(1&e&&(es(0,"div",49),es(1,"span",50),Gs(2),ts(),Jr(3,RR,6,1,"div",51),Jr(4,VR,6,3,"div",51),Jr(5,HR,2,0,"span",52),Jr(6,YR,7,4,"span",52),Jr(7,qR,7,11,"div",53),Jr(8,UR,5,10,"div",54),es(9,"div",55),es(10,"span",56),Gs(11,"Justificativa:"),ts(),Jr(12,WR,5,1,"span",57),Jr(13,JR,2,0,"span",58),Jr(14,GR,5,1,"span",59),ts(),ts()),2&e){var n=t.$implicit,i=fs(2);Bo(2),Ks("",i.getWeekDay(n.punch_date_time)," - ",i.getDateBr(n.punch_date_time),""),Bo(1),Zr("ngIf",i.pointComeFromAdjustment(n)),Bo(1),Zr("ngIf",!i.pointComeFromAdjustment(n)),Bo(1),Zr("ngIf",1==n.adjustmentApproved),Bo(1),Zr("ngIf",0==n.adjustmentApproved),Bo(1),Zr("ngIf",null==n.adjustmentApproved&&null!=n.adjustmentId),Bo(1),Zr("ngIf",null==n.adjustmentApproved&&n.enableUpdate&&!i.selectedDateLessThanClosure()),Bo(4),Zr("ngIf",null!=n.collaboratorJustification),Bo(1),Zr("ngIf",!n.collaboratorJustification),Bo(1),Zr("ngIf",null!=n.manager_justification)}}function QR(e,t){if(1&e&&(es(0,"span",75),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs(" * Ajuste n\xe3o pode ser Aprovado/Reprovado pois h\xe1 um fechamento no dia ",n.getDateBr(n.closure.end_date)," . ")}}function KR(e,t){if(1&e&&(es(0,"div",43),es(1,"div",44),es(2,"span",45),Gs(3),ts(),ts(),es(4,"div",46),Jr(5,$R,15,11,"div",47),ts(),es(6,"div",43),Jr(7,QR,2,1,"span",48),ts(),ts()),2&e){var n=fs();Bo(3),Qs("Data de refer\xeancia: ",n.getFullDateBr(n.pointList[0].punch_date),""),Bo(2),Zr("ngForOf",n.pointList),Bo(2),Zr("ngIf",n.selectedDateLessThanClosure())}}function ZR(e,t){1&e&&(es(0,"div",76),es(1,"label",77),Gs(2,"Estou ciente que, ap\xf3s a aprova\xe7\xe3o, este ponto n\xe3o poder\xe1 ser alterado. "),ns(3,"input",78),ns(4,"span",79),ts(),ts()),2&e&&(Bo(3),Zr("formControlName","awareApproved"))}function XR(e,t){if(1&e&&(es(0,"p",80),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs(" Gestor: ",n.adjustmentJustificationManager,"")}}function ej(e,t){if(1&e){var n=as();es(0,"io-btn",18),ls("btnClick",(function(){return mn(n),fs().showAdjustmentForm(1,0,0)})),ts()}2&e&&Zr("moduleName","adjustment")("action","update")("btnClassList","btnSmall btnShort")("btnColor","btn-blue-bg")("btnText","Aprovar todos")("btnTitle","Aprovar todos")}var tj,nj=((tj=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.adjustmentDatabase=i,this.databaseService=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.showModal=!0,this.collaboratorSelectedId=null,this.collaboratorSelectedDate=null,this.hideModal=new Mc,this.updateList=new Mc,this.arrayMonths=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],this.awareApproved=0,this.adjustmentJustificationManager="",this.adjustmentRequestDate="",this.adjustmentJustificationText="",this.adjustmentSelectedId=null,this.adjustmentSelectedPointId=null,this.collaboratorData={},this.collaboratorImgUrl="/assets/img/photo-user.png",this.journeyData=null,this.pointList=[],this.modalAdjustmentForm=!1,this.modalNotification=!1,this.updateAllFromCollaborator=!1,this.closure=""}),[{key:"ngOnInit",value:function(){this.adjustmentForm=this.formBuilder.group({approved:new Wm("",[Jf.required]),awareApproved:new Wm(!1,[Jf.required]),manager_justification:new Wm("",[Jf.required])})}},{key:"ngOnChanges",value:function(){this.loadAdjustment()}},{key:"loadAdjustment",value:function(){var e=this;null!=this.collaboratorSelectedId&&null!=this.collaboratorSelectedDate&&this.showModal&&this.adjustmentDatabase.getAdjustment(this.collaboratorSelectedId,this.collaboratorSelectedDate,(function(t){t.error||(e.collaboratorData=(t=t.data).collaboratorData,e.setCollaboratorImgUrl(),e.journeyData=t.journeyData,e.pointList=t.pointList,e.closure=t.closure,e.validFirstAdjustment())}))}},{key:"setCollaboratorImgUrl",value:function(){this.collaboratorData.photo&&(this.collaboratorImgUrl=this.databaseService.currentDatabaseUrl()+"/storage/person/person_"+this.collaboratorData.person_id+"/"+this.collaboratorData.photo)}},{key:"validFirstAdjustment",value:function(){var e=this,t=0;this.pointList.forEach((function(n,i){0==t&&n.adjustmentId&&null===n.adjustmentApproved?(e.pointList[i]=Object.assign(Object.assign({},n),{enableUpdate:!0}),t++):e.pointList[i]=Object.assign(Object.assign({},n),{enableUpdate:!1})}))}},{key:"pointComeFromAdjustment",value:function(e){return this.getHour(e.punch_date_time)==e.adjustment_hour}},{key:"getFullDateBr",value:function(e){return this.functionsService.getFullDateBR(e.split(" ")[0]).split(", ")[1]}},{key:"getDateBr",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])}},{key:"getHour",value:function(e){return e.split(" ")[1]}},{key:"getWeekDay",value:function(e){return new Date(this.functionsService.getDayAfter(e.split(" ")[0])).toLocaleDateString("pt-br",{weekday:"short"}).split(".")[0]}},{key:"resetUrlImg",value:function(){this.collaboratorImgUrl="/assets/img/photo-user.png"}},{key:"showJustificationText",value:function(e,t,n){this.adjustmentJustificationManager=t,this.adjustmentRequestDate=n,this.adjustmentJustificationText=e,this.modalNotification=!0}},{key:"hideJustificationText",value:function(){this.adjustmentJustificationManager="",this.adjustmentJustificationText="",this.modalNotification=!1}},{key:"showAdjustmentForm",value:function(e,t,n){0==t&&0==n&&(this.updateAllFromCollaborator=!0),this.adjustmentSelectedId=t,this.adjustmentSelectedPointId=n,this.adjustmentForm.get("approved").setValue(e),this.awareApproved=e,this.modalAdjustmentForm=!0}},{key:"adjustmentAllFromCollaborator",value:function(){var e=this;if("1"!=this.adjustmentForm.get("approved").value||0!=this.adjustmentForm.get("awareApproved").value){var t=[],n=[];this.pointList.forEach((function(e){null!==e.adjustmentId&&(t.push(e.id),n.push(e.adjustmentId))}));var i=Object.assign(Object.assign({},this.adjustmentForm.value),{collaboratorId:this.collaboratorSelectedId,emailNotification:!0,notification:!0,pointIdList:t,pointAdjustmentIdList:n});this.adjustmentDatabase.putAdjustmentAllFromCollaborator(i,(function(t){if(!t.error){var i=e.adjustmentForm.get("approved").value;n.forEach((function(t){e.setApprovedStatus(t,i)})),e.validFirstAdjustment(),e.hideAdjustmentForm(),e.emmitUpdate({date:e.collaboratorSelectedDate,id:e.collaboratorSelectedId}),e.closeModal()}})),this.updateAllFromCollaborator=!1}else this.functionsService.openSnackBar("\xc9 necess\xe1rio declarar ci\xeancia sobre a n\xe3o altera\xe7\xe3o do ponto ap\xf3s a confirma\xe7\xe3o","error",4e3)}},{key:"sendAdjustment",value:function(){var e=this;if("1"!=this.adjustmentForm.get("approved").value||0!=this.adjustmentForm.get("awareApproved").value){var t=Object.assign(Object.assign({},this.adjustmentForm.value),{collaboratorId:this.collaboratorSelectedId,emailNotification:!0,notification:!0,pointId:this.adjustmentSelectedPointId,personId:this.collaboratorData.person_id});this.adjustmentDatabase.putAdjustment(this.adjustmentSelectedId,t,(function(t){t.error||(e.setApprovedStatus(e.adjustmentSelectedId,e.adjustmentForm.get("approved").value),e.validFirstAdjustment(),e.hideAdjustmentForm(),e.hasAdjustmentLeft()||(e.emmitUpdate({date:e.collaboratorSelectedDate,id:e.collaboratorSelectedId}),e.closeModal()))}))}else this.functionsService.openSnackBar("\xc9 necess\xe1rio declarar ci\xeancia sobre a n\xe3o altera\xe7\xe3o do ponto ap\xf3s a confirma\xe7\xe3o","error",4e3)}},{key:"setApprovedStatus",value:function(e,t){var n=this.pointList.findIndex((function(t){return t.adjustmentId==e}));this.pointList[n].adjustmentApproved=t}},{key:"hideAdjustmentForm",value:function(){this.modalAdjustmentForm=!1,this.adjustmentForm.reset(),this.adjustmentForm.get("awareApproved").setValue(!1),this.modalAdjustmentForm=!1,this.awareApproved=0,this.adjustmentSelectedId=null,this.adjustmentSelectedPointId=null}},{key:"hasAdjustmentLeft",value:function(){return this.pointList.filter((function(e){return 1==e.enableUpdate})).length>0}},{key:"emmitUpdate",value:function(e){this.updateList.emit(e)}},{key:"closeModal",value:function(){this.formReset(),this.fullReset(),this.hideModal.emit()}},{key:"formReset",value:function(){this.adjustmentForm.reset(),this.adjustmentForm.get("awareApproved").setValue(!1),this.adjustmentForm.get("approved").setValue(""),this.modalAdjustmentForm=!1,this.awareApproved=0}},{key:"fullReset",value:function(){this.collaboratorData=[],this.journeyData=[],this.pointList=[],this.collaboratorSelectedId=null,this.collaboratorSelectedDate=null,this.adjustmentSelectedId=null,this.adjustmentSelectedPointId=null,this.modalAdjustmentForm=!1,this.modalNotification=!1,this.collaboratorImgUrl="/assets/img/photo-user.png"}},{key:"selectedDateLessThanClosure",value:function(){return!!this.closure&&this.functionsService.getDateAsInt(this.collaboratorSelectedDate)<this.functionsService.getDateAsInt(this.closure.end_date)}}])}()).\u0275fac=function(e){return new(e||tj)($r(wp),$r(yM),$r(PR),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP))},tj.\u0275cmp=Ot({type:tj,selectors:[["io-adjustment-modal-form"]],inputs:{showModal:"showModal",collaboratorSelectedId:"collaboratorSelectedId",collaboratorSelectedDate:"collaboratorSelectedDate"},outputs:{hideModal:"hideModal",updateList:"updateList"},features:[dl],decls:36,vars:32,consts:[[3,"showModal","hideModal"],[1,"modalBody","relativePlace"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"adjustTop","flex"],[1,"block"],[1,"imgBox"],["alt","Img",1,"imgBorder",3,"src","error"],["class","block scrollbarEnable",4,"ngIf"],["class","adjustMiddle",4,"ngIf"],[1,"adjustmentTextBox","fadeEffect",3,"ngClass","formGroup"],[1,"sizeA","cl-blue","fontUp","pdgT2","pdgB2","fontBold"],[1,"form-group","inputAnimated"],["placeholder","Coment\xe1rio ou justificativa...","required","",1,"sizeC",3,"formControlName"],[1,"sizeC","fontItalic","fontInit","mrgT2"],[1,"detail","bg-gray","mrgB1"],["class","pdgT1 pdgB2 mrgT2 mrgB2",4,"ngIf"],[1,"flex"],[1,"btnSmall","btnShort",3,"moduleName","action","btnClassList","btnText","btnTitle","useValidation","btnClick"],[1,"btnSmall","btnShort","mrgL2",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[1,"justificationTextBox","fadeEffect",3,"ngClass"],[1,"mrgB2","fontBold"],[1,"sizeB","cl-blue","fontUp","pdgT2","fontBold"],[1,"justificationText"],["class","sizeC mrgB1",4,"ngIf"],[1,"sizeC"],[1,"flex","center","pdgT1","pdgB1","mrgT2"],[1,"flex","end"],["class","btnSmall btnShort mrgL2",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick",4,"ngIf"],[1,"block","scrollbarEnable"],[1,"flex","sizeB"],[1,"flex","sizeC","cl-gray-dark"],["class","flex sizeC mrgT1",4,"ngIf"],["class","journeyBox flex",4,"ngIf"],[1,"flex","sizeC","mrgT1"],[1,"journeyBox","flex"],["class","item flex",4,"ngFor","ngForOf"],[1,"item","flex"],[1,"point"],[1,"pointIcon","flex","center"],["size","1x",1,"cl-blue",3,"icon"],[1,"pointText"],[1,"flex","sizeD","mrgB1"],[1,"flex","sizeD"],[1,"adjustMiddle"],[1,"mrgB2","borderBottom"],[1,"sizeC","cl-gray-dark"],[1,"flex","itemBox","top","scrollbarEnable"],["class","item",4,"ngFor","ngForOf"],["class","flex center mrgB1 cl-red",4,"ngIf"],[1,"item"],[1,"flex","sizeD","fontCap","center"],["class","point",4,"ngIf"],["class","flex center sizeD cl-gray-dark mrgT1",4,"ngIf"],["class","point adjustment",4,"ngIf"],["class","flex iconActionAdjustmentBox",4,"ngIf"],[1,"justificationBox"],[1,"justification-item","flex","sizeD"],["class","justification-item flex clickPlace","title","Visualizar justificativa do funcion\xe1rio",3,"click",4,"ngIf"],["class","justification-item flex sizeD",4,"ngIf"],["class","justification-item flex clickPlace","title","Visualizar justificativa do gestor",3,"click",4,"ngIf"],[1,"flex","center","sizeC","mrgB1"],[1,"flex","center","sizeB","mrgB1"],["class","flex center sizeB",4,"ngIf"],[1,"flex","center","sizeB"],[1,"flex","center","sizeD","cl-gray-dark","mrgT1"],[1,"flex","center"],[1,"point","adjustment"],[1,"flex","iconActionAdjustmentBox"],[1,"iconActionAdjustment"],[3,"moduleName","action","iconColor","iconSize","iconTitle","iconClick"],["title","Visualizar justificativa do funcion\xe1rio",1,"justification-item","flex","clickPlace",3,"click"],[1,"sizeD"],[1,"action","iconItem","iconSizeG","cl-gray-dark"],["size","3x",3,"icon"],["title","Visualizar justificativa do gestor",1,"justification-item","flex","clickPlace",3,"click"],[1,"flex","center","mrgB1","cl-red"],[1,"pdgT1","pdgB2","mrgT2","mrgB2"],[1,"radioBox","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark"],[1,"sizeC","mrgB1"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Solicita\xe7\xe3o de ajuste de ponto"),ts(),es(4,"div",3),es(5,"div",4),es(6,"div",5),es(7,"img",6),ls("error",(function(){return t.resetUrlImg()})),ts(),ts(),ts(),Jr(8,NR,7,4,"div",7),ts(),Jr(9,KR,8,3,"div",8),es(10,"div",9),es(11,"h2",10),Gs(12,"Coment\xe1rio ou justificativa"),ts(),es(13,"div"),es(14,"div",11),ns(15,"textarea",12),ts(),es(16,"p",13),Gs(17,"O funcion\xe1rio ser\xe1 notificado via e-mail e aplicativo no celular."),ts(),ts(),ns(18,"div",14),Jr(19,ZR,5,1,"div",15),es(20,"div",16),es(21,"io-btn",17),ls("btnClick",(function(){return t.formReset()})),ts(),es(22,"io-btn",18),ls("btnClick",(function(){return t.updateAllFromCollaborator?t.adjustmentAllFromCollaborator():t.sendAdjustment()})),ts(),ts(),ts(),es(23,"div",19),es(24,"p",20),Gs(25),ts(),es(26,"h2",21),Gs(27,"Justificativa:"),ts(),es(28,"div",22),Jr(29,XR,2,1,"p",23),es(30,"p",24),Gs(31),ts(),ts(),es(32,"div",25),es(33,"io-btn",17),ls("btnClick",(function(){return t.hideJustificationText()})),ts(),ts(),ts(),es(34,"div",26),Jr(35,ej,1,6,"io-btn",27),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),Zr("src",t.collaboratorImgUrl,mo),Bo(1),Zr("ngIf",t.journeyData),Bo(1),Zr("ngIf",t.pointList.length>0),Bo(1),Zr("ngClass",t.modalAdjustmentForm?"active":"")("formGroup",t.adjustmentForm),Bo(5),Zr("formControlName","manager_justification"),Bo(4),Zr("ngIf",1==t.awareApproved),Bo(2),Zr("moduleName","adjustment")("action","")("btnClassList","btnSmall btnShort")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","adjustment")("action","update")("btnClassList","btnSmall btnShort")("btnColor","btn-blue-bg")("btnText",1==t.awareApproved?"Aprovar":"Reprovar")("btnTitle",1==t.awareApproved?"Aprovar":"Reprovar"),Bo(1),Zr("ngClass",t.modalNotification?"active":""),Bo(2),Ks("Solicitado em ",t.getFullDateBr(t.adjustmentRequestDate)," \xe0s ",t.getHour(t.adjustmentRequestDate),""),Bo(4),Zr("ngIf",""!=t.adjustmentJustificationManager),Bo(2),$s(t.adjustmentJustificationText),Bo(2),Zr("moduleName","adjustment")("action","")("btnClassList","btnSmall btnShort")("btnText","fechar")("btnTitle","fechar")("useValidation",!1),Bo(2),Zr("ngIf",t.collaboratorData.countAdjustment>0))},directives:[CE,sh,ih,Hf,ip,If,bp,Vf,vp,jD,ah,FD,BB,Of],pipes:[IE],styles:["div.point[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-left:10px;margin-left:10px;border-left:1px solid var(--cl-gray)}div.point.spacerIn[_ngcontent-%COMP%]{min-width:108px}div.point.spacerOut[_ngcontent-%COMP%]{min-width:94px}div.point[_ngcontent-%COMP%]   .pointIcon[_ngcontent-%COMP%]{margin-right:10px}div.point[_ngcontent-%COMP%]   .pointIcon[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin:0;color:var(--primary-color)}div.point[_ngcontent-%COMP%]   .pointText[_ngcontent-%COMP%]{margin:0 auto}div.point[_ngcontent-%COMP%]   .pointText[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0}.adjustTop[_ngcontent-%COMP%]{margin:20px 0 40px}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:90px;margin-right:20px}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .imgBox[_ngcontent-%COMP%]{padding:10px;max-width:90px;max-height:90px;margin:0 auto}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .imgBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;height:auto}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .sizeB[_ngcontent-%COMP%]{margin-bottom:5px}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .journeyBox[_ngcontent-%COMP%]{justify-content:flex-start;margin:5px 0 0}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .journeyBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   .point[_ngcontent-%COMP%]:first-child{border-left:none;padding:0;margin:0}.adjustMiddle[_ngcontent-%COMP%]{margin:0 0 20px}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]{padding:0 10px 20px;overflow-x:auto}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .sizeD[_ngcontent-%COMP%]{padding:0 5px}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .point[_ngcontent-%COMP%]{min-width:82px;padding:0 10px;margin:5px 0 0}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .point.adjustment[_ngcontent-%COMP%]{border-left:none;border-right:1px solid var(--cl-gray);margin-right:-1px}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   .point[_ngcontent-%COMP%]{border-left:none}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   .point.adjustment[_ngcontent-%COMP%]{border-right:none}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .iconActionAdjustmentBox[_ngcontent-%COMP%]{justify-content:space-around;max-width:200px;padding:10px 0 0;margin:0 auto}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .iconActionAdjustmentBox[_ngcontent-%COMP%]   .iconActionAdjustment[_ngcontent-%COMP%]{margin:0}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .justificationBox[_ngcontent-%COMP%]{margin:15px 0 0}.adjustMiddle[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .justificationBox[_ngcontent-%COMP%]   .justification-item[_ngcontent-%COMP%]{width:100%;max-width:95px;margin:0 auto 8px}.adjustmentTextBox[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]{padding:35px 45px;transform:translateY(-20px)}.adjustmentTextBox[_ngcontent-%COMP%]   .justificationText[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]   .justificationText[_ngcontent-%COMP%]{padding:10px 0}.adjustmentTextBox[_ngcontent-%COMP%]   .menuUserItem[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]   .menuUserItem[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin:0 0 10px}.adjustmentTextBox[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%], .justificationTextBox[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:1px}.adjustmentTextBox.active[_ngcontent-%COMP%], .justificationTextBox.active[_ngcontent-%COMP%]{transform:translateY(35px)}.justificationTextBox[_ngcontent-%COMP%]{transform:translateY(100px)}.justificationTextBox.active[_ngcontent-%COMP%]{transform:translateY(150px)}.borderBottom[_ngcontent-%COMP%]{border-color:var(--cl-gray-dark)}@media (max-width:550px){.adjustTop[_ngcontent-%COMP%]{display:block}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:450px;overflow:auto;text-align:center}.adjustTop[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:450px;overflow:auto;padding:0 0 5px}}"]}),tj);function ij(e,t){if(1&e&&(es(0,"span",1),es(1,"span"),ns(2,"fa-icon",2),ts(),es(3,"span",3),Gs(4),_c(5,"mask"),ts(),ts()),2&e){var n=fs();Bo(2),Zr("icon",n.iconSolidService.faArrowUp),Bo(2),$s(Cc(5,2,n.hour.time_in,"00:00"))}}function oj(e,t){if(1&e&&(es(0,"span",1),es(1,"span"),ns(2,"fa-icon",4),ts(),es(3,"span",3),Gs(4),_c(5,"mask"),ts(),ts()),2&e){var n=fs();Bo(2),Zr("icon",n.iconSolidService.faArrowDown),Bo(2),$s(Cc(5,2,n.hour.time_out,"00:00"))}}var aj,rj=((aj=function(){return d((function e(t){c(this,e),this.iconSolidService=t}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||aj)($r(JO))},aj.\u0275cmp=Ot({type:aj,selectors:[["io-icon-journey"]],inputs:{hour:"hour",inOut:"inOut"},decls:2,vars:2,consts:[["class","mrgR1",4,"ngIf"],[1,"mrgR1"],["size","3x",1,"iconItem","iconSizeI","cl-blue",3,"icon"],[1,"item","itemSizeI"],["size","3x",1,"iconItem","iconSizeI","cl-red",3,"icon"]],template:function(e,t){1&e&&(Jr(0,ij,6,5,"span",0),Jr(1,oj,6,5,"span",0)),2&e&&(Zr("ngIf",t.hour.time_in),Bo(1),Zr("ngIf",t.hour.time_out))},directives:[sh,FD],pipes:[IE],styles:[""]}),aj);function sj(e,t){if(1&e){var n=as();es(0,"label",9),es(1,"input",37),ls("change",(function(){mn(n);var e=fs().$implicit;return fs().selectId(e.adjustmentId)})),ts(),ns(2,"span",11),ts()}if(2&e){var i=fs().$implicit,o=fs();Bo(1),Zr("checked",o.adjustmentListSelected.indexOf(i.adjustmentId)>=0)("formControlName","selectedId")("checked",o.collaboratorListFilteredSearch.indexOf(i.id)>=0)}}function lj(e,t){if(1&e&&(es(0,"span",38),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.adjustmentId," ")}}function cj(e,t){1&e&&ns(0,"fa-icon",39),2&e&&Zr("icon",fs(2).iconSolidService.faExclamation)}function uj(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.date.split("-").reverse().join("/"))}}function dj(e,t){1&e&&ns(0,"io-icon-journey",41),2&e&&Zr("hour",t.$implicit)}function hj(e,t){if(1&e&&(es(0,"span",31),Jr(1,dj,1,1,"io-icon-journey",40),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngForOf",n.journeyData)}}function fj(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function mj(e,t){if(1&e){var n=as();es(0,"fa-icon",42),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showApproveModal(1,e.adjustmentId)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faCheck)}function pj(e,t){if(1&e){var n=as();es(0,"fa-icon",43),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showApproveModal(0,e.adjustmentId)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faTimes)}function gj(e,t){if(1&e){var n=as();es(0,"li",26),es(1,"div"),Jr(2,sj,3,3,"label",27),ts(),es(3,"span",28),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalAdjustment(e)})),Jr(4,lj,2,1,"span",29),Jr(5,cj,1,1,"fa-icon",30),Gs(6),ts(),es(7,"span",31),Gs(8),ts(),es(9,"span",31),Gs(10),_c(11,"mask"),ts(),es(12,"span",31),Gs(13),_c(14,"mask"),ts(),Jr(15,uj,2,1,"span",32),Jr(16,hj,2,1,"span",32),Jr(17,fj,2,0,"span",20),es(18,"span",33),Gs(19),ts(),es(20,"span",31),Jr(21,mj,1,1,"fa-icon",34),Jr(22,pj,1,1,"fa-icon",35),es(23,"fa-icon",36),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showJustificationText(e.justification,e.manager_justification,e.created)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Xs("flex listAlign ",i.closureIsGreaterThanDate?"notWorkDay":"clickPlace",""),vs("title",i.closureIsGreaterThanDate?"Data do \xfaltimo fechamento deste funcion\xe1rio: "+o.getDateBr(i.closureEndDate):""),Bo(2),Zr("ngIf",0==i.closureIsGreaterThanDate&&null==i.approved),Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Zr("ngIf",1==i.closureIsGreaterThanDate),Bo(1),Qs(" ",i.name," "),Bo(2),$s(o.getDayMonth(i.date)),Bo(2),$s(Cc(11,18,i.punch_date_time.substring(11,16),"00:00")),Bo(3),$s(Cc(14,21,i.adjustment_hour,"00:00")),Bo(2),Zr("ngIf",null!=i.date),Bo(1),Zr("ngIf","flex"!=i.journeyData.type||"flex_week"!=i.journeyData.type),Bo(1),Zr("ngIf","flex"==i.journeyData.type),Bo(2),$s(null==i.pending?"Finalizado":"Pendente"),Bo(2),Zr("ngIf",0==o.adjustmentListSelected.length&&0==i.closureIsGreaterThanDate&&null==i.approved),Bo(1),Zr("ngIf",0==o.adjustmentListSelected.length&&0==i.closureIsGreaterThanDate&&null==i.approved),Bo(1),Zr("icon",o.iconRegularService.faEye)}}function vj(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function yj(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma solicita\xe7\xe3o de ajuste de ponto encontrada."),ts())}function bj(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 solicita\xe7\xf5es de ajuste de ponto."),ts())}function _j(e,t){if(1&e&&(es(0,"li"),Jr(1,vj,2,0,"p",20),Jr(2,yj,2,0,"p",20),Jr(3,bj,2,0,"p",20),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function kj(e,t){if(1&e){var n=as();es(0,"div",44),es(1,"button",45),ls("click",(function(){return mn(n),fs().showApproveModal(0)})),Gs(2,"Reprovar selecionados"),ts(),es(3,"button",46),ls("click",(function(){return mn(n),fs().showApproveModal(1)})),Gs(4,"Aprovar selecionados"),ts(),ts()}}var Cj,wj,xj=((wj=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.adjustmentDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.loadingScreenService=s,this.storageService=l,this.titleService=u,this.resetDateFilterEmitter=new Mc,this.collaboratorSelectedId=null,this.collaboratorSelectedDate=null,this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredDate=[],this.collaboratorListFilteredStatus=[],this.collaboratorListFilteredSearch=[],this.modalAdjustment=!1,this.paginationData=null,this.currentPage=1,this.beginDateStart="",this.endDateStart="",this.beginDateSelected="",this.endDateSelected="",this.adjustmentJustificationManager="",this.adjustmentJustificationText="",this.modalJustification=!1,this.modalApprove=!1,this.adjustmentRequestDate="",this.adjustmentListSelected=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Ajustes"),this.adjustmentForm=this.formBuilder.group({status:new Wm(1,[Jf.required]),search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])});var d=this.router.getCurrentNavigation().extras.state;d&&d.date&&(this.beginDateStart=this.functionsService.getFirstLastDay(d.date)[0],this.endDateStart=this.functionsService.getFirstLastDay(d.date)[1])}),[{key:"validGetList",value:function(){return!(""==this.beginDateSelected||""==this.endDateSelected)}},{key:"ngOnInit",value:function(){}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getAdjustmentList()}},{key:"verifyAll",value:function(){var e=this;this.adjustmentForm.controls.allSelected.value?(this.adjustmentListSelected=[],this.collaboratorListFilteredSearch.forEach((function(t){0==t.closureIsGreaterThanDate&&e.adjustmentListSelected.push(t.adjustmentId)}))):this.adjustmentListSelected=[]}},{key:"selectId",value:function(e){this.adjustmentListSelected.find((function(t){return t==e}))?this.adjustmentListSelected=this.adjustmentListSelected.filter((function(t){return t!=e})):this.adjustmentListSelected.push(e),this.collaboratorListFilteredSearch.length!=this.adjustmentListSelected.length&&this.adjustmentForm.controls.allSelected.setValue(!1)}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e,this.getAdjustmentList()}},{key:"setEndDate",value:function(e){this.endDateSelected=e,this.getAdjustmentList()}},{key:"getAdjustmentList",value:function(e){var t=this;if(this.validGetList){var n={page:this.currentPage.toString(),beginDate:this.beginDateSelected,endDate:this.endDateSelected,status:this.adjustmentForm.controls.status.value,search:e};this.loadingScreenService.show(),new Date(this.beginDateSelected)<new Date(this.endDateSelected)&&this.adjustmentDatabase.getAdjustmentList(n,(function(e){e.error||(t.collaboratorList=e.data.adjustmentList.data,t.paginationData=e.data.adjustmentList,t.filterAdjustmentDate())})),this.loadingScreenService.hide()}}},{key:"filterAdjustmentDate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.collaboratorListFilteredDate=e?this.collaboratorList.filter((function(t){return t.date==e})):this.collaboratorList,this.filterAdjustmentStatus()}},{key:"filterAdjustmentStatus",value:function(){var e=this.adjustmentForm.controls.status.value;e>0&&(this.collaboratorListFilteredStatus=this.collaboratorListFilteredDate.filter((function(e){return null!=e.pending}))),0==e&&(this.collaboratorListFilteredStatus=this.collaboratorListFilteredDate.filter((function(e){return null==e.pending}))),"all"==e&&(this.collaboratorListFilteredStatus=this.collaboratorListFilteredDate),this.filterAdjustmentSearch(this.adjustmentForm.controls.search.value)}},{key:"filterAdjustmentSearch",value:function(e){this.adjustmentForm.controls.search.setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredStatus,e,"name")}},{key:"showModalAdjustment",value:function(e){e.closureIsGreaterThanDate||(this.collaboratorSelectedId=e.id,this.collaboratorSelectedDate=e.date,this.modalAdjustment=!0)}},{key:"showJustificationText",value:function(e,t,n){this.adjustmentJustificationManager=t,this.adjustmentRequestDate=n,this.adjustmentJustificationText=e,this.modalJustification=!0}},{key:"hideModalJustification",value:function(){this.adjustmentJustificationManager="",this.adjustmentJustificationText="",this.modalJustification=!1}},{key:"showApproveModal",value:function(e,t){t&&this.adjustmentListSelected.push(t),this.modalApprove=!0,this.approved=e}},{key:"hideModalApprove",value:function(){this.modalApprove=!1,this.adjustmentForm.controls.allSelected.setValue(!1),this.adjustmentForm.controls.selectedId.setValue(!1),this.adjustmentListSelected=[],this.getAdjustmentList()}},{key:"updateList",value:function(e){var t=this.collaboratorList.findIndex((function(t){return t.id==e.id&&t.date==e.date}));this.collaboratorList[t].pending=0,this.filterAdjustmentDate()}},{key:"hideModalAdjustment",value:function(){this.collaboratorSelectedId=null,this.collaboratorSelectedDate=null,this.modalAdjustment=!1,this.getAdjustmentList()}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e):""}},{key:"getDayMonth",value:function(e){return e.length<10&&(e="0000-00-00"),e.split("-").reverse().join("/").substring(0,5)}}])}()).\u0275fac=function(e){return new(e||wj)($r(wp),$r(yM),$r(PR),$r(zP),$r(WO),$r(JO),$r(dL),$r(YP),$r(hL))},wj.\u0275cmp=Ot({type:wj,selectors:[["io-adjustment-page-list"]],outputs:{resetDateFilterEmitter:"resetDateFilterEmitter"},decls:43,vars:27,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"wdMax25","mrgB2"],[3,"firstDateLabel","firstDateStart","secondDateLabel","secondDateStart","firstDateSelected","secondDateSelected"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","bottom","listAlign","listHeader"],[1,"sizeC","hd1","radioBox"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"sizeC","fontBold","item"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],[3,"class","title",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],["class","flex mrgT2",4,"ngIf"],[3,"showModal","justification","justificationManager","date","hideModal"],[3,"showModal","adjustments","approved","hideModal"],[3,"showModal","collaboratorSelectedId","collaboratorSelectedDate","hideModal","updateList"],[3,"title"],["class","sizeC hd1 radioBox",4,"ngIf"],[1,"sizeC","item",3,"click"],["class","sizeB internal mrgR1",4,"ngIf"],["size","3x","class","iconItem iconSizeH cl-red",3,"icon",4,"ngIf"],[1,"sizeC","item"],["class","sizeC item",4,"ngIf"],[1,"sizeC","item","pdgR1"],["size","3x","class","iconItem iconSizeG cl-blue clickPlace mrgL1","title","Aprovar",3,"icon","click",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-red clickPlace mrgL1","title","Reprovar",3,"icon","click",4,"ngIf"],["size","3x","title","Visualizar",1,"iconItem","iconSizeG","cl-grey-dark","clickPlace","mrgL1",3,"icon","click"],["type","checkbox",3,"checked","formControlName","change"],[1,"sizeB","internal","mrgR1"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon"],[3,"hour",4,"ngFor","ngForOf"],[3,"hour"],["size","3x","title","Aprovar",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],["size","3x","title","Reprovar",1,"iconItem","iconSizeG","cl-red","clickPlace","mrgL1",3,"icon","click"],[1,"flex","mrgT2"],[1,"btn","btn-red",3,"click"],[1,"btn","btn-blue-bg",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-interval-selector",4),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.getAdjustmentList(e)})),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"label",9),es(10,"input",10),ls("change",(function(){return t.verifyAll()})),ts(),ns(11,"span",11),ts(),es(12,"h3",12),Gs(13,"Funcion\xe1rio"),ts(),es(14,"h3",12),Gs(15,"Dia"),ts(),es(16,"h3",12),Gs(17,"Ponto Original"),ts(),es(18,"h3",12),Gs(19,"Ajuste"),ts(),es(20,"h3",12),Gs(21,"Data Solicita\xe7\xe3o"),ts(),es(22,"h3",12),Gs(23,"Escala"),ts(),es(24,"div",13),es(25,"select",14),ls("change",(function(){return t.getAdjustmentList()})),es(26,"option",15),Gs(27,"Todos"),ts(),es(28,"option",16),Gs(29,"Pendentes"),ts(),es(30,"option",15),Gs(31,"Finalizados"),ts(),ts(),ns(32,"fa-icon",17),ts(),es(33,"h3",12),Gs(34,"A\xe7\xe3o"),ts(),ts(),es(35,"ul",18),Jr(36,gj,24,24,"li",19),Jr(37,_j,4,3,"li",20),ts(),ts(),es(38,"io-pagination",21),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),Jr(39,kj,5,0,"div",22),ts(),ts(),es(40,"io-adjustment-modal-justification",23),ls("hideModal",(function(){return t.hideModalJustification()})),ts(),es(41,"io-adjustment-approve-modal",24),ls("hideModal",(function(){return t.hideModalApprove()})),ts(),es(42,"io-adjustment-modal-form",25),ls("hideModal",(function(){return t.hideModalAdjustment()}))("updateList",(function(e){return t.updateList(e)})),ts()),2&e&&(Bo(2),Zr("moduleName","adjustment")("titleTop","Solicita\xe7\xf5es de ajuste de ponto"),Bo(2),Zr("firstDateLabel","Data inicial")("firstDateStart",t.beginDateStart)("secondDateLabel","Data final")("secondDateStart",t.endDateStart),Bo(3),Zr("formGroup",t.adjustmentForm),Bo(3),Zr("formControlName","allSelected"),Bo(15),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",1),Bo(2),Zr("value",0),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("ngIf",t.adjustmentListSelected.length>0),Bo(1),Zr("showModal",t.modalJustification)("justification",t.adjustmentJustificationText)("justificationManager",t.adjustmentJustificationManager)("date",t.adjustmentRequestDate),Bo(1),Zr("showModal",t.modalApprove)("adjustments",t.adjustmentListSelected)("approved",t.approved),Bo(1),Zr("showModal",t.modalAdjustment)("collaboratorSelectedId",t.collaboratorSelectedId)("collaboratorSelectedDate",t.collaboratorSelectedDate))},directives:[eI,ZA,oE,Hf,ip,Of,Vf,vp,vm,bp,ym,xm,FD,ah,sh,hE,LR,FR,nj,rj],pipes:[IE],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:5%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:5%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(7){max-width:22%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(8){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(9){max-width:8%;text-align:right}.listAlign.listHeader[_ngcontent-%COMP%]{padding-top:20px}.listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){margin-top:-15px}li.notWorkDay[_ngcontent-%COMP%], li.notWorkDay[_ngcontent-%COMP%]:hover{background-color:#eee}li.notWorkDay[_ngcontent-%COMP%]:hover{box-shadow:none}.flex[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{text-align:right}.flex[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   span[_ngcontent-%COMP%]:last-child{width:auto;text-align:right}"]}),wj),Mj=((Cj=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteAdvertise",value:function(e,t){this.databaseService.delete("/advertise/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteAdvertiseType",value:function(e,t){this.databaseService.delete("/advertiseType/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorList",value:function(e,t){this.databaseService.get("/advertise/collaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAdvertise",value:function(e,t,n){this.databaseService.get("/advertise/"+t,[]).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getAdvertiseFile",value:function(e,t){this.databaseService.getFile("/advertise/download/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAdvertiseList",value:function(e,t){this.databaseService.get("/advertise",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAdvertiseTypeList",value:function(e,t){this.databaseService.get("/advertiseType",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAdvertiseModelList",value:function(e){this.databaseService.get("/advertiseModel",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getAdvertiseModelById",value:function(e,t){this.databaseService.get("/advertiseModel/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getAdvertiseTypeById",value:function(e,t){this.databaseService.get("/advertiseType/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postAdvertise",value:function(e,t){this.databaseService.getFile("/advertise/File",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postAdvertiseType",value:function(e,t){this.databaseService.post("/advertiseType",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postAdvertiseModel",value:function(e,t){this.databaseService.post("/advertiseModel",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"updateAdvertiseModel",value:function(e,t,n){this.databaseService.put("/advertiseModel/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putAdvertiseType",value:function(e,t,n){this.databaseService.put("/advertiseType/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putAdvertiseTypeStatus",value:function(e,t){this.databaseService.put("/advertiseType/reactive/"+e,{}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteAdvertiseModel",value:function(e,t){this.databaseService.delete("/advertiseModel/"+e,{}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Cj)(ut(tT))},Cj.\u0275prov=Se({token:Cj,factory:Cj.\u0275fac,providedIn:"root"}),Cj);function Sj(e,t){if(1&e&&(es(0,"option",23),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.name)}}function Pj(e,t){if(1&e&&(es(0,"span",29),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Tj(e,t){if(1&e){var n=as();es(0,"li",24),es(1,"span",25),Jr(2,Pj,2,1,"span",26),Gs(3),ts(),es(4,"span",27),Gs(5),ts(),es(6,"span",25),Gs(7),ts(),es(8,"span",27),Gs(9),ts(),es(10,"span",27),es(11,"fa-icon",28),ls("click",(function(){mn(n);var e=t.$implicit;return fs().downloadAdvertise(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.name," "),Bo(2),Qs(" ",i.collaborator," "),Bo(2),Qs(" ",i.advertise_name," "),Bo(2),Qs(" ",i.date.split("-").reverse().join("/")," "),Bo(2),Zr("icon",o.iconSolidService.faDownload)}}function Oj(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Lj(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma advert\xeancia encontrada."),ts())}function Dj(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 registro de advert\xeancias."),ts())}function Ij(e,t){if(1&e&&(es(0,"li"),Jr(1,Oj,2,0,"p",21),Jr(2,Lj,2,0,"p",21),Jr(3,Dj,2,0,"p",21),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.advertiseList.length>0&&n.advertiseList[0].loading),Bo(1),Zr("ngIf",n.advertiseList.length>0&&!n.advertiseList[0].loading&&0==n.advertiseListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.advertiseList.length)}}var Fj,Aj,Ej=function(){return["/advertise-model"]},Bj=function(){return["/advertise-type"]},Nj=((Aj=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.advertiseDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.loadingScreenService=s,this.storageService=l,this.titleService=u,this.advertiseList=[{loading:!0}],this.advertiseListFilteredSearch=[],this.advertiseTypeList=[],this.selectedDate="",this.beginDateSelected="",this.beginDateStart="",this.dateSelected=null,this.endDateSelected="",this.endDateStart="",this.paginationData=null,this.currentPage=1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Advert\xeancias"),this.loadingScreenService.show(),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),advertise_type_id:new Wm("all",[Jf.required])}),this.advertiseDatabase.getAdvertiseTypeList({onlyActives:!0},(function(e){e.error||(e.data.advertiseTypeList.forEach((function(e){d.advertiseTypeList.push(e)})),d.advertiseTypeList=d.functionsService.arrayReOder(d.advertiseTypeList,"description"))}));var h=this.router.getCurrentNavigation().extras.state;h&&h.date&&(this.beginDateStart=this.functionsService.getFirstLastDay(h.date)[0],this.endDateStart=this.functionsService.getFirstLastDay(h.date)[1])}),[{key:"ngOnInit",value:function(){}},{key:"validGetList",value:function(){return!(""==this.beginDateSelected||""==this.endDateSelected)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getAdvertiseList()}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e,this.getAdvertiseList()}},{key:"setEndDate",value:function(e){this.endDateSelected=e,this.getAdvertiseList()}},{key:"getAdvertiseList",value:function(){var e=this;if(this.validGetList){var t={page:this.currentPage.toString(),beginDate:this.beginDateSelected,endDate:this.endDateSelected,type:this.searchForm.controls.advertise_type_id.value};this.loadingScreenService.show(),clearInterval(this.interval),this.interval=setTimeout((function(){e.advertiseDatabase.getAdvertiseList(t,(function(t){t.error||(e.advertiseList=t.data.advertiseList.data,e.advertiseListFilteredSearch=e.advertiseList,e.paginationData=t.data.advertiseList)}))}),200),this.loadingScreenService.hide()}}},{key:"filterAdvertiseSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.advertiseListFilteredSearch=this.functionsService.arrayFilterWords(this.advertiseList,e,"name")}},{key:"downloadAdvertise",value:function(e){var t=this;this.advertiseDatabase.getAdvertiseFile(e,(function(e){e.error||t.functionsService.downloadFile(e.data,"pdf","advert\xeancia")}))}}])}()).\u0275fac=function(e){return new(e||Aj)($r(wp),$r(yM),$r(Mj),$r(zP),$r(WO),$r(JO),$r(dL),$r(YP),$r(hL))},Aj.\u0275cmp=Ot({type:Aj,selectors:[["io-advertise-page-list"]],decls:36,vars:21,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl","btnDataText"],[1,"mrgB1","flex"],[3,"firstDateLabel","firstDateStart","secondDateLabel","secondDateStart","firstDateSelected","secondDateSelected"],[1,"mrgT1"],[3,"onKeyPress"],[1,"flex"],["title","Visualizar modelos de advert\xeancia",1,"flex","start","mrgR2","mrgB2","border-gray-light","btn","w-auto","clickPlace",3,"routerLink"],[1,"sizeC","fontUp"],["title","Visualizar tipos de advert\xeancia",1,"flex","start","mrgB2","border-gray-light","btn","w-auto","clickPlace",3,"routerLink"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","clickPlace","item"],["id","advertise_type_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[3,"value"],[1,"flex","listAlign"],[1,"item","sizeC"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"item"],["title","Baixar advert\xeancia",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"],[1,"sizeB","internal","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div"),es(5,"div"),es(6,"io-interval-selector",4),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(7,"div",5),es(8,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterAdvertiseSearch(e)})),ts(),ts(),ts(),es(9,"div",7),es(10,"div",8),es(11,"span",9),Gs(12,"Modelos"),ts(),ts(),es(13,"div",10),es(14,"span",9),Gs(15,"Tipos de advert\xearcia"),ts(),ts(),ts(),ts(),es(16,"div",11),es(17,"div",12),es(18,"h3",13),Gs(19,"Nome"),ts(),es(20,"h3",13),Gs(21,"Funcion\xe1rio"),ts(),es(22,"div",14),es(23,"select",15),ls("change",(function(){return t.getAdvertiseList()})),es(24,"option",16),Gs(25,"Tipo de advert\xeancia"),ts(),Jr(26,Sj,2,2,"option",17),ts(),ns(27,"fa-icon",18),ts(),es(28,"h3",13),Gs(29,"Data"),ts(),es(30,"h3",13),Gs(31,"A\xe7\xe3o"),ts(),ts(),es(32,"ul",19),Jr(33,Tj,12,6,"li",20),Jr(34,Ij,4,3,"li",21),ts(),ts(),es(35,"io-pagination",22),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts()),2&e&&(Bo(2),Zr("moduleName","advertise")("titleTop","Advert\xeancias")("showBtn",!0)("btnDataUrl","advertise-new")("btnDataText","Cadastrar"),Bo(4),Zr("firstDateLabel","Data inicial")("firstDateStart",t.beginDateStart)("secondDateLabel","Data final")("secondDateStart",t.endDateStart),Bo(4),Zr("routerLink",mc(19,Ej)),Bo(3),Zr("routerLink",mc(20,Bj)),Bo(4),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","advertise_type_id"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.advertiseTypeList),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(6),Zr("ngForOf",t.advertiseListFilteredSearch),Bo(1),Zr("ngIf",0==t.advertiseListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData))},directives:[eI,ZA,oE,bM,Hf,ip,vm,bp,Vf,vp,ym,xm,ah,FD,sh,hE],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}li.listAlign[_ngcontent-%COMP%]{background-color:#fff;transition:all .2s ease}"]}),Aj),Rj=((Fj=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.advertiseDatabase=n,this.functionsService=i,this.advertiseTypeId=null,this.showModal=!0,this.hideModal=new Mc,this.reloadList=new Mc,this.stateFields={description:{class:""}},this.advertiseTypeForm=this.formBuilder.group({name:new Wm(null,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.advertiseTypeForm.reset(),this.showModal&&this.advertiseTypeId&&this.advertiseDatabase.getAdvertiseTypeById(this.advertiseTypeId,(function(t){t.error||Object.keys(e.advertiseTypeForm.controls).forEach((function(n){e.advertiseTypeForm.get(n).setValue(t.data.advertiseType[n])}))}))}},{key:"sendAdvertiseType",value:function(){this.advertiseTypeForm.get("name").valid?this.advertiseTypeId?this.putAdvertiseType(this.advertiseTypeForm.value,this.advertiseTypeId):this.postAdvertiseType(this.advertiseTypeForm.value):this.functionsService.openSnackBar("Informe um nome para cadastrar um novo tipo de advert\xeancia")}},{key:"postAdvertiseType",value:function(e){var t=this;this.advertiseDatabase.postAdvertiseType(e,(function(e){e.error||(t.emitReloadList(),t.closeModal())}))}},{key:"putAdvertiseType",value:function(e,t){var n=this;this.advertiseDatabase.putAdvertiseType(t,e,(function(e){e.error||(n.emitReloadList(),n.closeModal())}))}},{key:"emitReloadList",value:function(){this.reloadList.emit()}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||Fj)($r(wp),$r(Mj),$r(zP))},Fj.\u0275cmp=Ot({type:Fj,selectors:[["io-advertise-modal-form-type"]],inputs:{advertiseTypeId:"advertiseTypeId",showModal:"showModal"},outputs:{hideModal:"hideModal",reloadList:"reloadList"},features:[dl],decls:15,vars:13,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeB"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"form-group","inputAnimated"],["autocomplete","off","id","name","placeholder","","maxlength","50","required","","type","text",3,"formControlName"],["for","name",1,"form-label"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2),ts(),es(3,"p",2),Gs(4,"D\xfavidas? Entre em contato com a contabilidade."),ts(),es(5,"div",3),es(6,"div",4),es(7,"div",5),es(8,"div",6),ns(9,"input",7),es(10,"label",8),Gs(11,"*Nome"),ts(),ts(),ts(),es(12,"div",9),es(13,"io-btn",10),ls("btnClick",(function(){return t.closeModal()})),ts(),es(14,"io-btn",11),ls("btnClick",(function(){return t.sendAdvertiseType()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Qs("",t.advertiseTypeId?"Editar":"Novo"," tipo de advert\xeancia"),Bo(3),Zr("formGroup",t.advertiseTypeForm),Bo(4),Zr("formControlName","name"),Bo(4),Zr("moduleName","advertise")("action","update")("btnColor","btn-red")("btnText","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","advertise")("action",t.advertiseTypeId?"update":"create")("btnColor","btn-blue-bg")("btnText",t.advertiseTypeId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,kp,bp,Vf,vp,jD],styles:[""]}),Fj),jj=["class","component"];function zj(e,t){if(1&e&&(es(0,"span",27),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Vj(e,t){if(1&e){var n=as();es(0,"io-icon",25),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}2&e&&Zr("moduleName","advertise")("action","delete")("iconTitle","Excluir tipo de advert\xeancia")("iconClassList","mrgL1")}function Hj(e,t){if(1&e){var n=as();es(0,"io-icon",25),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactive(e.id)})),ts()}2&e&&Zr("moduleName","advertise")("action","reactive")("iconTitle","Reativar tipo de advert\xeancia")("iconClassList","mrgL1")}function Yj(e,t){if(1&e){var n=as();es(0,"li",20),es(1,"span",21),Jr(2,zj,2,1,"span",22),Gs(3),ts(),es(4,"span",23),Gs(5),ts(),es(6,"span",24),es(7,"io-icon",25),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalAdvertiseType(e.id)})),ts(),Jr(8,Vj,1,4,"io-icon",26),Jr(9,Hj,1,4,"io-icon",26),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.name," "),Bo(2),$s(i.active?"ativo":"inativo"),Bo(2),Zr("moduleName","advertise")("action","update")("iconTitle","Editar tipo de aus\xeancia")("iconClassList","mrgL1"),Bo(1),Zr("ngIf",i.active),Bo(1),Zr("ngIf",!i.active)}}function qj(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Uj(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum tipo de advert\xeancia encontrado."),ts())}function Wj(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 tipos de advert\xeancia cadastrados."),ts())}function Jj(e,t){if(1&e&&(es(0,"li"),Jr(1,qj,2,0,"p",16),Jr(2,Uj,2,0,"p",16),Jr(3,Wj,2,0,"p",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.advertiseTypeList.length>0&&n.advertiseTypeList[0].loading),Bo(1),Zr("ngIf",n.advertiseTypeList.length>0&&!n.advertiseTypeList[0].loading&&0==n.advertiseTypeListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.advertiseTypeList.length)}}var Gj,$j=((Gj=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.advertiseDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.advertiseTypeList=[{loading:!0}],this.advertiseTypeListFilteredSearch=[],this.advertiseTypeListFilteredStatus=[],this.advertiseTypeSelectedId=null,this.modalAdvertiseType=!1,this.modalDelete=!1,this.modalReactive=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Tipos de advert\xeancia"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm(1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getAdvertiseTypeList()}},{key:"getAdvertiseTypeList",value:function(){var e=this;this.advertiseTypeList=[{loading:!0}],this.advertiseTypeListFilteredSearch=[],this.advertiseDatabase.getAdvertiseTypeList([],(function(t){t.error||(e.advertiseTypeList=t.data.advertiseTypeList,e.filterAdvertiseTypeStatus())}))}},{key:"filterAdvertiseTypeStatus",value:function(){var e=this.searchForm.controls.status.value;this.advertiseTypeListFilteredStatus="all"==e?this.advertiseTypeList:this.advertiseTypeList.filter((function(t){return t.active==e})),this.filterAdvertiseTypeSearch(this.searchForm.controls.search.value)}},{key:"filterAdvertiseTypeSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.advertiseTypeListFilteredSearch=this.functionsService.arrayFilterWords(this.advertiseTypeListFilteredStatus,e,"name")}},{key:"showModalAdvertiseType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.advertiseTypeSelectedId=e,this.modalAdvertiseType=!0}},{key:"hideModalAdvertiseType",value:function(){this.modalAdvertiseType=!1,this.advertiseTypeSelectedId=null}},{key:"showModalDelete",value:function(e){this.advertiseTypeSelectedId=e,this.modalDelete=!0}},{key:"deleteAdvertiseType",value:function(){var e=this,t=this.advertiseTypeSelectedId;this.advertiseDatabase.deleteAdvertiseType(t,(function(n){n.error||(e.advertiseTypeList=e.advertiseTypeList.filter((function(e){return e.id!=t})),e.filterAdvertiseTypeStatus(),e.hideModalDelete(),e.getAdvertiseTypeList())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.advertiseTypeSelectedId=null}},{key:"showModalReactive",value:function(e){this.advertiseTypeSelectedId=e,this.modalReactive=!0}},{key:"reactive",value:function(e){var t=this;this.advertiseDatabase.putAdvertiseTypeStatus(e,(function(n){if(!n.error){var i=t.advertiseTypeList.findIndex((function(t){return t.id==e}));t.advertiseTypeList[i].active=1,t.filterAdvertiseTypeStatus(),t.hideModalReactive()}}))}},{key:"hideModalReactive",value:function(){this.advertiseTypeSelectedId=null,this.modalReactive=!1}}])}()).\u0275fac=function(e){return new(e||Gj)($r(wp),$r(yM),$r(Mj),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},Gj.\u0275cmp=Ot({type:Gj,selectors:[["io-advertise-page-list-type",8,"component"]],attrs:jj,decls:27,vars:20,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnClick"],[1,"inputAnimated","flex","mrgB1",3,"formGroup"],[1,"wdMax25"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","status","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","advertiseTypeId","reloadList","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","internal","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalAdvertiseType()})),ts(),es(3,"div",3),es(4,"div",4),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterAdvertiseTypeSearch(e)})),ts(),ts(),ts(),es(6,"div",6),es(7,"div",7),es(8,"h3",8),Gs(9,"Tipo de advert\xeancia"),ts(),es(10,"div",9),es(11,"select",10),ls("change",(function(){return t.filterAdvertiseTypeStatus()})),es(12,"option",11),Gs(13,"Todos"),ts(),es(14,"option",11),Gs(15,"Inativo"),ts(),es(16,"option",12),Gs(17,"Ativo"),ts(),ts(),ns(18,"fa-icon",13),ts(),es(19,"h3",8),Gs(20,"A\xe7\xe3o"),ts(),ts(),es(21,"ul",14),Jr(22,Yj,10,9,"li",15),Jr(23,Jj,4,3,"li",16),ts(),ts(),ts(),ts(),es(24,"io-advertise-modal-form-type",17),ls("reloadList",(function(){return t.getAdvertiseTypeList()}))("hideModal",(function(){return t.hideModalAdvertiseType()})),ts(),es(25,"io-modal-confirm",18),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteAdvertiseType()})),ts(),es(26,"io-modal-confirm",19),ls("confirmClick",(function(){return t.reactive(t.advertiseTypeSelectedId)}))("hideModal",(function(){return t.hideModalReactive()})),ts()),2&e&&(Bo(2),Zr("moduleName","advertise")("titleTop","Tipos de Advert\xeancia")("showBtn",!0),Bo(1),Zr("formGroup",t.searchForm),Bo(4),Zr("formGroup",t.searchForm),Bo(4),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",0),Bo(2),Zr("value",1),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.advertiseTypeListFilteredSearch),Bo(1),Zr("ngIf",0==t.advertiseTypeListFilteredSearch.length),Bo(1),Zr("showModal",t.modalAdvertiseType)("advertiseTypeId",t.advertiseTypeSelectedId),Bo(1),Zr("title","Excluir tipo de advert\xeancia?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("showModal",t.modalReactive)("title","Deseja Reativar este  tipo de advert\xeancia?")("btnTextConfirm","Reativar"))},directives:[eI,Hf,ip,oE,vm,bp,Vf,vp,ym,xm,FD,ah,sh,Rj,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:90px;margin:0;text-align:right}"]}),Gj);function Qj(e,t){if(1&e&&(es(0,"option",19),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.name)}}function Kj(e,t){if(1&e&&(es(0,"div",22),es(1,"span",23),Gs(2),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n)}}function Zj(e,t){if(1&e&&(es(0,"div"),es(1,"span",20),Gs(2,"Funcion\xe1rio:"),ts(),Jr(3,Kj,3,1,"div",21),ts()),2&e){var n=fs();Bo(3),Zr("ngForOf",n.collaboratorListSelectedId)}}function Xj(e,t){if(1&e){var n=as();es(0,"io-btn",24),ls("btnClick",(function(){return mn(n),fs().sendAdvertise()})),ts()}if(2&e){var i=fs();Zr("moduleName","advertise")("action",i.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",i.updateOn?"Salvar":"Cadastrar")}}var ez,tz,nz,iz=((nz=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.storageService=i,this.advertiseDatabase=o,this.databaseService=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.validService=u,this.advertiseId=null,this.showAsModal=!1,this.beginDateSelected="",this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.hideModal=new Mc,this.updateList=new Mc,this.resetEndDateEmitter=new Mc,this.btnEnable=!1,this.updateOn=!1,this.advertiseTypeList=[],this.advertiseMotive=0,this.advertiseMotiveSelected="",this.collaboratorListSelectedId=[],this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.name="Nome",this.modalCollaborator=!1,this.partial=!1,this.stateFields={description:{class:""},advertise_type_id:{class:""}},this.advertiseForm=this.formBuilder.group({advertise_type_id:new Wm(null,[Jf.required]),name:new Wm("",[Jf.required]),description:new Wm("",[Jf.required]),collaborator:new Wm("",[Jf.required])}),this.advertiseDatabase.getAdvertiseTypeList({onlyActives:!0},(function(e){e.error||e.data.advertiseTypeList.length>0&&(e.data.advertiseTypeList.forEach((function(e){d.advertiseTypeList.push(e)})),d.advertiseTypeList=d.functionsService.arrayReOder(d.advertiseTypeList,"description"))}))}),[{key:"ngOnInit",value:function(){var e=this;this.advertiseId?(this.updateOn=!0,this.advertiseDatabase.getAdvertise(this.companyId,this.advertiseId,(function(t){if(!t.error){var n=t.data.advertise,i=[];n.collaborators.forEach((function(t){e.collaboratorListSelectedId.push(t.collaborator_id),i.push(t.name)})),e.advertiseForm.get("advertise_type_id").setValue(n.advertise_type_id),e.advertiseForm.get("description").setValue(n.name),e.btnEnable=!0}}))):this.btnEnable=!0,this.showAsModal&&this.setCollaboratorListSelect([this.collaboratorSelectedId])}},{key:"showModalCollaborator",value:function(){this.modalCollaborator=!0}},{key:"setCollaboratorListSelect",value:function(e){var t=this;this.collaboratorListSelectedId=[],e.forEach((function(e){t.collaboratorListSelectedId.push(e)}))}},{key:"setCollaborator",value:function(e){this.name=1==e.length?e[0]:"M\xfaltiplos",this.advertiseForm.get("collaborator").valid||this.advertiseForm.get("collaborator").setValue(this.name)}},{key:"hideModalCollaborator",value:function(){this.modalCollaborator=!1}},{key:"validAdvertise",value:function(){return 0==this.collaboratorListSelectedId.length?(this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio para cadastrar"),!1):null==this.advertiseForm.get("advertise_type_id").value?(this.functionsService.openSnackBar("Selecione o tipo de advert\xcancia"),!1):!!this.checkErrorField("name")||(this.functionsService.openSnackBar("Informe o nome"),!1)}},{key:"sendAdvertise",value:function(){this.validAdvertise()}},{key:"checkErrorField",value:function(e){return this.advertiseForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"endRegister",value:function(){this.showAsModal?this.hideModal.emit():this.router.navigate(["/advertise"]).then((function(){return!1}))}},{key:"setMotive",value:function(e){var t=this;this.advertiseMotiveSelected=this.advertiseTypeList.filter((function(e){return e.id==t.advertiseMotive.toString()}))[0].description}}])}()).\u0275fac=function(e){return new(e||nz)($r(wp),$r(yM),$r(YP),$r(Mj),$r(tT),$r(zP),$r(WO),$r(JO),$r(TN))},nz.\u0275cmp=Ot({type:nz,selectors:[["io-advertise-form"]],inputs:{advertiseId:"advertiseId",showAsModal:"showAsModal",beginDateSelected:"beginDateSelected",collaboratorSelectedId:"collaboratorSelectedId",collaboratorSelectedName:"collaboratorSelectedName"},outputs:{hideModal:"hideModal",updateList:"updateList",resetEndDateEmitter:"resetEndDateEmitter"},decls:24,vars:27,consts:[[1,"formBox",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"form-group","inputAnimated"],[1,"form-group"],["autocomplete","off","id","name","placeholder","","required","","type","text",3,"formControlName"],["for","name",1,"form-label","required"],[1,"form-group","selectAdvertiseType","inputAnimated"],["id","advertise_type_id","required","",3,"formControlName","change","keyup"],["typeId",""],[3,"value",4,"ngFor","ngForOf"],["for","advertise_type_id",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["autocomplete","off","id","description","placeholder","","required","","type","text",3,"formControlName"],["for","description",1,"form-label","required"],[4,"ngIf"],[1,"flex"],[3,"moduleName","btnColor","btnText","useValidation","btnClick"],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnClick",4,"ngIf"],[3,"showModal","selectedListId","selectedId","selectedName","hideModal"],[3,"value"],[1,"sizeD"],["class","flex start",4,"ngFor","ngForOf"],[1,"flex","start"],[1,"sizeC","borderBottom"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){if(1&e){var n=as();es(0,"form",0),es(1,"div"),es(2,"io-main-top",1),ls("btnClick",(function(){return t.showModalCollaborator()})),ts(),es(3,"div",2),es(4,"div",3),ns(5,"input",4),es(6,"label",5),Gs(7,"name"),ts(),ts(),es(8,"div",6),es(9,"select",7,8),ls("change",(function(){mn(n);var e=Gr(10);return t.setMotive(e.value)}))("keyup",(function(){return t.checkErrorField("advertise_type_id")})),Jr(11,Qj,2,2,"option",9),ts(),es(12,"label",10),Gs(13,"Tipo de advert\xeancia"),ts(),ns(14,"fa-icon",11),ts(),es(15,"div",3),ns(16,"input",12),es(17,"label",13),Gs(18,"Descri\xe7\xe3o"),ts(),ts(),ts(),Jr(19,Zj,4,1,"div",14),ts(),es(20,"div",15),es(21,"io-btn",16),ls("btnClick",(function(){return t.endRegister()})),ts(),Jr(22,Xj,1,4,"io-btn",17),ts(),ts(),es(23,"io-modal-multi-select-id",18),ls("selectedId",(function(e){return t.setCollaboratorListSelect(e)}))("selectedName",(function(e){return t.setCollaborator(e)}))("hideModal",(function(){return t.hideModalCollaborator()})),ts()}2&e&&(Zr("formGroup",t.advertiseForm),Bo(2),Zr("moduleName","advertise")("titleTop",t.updateOn?"Edi\xe7\xe3o de Advert\xeancia":"Cadastro de Advert\xeancia")("showBtn",!t.showAsModal)("btnDataText","Selecionar Funcion\xe1rios"),Bo(3),Es(t.stateFields.description),Zr("formControlName","name"),Bo(4),Es(t.stateFields.advertise_type_id),Zr("formControlName","advertise_type_id"),Bo(2),Zr("ngForOf",t.advertiseTypeList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(2),Es(t.stateFields.description),Zr("formControlName","description"),Bo(3),Zr("ngIf",1==t.collaboratorListSelectedId.length),Bo(2),Zr("moduleName","advertise")("btnColor","btn-red")("btnText","Cancelar")("useValidation",!1),Bo(1),Zr("ngIf",t.btnEnable),Bo(1),Zr("showModal",t.modalCollaborator)("selectedListId",t.collaboratorListSelectedId))},directives:[ep,Hf,ip,eI,If,bp,Vf,vp,vm,ah,FD,sh,jD,tR,ym,xm],styles:[".advertiseBox[_ngcontent-%COMP%]{padding:20px 0}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%], .advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{width:100%}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .checkBoxLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;max-width:24%}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flexDesk[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{max-width:24%}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:49%}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker.checkFullDay[_ngcontent-%COMP%], .advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group.checkFullDay[_ngcontent-%COMP%]{margin:0}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker.checkFullDay[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group.checkFullDay[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:3px 0 0;padding-bottom:7px;height:32px}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{width:100%;height:100%;max-width:23%;margin-left:20px}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .selectBox[_ngcontent-%COMP%]{padding:15px 15px 0;border:1px solid var(--cl-gray-dark);border-radius:4px}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .selectBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin:0 0 20px}textarea[_ngcontent-%COMP%]{overflow:hidden;margin:0}.attachmentList[_ngcontent-%COMP%]{max-width:100%;margin:0 0 20px}.attachmentList[_ngcontent-%COMP%]   .attachmentItem[_ngcontent-%COMP%]{margin:0 0 10px}input[_ngcontent-%COMP%]::-webkit-input-placeholder{opacity:.7}@media (max-width:700px){.advertiseBox[_ngcontent-%COMP%]{display:block}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:250px;margin:0 auto 20px 0}}@media (max-width:550px){.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]{display:block}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.advertiseBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}}"]}),nz),oz=((tz=function(){return d((function e(t){c(this,e),this.titleService=t,this.titleService.setTitle("Advert\xeancias - Cadastro")}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||tz)($r(hL))},tz.\u0275cmp=Ot({type:tz,selectors:[["io-advertise-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-advertise-form"),ts(),ts())},directives:[iz],styles:[""]}),tz),az=((ez=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteBarrier",value:function(e,t){this.databaseService.delete("/barrier/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBarrier",value:function(e,t){this.databaseService.get("/barrier/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBarrierList",value:function(e){this.databaseService.get("/barrier",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getBarrierCollaboratorList",value:function(e,t){this.databaseService.get("/barrier/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBarrierCollaboratorListOut",value:function(e,t){this.databaseService.get("/barrier/"+e+"/collaboratorListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postBarrier",value:function(e,t){this.databaseService.post("/barrier",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postBarrierCollaboratorListOut",value:function(e,t,n){this.databaseService.post("/barrier/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postBarrierRemoveCollaborator",value:function(e,t,n){this.databaseService.post("/barrier/"+e+"/removeCollaborator",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putBarrier",value:function(e,t,n){this.databaseService.put("/barrier/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"reactiveBarrier",value:function(e,t){this.databaseService.get("/barrier/reactive/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||ez)(ut(tT))},ez.\u0275prov=Se({token:ez,factory:ez.\u0275fac,providedIn:"root"}),ez),rz=["search"];function sz(e,t){if(1&e){var n=as();es(0,"agm-map",20),ls("mapClick",(function(e){return mn(n),fs().selectPlace(e)}))("mapDblClick",(function(e){return mn(n),fs().selectPlace(e)})),es(1,"agm-marker",21),ls("dragEnd",(function(e){return mn(n),fs().selectPlace(e)})),ts(),ns(2,"agm-circle",22),ts()}if(2&e){var i=fs();Zr("latitude",i.lat)("longitude",i.lng)("zoom",i.zoom)("disableDoubleClickZoom",!0),Bo(1),Zr("latitude",i.latMarker)("longitude",i.lngMarker)("markerDraggable",!0),Bo(1),Zr("latitude",i.latMarker)("longitude",i.lngMarker)("radius",i.radius)("fillColor","#007ec2")("circleDraggable",!1)("editable",!1)}}var lz,cz=((lz=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.mapsAPILoader=n,this.ngZone=i,this.barrierDatabase=o,this.functionsService=a,this.showModal=!0,this.barrierId=null,this.hideModal=new Mc,this.barrierPosted=new Mc,this.barrierUpdated=new Mc,this.lat=0,this.lng=0,this.latMarker=0,this.lngMarker=0,this.radius=20,this.zoom=8,this.barrierForm=this.formBuilder.group({name:new Wm("",[Jf.required]),radius:new Wm("20",[Jf.required]),latitude:new Wm("",[Jf.required]),longitude:new Wm("",[Jf.required]),is_active:new Wm("1",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.mapsAPILoader.load().then((function(){e.geoCoder=new google.maps.Geocoder;var t=new google.maps.places.Autocomplete(e.search.nativeElement);t.addListener("place_changed",(function(){e.ngZone.run((function(){var n=t.getPlace().geometry;null!=n&&(e.setPlace(n.location.lat(),n.location.lng()),e.zoom=12)}))}))}))}},{key:"ngOnChanges",value:function(){var e=this;this.showModal&&(this.search.nativeElement.value="",this.barrierId?this.barrierDatabase.getBarrier(this.barrierId,(function(t){if(!t.error){var n=t.data.barrier;Object.keys(e.barrierForm.controls).forEach((function(t){e.barrierForm.controls[t].setValue(n[t])})),e.radius=parseFloat(n.radius),e.setPlace(parseFloat(n.latitude),parseFloat(n.longitude))}})):this.setCurrentLocation())}},{key:"setCurrentLocation",value:function(){var e=this;null!=this.pointLat&&null!=this.pointLng?this.setPlace(this.pointLat,this.pointLng):"geolocation"in navigator?navigator.geolocation.getCurrentPosition((function(t){e.setPlace(t.coords.latitude,t.coords.longitude),e.getAddress(t.coords.latitude,t.coords.longitude),e.zoom=8})):(this.setPlace(-26.7268238,-53.5204926),this.getAddress(-26.7268238,53.5204926,!0))}},{key:"getAddress",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.geoCoder.geocode({location:{lat:e,lng:t}},(function(e,t){if("OK"===t){if(!e[0])return n.functionsService.openSnackBar("A localiza\xe7\xe3o atual n\xe3o pode ser encontrada.");n.zoom=i?3:12,n.address=e[0].formatted_address}}))}},{key:"selectPlace",value:function(e){this.setPlace(e.coords.lat,e.coords.lng)}},{key:"setPlace",value:function(e,t){this.lat=e,this.lng=t,this.latMarker=e,this.lngMarker=t,this.barrierForm.controls.latitude.setValue(this.latMarker),this.barrierForm.controls.longitude.setValue(this.lngMarker)}},{key:"setRadius",value:function(e){this.radius=parseInt(e)}},{key:"validForm",value:function(){return""==this.barrierForm.controls.name.value||null==this.barrierForm.controls.name.value?(this.functionsService.openSnackBar("Informe um nome para cadastrar."),!1):""!=this.barrierForm.controls.latitude.value&&null!=this.barrierForm.controls.latitude.value&&""!=this.barrierForm.controls.longitude.value&&null!=this.barrierForm.controls.longitude.value||(this.functionsService.openSnackBar("Latitude e longitude n\xe3o encontradas para registar cerca digital."),!1)}},{key:"sendForm",value:function(){this.validForm()&&(this.barrierId?this.putBarrier():this.postBarrier())}},{key:"postBarrier",value:function(){var e=this;this.barrierDatabase.postBarrier(this.barrierForm.value,(function(t){if(!t.error){var n=t.data.id;e.emitAddToList(Object.assign(Object.assign({},e.barrierForm.value),{id:n}))}})),this.resetForm()}},{key:"putBarrier",value:function(){var e=this,t=this.barrierId;this.barrierDatabase.putBarrier(t,this.barrierForm.value,(function(n){n.error||e.emitUpdateList(Object.assign(Object.assign({},e.barrierForm.value),{id:t}))})),this.resetForm()}},{key:"emitAddToList",value:function(e){this.barrierPosted.emit(e)}},{key:"emitUpdateList",value:function(e){this.barrierUpdated.emit(e)}},{key:"closeModal",value:function(){this.barrierForm.reset(),this.barrierForm.controls.radius.setValue("20"),this.radius=20,this.hideModal.emit(!1)}},{key:"resetForm",value:function(){this.barrierForm.get("name").setValue(""),this.barrierForm.get("radius").setValue("20")}}])}()).\u0275fac=function(e){return new(e||lz)($r(wp),$r(Vk),$r(gu),$r(az),$r(zP))},lz.\u0275cmp=Ot({type:lz,selectors:[["io-barrier-modal-form"]],viewQuery:function(e,t){var n;1&e&&Rc(rz,!0),2&e&&Bc(n=Yc())&&(t.search=n.first)},inputs:{showModal:"showModal",barrierId:"barrierId",pointLat:"pointLat",pointLng:"pointLng"},outputs:{hideModal:"hideModal",barrierPosted:"barrierPosted",barrierUpdated:"barrierUpdated"},features:[dl],decls:31,vars:18,consts:[[3,"showModal","hideModal"],[1,"modalBody",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","fontBold"],[1,"mrgB2"],[1,"form-group","inputAnimated"],["autocomplete","off","id","barrierName","type","text","required","",3,"formControlName"],["for","barrierName",1,"form-label","required"],["autocomplete","off","id","is_active","type","hidden","value","1",3,"formControlName"],[1,"sizeC"],[1,"mapBox","mrgB1"],["autocomplete","off","type","text","placeholder","","id","search","required","",1,"mrgB2"],["search",""],["for","search",1,"form-label"],[3,"latitude","longitude","zoom","disableDoubleClickZoom","mapClick","mapDblClick",4,"ngIf"],["autocomplete","off","mask","000000000","maxlength","9","type","text","required","",1,"borderBottom",3,"formControlName","keyup"],["rad",""],[1,"sizeC","mrgT1"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"latitude","longitude","zoom","disableDoubleClickZoom","mapClick","mapDblClick"],[3,"latitude","longitude","markerDraggable","dragEnd"],[3,"latitude","longitude","radius","fillColor","circleDraggable","editable"]],template:function(e,t){if(1&e){var n=as();es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3),ts(),es(4,"div",3),es(5,"div",4),ns(6,"input",5),es(7,"label",6),Gs(8,"Nome do local"),ts(),ns(9,"input",7),ts(),es(10,"p",8),Gs(11,"Utilize o mapa para definir a cerca digital."),ts(),es(12,"p",8),Gs(13,"Clique no mapa, ou arraste o marcador para definir o local de refer\xeancia da cerca digital"),ts(),ts(),es(14,"div",9),es(15,"div",4),ns(16,"input",10,11),es(18,"label",12),Gs(19,"Pesquisa por endere\xe7o"),ts(),ts(),Jr(20,sz,3,13,"agm-map",13),ts(),es(21,"div",3),es(22,"span",8),Gs(23,"Limite de registro em metros: "),es(24,"input",14,15),ls("keyup",(function(){mn(n);var e=Gr(25);return t.setRadius(e.value)})),ts(),ts(),es(26,"p",16),Gs(27,"Obs.: \xc9 sugerido o acr\xe9scimo de alguns metros como toler\xe2ncia. Alguns dispositivos podem variar a precis\xe3o entre 20 a 50 metros."),ts(),ts(),es(28,"div",17),es(29,"io-btn",18),ls("btnClick",(function(){return t.closeModal()})),ts(),es(30,"io-btn",19),ls("btnClick",(function(){return t.sendForm()})),ts(),ts(),ts(),ts()}2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.barrierForm),Bo(2),Qs("",t.barrierId?"Editar":"Nova"," cerca digital"),Bo(3),Zr("formControlName","name"),Bo(3),Zr("formControlName","is_active"),Bo(11),Zr("ngIf",0!=t.lat),Bo(4),Zr("formControlName","radius"),Bo(5),Zr("moduleName","barrier")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","barrier")("action",t.barrierId?"update":"create")("btnColor","btn-blue-bg")("btnText",t.barrierId?"Salvar":"Cadastrar")("btnTitle",t.barrierId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,sh,DE,kp,jD,pC,vC,Uk],styles:["agm-map[_ngcontent-%COMP%], map-view[_ngcontent-%COMP%]{height:300px}"]}),lz);function uz(e,t){if(1&e&&(es(0,"span",25),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function dz(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().showModalReactive(e.id)})),ts()}2&e&&Zr("moduleName","barrier")("action","reactive")("iconTitle","Reativar cerca digital")("iconClassList","mrgL1")}function hz(e,t){if(1&e&&(es(0,"span",26),Jr(1,dz,1,4,"io-icon",27),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngIf",!n.active)}}function fz(e,t){if(1&e){var n=as();es(0,"span",26),es(1,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),es(2,"io-icon",30),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalBarrier(e.id)})),ts(),es(3,"io-icon",30),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalRemoveBarrier(e.id)})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","barrier")("action","showCollaboratorLinked")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","barrier")("action","update")("iconClassList","mrgL1")("iconTitle","Editar cerca digital"),Bo(1),Zr("moduleName","barrier")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir cerca digital"))}function mz(e,t){if(1&e&&(es(0,"li",20),es(1,"span",21),Jr(2,uz,2,1,"span",22),Gs(3),ts(),es(4,"span",21),Gs(5),ts(),es(6,"span",21),Gs(7),ts(),es(8,"span",23),Gs(9),ts(),Jr(10,hz,2,1,"span",24),Jr(11,fz,4,11,"span",24),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),Qs(" ",n.name,""),Bo(2),$s(n.radius),Bo(2),$s(n.collaborators||"0"),Bo(2),$s(1==n.is_active?"Ativo":"Inativo"),Bo(1),Zr("ngIf",0==n.is_active),Bo(1),Zr("ngIf",1==n.is_active)}}function pz(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function gz(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma cerca digital encontrada."),ts())}function vz(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 cerca digital cadastrada."),ts())}function yz(e,t){if(1&e&&(es(0,"li"),Jr(1,pz,2,0,"p",15),Jr(2,gz,2,0,"p",15),Jr(3,vz,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.barrierList.length>0&&n.barrierList[0].loading),Bo(1),Zr("ngIf",n.barrierList.length>0&&!n.barrierList[0].loading&&0==n.barrierListFiltered.length),Bo(1),Zr("ngIf",0==n.barrierList.length)}}var bz,_z,kz,Cz,wz=((kz=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.barrierDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.barrierList=[{loading:!0}],this.barrierListCount=[],this.barrierListFiltered=[],this.barrierListActive=[],this.barrierSelectedId=null,this.collaboratorListIn=[],this.collaboratorListOut=[],this.modalBarrier=!1,this.modalReactive=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.modalRemoveBarrier=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Cerca digital"),this.searchForm=this.formBuilder.group({active:new Wm("1",[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getBarrierList()}},{key:"getBarrierList",value:function(){var e=this;this.barrierDatabase.getBarrierList((function(t){t.error||(e.barrierList=t.data.barrierList||[],e.barrierListCount=t.data.barrierCount||[],e.filterBarrierActive())}))}},{key:"showModalBarrier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.barrierSelectedId=e,this.modalBarrier=!0}},{key:"addToList",value:function(){this.getBarrierList(),this.hideModalBarrier()}},{key:"updateList",value:function(e){var t=this.barrierList.findIndex((function(t){return t.id==e.id}));this.barrierList[t]=e,this.filterBarrierActive(),this.getBarrierList(),this.hideModalBarrier()}},{key:"hideModalBarrier",value:function(){this.modalBarrier=!1,this.barrierSelectedId=null}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.barrierDatabase.getBarrierCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.barrierSelectedId=e,this.modalCollaboratorList=!0}},{key:"unlinkCollaboratorList",value:function(e){var t=this;0!=e.length&&this.barrierDatabase.postBarrierRemoveCollaborator(this.barrierSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.getBarrierList(),t.hideModalCollaboratorList())}))}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1,this.barrierSelectedId=null}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.barrierDatabase.getBarrierCollaboratorListOut(this.barrierSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.collaboratorListOut||[])})),this.modalCollaboratorList=!1,this.modalCollaboratorLink=!0}},{key:"linkCollaboratorList",value:function(e){var t=this;0!=e.length&&this.barrierDatabase.postBarrierCollaboratorListOut(this.barrierSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.getBarrierList(),t.hideModalCollaboratorLink())}))}},{key:"hideModalCollaboratorLink",value:function(){this.barrierSelectedId=null,this.modalCollaboratorLink=!1}},{key:"showModalRemoveBarrier",value:function(e){this.barrierSelectedId=e,this.modalRemoveBarrier=!0}},{key:"deleteBarrier",value:function(e){var t=this;this.barrierDatabase.deleteBarrier(e,(function(n){if(!n.error){var i=t.barrierList.findIndex((function(t){return t.id==e}));t.barrierList[i].is_active=0,t.filterBarrierActive()}})),this.hideModalRemoveBarrier()}},{key:"hideModalRemoveBarrier",value:function(){this.barrierSelectedId=null,this.modalRemoveBarrier=!1}},{key:"filterBarrierActive",value:function(){var e=this.searchForm.get("active").value;this.barrierListActive=this.barrierList.filter((function(t){return t.is_active==e})),"all"==e&&(this.barrierListActive=this.barrierList),this.filterBarrierSearch(this.searchForm.controls.search.value)}},{key:"filterBarrierSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.barrierListFiltered=this.functionsService.arrayFilterWords(this.barrierListActive,e,"name")}},{key:"showModalReactive",value:function(e){this.barrierSelectedId=e,this.modalReactive=!0}},{key:"reactive",value:function(e){var t=this;this.barrierDatabase.reactiveBarrier(e,(function(n){if(!n.error){var i=t.barrierList.findIndex((function(t){return t.id==e}));t.barrierList[i].is_active=1,t.filterBarrierActive(),t.hideModalReactive()}}))}},{key:"hideModalReactive",value:function(){this.barrierSelectedId=null,this.modalReactive=!1}}])}()).\u0275fac=function(e){return new(e||kz)($r(wp),$r(yM),$r(az),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},kz.\u0275cmp=Ot({type:kz,selectors:[["io-barrier-page-list"]],decls:32,vars:35,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnClick"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","barrierId","barrierPosted","barrierUpdated","hideModal"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","hideModal"],[1,"flex","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],["class","item",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalBarrier()})),ts(),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterBarrierSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Nome"),ts(),es(9,"h3",7),Gs(10,"Dist\xe2ncia"),ts(),es(11,"h3",7),Gs(12,"Funcion\xe1rios"),ts(),es(13,"div",8),es(14,"select",9),ls("change",(function(){return t.filterBarrierActive()})),es(15,"option",10),Gs(16,"Todos"),ts(),es(17,"option",11),Gs(18,"Ativos"),ts(),es(19,"option",10),Gs(20,"Inativos"),ts(),ts(),ns(21,"fa-icon",12),ts(),es(22,"h3",7),Gs(23,"A\xe7\xe3o"),ts(),ts(),es(24,"ul",13),Jr(25,mz,12,7,"li",14),Jr(26,yz,4,3,"li",15),ts(),ts(),ts(),ts(),es(27,"io-barrier-modal-form",16),ls("barrierPosted",(function(){return t.addToList()}))("barrierUpdated",(function(e){return t.updateList(e)}))("hideModal",(function(){return t.hideModalBarrier()})),ts(),es(28,"io-modal-confirm",17),ls("confirmClick",(function(){return t.deleteBarrier(t.barrierSelectedId)}))("hideModal",(function(){return t.hideModalRemoveBarrier()})),ts(),es(29,"io-modal-multi-select-id",18),ls("selectedId",(function(e){return t.unlinkCollaboratorList(e)}))("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(30,"io-modal-multi-select-id",19),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts(),es(31,"io-modal-confirm",17),ls("confirmClick",(function(){return t.reactive(t.barrierSelectedId)}))("hideModal",(function(){return t.hideModalReactive()})),ts()),2&e&&(Bo(2),Zr("moduleName","barrier")("titleTop","Cerca digital")("showBtn",!0),Bo(4),Zr("formGroup",t.searchForm),Bo(8),Zr("formControlName","active"),Bo(1),Zr("value","all"),Bo(2),Zr("value","1"),Bo(2),Zr("value","0"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.barrierListFiltered),Bo(1),Zr("ngIf",0==t.barrierListFiltered.length),Bo(1),Zr("showModal",t.modalBarrier)("barrierId",t.barrierSelectedId),Bo(1),Zr("showModal",t.modalRemoveBarrier)("title","Deseja excluir esta cerca digital?")("btnTextConfirm","Excluir"),Bo(1),Zr("title","Funcion\xe1rios vinculados a esta cerca digital")("moduleName","barrier")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","update")("btnConfirmText","Desvincular")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a esta cerca digital")("moduleName","barrier")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink),Bo(1),Zr("showModal",t.modalReactive)("title","Deseja Reativar esta cerca digital?")("btnTextConfirm","Reativar"))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,cz,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:100px;text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:100px;margin:0;text-align:right}"]}),kz),xz=((_z=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteCompTimePayment",value:function(e,t){this.databaseService.delete("/compTime/compTimePayment/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteHistoric",value:function(e,t){this.databaseService.delete("/compTime/deleteHistoric/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimeCollaboratorList",value:function(e,t){this.databaseService.get("/compTime/collaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimeHour",value:function(e,t){this.databaseService.get("/compTime/compTimeHour",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimeHourList",value:function(e,t){this.databaseService.get("/compTime/compTimeHourData",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimeReport",value:function(e,t){this.databaseService.getFile("/compTime/compTimeHourReport",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimeHourTotal",value:function(e,t){this.databaseService.get("/compTime/compTimeHourTotal",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimeHourTotalList",value:function(e,t){this.databaseService.get("/compTime/compTimeHourTotalList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimePayment",value:function(e,t){this.databaseService.get("/compTime/compTimePaymentData/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompTimePaymentList",value:function(e,t){this.databaseService.get("/compTime/compTimePaymentList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHistoricList",value:function(e,t){this.databaseService.get("/compTime/historicList/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHistoricDataFromCollaborator",value:function(e,t){this.databaseService.get("/compTime/historicDataFromCollaborator/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCompTimeHistoric",value:function(e,t){this.databaseService.post("/compTime/compTimeHistoric",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCompTimePayment",value:function(e,t){this.databaseService.post("/compTime/compTimePayment",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCompTimePaymentList",value:function(e,t){this.databaseService.post("/compTime/compTimePaymentList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCompTimeHistoric",value:function(e,t){this.databaseService.put("/compTime/compTimeHistoric",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCompTimeHour",value:function(e,t,n){this.databaseService.put("/compTime/compTimeHour/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||_z)(ut(tT))},_z.\u0275prov=Se({token:_z,factory:_z.\u0275fac,providedIn:"root"}),_z),Mz=((bz=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getBilling",value:function(e,t){this.databaseService.get("/invoice/searchBilling/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCnpj",value:function(e,t){this.databaseService.get("/getApiDocument?",{national_registry:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompany",value:function(e,t){this.databaseService.get("/company/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompanyDataForConfiguration",value:function(e){this.databaseService.get("/company/getDataForConfiguration",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getCompanyConfiguration",value:function(e){this.databaseService.get("/companyConfiguration",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getCompanyList",value:function(e,t){this.databaseService.get("/company",e,!0).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompanyListTransfer",value:function(e,t){this.databaseService.get("/company/getCompanyListTransfer",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCompanyValidationData",value:function(e){this.databaseService.get("/company/getValidationData",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getSelectList",value:function(e,t){this.databaseService.get("/company/getSelectList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getRubricList",value:function(e,t){this.databaseService.get("/company/getRubricList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHQ",value:function(e,t){this.databaseService.get("/company/hq",{user_id:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPlans",value:function(e,t){this.databaseService.get("/company/plans/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postBankTimeRange",value:function(e,t){this.databaseService.post("/company/bankTimeRange",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postBankTime",value:function(e,t){this.databaseService.post("/company/newBankTime",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCompany",value:function(e,t){this.databaseService.post("/companyNewCompany",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCompanyLogo",value:function(e,t){this.databaseService.post("/company/logo",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putBankTime",value:function(e,t){this.databaseService.put("/company/updateBankTime",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCompany",value:function(e,t,n){this.databaseService.put("/company/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCompanyApiToken",value:function(e){this.databaseService.put("/company/updateToken",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"putCompanyConfiguration",value:function(e,t,n){this.databaseService.put("/companyConfiguration/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCompanyMultiPointPassword",value:function(e,t,n){this.databaseService.put("/company/"+t,e).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCompanySetNewBeginDate",value:function(e,t){this.databaseService.put("/company/setNewBeginDate",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCompanyToggleFaceRecognition",value:function(e,t){this.databaseService.put("/company/toggleFaceRecognition",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putVRDailyPriceData",value:function(e,t){this.databaseService.put("/company/updateVrDailyPrice",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putCompanyToggleShowMultiPassword",value:function(e,t){this.databaseService.put("/company/toggleShowMultiPassword",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteBankTimeRange",value:function(e){this.databaseService.put("/company/deleteBankTimeRange",null).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}}])}()).\u0275fac=function(e){return new(e||bz)(ut(tT))},bz.\u0275prov=Se({token:bz,factory:bz.\u0275fac,providedIn:"root"}),bz),Sz=["modalFilter"],Pz=["*"],Tz=((Cz=function(){return d((function e(t,n){var i=this;c(this,e),this.renderer=t,this.iconSolidService=n,this.showFilter=!0,this.hideFilter=new Mc,this.filterBox=!1,this.renderer.listen("window","click",(function(e){e.target==i.modalFilter.nativeElement&&i.closeFilter()}))}),[{key:"ngOnChanges",value:function(){this.showFilter&&(this.filterBox=!0)}},{key:"closeFilter",value:function(){var e=this;this.filterBox=!1,setTimeout((function(){e.hideFilter.emit(!1)}),200)}}])}()).\u0275fac=function(e){return new(e||Cz)($r(Ol),$r(JO))},Cz.\u0275cmp=Ot({type:Cz,selectors:[["io-filter-box"]],viewQuery:function(e,t){var n;1&e&&Rc(Sz,!0),2&e&&Bc(n=Yc())&&(t.modalFilter=n.first)},inputs:{showFilter:"showFilter"},outputs:{hideFilter:"hideFilter"},features:[dl],ngContentSelectors:Pz,decls:6,vars:3,consts:[[1,"filterBlack","modalFilter",3,"ngClass"],["modalFilter",""],[1,"filterBox","bg-white",3,"ngClass"],[1,"btnCloseModal",3,"click"],["title","Fechar filtro",1,"iconItem","iconSizeD","cl-gray",3,"icon"]],template:function(e,t){1&e&&(ps(),es(0,"div",0,1),es(2,"div",2),es(3,"span",3),ls("click",(function(){return t.closeFilter()})),ns(4,"fa-icon",4),ts(),gs(5),ts(),ts()),2&e&&(Zr("ngClass",1==t.showFilter?"active":""),Bo(2),Zr("ngClass",1==t.filterBox?"active":""),Bo(2),Zr("icon",t.iconSolidService.faTimes))},directives:[ih,FD],styles:[".modalFilter[_ngcontent-%COMP%]   .filterBox[_ngcontent-%COMP%]{position:fixed;top:0;right:-330px;width:330px;height:100%;padding:25px 20px 20px;transition:all .2s ease;overflow-y:scroll}.modalFilter[_ngcontent-%COMP%]   .filterBox.active[_ngcontent-%COMP%]{right:0}"]}),Cz);function Oz(e,t){if(1&e&&(es(0,"h2",7),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.title)}}function Lz(e,t){if(1&e){var n=as();es(0,"div",8),es(1,"label",9),Gs(2,"Selecionar todos "),es(3,"input",10),ls("change",(function(){return mn(n),fs().verifyAll()})),ts(),ns(4,"span",11),ts(),ts()}2&e&&(Zr("formGroup",fs().searchForm),Bo(3),Zr("formControlName","allSelected"))}function Dz(e,t){if(1&e){var n=as();es(0,"li",12),es(1,"span",13),es(2,"label",9),Gs(3),es(4,"input",14),ls("change",(function(){mn(n);var e=t.$implicit,i=fs();return i.selectId(e[i.listItemIdField])})),ts(),ns(5,"span",11),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Qs("",i[o.listItemNameField]," "),Bo(1),Zr("checked",o.listSelected.indexOf(i[o.listItemIdField])>=0)}}var Iz,Fz=((Iz=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.storageService=n,this.functionsService=i,this.list=[],this.listSelectedLoad=[],this.listItemIdField="id",this.listItemNameField="description",this.title="Pesquisar",this.reset=new E,this.inputValue=new Mc,this.listSelectedId=new Mc,this.listShow=[],this.listShowFiltered=[],this.listSelected=[],this.searchLineReset=new Mc,this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[])})}),[{key:"ngOnInit",value:function(){var e=this;this.reset.subscribe((function(){e.resetMultiselect()})),this.listSelectedLoad.length>0&&this.loadListSelected(this.listSelectedLoad)}},{key:"loadListSelected",value:function(e){var t=this;this.listSelected=[],e.forEach((function(e){return t.listSelected.push(e)})),this.validAllSelected()}},{key:"ngOnChanges",value:function(){this.listShow=this.list,this.filter("")}},{key:"filter",value:function(e){this.searchForm.get("search").setValue(e),this.listShowFiltered=this.functionsService.arrayFilterWords(this.listShow,e,this.listItemNameField)}},{key:"selectId",value:function(e){this.listSelected.find((function(t){return t==e}))?this.listSelected=this.listSelected.filter((function(t){return t!=e})):this.listSelected.push(e),this.validAllSelected(),this.emitList()}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.listSelected=[],this.list.forEach((function(t){e.listSelected.push(t[e.listItemIdField])}))):this.listSelected=[],this.emitList()}},{key:"validAllSelected",value:function(){this.searchForm.get("allSelected").setValue(this.list.length==this.listSelected.length)}},{key:"resetMultiselect",value:function(){this.searchForm.get("allSelected").setValue(!1),this.searchForm.get("search").setValue(""),this.listSelected=[],this.searchLineReset.emit()}},{key:"emitList",value:function(){this.listSelectedId.emit(this.listSelected)}}])}()).\u0275fac=function(e){return new(e||Iz)($r(wp),$r(YP),$r(zP))},Iz.\u0275cmp=Ot({type:Iz,selectors:[["io-multiselect"]],inputs:{list:"list",listSelectedLoad:"listSelectedLoad",listItemIdField:"listItemIdField",listItemNameField:"listItemNameField",title:"title",reset:"reset"},outputs:{inputValue:"inputValue",listSelectedId:"listSelectedId"},features:[dl],decls:7,vars:5,consts:[[1,"multiselectBox"],["class","sizeB fontBold borderBottom mrgB1",4,"ngIf"],[3,"reset","paddingBottom","onKeyPress"],[1,"relativePlace"],["class","flex start wdFull mrgT1",3,"formGroup",4,"ngIf"],[1,"listBox","autoCompleteList"],["class","flex top listAlign",4,"ngFor","ngForOf"],[1,"sizeB","fontBold","borderBottom","mrgB1"],[1,"flex","start","wdFull","mrgT1",3,"formGroup"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"flex","top","listAlign"],[1,"item","sizeC"],["type","checkbox",3,"checked","change"]],template:function(e,t){1&e&&(es(0,"div",0),Jr(1,Oz,2,1,"h2",1),es(2,"io-search-line",2),ls("onKeyPress",(function(e){return t.filter(e)})),ts(),es(3,"div",3),Jr(4,Lz,5,2,"div",4),es(5,"ul",5),Jr(6,Dz,6,2,"li",6),ts(),ts(),ts()),2&e&&(Bo(1),Zr("ngIf",""!=t.title),Bo(1),Zr("reset",t.searchLineReset)("paddingBottom",""),Bo(2),Zr("ngIf",0!=t.listShow.length),Bo(2),Zr("ngForOf",t.listShowFiltered))},directives:[sh,oE,ah,Hf,ip,Of,Vf,vp],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:0;max-height:400px;padding-left:15px}.listBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]{background:transparent;height:inherit;padding:0}.listBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 5px;padding:0;min-height:20px;height:auto}.listBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox[_ngcontent-%COMP%]{margin:2px 0}"]}),Iz);function Az(e,t){if(1&e){var n=as();es(0,"io-multiselect",11),ls("listSelectedId",(function(e){return mn(n),fs().setCollaboratorStatusList(e)})),ts()}if(2&e){var i=fs();Zr("title","Status do funcion\xe1rio")("list",i.collaboratorStatusList)("listItemIdField","id")("listItemNameField","description")("listSelectedLoad",i.collaboratorStatusListSelectedReset)("reset",i.resetFilterEmitter)}}function Ez(e,t){if(1&e){var n=as();es(0,"io-multiselect",7),ls("listSelectedId",(function(e){return mn(n),fs().setRubricList(e)})),ts()}if(2&e){var i=fs();Zr("title","R\xfabricas")("list",i.rubricList)("listItemIdField","id")("listItemNameField","name")("reset",i.resetFilterEmitter)}}function Bz(e,t){if(1&e){var n=as();es(0,"io-multiselect",7),ls("listSelectedId",(function(e){return mn(n),fs().setJourneyList(e)})),ts()}if(2&e){var i=fs();Zr("title","Escalas")("list",i.journeyList)("listItemIdField","id")("listItemNameField","description")("reset",i.resetFilterEmitter)}}var Nz,Rz=((Nz=function(){return d((function e(t){var n=this;c(this,e),this.companyDatabase=t,this.showFilter=!1,this.hideBankTimeOption=!1,this.hideOverTimeOption=!1,this.showCollaboratorStatusList=!1,this.showRubricList=!1,this.showJourneyList=!1,this.hideFilter=new Mc,this.selectedFilters=new Mc,this.collaboratorStatusList=[{id:"1",description:"Ativos"},{id:"0",description:"Inativo"}],this.collaboratorStatusListSelected=[],this.collaboratorStatusListSelectedReset=[],this.rubricList=[],this.rubricListSelected=[],this.rubricListSelectedReset=[],this.departmentList=[],this.departmentListSelected=[],this.departmentListSelectedReset=[],this.regimeList=[{id:"0",description:"Banco de horas"},{id:"1",description:"Horas extras"},{id:"2",description:"H\xedbrido (BH)"},{id:"3",description:"H\xedbrido (HE)"}],this.regimeListSelected=[],this.regimeListSelectedReset=[],this.unitList=[],this.unitListSelected=[],this.unitListSelectedReset=[],this.costCenterList=[],this.costCenterListSelected=[],this.costCenterListSelectedReset=[],this.contractList=[{id:"0",description:"Horista"},{id:"1",description:"Mensalista"},{id:"2",description:"Terceirizado"},{id:"4",description:"Outros"}],this.contractListSelected=[],this.contractListSelectedReset=[],this.journeyList=[],this.journeyListSelected=[],this.journeyListSelectedReset=[],this.resetFilterEmitter=new Mc,this.companyDatabase.getSelectList({listRequired:JSON.stringify(["department","unit","costCenter","journey"])},(function(e){e.error||(n.departmentList=e.data.department,n.unitList=e.data.unit,n.costCenterList=e.data.costCenter,n.journeyList=e.data.journey)}))}),[{key:"ngOnInit",value:function(){var e=this;this.hideBankTimeOption&&this.regimeList.splice(0,1),this.hideOverTimeOption&&this.regimeList.splice(1,1),this.showCollaboratorStatusList&&(this.collaboratorStatusListSelectedReset=["1"]),this.showRubricList&&this.companyDatabase.getRubricList([],(function(t){t.error||(e.rubricList=t.data)}))}},{key:"ngOnChanges",value:function(){this.showFilter&&this.resetSelected()}},{key:"resetFilter",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.collaboratorStatusListSelected=[],this.departmentListSelected=[],this.unitListSelected=[],this.costCenterListSelected=[],this.contractListSelected=[],this.regimeListSelected=[],this.rubricListSelected=[],this.journeyListSelected=[],e&&this.resetFilterEmitter.emit()}},{key:"resetSelected",value:function(){var e=this;this.resetFilter(!1),this.collaboratorStatusListSelectedReset.forEach((function(t){e.collaboratorStatusListSelected.push(t)})),this.departmentListSelectedReset.forEach((function(t){e.departmentListSelected.push(t)})),this.regimeListSelectedReset.forEach((function(t){e.regimeListSelected.push(t)})),this.unitListSelectedReset.forEach((function(t){e.unitListSelected.push(t)})),this.rubricListSelectedReset.forEach((function(t){e.rubricListSelected.push(t)})),this.costCenterListSelectedReset.forEach((function(t){e.costCenterListSelected.push(t)})),this.contractListSelectedReset.forEach((function(t){e.contractListSelected.push(t)})),this.journeyListSelectedReset.forEach((function(t){e.journeyListSelected.push(t)}))}},{key:"setCollaboratorStatusList",value:function(e){var t=this;this.collaboratorStatusListSelected=[],e.forEach((function(e){t.collaboratorStatusListSelected.push(e)}))}},{key:"setRubricList",value:function(e){var t=this;this.rubricListSelected=[],e.forEach((function(e){t.rubricListSelected.push(e)}))}},{key:"setJourneyList",value:function(e){var t=this;this.journeyListSelected=[],e.forEach((function(e){t.journeyListSelected.push(e)}))}},{key:"setDepartmentList",value:function(e){var t=this;this.departmentListSelected=[],e.forEach((function(e){t.departmentListSelected.push(e)}))}},{key:"setRegimeList",value:function(e){var t=this;this.regimeListSelected=[],e.forEach((function(e){t.regimeListSelected.push(e)}))}},{key:"setContractList",value:function(e){var t=this;this.contractListSelected=[],e.forEach((function(e){t.contractListSelected.push(e)}))}},{key:"setUnitList",value:function(e){var t=this;this.unitListSelected=[],e.forEach((function(e){t.unitListSelected.push(e)}))}},{key:"setCostCenterList",value:function(e){var t=this;this.costCenterListSelected=[],e.forEach((function(e){t.costCenterListSelected.push(e)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){var e=this;this.collaboratorStatusListSelectedReset=[],this.collaboratorStatusListSelected.forEach((function(t){e.collaboratorStatusListSelectedReset.push(t)})),this.departmentListSelectedReset=[],this.departmentListSelected.forEach((function(t){e.departmentListSelectedReset.push(t)})),this.regimeListSelectedReset=[],this.regimeListSelected.forEach((function(t){e.regimeListSelectedReset.push(t)})),this.unitListSelectedReset=[],this.unitListSelected.forEach((function(t){e.unitListSelectedReset.push(t)})),this.rubricListSelectedReset=[],this.rubricListSelected.forEach((function(t){e.rubricListSelectedReset.push(t)})),this.journeyListSelectedReset=[],this.journeyListSelected.forEach((function(t){e.journeyListSelectedReset.push(t)})),this.costCenterListSelectedReset=[],this.costCenterListSelected.forEach((function(t){e.costCenterListSelectedReset.push(t)})),this.contractListSelectedReset=[],this.contractListSelected.forEach((function(t){e.contractListSelectedReset.push(t)})),this.selectedFilters.emit({collaboratorStatusList:this.collaboratorStatusListSelectedReset,departmentIdList:this.departmentListSelectedReset,regimeIdList:this.regimeListSelectedReset,unitIdList:this.unitListSelectedReset,rubricIdList:this.rubricListSelectedReset,costCenterIdList:this.costCenterListSelectedReset,contractIdList:this.contractListSelectedReset,journeyList:this.journeyListSelectedReset})}},{key:"clickHideFilter",value:function(){this.resetFilter(),this.emitList()}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Nz)($r(Mz))},Nz.\u0275cmp=Ot({type:Nz,selectors:[["io-modal-filter"]],inputs:{showFilter:"showFilter",hideBankTimeOption:"hideBankTimeOption",hideOverTimeOption:"hideOverTimeOption",showCollaboratorStatusList:"showCollaboratorStatusList",showRubricList:"showRubricList",showJourneyList:"showJourneyList"},outputs:{hideFilter:"hideFilter",selectedFilters:"selectedFilters"},features:[dl],decls:23,vars:35,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[1,"filterScrollBox","scrollbarEnable"],[3,"title","list","listItemIdField","listItemNameField","listSelectedLoad","reset","listSelectedId",4,"ngIf"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId",4,"ngIf"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"],[3,"title","list","listItemIdField","listItemNameField","listSelectedLoad","reset","listSelectedId"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.clickHideFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"div",5),Jr(8,Az,1,6,"io-multiselect",6),ns(9,"div",4),es(10,"io-multiselect",7),ls("listSelectedId",(function(e){return t.setContractList(e)})),ts(),ns(11,"div",4),es(12,"io-multiselect",7),ls("listSelectedId",(function(e){return t.setRegimeList(e)})),ts(),ns(13,"div",4),es(14,"io-multiselect",7),ls("listSelectedId",(function(e){return t.setDepartmentList(e)})),ts(),ns(15,"div",4),es(16,"io-multiselect",7),ls("listSelectedId",(function(e){return t.setUnitList(e)})),ts(),Jr(17,Ez,1,5,"io-multiselect",8),es(18,"io-multiselect",7),ls("listSelectedId",(function(e){return t.setCostCenterList(e)})),ts(),Jr(19,Bz,1,5,"io-multiselect",8),ns(20,"div",4),ts(),ts(),es(21,"div",9),es(22,"io-btn",10),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(8),Zr("ngIf",t.showCollaboratorStatusList),Bo(2),Zr("title","Contrato Trabalhista")("list",t.contractList)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("title","Regime de horas")("list",t.regimeList)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("title","Departamento")("list",t.departmentList)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("title","Unidade")("list",t.unitList)("listItemIdField","id")("listItemNameField","name")("reset",t.resetFilterEmitter),Bo(1),Zr("ngIf",t.showRubricList),Bo(1),Zr("title","Centro de custo")("list",t.costCenterList)("listItemIdField","id")("listItemNameField","name")("reset",t.resetFilterEmitter),Bo(1),Zr("ngIf",t.showJourneyList),Bo(3),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,sh,Fz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}.listBox[_ngcontent-%COMP%]{position:relative;padding:0;max-height:600px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:auto;padding:0;margin:0 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]{margin:20px 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]:first-child{margin-top:0}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox.hd1[_ngcontent-%COMP%]{height:auto}.filterScrollBox[_ngcontent-%COMP%]{max-height:550px;overflow:auto;padding:0 5px 0 0;margin:0 0 30px;text-align:justify}.filterScrollBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0 0 10px}"]}),Nz);function jz(e,t){1&e&&ns(0,"span",28)}function zz(e,t){if(1&e){var n=as();es(0,"span",28),es(1,"label",29),es(2,"input",30),ls("change",(function(){mn(n);var e=fs().$implicit;return fs().selectId(e.id)})),ts(),ns(3,"span",14),ts(),ts()}if(2&e){var i=fs().$implicit,o=fs();Bo(2),ys("id","coll",i.id,""),Zr("checked",o.collaboratorListSelectedId.indexOf(i.id)>=0)}}function Vz(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" - \xfaltimo fechamento: ",i.getDateBr(n.lastClosureDate),"")}}function Hz(e,t){if(1&e&&(es(0,"li",23),Jr(1,jz,1,0,"span",24),Jr(2,zz,4,2,"span",24),es(3,"span",25),es(4,"label",26),Gs(5),ts(),Jr(6,Vz,2,1,"span",27),ts(),es(7,"span",25),Gs(8),ts(),es(9,"span",25),Gs(10),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(1),Zr("ngIf",i.dateSelectedIsLessThanClosure(n)),Bo(1),Zr("ngIf",!i.dateSelectedIsLessThanClosure(n)),Bo(2),ys("for","coll",n.id,""),Bo(1),Qs(" ",n.name," "),Bo(1),Zr("ngIf",i.dateSelectedIsLessThanClosure(n)),Bo(2),$s(n.total_balance),Bo(2),$s(n.balance)}}function Yz(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function qz(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function Uz(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rios."),ts())}function Wz(e,t){if(1&e&&(es(0,"li"),Jr(1,Yz,2,0,"p",18),Jr(2,qz,2,0,"p",18),Jr(3,Uz,2,0,"p",18),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorCompTimeList.length>0&&n.collaboratorCompTimeList[0].loading),Bo(1),Zr("ngIf",n.collaboratorCompTimeList.length>0&&!n.collaboratorCompTimeList[0].loading&&0==n.collaboratorCompTimeListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorCompTimeList.length)}}var Jz,Gz,$z=((Gz=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.compTimeDatabase=i,this.functionsService=o,this.iconSolidService=a,this.storageService=r,this.titleService=s,this.collaboratorCompTimeList=[{loading:!0}],this.collaboratorCompTimeListFilteredSearch=[],this.collaboratorListSelectedId=[],this.dateSelected=this.functionsService.currentDateEN(""),this.filterDepartmentSelected=[],this.filterRegimeSelected=["0","2","3"],this.filterUnitSelected=[],this.modalConfirm=!1,this.modalFilter=!1,this.showColumnDataTransfer=!1,this.titleService.setTitle("Pagar Banco de horas"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"setDate",value:function(e){this.dateSelected=e,this.loadList()}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilter",value:function(e){this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList.length>0?e.regimeIdList:["0","2","3"],this.filterUnitSelected=e.unitIdList,this.loadList()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"getRequestParams",value:function(){return{date:this.dateSelected,filterDepartment:JSON.stringify(this.filterDepartmentSelected),filterRegime:JSON.stringify(this.filterRegimeSelected),filterUnit:JSON.stringify(this.filterUnitSelected)}}},{key:"loadList",value:function(){var e=this;this.dateSelected&&(this.collaboratorCompTimeList=[{loading:!0}],this.compTimeDatabase.getCompTimeHourTotalList(this.getRequestParams(),(function(t){t.error||e.setPaymentValue(t.data.compTimeHourTotalList)})))}},{key:"setPaymentValue",value:function(e){var t=this;this.collaboratorCompTimeList=[],e.forEach((function(e){t.collaboratorCompTimeList.push(Object.assign(Object.assign({},e),{total_balance:"-00:00"==e.total_balance?"00:00":e.total_balance,balance:t.functionsService.subtractTimeNegative("00:00",e.total_balance)}))})),this.filterCollaboratorCompTimeSearch(this.searchForm.get("search").value)}},{key:"filterCollaboratorCompTimeSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.collaboratorCompTimeListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorCompTimeList,e,"name")}},{key:"selectId",value:function(e){this.collaboratorListSelectedId.find((function(t){return t==e}))?this.collaboratorListSelectedId=this.collaboratorListSelectedId.filter((function(t){return t!=e})):this.collaboratorListSelectedId.push(e),this.validAllSelected()}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.collaboratorListSelectedId=[],this.collaboratorCompTimeListFilteredSearch.forEach((function(t){e.collaboratorListSelectedId.push(t.id)}))):this.collaboratorListSelectedId=[]}},{key:"validAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").setValue(this.collaboratorListSelectedId.length==this.collaboratorCompTimeListFilteredSearch.filter((function(t){return e.collaboratorListSelectedId.indexOf(t.id)>=0})).length)}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e):""}},{key:"showModalConfirmation",value:function(){this.modalConfirm=!0}},{key:"postPaymentList",value:function(){var e=this,t=[];this.collaboratorCompTimeListFilteredSearch.filter((function(t){return e.collaboratorListSelectedId.indexOf(t.id)>=0})).forEach((function(e){t.push({id:e.id,balance:e.balance})}));var n={collaboratorPaymentList:JSON.stringify(t),date:this.dateSelected};this.compTimeDatabase.postCompTimePaymentList(n,(function(t){t.error||(e.hideModalConfirmation(),e.loadList())}))}},{key:"hideModalConfirmation",value:function(){this.modalConfirm=!1}},{key:"dateSelectedIsLessThanClosure",value:function(e){return!(!e.lastClosureDate||""==e.lastClosureDate)&&this.functionsService.getDateAsInt(this.dateSelected)<=this.functionsService.getDateAsInt(e.lastClosureDate)}}])}()).\u0275fac=function(e){return new(e||Gz)($r(wp),$r(yM),$r(xz),$r(zP),$r(JO),$r(YP),$r(hL))},Gz.\u0275cmp=Ot({type:Gz,selectors:[["io-bank-time-form-payment"]],decls:29,vars:22,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","textTop"],[1,"flex","mrgB2"],[3,"currentDate","validMinDateClosure","collaboratorListId","dateSelectedEN"],["title","Filtro",1,"flex","end","filterBtnBox","clickPlace",3,"click"],[1,"sizeB","fontBold","mrgR1"],["size","3x",1,"iconItem","iconSizeG","cl-blue",3,"icon"],[3,"onKeyPress"],[1,"listBoxHere","mrgB2"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","end"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showFilter","hideOverTimeOption","hideFilter","selectedFilters"],[3,"title","btnTextConfirm","text","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],["class","item",4,"ngIf"],[1,"item","sizeC"],[3,"for"],["class","fontBold",4,"ngIf"],[1,"item"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"checked","id","change"],[1,"fontBold"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-datepicker",4),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),es(5,"div",5),ls("click",(function(){return t.showModalFilter()})),es(6,"p",6),Gs(7,"Filtro"),ts(),ns(8,"fa-icon",7),ts(),ts(),es(9,"io-search-line",8),ls("onKeyPress",(function(e){return t.filterCollaboratorCompTimeSearch(e)})),ts(),es(10,"div",9),es(11,"div",10),es(12,"div",11),es(13,"label",12),es(14,"input",13),ls("change",(function(){return t.verifyAll()})),ts(),ns(15,"span",14),ts(),es(16,"h3",15),Gs(17,"Funcion\xe1rio"),ts(),es(18,"h3",15),Gs(19,"Saldo de horas at\xe9 a data selecionada"),ts(),es(20,"h3",15),Gs(21,"Total de horas debitadas/creditadas"),ts(),ts(),es(22,"ul",16),Jr(23,Hz,11,7,"li",17),Jr(24,Wz,4,3,"li",18),ts(),ts(),ts(),es(25,"div",19),es(26,"io-btn",20),ls("btnClick",(function(){return t.showModalConfirmation()})),ts(),ts(),ts(),ts(),es(27,"io-modal-filter",21),ls("hideFilter",(function(){return t.hideModalFilter()}))("selectedFilters",(function(e){return t.setFilter(e)})),ts(),es(28,"io-modal-confirm",22),ls("hideModal",(function(){return t.hideModalConfirmation()}))("confirmClick",(function(){return t.postPaymentList()})),ts()),2&e&&(Bo(2),Zr("moduleName","comp-time")("titleTop","Zerar banco de horas")("textTop","O saldo de horas do funcion\xe1rio estar\xe1 zerado a partir do dia posterior!"),Bo(2),Zr("currentDate",t.dateSelected)("validMinDateClosure",!0)("collaboratorListId",t.collaboratorListSelectedId),Bo(4),Zr("icon",t.iconSolidService.faFilter),Bo(4),Zr("formGroup",t.searchForm),Bo(2),Zr("formControlName","allSelected"),Bo(9),Zr("ngForOf",t.collaboratorCompTimeListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorCompTimeListFilteredSearch.length),Bo(2),Zr("moduleName","comp-time")("action","create")("btnColor","btn-blue-bg")("btnText","Zerar banco de horas")("btnTitle","Zerar banco de horas"),Bo(1),Zr("showFilter",t.modalFilter)("hideOverTimeOption",!0),Bo(1),Zr("title","Zerar banco de horas?")("btnTextConfirm","Zerar")("text","O saldo de horas do funcion\xe1rio estar\xe1 zerado a partir do dia posterior!")("showModal",t.modalConfirm))},directives:[eI,UA,FD,oE,Hf,ip,Of,Vf,vp,ah,sh,jD,Rz,UB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:500px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:140px;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:180px;text-align:right}.listBoxHere[_ngcontent-%COMP%]{min-height:300px}"]}),Gz),Qz=((Jz=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteBankTime",value:function(e,t){this.databaseService.delete("/bankTime/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteBankTimeCollaboratorList",value:function(e,t,n){this.databaseService.delete("/bankTime/collaboratorList/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"deleteBankTimeSchedule",value:function(e,t){this.databaseService.delete("/bankTimeSchedule/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBankTimeList",value:function(e){this.databaseService.get("/bankTime",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getBankTimeBalanceListFromCollaborator",value:function(e,t){this.databaseService.get("/bankTimeHour/collaboratorBalanceList/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBankTimeCollaboratorListIn",value:function(e,t){this.databaseService.get("/bankTime/collaboratorListIn/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBankTimeCollaboratorListOut",value:function(e,t){this.databaseService.get("/bankTime/collaboratorListOut/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBankTimeControlCollaboratorList",value:function(e,t){this.databaseService.get("/bankTimeHour/collaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getBankTimeScheduleList",value:function(e){this.databaseService.get("/bankTimeSchedule",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postBankTime",value:function(e,t){this.databaseService.post("/bankTime",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postBankTimeCollaboratorList",value:function(e,t,n){this.databaseService.post("/bankTime/collaboratorList/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postBankTimeSchedule",value:function(e,t){this.databaseService.post("/bankTimeSchedule",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putBankTime",value:function(e,t,n){this.databaseService.put("/bankTime/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Jz)(ut(tT))},Jz.\u0275prov=Se({token:Jz,factory:Jz.\u0275fac,providedIn:"root"}),Jz);function Kz(e,t){if(1&e){var n=as();es(0,"li",26),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectCollaborator(e.id,e.name)})),es(1,"span",27),es(2,"span",28),Gs(3),ts(),Gs(4),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Xs("sizeD iconBox cl-white ",o.regimeArray[i.regimeType].bgColor,""),Zr("title",o.regimeArray[i.regimeType].title),Bo(1),$s(o.regimeArray[i.regimeType].acronym),Bo(1),Qs(" ",i.name," ")}}function Zz(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Xz(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function eV(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function tV(e,t){if(1&e&&(es(0,"li"),Jr(1,Zz,2,0,"p",14),Jr(2,Xz,2,0,"p",14),Jr(3,eV,2,0,"p",14),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function nV(e,t){if(1&e){var n=as();es(0,"li",29),es(1,"span",30),Gs(2),ts(),es(3,"span",30),Gs(4),ts(),es(5,"span",31),es(6,"io-icon",32),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalTransferDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(o.getDateBR(i.created_at)),Bo(2),$s(i.details),Bo(2),Zr("moduleName","comp-time")("action","delete")("iconTitle","Excluir transfer\xeancia")("iconClassList","mrgL1")}}function iV(e,t){1&e&&(es(0,"li",33),es(1,"span",34),Gs(2,"N\xe3o h\xe1 transfer\xeancias na vig\xeancia atual."),ts(),ts())}function oV(e,t){1&e&&(es(0,"li",35),es(1,"span",34),Gs(2,"Transfer\xeancias pendentes/n\xe3o aprovadas:"),ts(),ts())}function aV(e,t){if(1&e){var n=as();es(0,"io-icon",39),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalApproveTransfer(e.id,0)})),ts()}2&e&&Zr("moduleName","comp-time")("action","reprove")("iconColor","cl-red")("iconTitle","Reprovar transfer\xeancia")}function rV(e,t){if(1&e){var n=as();es(0,"io-icon",40),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalApproveTransfer(e.id,1)})),ts()}2&e&&Zr("moduleName","comp-time")("action","approve")("iconColor","cl-blue")("iconClassList","mrgL1")("iconTitle","Aprovar transfer\xeancia")}function sV(e,t){if(1&e){var n=as();es(0,"li",29),es(1,"span",30),Gs(2),ts(),es(3,"span",30),Gs(4),ts(),es(5,"span",31),Jr(6,aV,1,4,"io-icon",36),Jr(7,rV,1,5,"io-icon",37),es(8,"io-icon",38),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalTransferDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(o.getDateBR(i.created_at)),Bo(2),$s(i.details),Bo(2),Zr("ngIf",null==i.is_approved),Bo(1),Zr("ngIf",null==i.is_approved),Bo(1),Zr("moduleName","comp-time")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir transfer\xeancia")}}function lV(e,t){if(1&e&&(es(0,"li",29),es(1,"span",30),Gs(2),ts(),es(3,"span",30),Gs(4),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.description),Bo(2),$s(n.balance)}}var cV,uV,dV=((uV=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.bankTimeDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.bankTimeBalanceList=null,this.bankTimeTransferListApproved=null,this.bankTimeTransferListNotApproved=null,this.bankTimeTransferSelectedId=null,this.bankTimeTransferSelectedIsApproved=null,this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorSelected=!1,this.collaboratorSelectedId=null,this.collaboratorSelectedName="",this.filterDepartmentSelected=[],this.filterRegimeSelected=["0","2","3"],this.filterUnitSelected=[],this.modalFilter=!1,this.modalTransferApprove=!1,this.modalTransferForm=!1,this.modalTransferDelete=!1,this.regimeArray=[{acronym:"BH",bgColor:"bg-green",title:"Banco de horas"},{acronym:"HE",bgColor:"bg-blue",title:"Horas extras"},{acronym:"HB",bgColor:"bg-black",title:"H\xedbrido (BH)"},{acronym:"HB",bgColor:"bg-black",title:"H\xedbrido (HE)"}],this.titleService.setTitle("Banco de horas"),this.searchFormCollaborator=this.formBuilder.group({search:new Wm("",[Jf.required])}),this.getCollaboratorList()}),[{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilter",value:function(e){this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.hideModalFilter(),this.getCollaboratorList()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"getCollaboratorList",value:function(){var e=this;this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.bankTimeDatabase.getBankTimeControlCollaboratorList(this.getRequestParams(),(function(t){t.error||(e.collaboratorList=t.data.collaboratorList,e.filterCollaboratorSearch(e.searchFormCollaborator.get("search").value))}))}},{key:"getRequestParams",value:function(){return{filterDepartment:JSON.stringify(this.filterDepartmentSelected),filterRegime:JSON.stringify(this.filterRegimeSelected),filterUnit:JSON.stringify(this.filterUnitSelected)}}},{key:"filterCollaboratorSearch",value:function(e){this.searchFormCollaborator.get("search").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name"),this.collaboratorSelected=!1,this.collaboratorSelectedName=""}},{key:"selectCollaborator",value:function(e,t){this.collaboratorSelectedId=e,this.collaboratorSelectedName=t,this.collaboratorSelected=!0,this.getCollaboratorData()}},{key:"getCollaboratorData",value:function(){var e=this;""!=this.collaboratorSelectedId&&(this.bankTimeBalanceList=null,this.bankTimeDatabase.getBankTimeBalanceListFromCollaborator(this.collaboratorSelectedId,(function(t){t.error||(e.bankTimeBalanceList=t.data.bankTimeBalanceList)})),this.bankTimeTransferListApproved=null,this.bankTimeTransferListNotApproved=null)}},{key:"showModalTransferForm",value:function(){this.modalTransferForm=!0}},{key:"hideModalTransferForm",value:function(){this.modalTransferForm=!1}},{key:"showModalApproveTransfer",value:function(e,t){this.bankTimeTransferSelectedId=e,this.bankTimeTransferSelectedIsApproved=t,this.modalTransferApprove=!0}},{key:"hideModalApproveTransfer",value:function(){this.modalTransferApprove=!1,this.bankTimeTransferSelectedId=null,this.bankTimeTransferSelectedIsApproved=null}},{key:"showModalTransferDelete",value:function(e){this.bankTimeTransferSelectedId=e,this.modalTransferDelete=!0}},{key:"hideModalTransferDelete",value:function(){this.modalTransferDelete=!1,this.bankTimeTransferSelectedId=null}},{key:"getDateBR",value:function(e){return e?this.functionsService.dateENtoBR(e.split(" ")[0]):""}}])}()).\u0275fac=function(e){return new(e||uV)($r(wp),$r(yM),$r(Qz),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},uV.\u0275cmp=Ot({type:uV,selectors:[["io-bank-time-page-control"]],decls:51,vars:27,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"flexDesk"],[1,"wdFull","wdMaxHere"],[3,"selectFull","searchValue","resetText","onKeyPress"],["title","Filtro",1,"flex","end","filterBtnBox","clickPlace",3,"click"],[1,"sizeB","fontBold","mrgR1"],["size","3x",1,"iconItem","iconSizeG","cl-blue",3,"icon"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign bg-white",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"bank-time-split-box","flex","fullHeight"],[1,"bank-time-split-item"],[1,"sizeB","fontBold"],[1,"bank-time-split-item","bg-white","pdg1"],[1,"flex","listHeader","listAlign"],["class","flex listAlign borderBottom",4,"ngFor","ngForOf"],["class","flex listAlign",4,"ngIf"],["class","list-split",4,"ngIf"],[1,"flex","end"],[3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[3,"showFilter","hideOverTimeOption","selectedFilters","hideFilter"],[1,"flex","listAlign","bg-white",3,"click"],[1,"item","sizeC","clickPlace"],[3,"title"],[1,"flex","listAlign","borderBottom"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[1,"flex","listAlign"],[1,"sizeC"],[1,"list-split"],[3,"moduleName","action","iconColor","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconColor","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconColor","iconTitle","iconClick"],[3,"moduleName","action","iconColor","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div",4),es(5,"io-search-line",5),ls("resetText",(function(){return t.getCollaboratorList()}))("onKeyPress",(function(e){return t.filterCollaboratorSearch(e)})),ts(),ts(),es(6,"div",6),ls("click",(function(){return t.showModalFilter()})),es(7,"p",7),Gs(8,"Filtro"),ts(),ns(9,"fa-icon",8),ts(),ts(),es(10,"div"),es(11,"div",9),es(12,"div",10),es(13,"h3",11),Gs(14,"Funcion\xe1rio"),ts(),ts(),es(15,"ul",12),Jr(16,Kz,5,6,"li",13),Jr(17,tV,4,3,"li",14),ts(),ts(),ts(),es(18,"div"),es(19,"div",15),es(20,"div",16),es(21,"h3",17),Gs(22,"Hist\xf3rico de tranferencias"),ts(),ts(),es(23,"div",16),es(24,"h3",17),Gs(25,"Saldo de banco de horas"),ts(),ts(),ts(),es(26,"div",15),es(27,"div",18),es(28,"div",19),es(29,"h3",11),Gs(30,"Data"),ts(),es(31,"h3",11),Gs(32,"Detalhes"),ts(),es(33,"h3",11),Gs(34,"A\xe7\xe3o"),ts(),ts(),es(35,"ul",12),Jr(36,nV,7,6,"li",20),Jr(37,iV,3,0,"li",21),Jr(38,oV,3,0,"li",22),Jr(39,sV,9,8,"li",20),ts(),es(40,"div",23),es(41,"io-btn",24),ls("btnClick",(function(){return t.showModalTransferForm()})),ts(),ts(),ts(),es(42,"div",18),es(43,"div",19),es(44,"h3",11),Gs(45,"Banco de horas"),ts(),es(46,"h3",11),Gs(47,"Saldo"),ts(),ts(),es(48,"ul",12),Jr(49,lV,5,2,"li",20),ts(),ts(),ts(),ts(),ts(),ts(),es(50,"io-modal-filter",25),ls("selectedFilters",(function(e){return t.setFilter(e)}))("hideFilter",(function(){return t.hideModalFilter()})),ts()),2&e&&(Bo(2),Zr("moduleName","comp-time")("titleTop","Gerenciar banco de horas"),Bo(3),Zr("selectFull",!0)("searchValue",t.collaboratorSelectedName),Bo(4),Zr("icon",t.iconSolidService.faFilter),Bo(1),Xs("collaborator-list-box anmtd4 relativePlace ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(2),Zr("formGroup",t.searchFormCollaborator),Bo(4),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Xs("bank-time-box anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(18),Zr("ngForOf",t.bankTimeTransferListApproved),Bo(1),Zr("ngIf",t.bankTimeTransferListApproved&&0==t.bankTimeTransferListApproved.length&&t.bankTimeTransferListNotApproved&&0==t.bankTimeTransferListNotApproved.length),Bo(1),Zr("ngIf",t.bankTimeTransferListNotApproved&&t.bankTimeTransferListNotApproved.length>0),Bo(1),Zr("ngForOf",t.bankTimeTransferListNotApproved),Bo(2),Zr("moduleName","company")("action","update")("btnClassList","btnShort")("btnColor","btn-blue")("btnText","Nova transfer\xeancia")("btnTitle","Nova transfer\xeancia"),Bo(8),Zr("ngForOf",t.bankTimeBalanceList),Bo(1),Zr("showFilter",t.modalFilter)("hideOverTimeOption",!0))},directives:[eI,oE,FD,Hf,ip,ah,sh,jD,Rz,BB],styles:[".wdMaxHere[_ngcontent-%COMP%]{max-width:300px}.collaborator-list-box[_ngcontent-%COMP%]{overflow:hidden;max-height:530px}.collaborator-list-box.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaborator-list-box[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.collaborator-list-box[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.bank-time-box[_ngcontent-%COMP%]{overflow:hidden;max-height:0}.bank-time-box.collaboratorSelected[_ngcontent-%COMP%]{max-height:600px}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]{width:100%}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]   h3.sizeB[_ngcontent-%COMP%]{margin:20px 0 10px}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]:first-child{max-width:66%}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]:first-child   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:85px}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]:first-child   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:80px;text-align:right}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]:nth-child(2){max-width:32%}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]:nth-child(2)   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100px;text-align:right}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]{height:250px;padding:10px 15px 5px;margin:0}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 5px;padding:0;height:20px}.bank-time-box[_ngcontent-%COMP%]   .bank-time-split-item[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]   .list-split[_ngcontent-%COMP%]{height:40px;padding:10px 0}"]}),uV),hV=((cV=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.bankTimeDatabase=n,this.functionsService=i,this.validService=o,this.bankTimeId=null,this.showModal=!0,this.hideModal=new Mc,this.bankTimePosted=new Mc,this.bankTimeUpdated=new Mc,this.stateFields={description:{class:""}},this.updateOn=!1,this.bankTimeForm=this.formBuilder.group({description:new Wm("",[Jf.required]),bank_limit:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){}},{key:"sendBankTime",value:function(){this.checkErrorField("description")?this.postBankTime(this.bankTimeForm.value):this.functionsService.openSnackBar("emptyField")}},{key:"checkErrorField",value:function(e){return this.stateFields[e].class=this.bankTimeForm.controls[e].valid?"":"emptyError",""==this.stateFields[e].class}},{key:"postBankTime",value:function(e){var t=this;this.bankTimeDatabase.postBankTime(e,(function(n){if(!n.error){var i=n.data.id;t.emitAddToList(Object.assign(Object.assign({},e),{id:i})),t.closeModal()}}))}},{key:"emitAddToList",value:function(e){this.bankTimePosted.emit(e)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.bankTimeForm.reset()}},{key:"verifyHour",value:function(e){this.bankTimeForm.controls[e].setValue(this.validService.validHourNegativeGreaterThan24(this.bankTimeForm.controls[e].value))}}])}()).\u0275fac=function(e){return new(e||cV)($r(wp),$r(Qz),$r(zP),$r(TN))},cV.\u0275cmp=Ot({type:cV,selectors:[["io-bank-time-modal-form"]],inputs:{bankTimeId:"bankTimeId",showModal:"showModal"},outputs:{hideModal:"hideModal",bankTimePosted:"bankTimePosted",bankTimeUpdated:"bankTimeUpdated"},features:[dl],decls:24,vars:22,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeB"],[1,"pdgT2","mrgB2"],[1,"flex","split"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","description",1,"form-label"],["onClick","this.select();","autocomplete","off","id","bank_limit","placeholder","","type","text","required","",1,"",3,"formControlName","dropSpecialCharacters","mask","change"],["for","bank_limit",1,"form-label"],[1,"sizeC","mrgB2"],[1,"fontBold"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","moduleId","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3),ts(),es(4,"p",3),Gs(5,"D\xfavidas? Entre em contato com a contabilidade."),ts(),ns(6,"div",4),es(7,"div",5),es(8,"div",6),es(9,"input",7),ls("keyup",(function(){return t.checkErrorField("description")})),ts(),es(10,"label",8),Gs(11,"*Nome do banco de horas"),ts(),ts(),es(12,"div",6),es(13,"input",9),ls("change",(function(){return t.verifyHour("bank_limit")})),ts(),es(14,"label",10),Gs(15,"Limite de Horas"),ts(),ts(),ts(),ns(16,"div",4),es(17,"p",11),es(18,"span",12),Gs(19,"Limite de Horas:"),ts(),Gs(20," Limite m\xe1ximo de horas que podem ser acumuladas neste banco de horas. (Deixe o campo vazio para usar este banco sem limite de horas)."),ts(),ts(),es(21,"div",13),es(22,"io-btn",14),ls("btnClick",(function(){return t.closeModal()})),ts(),es(23,"io-btn",15),ls("btnClick",(function(){return t.sendBankTime()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.bankTimeForm),Bo(2),Qs("",t.updateOn?"Editar":"Novo"," Banco de Horas Alternativo"),Bo(6),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(4),Zr("formControlName","bank_limit")("dropSpecialCharacters",!1)("mask","000:00"),Bo(9),Zr("moduleName","comp-time")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","comp-time")("action",t.bankTimeId?"update":"create")("moduleId",t.bankTimeId||null)("btnColor","btn-blue-bg")("btnText",t.bankTimeId?"Salvar":"Cadastrar")("btnTitle",t.bankTimeId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,DE,jD],styles:[""]}),cV);function fV(e,t){if(1&e){var n=as();es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",15),Gs(4),ts(),es(5,"span",16),es(6,"io-icon",17),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),es(7,"io-icon",18),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.description),Bo(2),$s(o.validBankLimitTime(i.bank_limit)),Bo(2),Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","comp-time")("action","delete")("iconTitle","Excluir banco de horas")("iconClassList","mrgL1")}}function mV(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function pV(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum banco de horas encontrado."),ts())}function gV(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 banco de horas cadastrados."),ts())}function vV(e,t){if(1&e&&(es(0,"li"),Jr(1,mV,2,0,"p",9),Jr(2,pV,2,0,"p",9),Jr(3,gV,2,0,"p",9),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.bankTimeList.length>0&&n.bankTimeList[0].loading),Bo(1),Zr("ngIf",n.bankTimeList.length>0&&!n.bankTimeList[0].loading&&0==n.bankTimeListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.bankTimeList.length)}}var yV,bV=((yV=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.bankTimeDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.bankTimeList=[{loading:!0}],this.bankTimeListFilteredSearch=[],this.bankTimeSelectedId=null,this.collaboratorListIn=[],this.collaboratorListOut=[],this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.modalDelete=!1,this.modalBankTime=!1,this.titleService.setTitle("Banco de horas"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getBankTimeList()}},{key:"getBankTimeList",value:function(){var e=this;this.bankTimeDatabase.getBankTimeList((function(t){t.error||(e.bankTimeList=t.data.bankTimeList,e.filterBankTimeSearch(e.searchForm.controls.search.value))}))}},{key:"filterBankTimeSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.bankTimeListFilteredSearch=this.functionsService.arrayFilterWords(this.bankTimeList,e,"description")}},{key:"showModalBankTime",value:function(){this.modalBankTime=!0}},{key:"hideModalBankTime",value:function(){this.modalBankTime=!1,this.bankTimeSelectedId=null}},{key:"showModalDelete",value:function(e){this.bankTimeSelectedId=e,this.modalDelete=!0}},{key:"deleteBankTime",value:function(){var e=this,t=this.bankTimeSelectedId;this.bankTimeDatabase.deleteBankTime(t,(function(n){n.error||(e.bankTimeList=e.bankTimeList.filter((function(e){return e.id!=t})),e.filterBankTimeSearch(e.searchForm.controls.search.value),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.bankTimeSelectedId=null}},{key:"validBankLimitTime",value:function(e){return e?e.slice(0,-3)+"h":"Sem limite de horas"}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.bankTimeDatabase.getBankTimeCollaboratorListIn(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.bankTimeSelectedId=e,this.modalCollaboratorList=!0}},{key:"unlinkCollaboratorList",value:function(e){var t=this;0!=e.length&&this.bankTimeDatabase.deleteBankTimeCollaboratorList(this.bankTimeSelectedId,{collaboratorIdList:JSON.stringify(e)},(function(e){e.error||(t.getBankTimeList(),t.hideModalCollaboratorList())}))}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1,this.bankTimeSelectedId=null,this.collaboratorListIn=null}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.bankTimeDatabase.getBankTimeCollaboratorListOut(this.bankTimeSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.collaboratorList||[])})),this.modalCollaboratorLink=!0,this.modalCollaboratorList=!1}},{key:"linkCollaboratorList",value:function(e){var t=this;0!=e.length&&this.bankTimeDatabase.postBankTimeCollaboratorList(this.bankTimeSelectedId,{collaboratorIdList:JSON.stringify(e)},(function(e){e.error||(t.getBankTimeList(),t.hideModalCollaboratorLink())}))}},{key:"hideModalCollaboratorLink",value:function(){this.bankTimeSelectedId=null,this.modalCollaboratorLink=!1}}])}()).\u0275fac=function(e){return new(e||yV)($r(wp),$r(yM),$r(Qz),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},yV.\u0275cmp=Ot({type:yV,selectors:[["io-bank-time-page-list"]],decls:19,vars:26,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","bankTimePosted","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalBankTime()})),ts(),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterBankTimeSearch(e)})),ts(),es(4,"div",4),es(5,"div",5),es(6,"h3",6),Gs(7,"Descri\xe7\xe3o"),ts(),es(8,"h3",6),Gs(9,"Limite de horas"),ts(),es(10,"h3",6),Gs(11,"A\xe7\xe3o"),ts(),ts(),es(12,"ul",7),Jr(13,fV,8,10,"li",8),Jr(14,vV,4,3,"li",9),ts(),ts(),ts(),ts(),es(15,"io-bank-time-modal-form",10),ls("bankTimePosted",(function(){return t.getBankTimeList()}))("hideModal",(function(){return t.hideModalBankTime()})),ts(),es(16,"io-modal-confirm",11),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteBankTime()})),ts(),es(17,"io-modal-multi-select-id",12),ls("selectedId",(function(e){return t.unlinkCollaboratorList(e)}))("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(18,"io-modal-multi-select-id",13),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(2),Zr("moduleName","comp-time")("titleTop","Banco de horas alternativos")("showBtn",!0)("btnDataText","Cadastrar"),Bo(11),Zr("ngForOf",t.bankTimeListFilteredSearch),Bo(1),Zr("ngIf",0==t.bankTimeListFilteredSearch.length),Bo(1),Zr("showModal",t.modalBankTime),Bo(1),Zr("title","Excluir banco de horas?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("title","Funcion\xe1rios vinculados a este BH alternativo")("moduleName","comp-time")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","update")("btnConfirmText","Desvincular")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a este BH alternativo")("moduleName","comp-time")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink))},directives:[eI,oE,ah,sh,hV,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:270px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:90px;margin:0;text-align:right}"]}),yV);function _V(e,t){1&e&&ns(0,"io-icon",27),2&e&&Zr("moduleName","comp-time")("action","info")("iconTitle","Este pagamento n\xe3o pode ser removido")("useValidation",!1)}function kV(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}2&e&&Zr("moduleName","comp-time")("action","delete")("iconTitle","Excluir pagamento")}function CV(e,t){if(1&e){var n=as();es(0,"li",20),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),es(1,"span",21),es(2,"label",22),es(3,"input",23),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",12),ts(),ts(),es(5,"span",24),Gs(6),ts(),es(7,"span",24),Gs(8),ts(),es(9,"span",24),Gs(10),ts(),es(11,"span",24),Gs(12),ts(),es(13,"span",21),Jr(14,_V,1,4,"io-icon",25),Jr(15,kV,1,3,"io-icon",26),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Zr("formControlName","selectedId")("checked",o.paymentListSelectedId.indexOf(i.id)>=0),Bo(3),$s(i.collaboratorName),Bo(2),$s(o.getDateBr(i.date)),Bo(2),$s(o.getDebitCreditMsgDateBr(i.balance)),Bo(2),$s(i.details||"Sem detalhes"),Bo(2),Zr("ngIf",1==i.is_scheduled),Bo(1),Zr("ngIf",1!=i.is_scheduled&&0==o.paymentListSelectedId.length)}}function wV(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function xV(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum pagamento encontrado."),ts())}function MV(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 pagamentos registrados."),ts())}function SV(e,t){if(1&e&&(es(0,"li"),Jr(1,wV,2,0,"p",16),Jr(2,xV,2,0,"p",16),Jr(3,MV,2,0,"p",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.compTimePaymentList.length>0&&n.compTimePaymentList[0].loading),Bo(1),Zr("ngIf",n.compTimePaymentList.length>0&&!n.compTimePaymentList[0].loading&&0==n.compTimePaymentListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.compTimePaymentList.length)}}function PV(e,t){if(1&e){var n=as();es(0,"io-btn",29),ls("btnClick",(function(){return mn(n),fs().showModalDeleteMulti()})),ts()}if(2&e){var i=fs();Zr("moduleName","comp-time")("action","create")("btnDisabled",0==i.paymentListSelectedId.length)("btnColor","btn-blue-bg")("btnText","Excluir pagamentos")("btnTitle","Excluir pagamentos")}}var TV,OV=((TV=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.compTimeDatabase=n,this.functionsService=i,this.titleService=o,this.compTimePaymentList=[{loading:!0}],this.compTimePaymentListFilteredSearch=[],this.compTimePaymentSelectedId=null,this.date="",this.modalConfirm=!1,this.modalConfirmMulti=!1,this.paymentListSelectedId=[],this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Banco de horas - Pagamentos")}},{key:"setDate",value:function(e){this.date=e,this.loadList()}},{key:"loadList",value:function(){var e=this;this.compTimeDatabase.getCompTimePaymentList({date:this.date},(function(t){t.error||(e.compTimePaymentList=t.data.compTimePaymentList,e.filterPaymentSearch(e.searchForm.get("search").value),e.searchForm.controls.allSelected.setValue(!1),e.searchForm.controls.selectedId.setValue(!1),e.paymentListSelectedId=[])}))}},{key:"filterPaymentSearch",value:function(e){this.searchForm.get("search").setValue(e),this.compTimePaymentListFilteredSearch=this.functionsService.arrayFilterWords(this.compTimePaymentList,e,"collaboratorName")}},{key:"selectId",value:function(e){this.paymentListSelectedId.find((function(t){return t==e}))?this.paymentListSelectedId=this.paymentListSelectedId.filter((function(t){return t!=e})):this.paymentListSelectedId.push(e),this.searchForm.controls.allSelected.setValue(this.compTimePaymentListFilteredSearch.length==this.paymentListSelectedId.length)}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.paymentListSelectedId=[],this.compTimePaymentListFilteredSearch.forEach((function(t){e.paymentListSelectedId.push(t.id)}))):this.paymentListSelectedId=[]}},{key:"showModalDeleteMulti",value:function(){this.modalConfirmMulti=!0}},{key:"deleteCompTimePaymentMulti",value:function(){this.deleteCompTimePaymentList(this.paymentListSelectedId)}},{key:"showModalDelete",value:function(e){this.compTimePaymentSelectedId=e,this.modalConfirm=!0}},{key:"deleteCompTimePayment",value:function(){this.deleteCompTimePaymentList([this.compTimePaymentSelectedId])}},{key:"deleteCompTimePaymentList",value:function(e){var t=this;this.compTimeDatabase.deleteCompTimePayment({compTimeListId:JSON.stringify(r(e))},(function(e){e.error||(t.loadList(),t.hideModalDelete(),t.hideModalDeleteMulti())}))}},{key:"hideModalDelete",value:function(){this.modalConfirm=!1,this.compTimePaymentSelectedId=null}},{key:"hideModalDeleteMulti",value:function(){this.modalConfirmMulti=!1}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e):""}},{key:"getDebitCreditMsgDateBr",value:function(e){var t="creditado";return e.includes("-")&&(e=e.slice(1),t="debitado"),"Saldo "+t+": "+e+" horas"}}])}()).\u0275fac=function(e){return new(e||TV)($r(wp),$r(xz),$r(zP),$r(hL))},TV.\u0275cmp=Ot({type:TV,selectors:[["io-bank-time-page-list-payment"]],decls:30,vars:17,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl","btnDataText"],[1,"flex","start","mrgB2"],[3,"datepickerMonth","dateSelectedEN"],[1,"wdMax50"],[3,"onKeyPress"],[1,"minHeightBox","mrgB2",3,"formGroup"],[1,"listBoxSlideMob","mrgB2"],[1,"flex","listAlign","listHeader"],[1,"item","radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white clickPlace listAlign",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","end"],["class","mrgL2",3,"moduleName","action","btnDisabled","btnColor","btnText","btnTitle","btnClick",4,"ngIf"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","clickPlace","listAlign",3,"click"],[1,"item"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","checked","change"],[1,"item","sizeC"],[3,"moduleName","action","iconTitle","useValidation",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","useValidation"],[3,"moduleName","action","iconTitle","iconClick"],[1,"mrgL2",3,"moduleName","action","btnDisabled","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-datepicker",4),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterPaymentSearch(e)})),ts(),ts(),es(7,"div",7),ns(8,"div",8),es(9,"div",9),es(10,"label",10),es(11,"input",11),ls("change",(function(){return t.verifyAll()})),ts(),ns(12,"span",12),ts(),es(13,"h3",13),Gs(14,"Funcion\xe1rio"),ts(),es(15,"h3",13),Gs(16,"Data"),ts(),es(17,"h3",13),Gs(18,"D\xe9bito/Cr\xe9dito"),ts(),es(19,"h3",13),Gs(20,"Detalhes"),ts(),es(21,"h3",13),Gs(22,"A\xe7\xe3o"),ts(),ts(),es(23,"ul",14),Jr(24,CV,16,8,"li",15),Jr(25,SV,4,3,"li",16),ts(),ts(),es(26,"div",17),Jr(27,PV,1,6,"io-btn",18),ts(),ts(),ts(),es(28,"io-modal-confirm",19),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteCompTimePayment()})),ts(),es(29,"io-modal-confirm",19),ls("hideModal",(function(){return t.hideModalDeleteMulti()}))("confirmClick",(function(){return t.deleteCompTimePaymentMulti()})),ts()),2&e&&(Bo(2),Zr("moduleName","comp-time")("titleTop","Banco de horas - Pagamentos")("showBtn",!0)("btnDataUrl","/bank-time-payment-register")("btnDataText","zerar banco de horas"),Bo(2),Zr("datepickerMonth",!0),Bo(3),Zr("formGroup",t.searchForm),Bo(4),Zr("formControlName","allSelected"),Bo(13),Zr("ngForOf",t.compTimePaymentListFilteredSearch),Bo(1),Zr("ngIf",0==t.compTimePaymentListFilteredSearch.length),Bo(2),Zr("ngIf",t.compTimePaymentListFilteredSearch.length>0),Bo(1),Zr("title","Excluir pagamento?")("btnTextConfirm","Excluir")("showModal",t.modalConfirm),Bo(1),Zr("title","Excluir pagamentos?")("btnTextConfirm","Excluir")("showModal",t.modalConfirmMulti))},directives:[eI,UA,oE,Hf,ip,Of,Vf,vp,ah,sh,UB,BB,jD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:85px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:2%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:38%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;text-align:right}"]}),TV);function LV(e,t){if(1&e&&(es(0,"option",8),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function DV(e,t){if(1&e&&(es(0,"option",8),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.value),Bo(1),$s(n.description)}}function IV(e,t){if(1&e&&(es(0,"option",8),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n),Bo(1),$s(n)}}function FV(e,t){if(1&e){var n=as();es(0,"div",6),es(1,"select",20),ls("change",(function(){return mn(n),fs().validFrequency()})),Jr(2,IV,2,2,"option",9),ts(),es(3,"label",21),Gs(4,"Dia de execu\xe7\xe3o"),ts(),ns(5,"fa-icon",11),ts()}if(2&e){var i=fs();Bo(1),Zr("formControlName","day_execution"),Bo(1),Zr("ngForOf",i.selectFieldDayList),Bo(3),Zr("icon",i.iconSolidService.faCaretDown)}}var AV,EV=((AV=function(){return d((function e(t,n,i,o,a){var r=this;c(this,e),this.formBuilder=t,this.bankTimeDatabase=n,this.functionsService=i,this.iconSolidService=o,this.validService=a,this.bankTimeId=null,this.showModal=!0,this.hideModal=new Mc,this.bankTimePosted=new Mc,this.bankTimeUpdated=new Mc,this.bankTimeList=[],this.bankTimeFrequencyList=[{value:"day",description:"Di\xe1rio"},{value:"month",description:"Mensal"},{value:"months3",description:"Trimestral"},{value:"months6",description:"Semestral"},{value:"year",description:"Anual"}],this.stateFields={bank_time_id:{class:""},balance:{class:""},frequency:{class:""}},this.updateOn=!1,this.useMonthFrequency=!1,this.selectFieldDayList=[],this.bankTimeForm=this.formBuilder.group({bank_time_id:new Wm("",[Jf.required]),balance:new Wm("",[Jf.required]),frequency:new Wm("",[Jf.required]),day_execution:new Wm("",[Jf.required])});for(var s=1;s<=28;s++)this.selectFieldDayList.push(1==s.toString().length?"0"+s.toString():s.toString());this.bankTimeDatabase.getBankTimeList((function(e){e.error||(r.bankTimeList=e.data.bankTimeList)}))}),[{key:"ngOnChanges",value:function(){}},{key:"validFrequency",value:function(){this.useMonthFrequency=this.bankTimeForm.get("frequency").value.includes("month"),this.useMonthFrequency||this.bankTimeForm.get("day_execution").setValue(null)}},{key:"sendBankTime",value:function(){this.checkErrorField("bank_time_id")?this.checkErrorField("balance")?this.checkErrorField("frequency")?this.postBankTime(this.bankTimeForm.value):this.functionsService.openSnackBar("Defina a Frequencia de recorr\xeancia"):this.functionsService.openSnackBar("Defina a quantidade de horas a adicionar"):this.functionsService.openSnackBar("Selecione o tipo de banco de horas")}},{key:"checkErrorField",value:function(e){return this.stateFields[e].class=this.bankTimeForm.controls[e].valid?"":"emptyError",""==this.stateFields[e].class}},{key:"postBankTime",value:function(e){var t=this;this.bankTimeDatabase.postBankTimeSchedule(e,(function(n){if(!n.error){var i=n.data.id;t.emitAddToList(Object.assign(Object.assign({},e),{id:i})),t.closeModal()}}))}},{key:"emitAddToList",value:function(e){this.bankTimePosted.emit(e)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.bankTimeForm.reset()}},{key:"verifyHour",value:function(e){this.bankTimeForm.controls[e].setValue(this.validService.validHourNegativeGreaterThan24(this.bankTimeForm.controls[e].value))}}])}()).\u0275fac=function(e){return new(e||AV)($r(wp),$r(Qz),$r(zP),$r(JO),$r(TN))},AV.\u0275cmp=Ot({type:AV,selectors:[["io-bank-time-modal-form-schedule"]],inputs:{bankTimeId:"bankTimeId",showModal:"showModal"},outputs:{hideModal:"hideModal",bankTimePosted:"bankTimePosted",bankTimeUpdated:"bankTimeUpdated"},features:[dl],decls:32,vars:37,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeB"],[1,"pdgT2","mrgB2"],[1,"flex","split"],[1,"form-group","inputAnimated"],["id","bank_time_id","required","",3,"formControlName"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["for","bank_time_id",1,"form-label"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["autocomplete","off","id","balance","placeholder","","type","text","required","",3,"formControlName","dropSpecialCharacters","mask","change"],["for","balance",1,"form-label"],["id","frequency","required","",3,"formControlName","change"],["for","frequency",1,"form-label"],["class","form-group inputAnimated",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","moduleId","btnColor","btnText","btnTitle","btnClick"],["id","day_execution","required","",3,"formControlName","change"],["for","day_execution",1,"form-label"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Nova recorr\xeancia de Banco de Horas"),ts(),es(4,"p",3),Gs(5,"D\xfavidas? Entre em contato com a contabilidade."),ts(),ns(6,"div",4),es(7,"div",5),es(8,"div",6),es(9,"select",7),es(10,"option",8),Gs(11,"Banco de horas padr\xe3o"),ts(),Jr(12,LV,2,2,"option",9),ts(),es(13,"label",10),Gs(14,"Banco de horas"),ts(),ns(15,"fa-icon",11),ts(),es(16,"div",6),es(17,"input",12),ls("change",(function(){return t.verifyHour("balance")})),ts(),es(18,"label",13),Gs(19,"Quantidade de horas a adicionar"),ts(),ts(),ts(),es(20,"div"),es(21,"div",6),es(22,"select",14),ls("change",(function(){return t.validFrequency()})),Jr(23,DV,2,2,"option",9),ts(),es(24,"label",15),Gs(25,"Frequencia de recorr\xeancia"),ts(),ns(26,"fa-icon",11),ts(),Jr(27,FV,6,3,"div",16),ts(),ns(28,"div",4),ts(),es(29,"div",17),es(30,"io-btn",18),ls("btnClick",(function(){return t.closeModal()})),ts(),es(31,"io-btn",19),ls("btnClick",(function(){return t.sendBankTime()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.bankTimeForm),Bo(8),Es(t.stateFields.bank_time_id.class),Zr("formControlName","bank_time_id"),Bo(1),Zr("value","1"),Bo(2),Zr("ngForOf",t.bankTimeList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(2),Es(t.stateFields.balance.class),Zr("formControlName","balance")("dropSpecialCharacters",!1)("mask","000:00"),Bo(3),Xs("flex split ",t.useMonthFrequency?"":"start",""),Bo(2),Es(t.stateFields.frequency.class),Zr("formControlName","frequency"),Bo(1),Zr("ngForOf",t.bankTimeFrequencyList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",t.useMonthFrequency),Bo(3),Zr("moduleName","comp-time")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","comp-time")("action",t.bankTimeId?"update":"create")("moduleId",t.bankTimeId||null)("btnColor","btn-blue-bg")("btnText",t.bankTimeId?"Salvar":"Cadastrar")("btnTitle",t.bankTimeId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,vm,bp,Vf,vp,ym,xm,ah,FD,If,DE,sh,jD],styles:[""]}),AV);function BV(e,t){if(1&e){var n=as();es(0,"li",12),es(1,"span",13),Gs(2),ts(),es(3,"span",13),Gs(4),ts(),es(5,"span",13),Gs(6),ts(),es(7,"span",13),Gs(8),ts(),es(9,"span",13),Gs(10),ts(),es(11,"span",14),es(12,"io-icon",15),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.description),Bo(2),$s(i.balance),Bo(2),$s(o.bankTimeFrequencyList[i.frequency]),Bo(2),$s(i.day_execution?"Dia "+i.day_execution:"-"),Bo(2),$s(o.getDateBr(i.last_execution)),Bo(2),Zr("moduleName","comp-time")("action","delete")("iconTitle","Excluir banco de horas")("iconClassList","mrgL1")}}function NV(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function RV(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum banco de horas encontrado."),ts())}function jV(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 banco de horas cadastrados."),ts())}function zV(e,t){if(1&e&&(es(0,"li"),Jr(1,NV,2,0,"p",9),Jr(2,RV,2,0,"p",9),Jr(3,jV,2,0,"p",9),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.bankTimeScheduleList.length>0&&n.bankTimeScheduleList[0].loading),Bo(1),Zr("ngIf",n.bankTimeScheduleList.length>0&&!n.bankTimeScheduleList[0].loading&&0==n.bankTimeScheduleListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.bankTimeScheduleList.length)}}var VV,HV,YV=((HV=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.bankTimeDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.bankTimeScheduleList=[{loading:!0}],this.bankTimeScheduleListFilteredSearch=[],this.bankTimeScheduleId=null,this.bankTimeFrequencyList={day:"Di\xe1rio",month:"Mensal",months3:"Trimestral",months6:"Semestral",year:"Anual"},this.modalDelete=!1,this.modalBankTime=!1,this.titleService.setTitle("Banco de horas"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getBankTimeList()}},{key:"getBankTimeList",value:function(){var e=this;this.bankTimeDatabase.getBankTimeScheduleList((function(t){t.error||(e.bankTimeScheduleList=t.data.bankTimeScheduleList,e.filterBankTimeSearch(e.searchForm.controls.search.value))}))}},{key:"filterBankTimeSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.bankTimeScheduleListFilteredSearch=this.functionsService.arrayFilterWords(this.bankTimeScheduleList,e,"description")}},{key:"showModalBankTime",value:function(){this.modalBankTime=!0}},{key:"hideModalBankTime",value:function(){this.modalBankTime=!1,this.bankTimeScheduleId=null}},{key:"showModalDelete",value:function(e){this.bankTimeScheduleId=e,this.modalDelete=!0}},{key:"deleteBankTimeSchedule",value:function(){var e=this,t=this.bankTimeScheduleId;this.bankTimeDatabase.deleteBankTimeSchedule(t,(function(n){n.error||(e.bankTimeScheduleList=e.bankTimeScheduleList.filter((function(e){return e.id!=t})),e.filterBankTimeSearch(e.searchForm.controls.search.value),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.bankTimeScheduleId=null}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e.split(" ")[0]):"N\xe3o executado"}}])}()).\u0275fac=function(e){return new(e||HV)($r(wp),$r(yM),$r(Qz),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},HV.\u0275cmp=Ot({type:HV,selectors:[["io-bank-time-page-list-schedule"]],decls:23,vars:10,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","bankTimePosted","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalBankTime()})),ts(),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterBankTimeSearch(e)})),ts(),es(4,"div",4),es(5,"div",5),es(6,"h3",6),Gs(7,"Banco de horas referente"),ts(),es(8,"h3",6),Gs(9,"Quantidade de horas"),ts(),es(10,"h3",6),Gs(11,"Frequ\xeancia"),ts(),es(12,"h3",6),Gs(13,"Data de execu\xe7\xe3o"),ts(),es(14,"h3",6),Gs(15,"Ultima execu\xe7\xe3o"),ts(),es(16,"h3",6),Gs(17,"A\xe7\xe3o"),ts(),ts(),es(18,"ul",7),Jr(19,BV,13,9,"li",8),Jr(20,zV,4,3,"li",9),ts(),ts(),ts(),ts(),es(21,"io-bank-time-modal-form-schedule",10),ls("bankTimePosted",(function(){return t.getBankTimeList()}))("hideModal",(function(){return t.hideModalBankTime()})),ts(),es(22,"io-modal-confirm",11),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteBankTimeSchedule()})),ts()),2&e&&(Bo(2),Zr("moduleName","comp-time")("titleTop","Banco de horas recorrente")("showBtn",!0)("btnDataText","Cadastrar"),Bo(17),Zr("ngForOf",t.bankTimeScheduleListFilteredSearch),Bo(1),Zr("ngIf",0==t.bankTimeScheduleListFilteredSearch.length),Bo(1),Zr("showModal",t.modalBankTime),Bo(1),Zr("title","Excluir recorr\xeancia?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[eI,oE,ah,sh,EV,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:160px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:90px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:140px;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:130px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:90px;margin:0;text-align:right}"]}),HV),qV=((VV=function(){return d((function e(t,n){c(this,e),this.iconRegularService=t,this.iconSolidService=n,this.filterText="Filtro",this.showCollaboratorStatusList=!1,this.filterJourneySelected=!1,this.showRubricList=!1,this.hideBankTimeOption=!1,this.hideOverTimeOption=!1,this.selectedFilters=new Mc,this.selectedFiltersAsStrings=new Mc,this.filterCollaboratorStatusList=[],this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterRubricSelected=[],this.costCenterSelected=[],this.contractSelected=[],this.modalFilter=!1}),[{key:"ngOnInit",value:function(){}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilter",value:function(e){this.filterCollaboratorStatusList=e.collaboratorStatusList,this.filterJourneySelected=e.journeyList,this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterRubricSelected=e.rubricIdList,this.costCenterSelected=e.costCenterIdList,this.contractSelected=e.contractIdList,this.emitFilterSelected(),this.hideModalFilter()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"emitFilterSelected",value:function(){this.selectedFilters.emit({collaboratorStatusList:this.filterCollaboratorStatusList,journeySelected:this.filterJourneySelected,departmentIdList:this.filterDepartmentSelected,regimeIdList:this.filterRegimeSelected,unitIdList:this.filterUnitSelected,rubricIdList:this.filterRubricSelected,costCenterIdList:this.costCenterSelected,contractIdList:this.contractSelected}),this.selectedFiltersAsStrings.emit({collaboratorStatusList:JSON.stringify(this.filterCollaboratorStatusList),journeyIdList:JSON.stringify(this.filterJourneySelected),departmentIdList:JSON.stringify(this.filterDepartmentSelected),regimeIdList:JSON.stringify(this.filterRegimeSelected),unitIdList:JSON.stringify(this.filterUnitSelected),rubricIdList:JSON.stringify(this.filterRubricSelected),costCenterIdList:JSON.stringify(this.costCenterSelected),contractIdList:JSON.stringify(this.contractSelected)})}}])}()).\u0275fac=function(e){return new(e||VV)($r(WO),$r(JO))},VV.\u0275cmp=Ot({type:VV,selectors:[["io-collaborator-filter"]],inputs:{filterText:"filterText",showCollaboratorStatusList:"showCollaboratorStatusList",filterJourneySelected:"filterJourneySelected",showRubricList:"showRubricList",hideBankTimeOption:"hideBankTimeOption",hideOverTimeOption:"hideOverTimeOption"},outputs:{selectedFilters:"selectedFilters",selectedFiltersAsStrings:"selectedFiltersAsStrings"},decls:5,vars:8,consts:[["title","Filtro",1,"flex","end","filterBtnBox","clickPlace",3,"click"],[1,"sizeB","fontBold","mrgR1"],["size","3x",1,"iconItem","iconSizeG","cl-blue",3,"icon"],[3,"showFilter","hideBankTimeOption","hideOverTimeOption","showCollaboratorStatusList","showJourneyList","showRubricList","hideFilter","selectedFilters"]],template:function(e,t){1&e&&(es(0,"div",0),ls("click",(function(){return t.showModalFilter()})),es(1,"p",1),Gs(2),ts(),ns(3,"fa-icon",2),ts(),es(4,"io-modal-filter",3),ls("hideFilter",(function(){return t.hideModalFilter()}))("selectedFilters",(function(e){return t.setFilter(e)})),ts()),2&e&&(Bo(2),$s(t.filterText),Bo(1),Zr("icon",t.iconSolidService.faFilter),Bo(1),Zr("showFilter",t.modalFilter)("hideBankTimeOption",t.hideBankTimeOption)("hideOverTimeOption",t.hideOverTimeOption)("showCollaboratorStatusList",t.showCollaboratorStatusList)("showJourneyList",t.filterJourneySelected||!1)("showRubricList",t.showRubricList))},directives:[FD,Rz],styles:[""]}),VV);function UV(e,t){if(1&e&&(es(0,"span",26),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function WV(e,t){if(1&e&&ns(0,"fa-icon",27),2&e){var n=fs(2);Zr("title","Data de in\xedcio do uso do sistema!")("icon",n.iconSolidService.faExclamation)}}function JV(e,t){if(1&e){var n=as();es(0,"li",21),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showClosureList(e.id,e.name)})),es(1,"span"),Jr(2,UV,2,1,"span",22),Gs(3),ts(),es(4,"span",23),Gs(5),ts(),es(6,"span",23),Jr(7,WV,1,2,"fa-icon",24),Gs(8),ts(),es(9,"span",23),ns(10,"fa-icon",25),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(1),Xs("item sizeC ",null!=i.dismissal_date?"cl-gray":"",""),Bo(1),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.name,""),Bo(2),$s(o.regimeArray[i.type].title),Bo(2),Zr("ngIf",0==i.closure),Bo(1),Qs(" ",o.getDateBr(i.end_date)," "),Bo(2),Zr("title","Visualizar fechamentos")("icon",o.iconRegularService.faEye)}}function GV(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function $V(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function QV(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rios."),ts())}function KV(e,t){if(1&e&&(es(0,"li"),Jr(1,GV,2,0,"p",12),Jr(2,$V,2,0,"p",12),Jr(3,QV,2,0,"p",12),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function ZV(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","closure")("action","delete")("moduleId",i.id)("iconTitle","")("iconClassList","mrgL1")}}function XV(e,t){if(1&e){var n=as();es(0,"li",28),es(1,"label",14),es(2,"input",29),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(3,"span",16),ts(),es(4,"label",30),es(5,"span",31),Gs(6),ts(),ts(),es(7,"label",30),es(8,"span",23),Gs(9),ts(),ts(),es(10,"label",30),es(11,"span",23),Gs(12),ts(),ts(),es(13,"label",30),es(14,"span",23),Gs(15),ts(),ts(),es(16,"span",31),Jr(17,ZV,1,5,"io-icon",32),ts(),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs();Bo(2),ys("id","check",i.id,""),Zr("formControlName","selectedId")("checked",a.closureListSelected.indexOf(i.id)>=0),Bo(2),ys("for","check",i.id,""),Bo(2),$s(a.getDateBr(i.begin_date)),Bo(1),ys("for","check",i.id,""),Bo(2),$s(a.getDateBr(i.end_date)),Bo(1),ys("for","check",i.id,""),Bo(2),$s(i.managerName||"N\xe3o identificado"),Bo(1),ys("for","check",i.id,""),Bo(2),$s(a.getDateBrFromDateTime(i.created_at)),Bo(2),Zr("ngIf",o==a.closureListFiltered.length-1&&0==a.closureListSelected.length)}}function eH(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function tH(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum fechamento encontrado."),ts())}function nH(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 fechamentos."),ts())}function iH(e,t){if(1&e&&(es(0,"li"),Jr(1,eH,2,0,"p",12),Jr(2,tH,2,0,"p",12),Jr(3,nH,2,0,"p",12),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.closureListFiltered.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function oH(e,t){if(1&e){var n=as();es(0,"div",3),es(1,"button",34),ls("click",(function(){return mn(n),fs().showModalDelete()})),Gs(2,"Excluir fechamentos"),ts(),ts()}}var aH,rH=((aH=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.closureDatabase=t,this.formBuilder=n,this.functionsService=i,this.iconSolidService=o,this.iconRegularService=a,this.router=r,this.storageService=s,this.titleService=l,this.collaboratorStatusList=["1"],this.departmentIdList=[],this.regimeIdList=[],this.contractIdList=[],this.unitIdList=[],this.closureList=[],this.closureListFiltered=[],this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorSelectedId=null,this.collaboratorSelectedIdList=[],this.collaboratorSelectedName="",this.collaboratorSelected=!1,this.modalDelete=!1,this.modalFilter=!1,this.searchLineReset=new Mc,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.regimeArray=[{title:"Banco de horas"},{title:"Horas extras"},{title:"H\xedbrido (BH)"},{title:"H\xedbrido (HE)"}],this.closureListSelected=[],this.closureSelectedId=[],this.titleService.setTitle("Fechamento de ponto"),this.searchFormData=this.formBuilder.group({searchField:new Wm("",[]),selectAllCollaborators:new Wm("",[]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])}),this.getClosureList()}),[{key:"verifyAll",value:function(){var e=this;this.searchFormData.controls.allSelected.value?this.closureListFiltered.forEach((function(t){e.closureListSelected.push(t.id)})):this.closureListSelected=[]}},{key:"selectId",value:function(e){var t=this;this.closureListSelected.find((function(t){return t==e}))?this.closureListSelected=this.closureListSelected.filter((function(t){return t>e})):(this.closureListSelected.push(e),this.closureListFiltered.forEach((function(n){n.id>e&&t.closureListSelected.push(n.id)}))),this.closureListSelected=r(new Set(this.closureListSelected)),this.searchFormData.controls.allSelected.setValue(this.closureListFiltered.length==this.closureListSelected.length)}},{key:"setFilter",value:function(e){this.collaboratorSelectedIdList=[],this.collaboratorStatusList=e.collaboratorStatusList,this.departmentIdList=e.departmentIdList,this.regimeIdList=e.regimeIdList,this.contractIdList=e.contractIdList,this.unitIdList=e.unitIdList,this.getClosureList()}},{key:"getClosureList",value:function(){var e=this,t=this.getParams();this.closureDatabase.getClosureList(t,(function(t){t.error||e.loadDataList(t.data.closureList)}))}},{key:"getParams",value:function(){return{collaboratorStatusList:JSON.stringify(this.collaboratorStatusList),departmentIdList:JSON.stringify(this.departmentIdList),regimeIdList:JSON.stringify(this.regimeIdList),contractIdList:JSON.stringify(this.contractIdList),unitIdList:JSON.stringify(this.unitIdList)}}},{key:"loadDataList",value:function(e){this.collaboratorList=e,this.filterDataSearch(this.searchFormData.get("searchField").value)}},{key:"filterDataSearch",value:function(e){this.searchFormData.get("searchField").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name"),this.collaboratorSelected=!1,this.collaboratorSelectedName=""}},{key:"showClosureList",value:function(e,t){var n=this;this.collaboratorSelectedName=t,this.collaboratorSelectedId=e,this.collaboratorSelected=!0,this.closureDatabase.getClosureListFromCollaborator(this.collaboratorSelectedId,(function(e){e.error?n.collaboratorList=[{error:!0}]:n.closureListFiltered=e.data.closureList}))}},{key:"showModalDelete",value:function(e){null!=e&&this.closureSelectedId.push(e),this.modalDelete=!0}},{key:"deleteClosure",value:function(){var e,t=this;e=this.closureListSelected.length>0?this.closureListSelected:this.closureSelectedId,this.closureDatabase.deleteClosure(e,(function(e){e.error||(t.hideModalDelete(),t.showClosureList(t.collaboratorSelectedId,t.collaboratorSelectedName))})),this.searchFormData.controls.allSelected.setValue(!1),this.searchFormData.controls.selectedId.setValue(!1),this.closureListSelected=[],this.closureSelectedId=[]}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.closureListSelected=[],this.closureSelectedId=[]}},{key:"getDateBr",value:function(e){if(null!=e)return this.functionsService.dateENtoBR(e)}},{key:"getDateBrFromDateTime",value:function(e){if(null!=e)return this.functionsService.dateENtoBR(e.split(" ")[0])}}])}()).\u0275fac=function(e){return new(e||aH)($r(iI),$r(wp),$r(zP),$r(JO),$r(WO),$r(yM),$r(YP),$r(hL))},aH.\u0275cmp=Ot({type:aH,selectors:[["io-page-list"]],decls:42,vars:25,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataText","btnDataUrl"],[1,"flex","end"],[3,"showCollaboratorStatusList","selectedFilters"],[1,"wdMax50"],[1,"max-width-here","wdFull",3,"selectFull","searchValue","reset","resetText","onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign clickPlace",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"listBoxSlideMob","listClosure"],[1,"sizeC","hd1","radioBox"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"listBox","listClosure"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],["class","flex end",4,"ngIf"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign","clickPlace",3,"click"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC"],["size","3x","class","iconItem iconSizeG cl-red",3,"title","icon",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-gray-dark",3,"title","icon"],[1,"sizeB","cl-magenta","mrgR1"],["size","3x",1,"iconItem","iconSizeG","cl-red",3,"title","icon"],[1,"flex","spcDesk","bg-white","listAlign"],["type","checkbox",3,"id","formControlName","checked","change"],[1,"item",3,"for"],[1,"item","sizeC","clickPlace"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick",4,"ngIf"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick"],[1,"btn","btn-blue-bg","mrgT1","mrgR1",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilter(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("resetText",(function(){return t.getClosureList()}))("onKeyPress",(function(e){return t.filterDataSearch(e)})),ts(),ts(),es(7,"div"),es(8,"div",7),es(9,"div",8),es(10,"h3",9),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",9),Gs(13,"Regime de horas"),ts(),es(14,"h3",9),Gs(15,"\xdaltimo fechamento"),ts(),es(16,"h3",9),Gs(17,"A\xe7\xe3o"),ts(),ts(),es(18,"ul",10),Jr(19,JV,11,10,"li",11),Jr(20,KV,4,3,"li",12),ts(),ts(),ts(),es(21,"div"),es(22,"div",13),es(23,"div",8),es(24,"label",14),es(25,"input",15),ls("change",(function(){return t.verifyAll()})),ts(),ns(26,"span",16),ts(),es(27,"h3",9),Gs(28,"Data Inicial"),ts(),es(29,"h3",9),Gs(30,"Data Final"),ts(),es(31,"h3",9),Gs(32,"Gestor"),ts(),es(33,"h3",9),Gs(34,"Criado em"),ts(),es(35,"h3",9),Gs(36,"A\xe7\xf5es"),ts(),ts(),ts(),es(37,"ul",17),Jr(38,XV,18,12,"li",18),Jr(39,iH,4,3,"li",12),ts(),Jr(40,oH,3,0,"div",19),ts(),ts(),ts(),es(41,"io-modal-confirm",20),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteClosure()})),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchFormData),Bo(1),Zr("moduleName","closure")("titleTop","Fechamentos de ponto")("showBtn",!0)("btnDataText","Novo fechamento")("btnDataUrl","closure-register"),Bo(2),Zr("showCollaboratorStatusList",!0),Bo(2),Zr("selectFull",!0)("searchValue",t.collaboratorSelectedName)("reset",t.searchLineReset),Bo(1),Xs("collaboratorListBox anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(12),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Xs("closure-list-box anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(4),Zr("formControlName","allSelected"),Bo(13),Zr("ngForOf",t.closureListFiltered),Bo(1),Zr("ngIf",0==t.closureListFiltered.length),Bo(1),Zr("ngIf",t.closureListSelected.length>0),Bo(1),Zr("title","Excluir fechamento?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[Hf,ip,eI,qV,oE,ah,sh,Of,Vf,vp,UB,FD,BB],styles:[".collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:50%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%;text-align:right}.collaboratorSelected[_ngcontent-%COMP%]   .listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listBox.listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:10%}.collaboratorSelected[_ngcontent-%COMP%]   .listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .collaboratorSelected[_ngcontent-%COMP%]   .listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .listBox.listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listBox.listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:15%}.collaboratorSelected[_ngcontent-%COMP%]   .listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .listBox.listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:30%}.collaboratorSelected[_ngcontent-%COMP%]   .listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5), .listBox.listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:20%}.collaboratorSelected[_ngcontent-%COMP%]   .listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child, .listBox.listClosure[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}.closure-list-box[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:100px}.closure-list-box[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){text-align:center}.closure-list-box[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){min-width:50px;text-align:right}.collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:550px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.closure-list-box[_ngcontent-%COMP%]{overflow:hidden;max-height:0}.closure-list-box.collaboratorSelected[_ngcontent-%COMP%]{max-height:570px}.max-width-here[_ngcontent-%COMP%]{max-width:300px}"]}),aH);function sH(e,t){if(1&e&&(es(0,"option",18),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n),Bo(1),$s(n)}}function lH(e,t){1&e&&ns(0,"span",32)}function cH(e,t){if(1&e){var n=as();es(0,"span",32),es(1,"label",12),es(2,"input",33),ls("change",(function(){mn(n);var e=fs().$implicit;return fs().selectCollaboratorId(e.id)})),ts(),ns(3,"span",14),ts(),ts()}if(2&e){var i=fs().$implicit,o=fs();Bo(2),ys("id","coll",i.id,""),Zr("checked",o.collaboratorSelectedIdList.indexOf(i.id)>=0)}}function uH(e,t){if(1&e&&ns(0,"fa-icon",34),2&e){var n=fs(2);Zr("title","Data de in\xedcio do uso do sistema!")("icon",n.iconSolidService.faExclamation)}}function dH(e,t){if(1&e&&(es(0,"li",27),Jr(1,lH,1,0,"span",28),Jr(2,cH,4,2,"span",28),es(3,"span",11),es(4,"label",29),Gs(5),ts(),ts(),es(6,"span",30),Jr(7,uH,1,2,"fa-icon",31),Gs(8),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(1),Zr("ngIf",i.dateSelectedIsLessThanClosure(n)),Bo(1),Zr("ngIf",!i.dateSelectedIsLessThanClosure(n)),Bo(2),ys("for","coll",n.id,""),Bo(1),Qs(" ",n.name," "),Bo(2),Zr("ngIf",0==n.closure),Bo(1),Qs(" ",i.getDateBR(n.end_date)," ")}}function hH(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function fH(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function mH(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rios."),ts())}function pH(e,t){if(1&e&&(es(0,"li"),Jr(1,hH,2,0,"p",23),Jr(2,fH,2,0,"p",23),Jr(3,mH,2,0,"p",23),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var gH,vH,yH,bH=((yH=function(){return d((function e(t,n,i,o,a){c(this,e),this.iconSolidService=t,this.formBuilder=n,this.functionsService=i,this.closureDatabase=o,this.titleService=a,this.collaboratorStatusList=["1"],this.departmentIdList=[],this.regimeIdList=[],this.unitIdList=[],this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredEndDate=[],this.collaboratorListFilteredBeginDate=[],this.collaboratorListFilteredSearch=[],this.collaboratorSelectedIdList=[],this.currentDate=this.functionsService.getCurrentDateEN(),this.dateSelected="",this.selectFieldListEndDate=[],this.modalFilter=!1,this.titleService.setTitle("Fechamento de ponto"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),selectAllCollaborators:new Wm("",[Jf.required]),endDate:new Wm("all",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getCollaboratorList()}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilter",value:function(e){this.collaboratorSelectedIdList=[],this.collaboratorStatusList=e.collaboratorStatusList,this.departmentIdList=e.departmentIdList,this.regimeIdList=e.regimeIdList,this.unitIdList=e.unitIdList,this.getCollaboratorList()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"getCollaboratorList",value:function(){var e=this;this.closureDatabase.getClosureList(this.getParams(),(function(t){t.error||(e.collaboratorList=t.data.closureList,e.collaboratorList.forEach((function(t){var n=e.getDateBR(t.end_date)?e.getDateBR(t.end_date):e.getDateBR(t.begin_date);""!=n&&e.selectFieldListEndDate.indexOf(n)<0&&e.selectFieldListEndDate.push(n)})),e.filterClosureEndDate())}))}},{key:"getParams",value:function(){return{collaboratorStatusList:JSON.stringify(this.collaboratorStatusList),departmentIdList:JSON.stringify(this.departmentIdList),regimeIdList:JSON.stringify(this.regimeIdList),unitIdList:JSON.stringify(this.unitIdList)}}},{key:"filterClosureEndDate",value:function(){var e=this,t=this.searchForm.controls.endDate.value;this.collaboratorListFilteredEndDate=this.collaboratorList.filter((function(n){return e.getDateBR(n.end_date)==t||e.getDateBR(n.begin_date)==t})),"all"==t&&(this.collaboratorListFilteredEndDate=this.collaboratorList),this.filterCollaboratorSearch(this.searchForm.get("search").value)}},{key:"filterCollaboratorSearch",value:function(e){this.searchForm.get("search").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredEndDate,e,"name")}},{key:"setDate",value:function(e){this.dateSelected=e}},{key:"selectAllCollaborators",value:function(){var e=this;this.searchForm.get("selectAllCollaborators").value?(this.collaboratorSelectedIdList=[],this.collaboratorListFilteredSearch.forEach((function(t){e.collaboratorSelectedIdList.push(t.id)}))):this.collaboratorSelectedIdList=[]}},{key:"selectCollaboratorId",value:function(e){var t=this,n=this.collaboratorSelectedIdList;n.find((function(t){return t==e}))?n=n.filter((function(t){return t!=e})):n.push(e),this.collaboratorSelectedIdList=[],n.forEach((function(e){t.collaboratorSelectedIdList.push(e)})),this.collaboratorSelectedIdList.length<this.collaboratorListFilteredSearch.length&&this.searchForm.get("selectAllCollaborators").setValue(!1)}},{key:"sendClosure",value:function(){var e=this;if(this.validFields()){var t={collaborator:JSON.stringify(this.collaboratorSelectedIdList),closureDate:this.dateSelected};this.closureDatabase.postClosure(t,(function(t){t.error||(e.searchForm.get("selectAllCollaborators").setValue(!1),e.selectAllCollaborators(),e.getCollaboratorList())}))}}},{key:"validFields",value:function(){return 0==this.collaboratorSelectedIdList.length?(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar ao menos um funcion\xe1rio."),!1):""!=this.dateSelected&&null!=this.dateSelected||(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar a data de fechamento."),!1)}},{key:"getDateBR",value:function(e){return null==e||""==e?"":this.functionsService.dateENtoBR(e)}},{key:"dateSelectedIsLessThanClosure",value:function(e){return!(!e.end_date||""==e.end_date)&&this.functionsService.getDateAsInt(this.functionsService.getCurrentDateEN())<=this.functionsService.getDateAsInt(e.end_date)}}])}()).\u0275fac=function(e){return new(e||yH)($r(JO),$r(wp),$r(zP),$r(iI),$r(hL))},yH.\u0275cmp=Ot({type:yH,selectors:[["io-closure-form"]],decls:29,vars:21,consts:[[1,"closure-form-box"],[3,"titleTop"],[1,"flex","mrgB2"],[1,"datepicker","required","wdMax25",3,"labelText","validMinDateClosure","maxDate","collaboratorListId","dateSelectedEN"],[1,"flex"],[3,"selectFull","onKeyPress"],[1,"flex","end"],[3,"showCollaboratorStatusList","selectedFilters"],[1,"minHeightBox","mrgB2"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","statusFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","wdFull","end"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showFilter","hideFilter","selectedFilters"],[1,"flex","spcDesk","bg-white","listAlign"],["class","item",4,"ngIf"],[3,"for"],[1,"item","sizeC","pdgL1"],["size","3x","class","iconItem iconSizeG cl-red",3,"title","icon",4,"ngIf"],[1,"item"],["type","checkbox",3,"checked","id","change"],["size","3x",1,"iconItem","iconSizeG","cl-red",3,"title","icon"]],template:function(e,t){1&e&&(es(0,"div",0),ns(1,"io-main-top",1),es(2,"div",2),es(3,"io-datepicker",3),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),ts(),es(4,"div",4),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterCollaboratorSearch(e)})),ts(),es(6,"div",6),es(7,"io-collaborator-filter",7),ls("selectedFilters",(function(e){return t.setFilter(e)})),ts(),ts(),ts(),es(8,"div",8),es(9,"div",9),es(10,"div",10),es(11,"h3",11),es(12,"label",12),es(13,"input",13),ls("change",(function(){return t.selectAllCollaborators()})),ts(),ns(14,"span",14),ts(),ts(),es(15,"h3",15),Gs(16,"Funcion\xe1rio"),ts(),es(17,"div",16),es(18,"select",17),ls("change",(function(){return t.filterClosureEndDate()})),es(19,"option",18),Gs(20,"\xdaltimo fechamento"),ts(),Jr(21,sH,2,2,"option",19),ts(),ns(22,"fa-icon",20),ts(),ts(),es(23,"ul",21),Jr(24,dH,9,6,"li",22),Jr(25,pH,4,3,"li",23),ts(),ts(),ts(),ts(),es(26,"div",24),es(27,"io-btn",25),ls("btnClick",(function(){return t.sendClosure()})),ts(),ts(),es(28,"io-modal-filter",26),ls("hideFilter",(function(){return t.hideModalFilter()}))("selectedFilters",(function(e){return t.setFilter(e)})),ts()),2&e&&(Bo(1),Zr("titleTop","Cadastro de Fechamento de ponto"),Bo(2),Zr("labelText","Data de fechamento")("validMinDateClosure",!0)("maxDate",t.currentDate)("collaboratorListId",t.collaboratorSelectedIdList),Bo(2),Zr("selectFull",!0),Bo(2),Zr("showCollaboratorStatusList",!0),Bo(3),Zr("formGroup",t.searchForm),Bo(3),Zr("formControlName","selectAllCollaborators"),Bo(5),Zr("formControlName","endDate"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.selectFieldListEndDate),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(2),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(2),Zr("moduleName","closure")("action","create")("btnColor","btn-blue-bg")("btnText","Gerar Fechamento")("btnTitle","Gerar Fechamento"),Bo(1),Zr("showFilter",t.modalFilter))},directives:[eI,UA,oE,qV,Hf,ip,Of,Vf,vp,vm,bp,ym,xm,ah,FD,sh,jD,Rz],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:50px;text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:160px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:215px}"]}),yH),_H=((vH=function(){return d((function e(){c(this,e)}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||vH)},vH.\u0275cmp=Ot({type:vH,selectors:[["io-closure-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-closure-form"),ts(),ts())},directives:[bH],styles:[""]}),vH),kH=((gH=function(){function e(t,n){c(this,e),this.document=t,this.platformId=n,this.documentIsAccessible=Th(this.platformId)}return d(e,[{key:"check",value:function(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),e.getCookieRegExp(t).test(this.document.cookie))}},{key:"get",value:function(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);var n=e.getCookieRegExp(t).exec(this.document.cookie);return n[1]?e.safeDecodeURIComponent(n[1]):""}return""}},{key:"getAll",value:function(){if(!this.documentIsAccessible)return{};var t={},n=this.document;return n.cookie&&""!==n.cookie&&n.cookie.split(";").forEach((function(n){var o=i(n.split("="),2),a=o[0],r=o[1];t[e.safeDecodeURIComponent(a.replace(/^ /,""))]=e.safeDecodeURIComponent(r)})),t}},{key:"set",value:function(e,t,n,i,o,a,r){if(this.documentIsAccessible)if("number"==typeof n||n instanceof Date||i||o||a||r)this.set(e,t,{expires:n,path:i,domain:o,secure:a,sameSite:r||"Lax"});else{var s=encodeURIComponent(e)+"="+encodeURIComponent(t)+";",l=n||{};l.expires&&(s+="number"==typeof l.expires?"expires="+new Date((new Date).getTime()+1e3*l.expires*60*60*24).toUTCString()+";":"expires="+l.expires.toUTCString()+";"),l.path&&(s+="path="+l.path+";"),l.domain&&(s+="domain="+l.domain+";"),!1===l.secure&&"None"===l.sameSite&&(l.secure=!0,console.warn("[ngx-cookie-service] Cookie ".concat(e," was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130"))),l.secure&&(s+="secure;"),l.sameSite||(l.sameSite="Lax"),s+="sameSite="+l.sameSite+";",this.document.cookie=s}}},{key:"delete",value:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"Lax";if(this.documentIsAccessible){var a=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(e,"",{expires:a,path:t,domain:n,secure:i,sameSite:o})}}},{key:"deleteAll",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"Lax";if(this.documentIsAccessible){var o=this.getAll();for(var a in o)o.hasOwnProperty(a)&&this.delete(a,e,t,n,i)}}}],[{key:"getCookieRegExp",value:function(e){var t=e.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+t+"|;\\s*"+t+")=(.*?)(?:;|$)","g")}},{key:"safeDecodeURIComponent",value:function(e){try{return decodeURIComponent(e)}catch(Lwe){return e}}}])}()).\u0275fac=function(e){return new(e||gH)(ut(Qu),ut(eu))},gH.\u0275prov=Se({factory:function(){return new gH(ut(Qu),ut(eu))},token:gH,providedIn:"root"}),gH);function CH(e,t){1&e&&ns(0,"img",12)}function wH(e,t){1&e&&ns(0,"img",13)}function xH(e,t){if(1&e){var n=as();es(0,"io-search-line",14),ls("onKeyPress",(function(e){return mn(n),fs().filterMenuItems(e)})),ts()}}var MH=function(e){return[e]};function SH(e,t){if(1&e){var n=as();es(0,"a",27),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2).activeMenuItem(e.url)})),Gs(1),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs().index,r=fs();el("sizeC cl-blue ","notification-recalc-historic"==i.url?"cl-magenta":""," clickPlace ",r.menuSubItemIsActive(a,o)?"active":"notActive",""),vs("title",i.title),Zr("routerLink",pc(7,MH,"/"+i.url)),Bo(1),Qs(" ",i.title," ")}}function PH(e,t){if(1&e){var n=as();es(0,"a",27),ls("click",(function(){mn(n);var e=t.$implicit;return fs(3).activeMenuItem(e.url)})),Gs(1),ts()}if(2&e){var i=t.$implicit;Xs("sizeC cl-blue ","notification-recalc-historic"==i.url?"cl-magenta":""," clickPlace"),vs("title",i.title),Zr("routerLink",pc(6,MH,"/"+i.url)),Bo(1),Qs(" ",i.title," ")}}function TH(e,t){if(1&e&&(es(0,"div",28),Jr(1,PH,2,8,"a",25),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngForOf",n.dropLinks)}}function OH(e,t){if(1&e){var n=as();es(0,"div",15),es(1,"div",16),es(2,"div",17),ls("click",(function(){mn(n);var e=t.index;return fs().toggleClass(e)})),es(3,"div",18),ns(4,"fa-icon",19),ts(),es(5,"div",20),es(6,"a",21),Gs(7),ts(),ts(),es(8,"span",22),ns(9,"fa-icon",23),ts(),ts(),es(10,"div",24),Jr(11,SH,2,9,"a",25),ts(),ts(),Jr(12,TH,2,1,"div",26),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs();Bo(1),Zr("ngClass",a.menuItemActive==o?"active":""),Bo(3),Xs("iconItem iconSizeE ",i.iconClass,""),Zr("icon",i.icon),Bo(2),vs("title",i.title),Bo(1),$s(i.title),Bo(2),Zr("icon",a.iconSolidService.faChevronDown),Bo(2),Zr("ngForOf",i.dropLinks),Bo(1),Zr("ngIf",a.retractedMenu&&a.currentWidth()>920)}}var LH,DH,IH,FH,AH,EH,BH=function(){return["/home"]},NH=((EH=function(){return d((function e(t,n,i,o,a,r,s,l){var u=this;c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.permissionService=s,this.storageService=l,this.userName=this.storageService.decodeFromLocalStorage("userName"),this.userId=this.storageService.decodeFromLocalStorage("userId"),this.retractedMenu=!0,this.menuItemTrigger=0,this.menuToggle=new Mc,this.menuItemActive=null,this.menuItemActiveUrl=null,this.menuItemFilteredSearch=[],this.menuItemList=[{title:"Cadastro",icon:this.iconSolidService.faIdCardAlt,iconClass:"",dropLinks:[{url:"occupation",title:"Cargos"},{url:"cost-center",title:"Centros de Custo"},{url:"department",title:"Departamentos"},{url:"company",title:"Empresas"},{url:"journey",title:"Escalas"},{url:"holiday",title:"Feriados"},{url:"collaborator",title:"Funcion\xe1rios"}]},{title:"Gest\xe3o",icon:this.iconSolidService.faUserTie,iconClass:"",dropLinks:[{url:"advertise",title:"Advert\xeancias"},{url:"adjustment",title:"Ajustes"},{url:"absence",title:"Aus\xeancias"},{url:"comp-time-control",title:"Controle de horas"},{url:"point-control",title:"Controle de ponto"},{url:"intermittent-call",title:"Convoca\xe7\xf5es"},{url:"document-register-list",title:"Documentos"},{url:"team",title:"Equipes"},{url:"extra-time-scheduled",title:"H.E. programadas"},{url:"on-duty",title:"Plant\xf5es"},{url:"comp-time-historic",title:"Regime de horas - Hist\xf3rico"}]},{title:"Relat\xf3rios",icon:this.iconSolidService.faFileAlt,iconClass:"",dropLinks:[{url:"proof-of-point",title:"Comprovante de ponto"},{url:"mirror",title:"Espelho ponto"},{url:"report",title:"Relat\xf3rios"}]},{title:"Fechamento",icon:this.iconSolidService.faCalendarDay,iconClass:"",dropLinks:[{url:"closure",title:"Fechamento ponto"}]},{title:"Banco de horas",icon:this.iconSolidService.faBusinessTime,iconClass:"",dropLinks:[{url:"bank-time-payment",title:"Pagamentos"}]},{title:"Notifica\xe7\xf5es",icon:this.iconSolidService.faBell,iconClass:"",dropLinks:[{url:"notification-absence-not-read",title:"Aus\xeancias"},{url:"notification-point-disregard-recused",title:"Desconsidera\xe7\xf5es recusadas"},{url:"notification-expiring-documents",title:"Documentos expirando"},{url:"notification-inconsistency-comp-time",title:"Inconsist\xeancia de horas"},{url:"notification-barrier-out",title:"Pontos fora da Cerca Digital"},{url:"notification-journey-out",title:"Pontos fora da Escala"},{url:"notification-absence-vacation",title:"Solicita\xe7\xe3o de f\xe9rias"}]},{title:"Exporta\xe7\xf5es",icon:this.iconSolidService.faFileExport,iconClass:"",dropLinks:[{url:"export-configuration",title:"Configura\xe7\xe3o"},{url:"export",title:"Exporta\xe7\xe3o"}]},{title:"Configura\xe7\xf5es",icon:this.iconSolidService.faCog,iconClass:"",dropLinks:[{url:"documents",title:"Documentos"},{url:"company-config",title:"Empresa"},{url:"invoice-control",title:"Faturamento"},{url:"collaborator-settings",title:"Funcion\xe1rio"},{url:"user",title:"Gestores"},{url:"integrations",title:"Integra\xe7\xf5es"},{url:"permission",title:"Permiss\xf5es"},{url:"point-rule",title:"Regras do ponto"}]},{title:"Local",icon:this.iconSolidService.faMapMarked,iconClass:"",dropLinks:[{url:"barrier",title:"Cerca digital"},{url:"point-map",title:"Pontos no mapa"},{url:"unit",title:"Unidades"}]}],this.menuItemListAllowed=[],this.menuSubItemActiveUrl=null,this.router.events.subscribe({next:function(e){u.activeMenuItem(u.router.url.slice(1))}});var d=this.storageService.decodeFromLocalStorage("companyId");["835","836"].includes(d)&&(this.menuItemList[4].dropLinks.push({url:"bank-time",title:"BH alternativo"}),this.menuItemList[4].dropLinks.push({url:"bank-time-schedule",title:"BH recorrente"}),this.menuItemList[4].dropLinks.push({url:"bank-time-control",title:"Controle de BH"}),this.menuItemList[4].dropLinks.push({url:"bank-time-transfer",title:"Transfer\xeancia de BH"}),this.menuItemList[5].dropLinks.push({url:"over-time-request",title:"Solicita\xe7\xe3o de HE"}),this.menuItemList[1].dropLinks.push({url:"collaborator-job-swap",title:"Permutas"})),["4","31"].includes(this.userId)&&this.menuItemList[5].dropLinks.push({url:"notification-recalc-historic",title:"Hist\xf3rico de rec\xe1lculos"}),this.menuItemList.forEach((function(e){var t=e.dropLinks.filter((function(e){return u.permissionService.canAccessUrl(e.url)}));t.length>0&&u.menuItemListAllowed.push({title:e.title,icon:e.icon,iconClass:e.iconClass,dropLinks:t})})),this.menuItemFilteredSearch=this.menuItemListAllowed.slice(0)}),[{key:"ngOnInit",value:function(){this.activeMenuItem(this.router.url.slice(1))}},{key:"ngOnChanges",value:function(){0!=this.menuItemTrigger&&this.setMenuItemActive(this.menuItemTrigger)}},{key:"filterMenuItems",value:function(e){var t=this;this.menuItemFilteredSearch=[],this.menuItemListAllowed.forEach((function(n,i){var o=t.functionsService.arrayFilterWords(n.dropLinks,e,"title");o.length>0&&(t.menuItemFilteredSearch.push({title:n.title,icon:n.icon,iconClass:n.iconClass,dropLinks:o}),t.setMenuItemActive(0)),o.length<=0&&t.menuItemFilteredSearch.splice(i,1)})),e.length<=0&&(this.setMenuItemActive(null),this.menuItemFilteredSearch=this.menuItemListAllowed.slice(0))}},{key:"activeMenuItem",value:function(e){var t=this;this.setMenuItemActive(-1),this.setMenuItemActiveUrl(-1),this.setMenuSubItemActiveUrl(-1),this.menuItemListAllowed.forEach((function(n,i){var o=n.dropLinks.findIndex((function(t){return t.url==e}));-1!=o&&(t.setMenuItemActive(i),t.setMenuItemActiveUrl(i),t.setMenuSubItemActiveUrl(o))})),window.innerWidth<=1030&&this.emitToggleMenu()}},{key:"setMenuItemActive",value:function(e){this.menuItemActive=e}},{key:"setMenuItemActiveUrl",value:function(e){this.menuItemActiveUrl=e}},{key:"setMenuSubItemActiveUrl",value:function(e){this.menuSubItemActiveUrl=e}},{key:"menuSubItemIsActive",value:function(e,t){return this.menuItemActiveUrl==e&&this.menuSubItemActiveUrl==t}},{key:"emitToggleMenu",value:function(){this.menuToggle.emit()}},{key:"currentWidth",value:function(){return window.innerWidth}},{key:"toggleClass",value:function(e){this.setMenuItemActive(this.menuItemActive==e&&0==this.retractedMenu?null:e)}},{key:"logout",value:function(){this.databaseService.logout()}}])}()).\u0275fac=function(e){return new(e||EH)($r(wp),$r(yM),$r(tT),$r(zP),$r(WO),$r(JO),$r(iT),$r(YP))},EH.\u0275cmp=Ot({type:EH,selectors:[["io-menu"]],inputs:{companyTradingName:"companyTradingName",userName:"userName",userId:"userId",retractedMenu:"retractedMenu",menuItemTrigger:"menuItemTrigger"},outputs:{menuToggle:"menuToggle"},features:[dl],decls:16,vars:10,consts:[[1,"ioMenu",3,"ngClass"],[1,"expandButton","clickPlace",3,"click"],[1,"expandIcon"],["size","3x",1,"iconItem","iconSizeF","cl-blue",3,"icon"],[1,"ioMenuRetractBox"],[1,"logoBox","clickPlace",3,"routerLink"],["class","logo","src","assets/img/logo-azul-200.png","alt","iopoint","title","iopoint",4,"ngIf"],["class","symbol","src","assets/img/io-icon.png","alt","iopoint","title","iopoint",4,"ngIf"],[1,"mrgB2"],[1,"ioMenuList"],[3,"onKeyPress",4,"ngIf"],["class","ioMenuPopupBox",4,"ngFor","ngForOf"],["src","assets/img/logo-azul-200.png","alt","iopoint","title","iopoint",1,"logo"],["src","assets/img/io-icon.png","alt","iopoint","title","iopoint",1,"symbol"],[3,"onKeyPress"],[1,"ioMenuPopupBox"],[1,"ioMenuRetractBox",3,"ngClass"],[1,"ioMenuItem","clickPlace",3,"click"],[1,"ioMenuIconBox"],["size","2x",3,"icon"],[1,"ioMenuText"],[1,"sizeB",3,"title"],[1,"ioMenuIconDrop"],[1,"iconItem","cl-gray-gray","iconSizeE",3,"icon"],[1,"ioMenuDrop"],[3,"routerLink","class","title","click",4,"ngFor","ngForOf"],["class","ioMenuPopup bg-white round2",4,"ngIf"],[3,"routerLink","title","click"],[1,"ioMenuPopup","bg-white","round2"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"span",1),ls("click",(function(){return t.emitToggleMenu()})),es(2,"span",2),ns(3,"fa-icon",3),ts(),es(4,"span",2),ns(5,"fa-icon",3),ts(),es(6,"span",2),ns(7,"fa-icon",3),ts(),ts(),es(8,"div",4),es(9,"a",5),Jr(10,CH,1,0,"img",6),Jr(11,wH,1,0,"img",7),ts(),ts(),ns(12,"div",8),es(13,"div",9),Jr(14,xH,1,0,"io-search-line",10),Jr(15,OH,13,10,"div",11),ts(),ts()),2&e&&(Zr("ngClass",t.retractedMenu?"retracted":""),Bo(3),Zr("icon",t.iconSolidService.faCaretLeft),Bo(2),Zr("icon",t.iconSolidService.faCaretRight),Bo(2),Zr("icon",t.iconSolidService.faTimes),Bo(2),Zr("routerLink",mc(9,BH)),Bo(1),Zr("ngIf",!t.retractedMenu),Bo(1),Zr("ngIf",t.retractedMenu),Bo(3),Zr("ngIf",!t.retractedMenu),Bo(1),Zr("ngForOf",t.menuItemFilteredSearch))},directives:[ih,FD,_M,sh,ah,oE],styles:['.ioMenu[_ngcontent-%COMP%]{position:relative;height:100%;padding:20px 20px 0}.ioMenu[_ngcontent-%COMP%], .ioMenu[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{transition:all .2s ease}.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]{position:absolute;display:flex;top:0;right:-30px;width:45px;height:30px;padding:0;text-align:center}.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]{width:30px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--background-color);border-radius:50px}.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(2), .ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(3){width:0}.ioMenu[_ngcontent-%COMP%]   .filterCloseMob[_ngcontent-%COMP%]{display:none}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]{max-width:240px;overflow:hidden;min-height:50px;margin:0 auto}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .logoBox[_ngcontent-%COMP%]{display:block;width:150px;overflow:hidden;height:50px;margin:0 auto}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .logoBox[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{width:150px;max-width:300px}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:flex-start;width:200px;height:50px;margin:0 auto;z-index:1}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{transition:all .4s ease}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuIconBox[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:44px;width:44px;min-width:44px;padding:5px;border-radius:50%}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuIconBox[_ngcontent-%COMP%]   fa-icon.iconItem[_ngcontent-%COMP%]{color:var(--primary-color)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuText[_ngcontent-%COMP%]{margin:0 0 0 5px}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuText[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuIconDrop[_ngcontent-%COMP%]{position:absolute;top:50%;left:185px;height:14px;transform:translateY(-50%)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]{width:200px;max-height:0;padding:0 0 0 50px;transition:max-height .15s ease}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;min-height:20px;max-height:50px;padding:5px 0 2px;border-bottom:1px solid var(--cl-gray);margin:0}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{font-weight:700;color:var(--primary-color-dark-20);border-color:var(--primary-color-dark-20)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{font-weight:700;border-color:var(--primary-color)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .iconCenter[_ngcontent-%COMP%]{margin-right:-5px}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox.active[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuIconBox[_ngcontent-%COMP%]{background-color:var(--cl-green-light)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox.active[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuIconBox[_ngcontent-%COMP%]   fa-icon.iconItem[_ngcontent-%COMP%]{color:var(--secondary-color)}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox.active[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]   .ioMenuText[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--cl-green-light);font-weight:700}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox.active[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]{max-height:310px;transition:max-height .3s ease}.ioMenu.retracted[_ngcontent-%COMP%]{padding:20px 0 0}.ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:first-child{width:0}.ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(2){width:30px}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]{max-width:48px}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .logoBox[_ngcontent-%COMP%]{width:35px}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .logoBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:150px}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .ioMenuItem[_ngcontent-%COMP%]{width:50px;margin:0 auto}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]{position:relative}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]{max-height:0}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]   .ioMenuPopup[_ngcontent-%COMP%]{position:absolute;top:0;left:100%;display:none;width:200px;height:auto;padding:15px 0 15px 20px}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]   .ioMenuPopup[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;min-height:20px;max-height:40px;padding:5px 0}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]   .ioMenuPopup[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:var(--primary-color);text-decoration:underline}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]   .ioMenuPopup[_ngcontent-%COMP%]:before{top:12px;right:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-right-color:var(--secondary-color);border-width:8px}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]:hover   .ioMenuIconBox[_ngcontent-%COMP%]{background-color:var(--primary-color)}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]:hover   .ioMenuIconBox[_ngcontent-%COMP%]   fa-icon.iconItem[_ngcontent-%COMP%]{color:var(--secondary-color)}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]:hover   .ioMenuPopup[_ngcontent-%COMP%]{display:block;border:1px solid var(--cl-gray-light)}.ioMenu.retracted[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]:hover   .ioMenuPopup[_ngcontent-%COMP%]:before{border-right-color:var(--cl-gray-light)}@media (max-width:1380px) and (min-width:1301px){.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]{right:-40px}.ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]{right:-20px}}@media (max-width:1300px){.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]{right:-60px}}@media (max-width:1030px){.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]{right:10px}.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:first-child, .ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(2){width:0}.ioMenu[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(3){width:30px}.ioMenu[_ngcontent-%COMP%]   .ioMenuRetractBox[_ngcontent-%COMP%]   .logoBox[_ngcontent-%COMP%]{margin-left:0}.ioMenu[_ngcontent-%COMP%]   .ioMenuList[_ngcontent-%COMP%]   .ioMenuPopupBox[_ngcontent-%COMP%]   .ioMenuPopup[_ngcontent-%COMP%]{display:none}.ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]{right:-50px}.ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:first-child{width:30px}.ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(2), .ioMenu.retracted[_ngcontent-%COMP%]   .expandButton[_ngcontent-%COMP%]   .expandIcon[_ngcontent-%COMP%]:nth-child(3){width:0}}']}),EH),RH=((AH=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getCompanyInfo",value:function(e,t){this.databaseService.get("/companyInfo/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHaveInfo",value:function(e,t){this.databaseService.get("/companyInfo/getHaveInfo",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"sendCompanyInfo",value:function(e,t){this.databaseService.post("/companyInfo/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"sendEditInfo",value:function(e,t,n){this.databaseService.put("/companyInfo/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"deleteInfo",value:function(e,t,n){this.databaseService.delete("/companyInfo/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||AH)(ut(tT))},AH.\u0275prov=Se({token:AH,factory:AH.\u0275fac,providedIn:"root"}),AH),jH=((FH=function(){return d((function e(t){c(this,e),this.databaseService=t,this.notificationRead=new Mc}),[{key:"getNotificationRead",value:function(){return this.notificationRead}},{key:"getAbsenceNotRead",value:function(e){this.databaseService.get("/notification/getAbsenceNotRead",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getAbsenceVacationList",value:function(e){this.databaseService.get("/notification/getVacationList",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getDisregardRecusedList",value:function(e){this.databaseService.get("/notification/getDisregardRecusedList",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getDocumentExpiringList",value:function(e){this.databaseService.get("/notification/getDocumentExpiringList",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getNotificationList",value:function(e){var t=this;this.databaseService.get("/notification",[]).subscribe((function(n){t.notificationRead.emit(n.total),e({data:n})}),(function(t){e({error:t})}))}},{key:"getPointOutBarrierList",value:function(e){this.databaseService.get("/notification/getPointOutBarrierList",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getPointOutJourneyList",value:function(e){this.databaseService.get("/notification/getPointOutJourneyList",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getInconsistencyCompTimeList",value:function(e,t){this.databaseService.get("/notification/getInconsistencyCompTimeList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postNotification",value:function(e,t){this.databaseService.post("/notification",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putDisregardRecused",value:function(e,t){var n=this;this.databaseService.put("/notification/putDisregardRecused/"+e,[]).subscribe((function(e){n.notificationRead.emit(e.total),t({data:e})}),(function(e){t({error:e})}))}},{key:"putPointApprovedList",value:function(e,t){var n=this;this.databaseService.put("/notification/putPointApproved/"+e,[]).subscribe((function(e){n.notificationRead.emit(e.total),t({data:e})}),(function(e){t({error:e})}))}},{key:"putPointApprovedListDirect",value:function(e,t){var n=this;this.databaseService.put("/notification/putPointApprovedDirect/"+e,[]).subscribe((function(e){n.notificationRead.emit(e.total),t({data:e})}),(function(e){t({error:e})}))}},{key:"putInconsistencyCompTime",value:function(e,t){var n=this;this.databaseService.put("/notification/putInconsistencyCompTimeRead/"+e,[]).subscribe((function(e){n.notificationRead.emit(e.total),t({data:e})}),(function(e){t({error:e})}))}},{key:"getRecalcList",value:function(e,t){this.databaseService.get("/notification/recalcHistoric/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putPointsApproved",value:function(e,t){this.databaseService.put("/notification/putPointsApproved",{points:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putAbsencesApprove",value:function(e,t,n){this.databaseService.put("/absence/approveAbsences",{action:t,absences:e}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putDisapproveAbsences",value:function(e,t,n){this.databaseService.put("/absence/disapproveAbsences",{action:t,absences:e}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||FH)(ut(tT))},FH.\u0275prov=Se({token:FH,factory:FH.\u0275fac,providedIn:"root"}),FH),zH=((IH=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteUserCompany",value:function(e,t){this.databaseService.delete("/user/userCompany/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUser",value:function(e,t){this.databaseService.get("/user/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserActivity",value:function(e,t){this.databaseService.get("/user/getActivity/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserActivityUpdated",value:function(e,t){this.databaseService.get("/user/getActivityUpdated/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserActivityList",value:function(e,t){this.databaseService.get("/user/getActivity",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserExists",value:function(e,t){this.databaseService.get("/user/checkUserExists",{email:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUserIp",value:function(e){this.databaseService.get("/user/getUserIp",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getUserList",value:function(e){this.databaseService.get("/user",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getSystemData",value:function(e){this.databaseService.get("/user/getSystemData",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postUser",value:function(e,t){this.databaseService.post("/user",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postUserUpdateData",value:function(e,t,n){this.databaseService.post("/user/updateUserData/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putUser",value:function(e,t,n){this.databaseService.put("/user/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putUserReactive",value:function(e,t){this.databaseService.put("/user/"+e+"/active",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||IH)(ut(tT))},IH.\u0275prov=Se({token:IH,factory:IH.\u0275fac,providedIn:"root"}),IH),VH=((DH=function(){return d((function e(t,n){c(this,e),this.databaseService=t,this.storageService=n,this.id=null,this.idEmitter=new Mc,this.name=null,this.nameEmitter=new Mc,this.photoUrl=null,this.permission=null,this.photoUrlEmitter=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"getIdEmitter",value:function(){return this.idEmitter}},{key:"getNameEmitter",value:function(){return this.nameEmitter}},{key:"getPhotoUrlEmitter",value:function(){return this.photoUrlEmitter}},{key:"getId",value:function(){var e;return null!==(e=this.id)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("userId")}},{key:"getName",value:function(){var e;return null!==(e=this.name)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("userName")}},{key:"gePhotoUrl",value:function(){var e;return null!==(e=this.photoUrl)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("userPhoto")}},{key:"getPermissionType",value:function(){var e;return null!==(e=this.permission)&&void 0!==e?e:this.storageService.decodeFromLocalStorage("permissionType")}},{key:"setId",value:function(e){if(null==e||"null"==e)return this.storageService.removeLocalStorage("userId"),void(this.id=null);this.id=e,this.storageService.encodeToLocalStorage("userId",e),this.idEmitter.emit(e)}},{key:"setName",value:function(e){this.name=e,this.storageService.encodeToLocalStorage("userName",e),this.nameEmitter.emit(e)}},{key:"setToken",value:function(e){this.storageService.encodeToLocalStorage("userToken",e)}},{key:"setPhoto",value:function(e){var t=this.databaseService.currentDatabaseUrl()+"/storage/user_"+this.getId()+"/"+e;null==e&&(t="/assets/img/photo-user.png"),this.storageService.encodeToLocalStorage("userUrlAvatar",t),this.photoUrl=t,this.photoUrlEmitter.emit(t)}}])}()).\u0275fac=function(e){return new(e||DH)(ut(tT),ut(YP))},DH.\u0275prov=Se({token:DH,factory:DH.\u0275fac,providedIn:"root"}),DH),HH=((LH=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.companyService=t,this.databaseService=n,this.functionService=i,this.storageService=o,this.userDatabase=a,this.userService=r,this.companyDataEmitter=new Mc,this.getSystemData()}),[{key:"getCompanyDataEmitter",value:function(){return this.companyDataEmitter}},{key:"getSystemData",value:function(){var e=this;navigator.cookieEnabled?null!=this.storageService.decodeFromLocalStorage("userToken")&&this.userDatabase.getSystemData((function(t){t.error||e.loadSystemData(t.data)})):this.databaseService.logout()}},{key:"loadSystemData",value:function(e){var t;1!=e.logout?(this.setCompanyData(e.companyData,null!==(t=e.minDate)&&void 0!==t?t:this.functionService.currentDateEN("","min")),this.setUserData(e.userData),null!=this.storageService.decodeFromLocalStorage("userToken")&&this.companyDataEmitter.emit({companyData:e.companyData,companyConfiguration:e.companyConfiguration,hasNotification:e.hasNotification,hasBill:e.hasBill})):this.databaseService.logout()}},{key:"setCompanyData",value:function(e,t){var n;this.companyService.setId(e.id),this.companyService.setMinDate(t),this.companyService.setTradingName(null!==(n=e.trading_name)&&void 0!==n?n:"")}},{key:"setUserData",value:function(e){this.userService.setName(e.name),this.userService.setPhoto(e.photo)}}])}()).\u0275fac=function(e){return new(e||LH)(ut(tI),ut(tT),ut(zP),ut(YP),ut(zH),ut(VH))},LH.\u0275prov=Se({token:LH,factory:LH.\u0275fac,providedIn:"root"}),LH);function YH(e,t){1&e&&(es(0,"span"),Gs(1,"Carregando..."),ts())}function qH(e,t){if(1&e&&(es(0,"span",11),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," - ")}}function UH(e,t){if(1&e){var n=as();es(0,"li",8),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectCompany(e.id,e.trading_name)})),es(1,"span",9),Jr(2,YH,2,0,"span",6),Jr(3,qH,2,1,"span",10),Gs(4),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.companyList.length>0&&o.companyList[0].loading),Bo(1),Zr("ngIf","31"==o.userId||"4"==o.userId),Bo(1),Ks(" ",i.trading_name," ",i.name?"- "+i.name:""," ")}}function WH(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function JH(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 outra empresa cadastrada."),ts())}function GH(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma empresa encontrada."),ts())}function $H(e,t){if(1&e&&(es(0,"li"),Jr(1,WH,2,0,"p",6),Jr(2,JH,2,0,"p",6),Jr(3,GH,2,0,"p",6),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.companyList.length>0&&n.companyList[0].loading),Bo(1),Zr("ngIf",n.companyList.length>0&&!n.companyList[0].loading&&0==n.companyListFiltered.length&&n.inputText.length>0),Bo(1),Zr("ngIf",0==n.companyList.length)}}var QH,KH=((QH=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.companyService=o,this.databaseService=a,this.functionsService=r,this.permissionService=s,this.storageService=l,this.showModal=!1,this.goHome=!1,this.hideModal=new Mc,this.paginationData=null,this.companyList=[{loading:!0}],this.companyListFiltered=[],this.companyStatus=1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.resetFilter=new Mc,this.inputText="",this.currentPage=1,this.searchFormData=this.formBuilder.group({searchField:new Wm("",[])})}),[{key:"ngOnChanges",value:function(){var e=this;1==this.showModal&&this.companyDatabase.getCompanyList({page:this.currentPage.toString(),status:this.companyStatus},(function(t){var n=e.companyService.getId();t.error||(e.companyList=t.data.companyList.data.length>0?t.data.companyList.data.filter((function(e){return e.id!=n})):[],e.paginationData=t.data.companyList||[])}))}},{key:"setFilterText",value:function(e){this.searchFormData.get("searchField").setValue(e),this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getCompanyList()}},{key:"getCompanyList",value:function(){var e=this;this.companyDatabase.getCompanyList({filterText:this.searchFormData.get("searchField").value,page:this.currentPage.toString(),status:this.companyStatus},(function(t){var n=e.companyService.getId();t.error||(e.companyList=t.data.companyList.data.length>0?t.data.companyList.data.filter((function(e){return e.id!=n})):[],e.paginationData=t.data.companyList||[])}))}},{key:"selectCompany",value:function(e,t){this.companyService.setId(e),this.companyService.setTradingName(t),this.permissionService.loadUserPermission(),this.closeModal()}},{key:"closeModal",value:function(){this.hideModal.emit(),this.companyList=[{loading:!0}],this.companyListFiltered=[],this.resetFilter.emit()}}])}()).\u0275fac=function(e){return new(e||QH)($r(wp),$r(yM),$r(Mz),$r(tI),$r(tT),$r(zP),$r(iT),$r(YP))},QH.\u0275cmp=Ot({type:QH,selectors:[["io-company-modal-swap"]],inputs:{showModal:"showModal",goHome:"goHome"},outputs:{hideModal:"hideModal"},features:[dl],decls:8,vars:12,consts:[[3,"showModal","hideModal"],[3,"moduleName","titleTop","textTop","textTop2","showBtn","btnDataUrl"],[3,"formGroup"],[3,"reset","onKeyPress"],[1,"listBox","modelB"],["class","flex clickPlace",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[1,"flex","clickPlace",3,"click"],[1,"sizeC"],["class","cl-magenta",4,"ngIf"],[1,"cl-magenta"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),ns(1,"io-main-top",1),es(2,"div",2),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(4,"ul",4),Jr(5,UH,5,4,"li",5),Jr(6,$H,4,3,"li",6),ts(),es(7,"io-pagination",7),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("moduleName","company")("titleTop","Empresas")("textTop","Aqui est\xe3o listadas as empresas que voc\xea possui acesso.")("textTop2","Para adicionar uma nova empresa clique no bot\xe3o 'CADASTRAR'.")("showBtn",!t.goHome)("btnDataUrl","company-register"),Bo(1),Zr("formGroup",t.searchFormData),Bo(1),Zr("reset",t.resetFilter),Bo(2),Zr("ngForOf",t.companyList),Bo(1),Zr("ngIf",0==t.companyList.length),Bo(1),Zr("paginationData",t.paginationData))},directives:[CE,eI,Hf,ip,oE,ah,sh,hE],styles:[".topSelebration[_ngcontent-%COMP%]{height:50px}.relativePlace[_ngcontent-%COMP%]   .textAux[_ngcontent-%COMP%]{position:absolute;top:0;left:350px;color:#ccc}input[_ngcontent-%COMP%]{padding-left:10px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:10px;height:auto;box-shadow:none}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover   span[_ngcontent-%COMP%]{color:var(--primary-color)}@media (max-width:450px){.topSelebration[_ngcontent-%COMP%]{display:none}.minHeightBox[_ngcontent-%COMP%]{padding-bottom:20px}}"]}),QH);function ZH(e,t){if(1&e&&(es(0,"div",16),es(1,"p",17),Gs(2,"Horas noturnas reduzidas"),ts(),es(3,"p"),Gs(4),_c(5,"number"),ts(),es(6,"p"),Gs(7),ts(),ts()),2&e){var n=fs(2);Bo(4),Qs("",Cc(5,2,n.nightJourneyDecimal,"1.2-2")," horas decimais"),Bo(3),Qs("",n.nightJourneyTime," horas")}}function XH(e,t){if(1&e&&(es(0,"div",15),es(1,"div",16),es(2,"p",17),Gs(3,"Subtra\xe7\xe3o de horas"),ts(),es(4,"p"),Gs(5),_c(6,"number"),ts(),es(7,"p"),Gs(8),ts(),ts(),Jr(9,ZH,8,5,"div",18),ts()),2&e){var n=fs();Bo(5),Qs("",Cc(6,3,n.workDecimalMinus,"1.2-2")," horas decimais"),Bo(3),Qs("",n.workTimeMinus," horas"),Bo(1),Zr("ngIf",n.nightJourneyDecimal>0)}}var eY,tY=((eY=function(){return d((function e(t,n,i,o){c(this,e),this.iconSolidService=t,this.formBuilder=n,this.functionsService=i,this.validService=o,this.showModal=!1,this.hideModal=new Mc,this.calculatedHours=new Mc,this.workDecimalMinus=0,this.workTimeMinus="",this.nightJourneyDecimal=0,this.nightJourneyTime="",this.hoursWorkedForm=this.formBuilder.group({pointIn:new Wm("",[Jf.pattern("[0-9:.]*")]),pointOut:new Wm("",[Jf.pattern("[0-9:.]*")])})}),[{key:"validationHour",value:function(e){this.hoursWorkedForm.get(e).setValue(this.validService.validHour(this.hoursWorkedForm.get(e).value))}},{key:"calcHours",value:function(){this.workDecimalMinus=0,this.workTimeMinus="",this.nightJourneyTime="",this.nightJourneyDecimal=0,this.validationHour("pointOut");var e=this.hoursWorkedForm.get("pointIn").value,t=this.hoursWorkedForm.get("pointOut").value;if(""==e||""==t)return this.functionsService.openSnackBar("Defina uma hora de entrada e uma de saida no formato HH:mm"),!1;var n=this.convertToDecimal(e),o=this.convertToDecimal(t);if(""!=e&&""!=t){var a=new Date,r=new Date,s=i(e.split(":"),2),l=s[0],c=s[1];a.setHours(l,c,0,0);var u=i(t.split(":"),2),d=u[0],h=u[1];if(r.setHours(d,h,0,0),e>t&&r.setDate(r.getDate()+1),a.getDate()==r.getDate()&&a.getHours()>=5&&r.getHours()<22){var f=(r.getTime()-a.getTime())/36e5,m=this.convertDecimalToHHMM(f);this.workDecimalMinus=f,this.workTimeMinus=m}else if(a.getDate()==r.getDate()&&(a.getHours()<5||r.getHours()>=22)){if(a.getHours()<5&&r.getHours()<22){var p=(r.getTime()-a.getTime())/36e5,g=this.convertDecimalToHHMM(p),v=1.1429*(5-n);this.workDecimalMinus=p,this.workTimeMinus=g,this.nightJourneyTime=this.convertDecimalToHHMM(v),this.nightJourneyDecimal=v}else if(a.getHours()>=5&&r.getHours()>=22){var y=1.1429*(o-22),b=(r.getTime()-a.getTime())/36e5,_=this.convertDecimalToHHMM(b);this.workDecimalMinus=b,this.workTimeMinus=_,this.nightJourneyTime=this.convertDecimalToHHMM(y),this.nightJourneyDecimal=y}else if(a.getHours()<5&&r.getHours()>=22){var k=5-n+1.1429*(24-o),C=(r.getTime()-a.getTime())/36e5,w=this.convertDecimalToHHMM(C);this.workDecimalMinus=C,this.workTimeMinus=w,this.nightJourneyTime=this.convertDecimalToHHMM(k),this.nightJourneyDecimal=k}}else if(r.getDate()>a.getDate())if(a.getHours()<22&&r.getHours()>=5){var x=(r.getTime()-a.getTime())/36e5,M=this.convertDecimalToHHMM(x);this.workDecimalMinus=x,this.workTimeMinus=M,this.nightJourneyTime=this.convertDecimalToHHMM(8.0003),this.nightJourneyDecimal=8.0003}else if(a.getHours()>=22&&r.getHours()<5){var S=1.1429*(24-n+o),P=(r.getTime()-a.getTime())/36e5,T=this.convertDecimalToHHMM(P);this.workDecimalMinus=P,this.workTimeMinus=T,this.nightJourneyTime=this.convertDecimalToHHMM(S),this.nightJourneyDecimal=S}else if(a.getHours()>=22&&r.getHours()>=5){var O=5+1.1429*(o-22),L=(r.getTime()-a.getTime())/36e5,D=this.convertDecimalToHHMM(L);this.workDecimalMinus=L,this.workTimeMinus=D,this.nightJourneyTime=this.convertDecimalToHHMM(O),this.nightJourneyDecimal=O}else if(a.getHours()<22&&r.getHours()<5){var I=1.1429*(2+r.getHours()),F=(r.getTime()-a.getTime())/36e5,A=this.convertDecimalToHHMM(F);this.workDecimalMinus=F,this.workTimeMinus=A,this.nightJourneyTime=this.convertDecimalToHHMM(I),this.nightJourneyDecimal=I}this.calculatedHours.emit({decimalMinus:this.workDecimalMinus,hhmmMinus:this.workTimeMinus,nightJourneyDecimal:this.nightJourneyDecimal,nightJourneyTime:this.nightJourneyTime})}}},{key:"convertDecimalToHHMM",value:function(e){var t=Math.floor(e),n=Math.round(e%1*60),i=t<10&&t>0?"0"+t:t.toString(),o=n<10&&n>=0?"0"+Math.abs(n):Math.abs(n).toString();return n<0&&t>=0?"-".concat(i,":").concat(o):"".concat(i,":").concat(o)}},{key:"convertToDecimal",value:function(e){var t=e.split(":");return 2===t.length?parseInt(t[0],10)+parseInt(t[1],10)/60:1===t.length?parseFloat(e):NaN}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.hoursWorkedForm.get("pointIn").setValue(""),this.hoursWorkedForm.get("pointOut").setValue(""),this.workDecimalMinus=0,this.workTimeMinus="",this.nightJourneyDecimal=0,this.nightJourneyTime=""}}])}()).\u0275fac=function(e){return new(e||eY)($r(JO),$r(wp),$r(zP),$r(TN))},eY.\u0275cmp=Ot({type:eY,selectors:[["io-modal-calculator"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",calculatedHours:"calculatedHours"},decls:20,vars:7,consts:[[3,"showModal","hideModal"],[1,"flexColumn"],[1,"center","mrgB2"],[1,"fontBold","cl-blue","sizeA"],[1,"flex","mrgB2","mrgT2",3,"formGroup","keydown.enter"],[1,"form-group","inputAnimated","sizeC","wdMax33","t"],["onClick","this.select();","mask","00:00","maxlength","5","type","text","id","pointIn",3,"dropSpecialCharacters","formControlName","change"],["for","pointIn",1,"form-label","required"],[1,"form-group","inputAnimated","sizeC","wdMax33"],["onClick","this.select();","mask","00:00","maxlength","5","type","text","id","pointOut",3,"dropSpecialCharacters","formControlName","change"],["for","pointOut",1,"form-label","required"],["class","flex",4,"ngIf"],[1,"flex","mrgs"],[1,"btn","btn-red",3,"click"],[1,"btn","btn-blue-bg",3,"click"],[1,"flex"],[1,"mrgT2","wdMax33"],[1,"fontBold"],["class","mrgT2 wdMax33",4,"ngIf"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Calculadora de Horas"),ts(),ts(),es(5,"div",4),ls("keydown.enter",(function(){return t.calcHours()})),es(6,"div",5),es(7,"input",6),ls("change",(function(){return t.validationHour("pointIn")})),ts(),es(8,"label",7),Gs(9,"Hora de entrada:"),ts(),ts(),es(10,"div",8),es(11,"input",9),ls("change",(function(){return t.validationHour("pointOut")})),ts(),es(12,"label",10),Gs(13,"Hora de sa\xedda:"),ts(),ts(),ts(),Jr(14,XH,10,6,"div",11),es(15,"div",12),es(16,"button",13),ls("click",(function(){return t.closeModal()})),Gs(17,"Fechar"),ts(),es(18,"button",14),ls("click",(function(){return t.calcHours()})),Gs(19,"Calcular"),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(5),Zr("formGroup",t.hoursWorkedForm),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","pointIn"),Bo(4),Zr("dropSpecialCharacters",!1)("formControlName","pointOut"),Bo(3),Zr("ngIf",""!=t.workTimeMinus))},directives:[CE,Hf,ip,If,DE,kp,Vf,vp,sh],pipes:[Mh],styles:[".flexColumn[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.mrgs[_ngcontent-%COMP%]{margin-top:120px}"]}),eY);function nY(e,t){if(1&e&&(es(0,"div",12),es(1,"h2",13),Gs(2,"Novo Gestor"),ts(),ns(3,"div",14),es(4,"span",15),Gs(5,"Digite o e-mail e clique em Continuar."),ts(),ns(6,"div",14),es(7,"div",16),ns(8,"input",17),es(9,"label",18),Gs(10,"E-mail"),ts(),ts(),ts()),2&e){var n=fs();Bo(7),Zr("ngClass",1==n.updateOn?"disabled":""),Bo(1),Zr("formControlName","managerEmail")}}function iY(e,t){1&e&&(es(0,"h2",13),Gs(1,"Editar Gestor"),ts())}function oY(e,t){1&e&&(es(0,"span",15),Gs(1,"Digite os dados do novo gestor e clique em Cadastrar."),ts())}function aY(e,t){if(1&e){var n=as();es(0,"input",40),ls("change",(function(e){return mn(n),fs(2).handleFile(e.target.files[0])})),ts()}}function rY(e,t){1&e&&(es(0,"span",41),Gs(1,"+"),ts())}function sY(e,t){1&e&&(es(0,"div",55),es(1,"span",56),Gs(2,"* Se voc\xea n\xe3o deseja alterar a senha, deixe o campo senha em branco!"),ts(),ts())}function lY(e,t){if(1&e&&(es(0,"option",49),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.trading_name)}}function cY(e,t){if(1&e){var n=as();es(0,"div",57),es(1,"select",58),Jr(2,lY,2,2,"option",50),ts(),es(3,"label",59),Gs(4,"Empresa principal"),ts(),ns(5,"fa-icon",52),es(6,"fa-icon",60),ls("click",(function(){return mn(n),fs(3).showQuestionCard(1)})),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Zr("formControlName","default_company"),Bo(1),Zr("ngForOf",i.companyList),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("icon",i.iconRegularService.faQuestionCircle)}}function uY(e,t){if(1&e&&(es(0,"option",49),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n),Bo(1),$s(n)}}function dY(e,t){if(1&e&&(es(0,"option",49),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n),Bo(1),$s(n)}}function hY(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",27),ns(2,"input",42),es(3,"label",43),Gs(4,"Senha"),ts(),es(5,"fa-icon",44),ls("click",(function(){return mn(n),fs(2).changeType()})),ts(),ts(),Jr(6,sY,3,0,"div",38),Jr(7,cY,7,4,"div",37),es(8,"div",45),es(9,"div",46),es(10,"span",47),Gs(11,"Dia padr\xe3o de filtros:"),ts(),ts(),es(12,"div",27),es(13,"select",48),es(14,"option",49),Gs(15,"Primeiro dia"),ts(),Jr(16,uY,2,2,"option",50),ts(),es(17,"label",51),Gs(18,"Dia in\xedcial"),ts(),ns(19,"fa-icon",52),ts(),es(20,"div",27),es(21,"select",53),es(22,"option",49),Gs(23,"\xdaltimo dia"),ts(),Jr(24,dY,2,2,"option",50),ts(),es(25,"label",54),Gs(26,"Dia Final"),ts(),ns(27,"fa-icon",52),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(2),Zr("formControlName","accessCode")("type",i.accessCodeType?"password":"text"),Bo(3),ys("title","",i.accessCodeType?"Mostrar":"Ocultar"," senha"),Zr("icon",i.accessCodeType?i.iconRegularService.faEye:i.iconRegularService.faEyeSlash),Bo(1),Zr("ngIf",i.updateOn),Bo(1),Zr("ngIf",i.currentUser),Bo(6),Zr("formControlName","interval_begin_day"),Bo(1),Zr("value",null),Bo(2),Zr("ngForOf",i.dayList),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","interval_end_day"),Bo(1),Zr("value",null),Bo(2),Zr("ngForOf",i.dayList),Bo(3),Zr("icon",i.iconSolidService.faCaretDown)}}function fY(e,t){if(1&e&&(es(0,"option",49),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.description)}}function mY(e,t){if(1&e&&(es(0,"div",57),es(1,"select",61),Jr(2,fY,2,2,"option",50),ts(),es(3,"label",62),Gs(4,"Permiss\xe3o"),ts(),ns(5,"fa-icon",52),ts()),2&e){var n=fs(2);Bo(1),Zr("formControlName","role_id"),Bo(1),Zr("ngForOf",n.roleList),Bo(3),Zr("icon",n.iconSolidService.faCaretDown)}}function pY(e,t){1&e&&(es(0,"div",55),es(1,"span",63),Gs(2,"* Gestor encontrado, confirme os dados e clique em Adicionar."),ts(),ts())}function gY(e,t){if(1&e){var n=as();es(0,"div",64),es(1,"label",65),Gs(2,"Relat\xf3rio de inconsist\xeancias no email "),es(3,"input",66),ls("change",(function(){return mn(n),fs(2).receiveEmail()})),ts(),ns(4,"span",67),ts(),ts()}if(2&e){var i=fs(2);Bo(3),Zr("formControlName","inconsistencyReport")("checked",i.receiveEmailOption)}}function vY(e,t){if(1&e){var n=as();es(0,"div",19),Jr(1,iY,2,0,"h2",20),Jr(2,oY,2,0,"span",21),es(3,"div",22),es(4,"div",23),es(5,"img",24),ls("error",(function(){return mn(n),fs().userImgPreviewUrl="/assets/img/photo-user.png"})),ts(),Jr(6,aY,1,0,"input",25),Jr(7,rY,2,0,"span",26),ts(),ts(),es(8,"div",27),ns(9,"input",28),es(10,"label",29),Gs(11,"Nome"),ts(),ts(),es(12,"div",27),ns(13,"input",30),es(14,"label",31),Gs(15,"CPF"),ts(),ts(),es(16,"div",16),ns(17,"input",32),es(18,"label",33),Gs(19,"E-mail"),ts(),ts(),es(20,"div",27),ns(21,"input",34),es(22,"label",35),Gs(23,"Telefone"),ts(),ts(),Jr(24,hY,28,14,"div",36),Jr(25,mY,6,3,"div",37),Jr(26,pY,3,0,"div",38),Jr(27,gY,5,2,"div",39),ts()}if(2&e){var i=fs();Bo(1),Zr("ngIf",i.updateOn),Bo(1),Zr("ngIf",!i.updateOn&&!i.userExists),Bo(3),Zr("src",i.userImgPreviewUrl,mo),Bo(1),Zr("ngIf",i.currentUser&&!i.userExists),Bo(1),Zr("ngIf",i.currentUser&&!i.userExists),Bo(2),Zr("formControlName","managerName"),Bo(4),Zr("formControlName","national_registry"),Bo(3),Zr("ngClass",1==i.updateOn?"disabled":""),Bo(1),Zr("formControlName","managerEmail"),Bo(4),Zr("formControlName","phone")("dropSpecialCharacters",!1),Bo(3),Zr("ngIf",!i.userExists&&(!i.updateOn||i.currentUser)),Bo(1),Zr("ngIf",!i.currentUser),Bo(1),Zr("ngIf",i.userExists),Bo(1),Zr("ngIf",i.companyIdAvailable.includes(i.companyId))}}function yY(e,t){1&e&&(es(0,"p",68),es(1,"span",69),Gs(2,"Empresa principal:"),ts(),Gs(3," Ao selecionar uma empresa, esta ser\xe1 a empresa ativa ao acessar o sistema "),ts())}function bY(e,t){if(1&e){var n=as();es(0,"io-btn",70),ls("btnClick",(function(){return mn(n),fs().verifyEmail()})),ts()}2&e&&Zr("moduleName","user")("action","create")("btnColor","btn-blue-bg")("btnText","Continuar")("btnTitle","Continuar")}function _Y(e,t){if(1&e){var n=as();es(0,"io-btn",70),ls("btnClick",(function(){return mn(n),fs().sendForm()})),ts()}if(2&e){var i=fs();Zr("moduleName","user")("action","create")("btnColor","btn-blue-bg")("btnText",i.userExists?"Adicionar":"Cadastrar")("btnTitle",i.userExists?"Adicionar":"Cadastrar")}}function kY(e,t){if(1&e){var n=as();es(0,"io-btn",71),ls("btnClick",(function(){return mn(n),fs().sendForm()})),ts()}if(2&e){var i=fs();Zr("moduleName","user")("action","create")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("useValidation",!i.currentUser)}}var CY,wY=((CY=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.databaseService=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.userDatabase=u,this.userService=d,this.validService=h,this.showModal=!0,this.userId=null,this.hideModal=new Mc,this.updateList=new Mc,this.companyList=[],this.roleList=[],this.currentUser=!1,this.dayList=[],this.file=null,this.accessCodeType=!0,this.questionCard=!1,this.questionCardType=0,this.step=1,this.updateOn=!1,this.userExists=!1,this.userImgPreviewUrl="/assets/img/photo-user.png",this.userFormFieldState={},this.receiveEmailOption=!1,this.companyIdAvailable=["904","905","3"],this.companyId=this.storageService.decodeFromLocalStorage("companyId").toString(),this.userForm=this.formBuilder.group({accessCode:new Wm("",[Jf.required]),default_company:new Wm("",[Jf.required]),interval_begin_day:new Wm(null,[Jf.required]),interval_end_day:new Wm(null,[Jf.required]),managerEmail:new Wm("",[Jf.required]),phone:new Wm("",[Jf.required]),managerName:new Wm("",[Jf.required]),national_registry:new Wm("",[Jf.required]),role_id:new Wm("",[Jf.required]),inconsistencyReport:new Wm("",[Jf.required])});for(var f=1;f<=28;f++){var m=f.toString().length<2?"0":"";this.dayList.push(m+f.toString())}}),[{key:"ngOnChanges",value:function(){var e=this;if(this.showModal){if(null==this.userId)return this.companyDatabase.getSelectList({listRequired:JSON.stringify(["role"])},(function(t){t.error||(e.roleList=t.data.role||[])})),this.updateOn=!1,this.userForm.reset(),this.userForm.get("managerEmail").enable(),this.userForm.get("national_registry").enable(),void this.userForm.get("role_id").enable();this.step=2,this.updateOn=!0,this.userId==this.storageService.decodeFromLocalStorage("userId")?(this.companyDatabase.getSelectList({listRequired:JSON.stringify(["company"])},(function(t){t.error||(e.companyList=t.data.company||[])})),this.currentUser=!0):(this.companyDatabase.getSelectList({listRequired:JSON.stringify(["role"])},(function(t){t.error||(e.roleList=t.data.role||[])})),this.userForm.get("managerName").disable(),this.userForm.get("phone").disable(),this.userForm.get("interval_begin_day").disable(),this.userForm.get("interval_end_day").disable(),"adm"!==this.userService.getPermissionType()&&this.userForm.get("national_registry").disable(),this.userForm.get("role_id").enable(),this.userForm.get("managerEmail").disable()),this.loadUserdata()}}},{key:"loadUserdata",value:function(){var e=this;this.userDatabase.getUser(this.userId,(function(t){if(!t.error&&(e.userForm.get("default_company").setValue(t.data.user.default_company),e.userForm.get("interval_begin_day").setValue(t.data.user.interval_begin_day),e.userForm.get("interval_end_day").setValue(t.data.user.interval_end_day),e.userForm.get("managerEmail").setValue(t.data.user.email),e.userForm.get("managerName").setValue(t.data.user.name),e.userForm.get("phone").setValue(t.data.user.phone),e.userForm.get("national_registry").setValue(t.data.user.national_registry),e.userForm.get("role_id").setValue(t.data.user.role_id),e.userForm.get("inconsistencyReport").setValue(t.data.user.inconsistency_report_email),null!=t.data.user.photo)){var n=e.databaseService.currentDatabaseUrl();e.userImgPreviewUrl=n+"/storage/user_"+e.userId+"/"+t.photo}}))}},{key:"verifyEmail",value:function(){var e=this;this.validService.validEmail(this.userForm.get("managerEmail").value)?this.userDatabase.getUserExists(this.userForm.controls.managerEmail.value,(function(t){t.error||(null!=t.data.user&&(e.userExists=!0,e.userId=t.data.user.id,e.userForm.get("managerName").setValue(t.data.user.name),e.userForm.get("managerEmail").setValue(t.data.user.email),e.userForm.get("managerName").disable()),e.userForm.get("managerEmail").disable(),e.step++)})):this.functionsService.openSnackBar("invalidEmail")}},{key:"handleFile",value:function(e){this.file=e,this.previewImg()}},{key:"previewImg",value:function(){var e=this,t=new FileReader;t.onload=function(t){return e.userImgPreviewUrl=t.target.result},t.readAsDataURL(this.file)}},{key:"validForm",value:function(){if(!this.updateOn&&!this.userForm.get("managerName").valid)return this.functionsService.openSnackBar("Informe um nome para os gestor."),!1;var e=this.userForm.get("national_registry").value;return null===e||!this.updateOn&&!this.validService.validCPF(e)||e.length<11?(this.functionsService.openSnackBar("invalidCpf"),!1):this.updateOn||this.userForm.get("accessCode").valid&&0!=this.userForm.get("accessCode").value.length?this.currentUser&&this.userForm.get("accessCode").valid&&this.userForm.get("accessCode").value.length>0&&this.userForm.get("accessCode").value.length<6?(this.functionsService.openSnackBar("A senha deve ter no m\xednimo 6 caracteres."),!1):!!(this.currentUser||this.userForm.get("role_id").valid&&""!=this.userForm.get("role_id").value)||(this.functionsService.openSnackBar("Selecione a permiss\xe3o do gestor"),!1):(this.functionsService.openSnackBar("Informe uma senha!"),!1)}},{key:"receiveEmail",value:function(){this.receiveEmailOption=!this.receiveEmailOption,this.userForm.get("inconsistencyReport").setValue(this.receiveEmailOption)}},{key:"sendForm",value:function(){var e;if(this.userExists)this.postUserExists();else if(this.validForm()){var t=new FormData;t.append("avatar",this.file),t.append("default_company",this.userForm.get("default_company").value),t.append("managerEmail",this.userForm.get("managerEmail").value),t.append("interval_begin_day",this.userForm.get("interval_begin_day").value),t.append("interval_end_day",this.userForm.get("interval_end_day").value),t.append("managerName",this.userForm.get("managerName").value),t.append("phone",this.userForm.get("phone").value),t.append("national_registry",this.userForm.get("national_registry").value),t.append("accessCode",null!==(e=this.userForm.get("accessCode").value)&&void 0!==e?e:""),t.append("inconsistencyReport",this.userForm.get("inconsistencyReport").value),this.updateOn?(this.currentUser||t.append("role_id",this.userForm.get("role_id").value),this.putUserForm(t)):(t.append("role_id",this.userForm.get("role_id").value),this.postUserForm(t))}}},{key:"postUserExists",value:function(){var e=this,t=this.userId;this.userDatabase.postUser({userExists:1,userId:t},(function(n){n.error||e.emitUpdate(t)}))}},{key:"postUserForm",value:function(e){var t=this;this.userDatabase.postUser(e,(function(e){e.error||t.emitUpdate(e.data.userData.id)}))}},{key:"putUserForm",value:function(e){var t=this,n=this.userId;this.userDatabase.postUserUpdateData(n,e,(function(e){e.error||(n==t.userService.getId()&&(t.userService.setName(t.userForm.get("managerName").value),t.file&&t.userService.setPhoto(e.data.photo)),t.emitUpdate(n))}))}},{key:"showQuestionCard",value:function(e){this.questionCardType=e,this.questionCard=!0}},{key:"hideQuestionCard",value:function(){var e=this;this.questionCard=!1,setTimeout((function(){!e.questionCard&&(e.questionCardType=0)}),400)}},{key:"emitUpdate",value:function(e){var t={id:e,email:this.userForm.get("managerEmail").value,managerName:this.userForm.get("managerName").value,status:1};this.updateList.emit(t),this.closeModal()}},{key:"changeType",value:function(){this.accessCodeType=!this.accessCodeType}},{key:"closeModal",value:function(){var e=this;this.hideModal.emit(!1),this.userExists&&(this.userId=null),setTimeout((function(){e.step=1,e.currentUser=!1,e.updateOn=!1,e.userExists=!1}),100),this.userForm.reset(),this.userImgPreviewUrl="/assets/img/photo-user.png",this.userForm.get("managerEmail").enable(),this.userForm.get("interval_begin_day").enable(),this.userForm.get("interval_end_day").enable(),this.userForm.get("managerName").enable(),this.userForm.get("phone").enable(),this.userForm.get("accessCode").setValue(""),this.userForm.get("role_id").disable()}}])}()).\u0275fac=function(e){return new(e||CY)($r(wp),$r(yM),$r(Mz),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r(zH),$r(VH),$r(TN))},CY.\u0275cmp=Ot({type:CY,selectors:[["io-user-modal-form"]],inputs:{showModal:"showModal",userId:"userId"},outputs:{hideModal:"hideModal",updateList:"updateList"},features:[dl],decls:14,vars:24,consts:[[3,"showModal","hideModal"],[1,"relativePlace",3,"formGroup"],["class","minHeightBox modalUser mrgB2",4,"ngIf"],["class","inputBox modalUser",4,"ngIf"],[1,"questionCardBox","filterBlack"],["class","sizeC mrgB2",4,"ngIf"],[1,"flex","center","pdgT1","pdgB1","mrgT2"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"],[1,"flex","modalUser"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick",4,"ngIf"],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick",4,"ngIf"],[1,"minHeightBox","modalUser","mrgB2"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[1,"spacer"],[1,"flex","start","sizeC"],[1,"form-group","inputAnimated",3,"ngClass"],["autocomplete","off","id","managerEmailValidation","placeholder","","type","text","required","",3,"formControlName"],["for","managerEmailValidation",1,"form-label","required"],[1,"inputBox","modalUser"],["class","sizeA cl-blue fontUp mrgB2 fontBold",4,"ngIf"],["class","flex start sizeC",4,"ngIf"],[1,"flex","center"],[1,"uploadImgBox"],["alt","collaboratorImg",3,"src","error"],["accept","image/*","type","file",3,"change",4,"ngIf"],["class","detailHover anmtd2",4,"ngIf"],[1,"form-group","inputAnimated"],["autocomplete","disabled--","id","managerName","placeholder","","type","text","required","",3,"formControlName"],["for","managerName",1,"form-label","required"],["autocomplete","off","id","firstCpf","mask","000.000.000-00","maxlength","14","placeholder","","required","","type","text",3,"formControlName"],["for","firstCpf",1,"form-label","required"],["autocomplete","off","id","managerEmail","placeholder","","type","text","required","",3,"formControlName"],["for","managerEmail",1,"form-label","required"],["autocomplete","off","id","phone","mask","(00) 00000-0000","maxlength","15","type","text",3,"formControlName","dropSpecialCharacters"],["for","phone",1,"form-label"],[4,"ngIf"],["class","form-group inputAnimated mrgB2",4,"ngIf"],["class","flex pdgB1",4,"ngIf"],["class","item",4,"ngIf"],["accept","image/*","type","file",3,"change"],[1,"detailHover","anmtd2"],["autocomplete","off","id","accessCode","placeholder","","required","",3,"formControlName","type"],["for","accessCode",1,"form-label","required"],["size","3x",1,"iconItem","iconSizeG","clickPlace","iconPasswordField","cl-gray-dark",3,"icon","title","click"],[1,"flexPad","dateSelect"],[1,""],[1,"sizeC","fontBold"],["id","interval_begin_day","required","",1,"scrollbarEnable",3,"formControlName"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["for","interval_begin_day",1,"form-label"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["id","interval_end_day","required","",1,"scrollbarEnable",3,"formControlName"],["for","interval_end_day",1,"form-label"],[1,"flex","pdgB1"],[1,"sizeE"],[1,"form-group","inputAnimated","mrgB2"],["id","default_company","required","",3,"formControlName"],["for","default_company",1,"form-label"],["size","3x","title","Mais informa\xe7\xf5es",1,"questionItem","iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],["id","role_id","required","",3,"formControlName"],["for","role_id",1,"form-label"],[1,"sizeC","pdgT2"],[1,"item"],[1,"item","radioBox","sizeC","mrgR2"],["type","checkbox",1,"radioBoxInput",3,"formControlName","checked","change"],[1,"checkmark"],[1,"sizeC","mrgB2"],[1,"fontBold"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),Jr(2,nY,11,2,"div",2),Jr(3,vY,28,15,"div",3),es(4,"div",4),es(5,"div"),Jr(6,yY,4,0,"p",5),es(7,"div",6),es(8,"io-btn",7),ls("btnClick",(function(){return t.hideQuestionCard()})),ts(),ts(),ts(),ts(),es(9,"div",8),es(10,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),Jr(11,bY,1,5,"io-btn",10),Jr(12,_Y,1,5,"io-btn",10),Jr(13,kY,1,6,"io-btn",11),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.userForm),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(2),Xs("fadeEffect ",t.questionCard?"active":"",""),Bo(1),Zr("ngIf",1==t.questionCardType),Bo(2),Zr("moduleName","user")("action","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1),Bo(2),Zr("moduleName","user")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step&&!t.updateOn),Bo(1),Zr("ngIf",2==t.step&&t.updateOn))},directives:[CE,Hf,ip,sh,jD,ih,If,bp,Vf,vp,DE,kp,FD,vm,ym,xm,ah,Of],styles:[".spacer[_ngcontent-%COMP%]{height:50px}.questionItem[_ngcontent-%COMP%]{position:absolute;left:-35px;top:10px}.questionCardBox[_ngcontent-%COMP%]{position:relative}.questionCardBox[_ngcontent-%COMP%]   .fadeEffect[_ngcontent-%COMP%]{padding:20px;width:300px;left:50%;transform:translate(-50%,-190px)}.questionCardBox[_ngcontent-%COMP%]   .fadeEffect[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:justify}.questionCardBox[_ngcontent-%COMP%]   .fadeEffect.active[_ngcontent-%COMP%]{transform:translate(-50%,-250px)}.dateSelect[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:100%}@media (min-width:600px){.dateSelect[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{margin-left:20px}}@media (max-width:500px){.questionItem[_ngcontent-%COMP%]{left:-29px}}"]}),CY);function xY(e,t){1&e&&(es(0,"span"),gs(1),ts())}var MY,SY=["*"],PY=((MY=function(){return d((function e(t){c(this,e),this.permissionService=t,this.moduleId=null,this.allowed=!1}),[{key:"ngOnInit",value:function(){this.allowed=this.permissionService.canAccess(this.moduleName,this.action,this.moduleId)}}])}()).\u0275fac=function(e){return new(e||MY)($r(iT))},MY.\u0275cmp=Ot({type:MY,selectors:[["io-permission"]],inputs:{moduleName:"moduleName",action:"action",moduleId:"moduleId"},ngContentSelectors:SY,decls:1,vars:1,consts:[[4,"ngIf"]],template:function(e,t){1&e&&(ps(),Jr(0,xY,2,0,"span",0)),2&e&&Zr("ngIf",t.allowed)},directives:[sh],styles:[""]}),X_([fL()],MY.prototype,"moduleName",void 0),X_([fL()],MY.prototype,"action",void 0),MY),TY=["modalFilter"];function OY(e,t){if(1&e){var n=as();es(0,"span",15),ls("click",(function(){return mn(n),fs().closeModal()})),es(1,"span",16),Gs(2,"Fechar"),ts(),ns(3,"fa-icon",17),ts()}if(2&e){var i=fs();Bo(3),Zr("icon",i.iconSolidService.faTimes)}}function LY(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function DY(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function IY(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.general)}function FY(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function AY(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function EY(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function BY(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,AY,1,5,"io-icon",32),Jr(6,EY,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.general==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.general==i.textValidation)}}function NY(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.general)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function RY(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function jY(e,t){if(1&e&&(es(0,"span",34),Jr(1,NY,1,4,"io-icon",35),Jr(2,RY,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function zY(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function VY(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function HY(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.point_rule)}function YY(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function qY(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function UY(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function WY(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,qY,1,5,"io-icon",32),Jr(6,UY,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.point_rule==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.point_rule==i.textValidation)}}function JY(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.point_rule)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function GY(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function $Y(e,t){if(1&e&&(es(0,"span",34),Jr(1,JY,1,4,"io-icon",35),Jr(2,GY,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function QY(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function KY(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function ZY(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.journey)}function XY(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function eq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function tq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function nq(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,eq,1,5,"io-icon",32),Jr(6,tq,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.journey==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.journey==i.textValidation)}}function iq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.journey)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function oq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function aq(e,t){if(1&e&&(es(0,"span",34),Jr(1,iq,1,4,"io-icon",35),Jr(2,oq,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function rq(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function sq(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function lq(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.bt_ot)}function cq(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function uq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function dq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function hq(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,uq,1,5,"io-icon",32),Jr(6,dq,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.bt_ot==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.bt_ot==i.textValidation)}}function fq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.bt_ot)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function mq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function pq(e,t){if(1&e&&(es(0,"span",34),Jr(1,fq,1,4,"io-icon",35),Jr(2,mq,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function gq(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function vq(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function yq(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.hours)}function bq(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function _q(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function kq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function Cq(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,_q,1,5,"io-icon",32),Jr(6,kq,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.hours==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.hours==i.textValidation)}}function wq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.hours)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function xq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function Mq(e,t){if(1&e&&(es(0,"span",34),Jr(1,wq,1,4,"io-icon",35),Jr(2,xq,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function Sq(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function Pq(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function Tq(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.collaborator_configuration)}function Oq(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function Lq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function Dq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function Iq(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,Lq,1,5,"io-icon",32),Jr(6,Dq,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.collaborator_configuration==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.collaborator_configuration==i.textValidation)}}function Fq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.collaborator_configuration)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function Aq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function Eq(e,t){if(1&e&&(es(0,"span",34),Jr(1,Fq,1,4,"io-icon",35),Jr(2,Aq,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function Bq(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs().$implicit;Xs("",4==n.updated_by?"cl-magenta":"cl-green-light"," item sizeC"),Bo(1),Qs("",4==n.updated_by?"DEV":"SUP"," :")}}function Nq(e,t){if(1&e&&(es(0,"span",24),Gs(1),_c(2,"date"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.updated_at,"dd/MM/yyyy"))}}function Rq(e,t){1&e&&ns(0,"span",25),2&e&&Zr("innerText",fs().$implicit.cs)}function jq(e,t){1&e&&(es(0,"span",26),Gs(1,"Observa\xe7\xe3o em edi\xe7\xe3o"),ts())}function zq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){return mn(n),fs(3).cancelEdit()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","reprove")("iconTitle","Cancelar edi\xe7\xe3o da observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-red")}function Vq(e,t){if(1&e){var n=as();es(0,"io-icon",33),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm()})),ts()}2&e&&Zr("moduleName","companyInfo")("action","approve")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")("iconColor","cl-green")}function Hq(e,t){if(1&e&&(es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",30),ts(),ts(),es(4,"div",31),Jr(5,zq,1,5,"io-icon",32),Jr(6,Vq,1,5,"io-icon",32),ts(),ts()),2&e){var n=fs().$implicit,i=fs();Bo(3),Zr("formControlName","description"),Bo(2),Zr("ngIf",1==i.editInfo&&n.cs==i.textValidation),Bo(1),Zr("ngIf",1==i.editInfo&&n.cs==i.textValidation)}}function Yq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().editCompanyInfo(e.cs)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","update")("iconTitle","Editar observa\xe7\xe3o")("iconClassList","mrgL1")}function qq(e,t){if(1&e){var n=as();es(0,"io-icon",36),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.saveIdCompanyInfo(e.id),t.showModalConfirm(!0)})),ts()}2&e&&Zr("moduleName","companyInfo")("action","delete")("iconTitle","Excluir observa\xe7\xe3o")("iconClassList","mrgL1")}function Uq(e,t){if(1&e&&(es(0,"span",34),Jr(1,Yq,1,4,"io-icon",35),Jr(2,qq,1,4,"io-icon",35),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",0==n.editInfo),Bo(1),Zr("ngIf",0==n.editInfo)}}function Wq(e,t){if(1&e&&(es(0,"li",18),Jr(1,LY,2,4,"span",19),Jr(2,DY,3,4,"span",20),Jr(3,IY,1,1,"span",21),Jr(4,FY,2,0,"span",22),Jr(5,BY,7,3,"div",13),Jr(6,jY,3,2,"span",23),Jr(7,zY,2,4,"span",19),Jr(8,VY,3,4,"span",20),Jr(9,HY,1,1,"span",21),Jr(10,YY,2,0,"span",22),Jr(11,WY,7,3,"div",13),Jr(12,$Y,3,2,"span",23),Jr(13,QY,2,4,"span",19),Jr(14,KY,3,4,"span",20),Jr(15,ZY,1,1,"span",21),Jr(16,XY,2,0,"span",22),Jr(17,nq,7,3,"div",13),Jr(18,aq,3,2,"span",23),Jr(19,rq,2,4,"span",19),Jr(20,sq,3,4,"span",20),Jr(21,lq,1,1,"span",21),Jr(22,cq,2,0,"span",22),Jr(23,hq,7,3,"div",13),Jr(24,pq,3,2,"span",23),Jr(25,gq,2,4,"span",19),Jr(26,vq,3,4,"span",20),Jr(27,yq,1,1,"span",21),Jr(28,bq,2,0,"span",22),Jr(29,Cq,7,3,"div",13),Jr(30,Mq,3,2,"span",23),Jr(31,Sq,2,4,"span",19),Jr(32,Pq,3,4,"span",20),Jr(33,Tq,1,1,"span",21),Jr(34,Oq,2,0,"span",22),Jr(35,Iq,7,3,"div",13),Jr(36,Eq,3,2,"span",23),Jr(37,Bq,2,4,"span",19),Jr(38,Nq,3,4,"span",20),Jr(39,Rq,1,1,"span",21),Jr(40,jq,2,0,"span",22),Jr(41,Hq,7,3,"div",13),Jr(42,Uq,3,2,"span",23),ts()),2&e){var n=t.$implicit,i=fs();Bo(1),Zr("ngIf",1==i.tabSelected),Bo(1),Zr("ngIf",1==i.tabSelected),Bo(1),Zr("ngIf",1==i.tabSelected&&n.general!=i.textValidation),Bo(1),Zr("ngIf",1==i.tabSelected&&n.general==i.textValidation),Bo(1),Zr("ngIf",1==i.tabSelected&&1==i.editInfo&&n.general==i.textValidation),Bo(1),Zr("ngIf",1==i.tabSelected&&i.userId==n.updated_by),Bo(1),Zr("ngIf",2==i.tabSelected),Bo(1),Zr("ngIf",2==i.tabSelected),Bo(1),Zr("ngIf",2==i.tabSelected&&n.point_rule!=i.textValidation),Bo(1),Zr("ngIf",2==i.tabSelected&&n.point_rule==i.textValidation),Bo(1),Zr("ngIf",2==i.tabSelected&&1==i.editInfo&&n.point_rule==i.textValidation),Bo(1),Zr("ngIf",2==i.tabSelected&&i.userId==n.updated_by),Bo(1),Zr("ngIf",3==i.tabSelected),Bo(1),Zr("ngIf",3==i.tabSelected),Bo(1),Zr("ngIf",3==i.tabSelected&&n.journey!=i.textValidation),Bo(1),Zr("ngIf",3==i.tabSelected&&n.journey==i.textValidation),Bo(1),Zr("ngIf",3==i.tabSelected&&1==i.editInfo&&n.journey==i.textValidation),Bo(1),Zr("ngIf",3==i.tabSelected&&i.userId==n.updated_by),Bo(1),Zr("ngIf",4==i.tabSelected),Bo(1),Zr("ngIf",4==i.tabSelected),Bo(1),Zr("ngIf",4==i.tabSelected&&n.bt_ot!=i.textValidation),Bo(1),Zr("ngIf",4==i.tabSelected&&n.bt_ot==i.textValidation),Bo(1),Zr("ngIf",4==i.tabSelected&&1==i.editInfo&&n.bt_ot==i.textValidation),Bo(1),Zr("ngIf",4==i.tabSelected&&i.userId==n.updated_by),Bo(1),Zr("ngIf",5==i.tabSelected),Bo(1),Zr("ngIf",5==i.tabSelected),Bo(1),Zr("ngIf",5==i.tabSelected&&n.hours!=i.textValidation),Bo(1),Zr("ngIf",5==i.tabSelected&&n.hours==i.textValidation),Bo(1),Zr("ngIf",5==i.tabSelected&&1==i.editInfo&&n.hours==i.textValidation),Bo(1),Zr("ngIf",5==i.tabSelected&&i.userId==n.updated_by),Bo(1),Zr("ngIf",6==i.tabSelected),Bo(1),Zr("ngIf",6==i.tabSelected),Bo(1),Zr("ngIf",6==i.tabSelected&&n.collaborator_configuration!=i.textValidation),Bo(1),Zr("ngIf",6==i.tabSelected&&n.collaborator_configuration==i.textValidation),Bo(1),Zr("ngIf",6==i.tabSelected&&1==i.editInfo&&n.collaborator_configuration==i.textValidation),Bo(1),Zr("ngIf",6==i.tabSelected&&i.userId==n.updated_by),Bo(1),Zr("ngIf",7==i.tabSelected),Bo(1),Zr("ngIf",7==i.tabSelected),Bo(1),Zr("ngIf",7==i.tabSelected&&n.cs!=i.textValidation),Bo(1),Zr("ngIf",7==i.tabSelected&&n.cs==i.textValidation),Bo(1),Zr("ngIf",7==i.tabSelected&&1==i.editInfo&&n.cs==i.textValidation),Bo(1),Zr("ngIf",7==i.tabSelected&&i.userId==n.updated_by)}}function Jq(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Gq(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 observa\xe7\xf5es."),ts())}function $q(e,t){if(1&e&&(es(0,"li"),Jr(1,Jq,2,0,"p",12),Jr(2,Gq,2,0,"p",12),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.companyInfoList.length>0&&n.companyInfoList[0].loading),Bo(1),Zr("ngIf",0==n.companyInfoList.length)}}function Qq(e,t){if(1&e){var n=as();es(0,"div",27),es(1,"div",28),es(2,"div",29),ns(3,"textarea",37),ts(),ts(),es(4,"fa-icon",38),ls("click",(function(){return mn(n),fs().showModalConfirm()})),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("formControlName","description"),Bo(1),Zr("icon",i.iconSolidService.faPlusCircle)}}function Kq(e,t){if(1&e){var n=as();es(0,"io-modal-confirm",39),ls("hideModal",(function(){return mn(n),fs().hideModalConfirm()}))("confirmClick",(function(){mn(n);var e=fs();return 0==e.editInfo?e.sendNewInfo():e.sendEditInfo()})),ts()}if(2&e){var i=fs();Zr("title",0==i.editInfo?"Deseja adicionar a observa\xe7\xe3o?":"Deseja atualizar a observa\xe7\xe3o?")("btnTextConfirm",0==i.editInfo?"Adicionar":"Editar")("showModal",i.modalConfirm)}}function Zq(e,t){if(1&e){var n=as();es(0,"io-modal-confirm",39),ls("hideModal",(function(){return mn(n),fs().hideModalConfirm()}))("confirmClick",(function(){return mn(n),fs().deleteInfo()})),ts()}if(2&e){var i=fs();Zr("title","Deseja excluir a observa\xe7\xe3o?")("btnTextConfirm","Excluir")("showModal",i.modalConfirm)}}var Xq,eU=["*"],tU=((Xq=function(){return d((function e(t,n,i,o,a,r){var s=this;c(this,e),this.renderer=t,this.companyInfoDatabase=n,this.formBuilder=i,this.functionsService=o,this.iconSolidService=a,this.userService=r,this.showModal=!0,this.smallSize=!1,this.hideModal=new Mc,this.typeInfo="general",this.infoId="",this.userId=this.userService.getId(),this.textValidation="",this.tabSelected=1,this.modalConfirm=!1,this.deleteConfirm=!1,this.editInfo=!1,this.companyInfoList=[{loading:!0}],this.companyInfoForm=this.formBuilder.group({description:new Wm("",[Jf.required])}),this.renderer.listen("window","click",(function(e){e.target==s.modalFilter.nativeElement&&s.closeModal()})),1==this.showModal&&(this.companyInfoForm.controls.description.setValue(""),this.getCompanyInfo())}),[{key:"getCompanyInfo",value:function(){var e=this;this.editInfo=!1,this.companyInfoDatabase.getCompanyInfo({type:this.typeInfo},(function(t){t.error||(e.companyInfoList=t.data.companyInfo)}))}},{key:"showModalConfirm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.modalConfirm=!0,this.deleteConfirm=e}},{key:"hideModalConfirm",value:function(){this.modalConfirm=!1,this.deleteConfirm=!1}},{key:"selectTab",value:function(e){switch(this.tabSelected=e,this.textValidation="",this.companyInfoForm.controls.description.setValue(""),e){case 1:this.typeInfo="general",this.companyInfoList=[],this.getCompanyInfo();break;case 2:this.typeInfo="point_rule",this.companyInfoList=[],this.getCompanyInfo();break;case 3:this.typeInfo="journey",this.companyInfoList=[],this.getCompanyInfo();break;case 4:this.typeInfo="bt_ot",this.companyInfoList=[],this.getCompanyInfo();break;case 5:this.typeInfo="hours",this.companyInfoList=[],this.getCompanyInfo();break;case 6:this.typeInfo="collaborator_configuration",this.companyInfoList=[],this.getCompanyInfo();break;case 7:this.typeInfo="cs",this.companyInfoList=[],this.getCompanyInfo()}}},{key:"cancelEdit",value:function(){this.editInfo=!1,this.textValidation="",this.companyInfoForm.reset()}},{key:"editCompanyInfo",value:function(e){this.companyInfoForm.controls.description.setValue(e),this.textValidation="",this.textValidation=e,this.editInfo=!0}},{key:"sendNewInfo",value:function(){var e=this,t=this.companyInfoForm.get("description").value;if(""==t)return this.hideModalConfirm(),this.functionsService.openSnackBar("A observa\xe7\xe3o n\xe3o pode ser vazia","error");this.companyInfoDatabase.sendCompanyInfo({type:this.typeInfo,description:t},(function(t){t.error||(e.getCompanyInfo(),e.hideModalConfirm(),e.companyInfoForm.reset()),e.companyInfoForm.controls.description.setValue("")}))}},{key:"saveIdCompanyInfo",value:function(e){this.infoId=e}},{key:"sendEditInfo",value:function(){var e=this,t=this.companyInfoForm.get("description").value;this.companyInfoDatabase.sendEditInfo(this.infoId,{type:this.typeInfo,userId:this.userId,description:t},(function(t){t.error||(e.getCompanyInfo(),e.hideModalConfirm(),e.editInfo=!1,e.textValidation="",e.companyInfoForm.reset())}))}},{key:"deleteInfo",value:function(){var e=this;this.companyInfoDatabase.deleteInfo(this.infoId,{},(function(t){t.error||(e.getCompanyInfo(),e.hideModalConfirm(),e.editInfo=!1,e.infoId="",e.deleteConfirm=!1)}))}},{key:"closeModal",value:function(){this.editInfo=!1,this.companyInfoForm.controls.description.setValue(""),this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||Xq)($r(Ol),$r(RH),$r(wp),$r(zP),$r(JO),$r(VH))},Xq.\u0275cmp=Ot({type:Xq,selectors:[["io-modal-company-info"]],viewQuery:function(e,t){var n;1&e&&Rc(TY,!0),2&e&&Bc(n=Yc())&&(t.modalFilter=n.first)},inputs:{showModal:"showModal",smallSize:"smallSize"},outputs:{hideModal:"hideModal"},ngContentSelectors:eU,decls:31,vars:15,consts:[[1,"filterBlack","modalFilter","collaboratorBox","flexDesk",3,"ngClass"],["modalFilter",""],[1,"modalBoxInfo","round2","bg-white",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],["class","btnCloseModal flex",3,"click",4,"ngIf"],[1,"block","mrgB2"],[1,"card","border-gray-light","bg-white","round2"],[1,"tabSelectBox","round5"],[1,"tabSelect","sizeB","clickPlace",3,"ngClass","click"],[1,"listBoxSlideMob"],[1,"listBoxInfo"],["class","flex colorLight listAlignInfo",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex inputText",4,"ngIf"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick",4,"ngIf"],[1,"btnCloseModal","flex",3,"click"],[1,"sizeC","mrgR10"],["size","2x","title","Fechar",1,"cl-gray-dark","iconItem","iconSizeG","clickPlace",3,"icon"],[1,"flex","colorLight","listAlignInfo"],[3,"class",4,"ngIf"],["class","item sizeC",4,"ngIf"],["class","item sizeC",3,"innerText",4,"ngIf"],["class","item sizeB center",4,"ngIf"],["class","item right",4,"ngIf"],[1,"item","sizeC"],[1,"item","sizeC",3,"innerText"],[1,"item","sizeB","center"],[1,"flex","inputText"],[1,"flexDesk","round2"],[1,"form-group","wdFull","inputAnimated"],["required","",1,"sizeC","round2",3,"formControlName"],[1,"block"],[3,"moduleName","action","iconTitle","iconClassList","iconColor","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconColor","iconClick"],[1,"item","right"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],["placeholder","Descreva a observa\xe7\xe3o","required","",1,"sizeC","round2",3,"formControlName"],["size","3x","title","Adicionar",1,"iconItem","iconSizeF","cl-blue","iconSelectField","clickPlace",3,"icon","click"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"]],template:function(e,t){1&e&&(ps(),es(0,"div",0,1),es(2,"div",2),es(3,"h2",3),Gs(4,"Regras da empresa"),ts(),Jr(5,OY,4,1,"span",4),gs(6),es(7,"div",5),es(8,"div",6),es(9,"div",7),es(10,"span",8),ls("click",(function(){return t.selectTab(1)})),Gs(11,"Geral"),ts(),es(12,"span",8),ls("click",(function(){return t.selectTab(2)})),Gs(13,"Regra de ponto"),ts(),es(14,"span",8),ls("click",(function(){return t.selectTab(3)})),Gs(15,"Jornada"),ts(),es(16,"span",8),ls("click",(function(){return t.selectTab(4)})),Gs(17,"Banco de horas"),ts(),es(18,"span",8),ls("click",(function(){return t.selectTab(5)})),Gs(19,"Horas"),ts(),es(20,"span",8),ls("click",(function(){return t.selectTab(6)})),Gs(21,"Configura\xe7\xe3o funcion\xe1rio"),ts(),es(22,"span",8),ls("click",(function(){return t.selectTab(7)})),Gs(23,"CS"),ts(),ts(),ts(),es(24,"div",9),es(25,"ul",10),Jr(26,Wq,43,42,"li",11),Jr(27,$q,3,2,"li",12),ts(),ts(),Jr(28,Qq,5,2,"div",13),ts(),ts(),ts(),Jr(29,Kq,1,3,"io-modal-confirm",14),Jr(30,Zq,1,3,"io-modal-confirm",14)),2&e&&(Zr("ngClass",1==t.showModal?"active":""),Bo(2),Zr("formGroup",t.companyInfoForm),Bo(3),Zr("ngIf",!t.smallSize),Bo(5),Zr("ngClass",1==t.tabSelected?"active":""),Bo(2),Zr("ngClass",2==t.tabSelected?"active":""),Bo(2),Zr("ngClass",3==t.tabSelected?"active":""),Bo(2),Zr("ngClass",4==t.tabSelected?"active":""),Bo(2),Zr("ngClass",5==t.tabSelected?"active":""),Bo(2),Zr("ngClass",6==t.tabSelected?"active":""),Bo(2),Zr("ngClass",7==t.tabSelected?"active":""),Bo(4),Zr("ngForOf",t.companyInfoList),Bo(1),Zr("ngIf",0==t.companyInfoList.length),Bo(1),Zr("ngIf",0==t.editInfo),Bo(1),Zr("ngIf",0==t.deleteConfirm),Bo(1),Zr("ngIf",1==t.deleteConfirm))},directives:[ih,Hf,ip,sh,ah,FD,If,bp,Vf,vp,BB,UB],pipes:[xh],styles:[".modalBoxInfo[_ngcontent-%COMP%]{position:relative;padding:50px;max-height:670px;min-height:670px;width:100%;max-width:980px;margin:60px 20px 20px;border-radius:4px}.modalBoxInfo[_ngcontent-%COMP%]   .modalBody[_ngcontent-%COMP%]{min-height:350px}.listBoxInfo[_ngcontent-%COMP%]{list-style:none;max-height:350px;overflow-y:auto;padding:5px 0;margin:10px 0 0;transition:all .4s ease}.listBoxInfo[_ngcontent-%COMP%]::-webkit-scrollbar{display:block;-webkit-transition:all .4s ease;transition:all .4s ease}.listBoxInfo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 5px 10px;padding:10px;min-height:40px;border-radius:4px;background-color:var(--primary-color-light-90);align-items:center;display:flex}.listBoxInfo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--primary-color-light-70)}.listBoxInfo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-bottom:0}.listBoxInfo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span.item[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:hover{color:var(--primary-color-dark-50)!important}.listBoxInfo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span.item.sizeC[_ngcontent-%COMP%]{text-decoration:none;overflow:hidden;word-break:break-word}.listBoxInfo[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:25px}.listAlignInfo[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlignInfo[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:5%}.listAlignInfo[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:10%}.listAlignInfo[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){min-width:75%}.listAlignInfo[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){text-align:right}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .topBlock[_ngcontent-%COMP%]{padding:0 20px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:2px 20px;max-width:100%;background-color:var(--primary-color)}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect[_ngcontent-%COMP%]{padding:10px;color:var(--secondary-color);background-color:var(--primary-color);border-radius:4px;transition:all .1s ease}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect.active[_ngcontent-%COMP%]{background-color:var(--secondary-color);color:var(--primary-color)}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]{min-height:450px;padding:50px 20px 20px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .tabItemBlock[_ngcontent-%COMP%]{width:49%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .tabItemBlock[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .btnBox[_ngcontent-%COMP%]{justify-content:flex-end;padding:0 20px 30px}.borderBottom[_ngcontent-%COMP%]{border-color:#444}.iconViewFutureJourney[_ngcontent-%COMP%]{right:-20px}.ipBtn[_ngcontent-%COMP%]{margin:0;max-width:23px}.colorLight[_ngcontent-%COMP%]{background:#e8f4ff}.magentaLight[_ngcontent-%COMP%]{background:#f0f}textarea[_ngcontent-%COMP%]{width:855px;height:145px}.inputText[_ngcontent-%COMP%]{position:absolute;width:90%;bottom:10px}@media (max-width:912px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect[_ngcontent-%COMP%]{width:-moz-min-content;width:min-content}}@media (max-width:810px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:31%}}@media (max-width:780px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .collaboratorStatusBox[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsTitle[_ngcontent-%COMP%]{text-align:center}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]{min-height:120px;padding:10px 0}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:200px;margin:0 auto 10px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}}@media (max-width:500px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]{padding:2px;background-color:var(--primary-color)}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect[_ngcontent-%COMP%]{padding:5px 3px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]{display:block}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{display:block;margin:0 auto 10px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .btnBox[_ngcontent-%COMP%]{justify-content:center}}@media (max-width:340px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .topBlock[_ngcontent-%COMP%]{padding:0 10px}}"]}),Xq),nU=["menuUser"];function iU(e,t){if(1&e&&(es(0,"span",34),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("C\xf3d: ",n.companyId,"")}}function oU(e,t){if(1&e){var n=as();es(0,"div",35),ls("click",(function(){return mn(n),fs().showModalCompanyInfo()})),ns(1,"fa-icon",13),ts()}if(2&e){var i=fs();Xs("flex center imgBorder mrgL1 mrgR1 pulse pulseInternal clickPlace ",i.getHaveInfoCount>0?"pulseInternalButton":"",""),Bo(1),Zr("icon",i.iconSolidService.faInfo)}}var aU=function(){return["/invoice-control"]};function rU(e,t){if(1&e&&(es(0,"io-permission",36),es(1,"div",37),ns(2,"fa-icon",13),ts(),ts()),2&e){var n=fs();Zr("routerLink",mc(3,aU))("moduleName","invoice"),Bo(2),Zr("icon",n.iconSolidService.faDollarSign)}}var sU=function(){return["/notification"]};function lU(e,t){if(1&e&&(es(0,"div",38),ns(1,"fa-icon",13),ts()),2&e){var n=fs();Zr("routerLink",mc(2,sU)),Bo(1),Zr("icon",n.iconSolidService.faBell)}}var cU=function(){return["/user"]};function uU(e,t){if(1&e&&(es(0,"div",39),ns(1,"fa-icon",23),es(2,"span",24),Gs(3,"Gestores"),ts(),ts()),2&e){var n=fs();Zr("routerLink",mc(2,cU)),Bo(1),Zr("icon",n.iconSolidService.faUserTie)}}function dU(e,t){if(1&e){var n=as();es(0,"io-modal-company-info",31),ls("hideModal",(function(){return mn(n),fs().hideModalCompanyInfo()})),ts()}2&e&&Zr("showModal",fs().modalCompanyInfo)}var hU,fU,mU=function(){return["/support"]},pU=((hU=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h,f,m,p,g){var v=this;c(this,e),this.formBuilder=t,this.renderer=n,this.router=i,this.companyInfoDatabase=o,this.companyDatabase=a,this.companyService=r,this.databaseService=s,this.functionsService=l,this.iconRegularService=u,this.iconSolidService=d,this.notificationDatabase=h,this.permissionService=f,this.storageService=m,this.systemService=p,this.userService=g,this.companyId=this.companyService.getId(),this.companyTradingName=this.companyService.getName(),this.inconsistency=!1,this.modalCalculator=!1,this.modalSwap=!1,this.menuUserActive=!1,this.modalUser=!1,this.modalCompanyInfo=!1,this.hasNotification=!1,this.hasBill=!1,this.status=0,this.getHaveInfoCount=0,this.userId=this.userService.getId(),this.userName=this.userService.getName(),this.userPhotoUrl=this.userService.gePhotoUrl(),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.hasPermissionUser=!1,this.renderer.listen("window","click",(function(e){e.target!=v.menuUser.nativeElement&&(v.menuUserActive=!1)})),this.hasPermissionUser=this.permissionService.canAccess("user","show")}),[{key:"ngOnInit",value:function(){var e=this;this.systemService.getCompanyDataEmitter().subscribe((function(t){e.companyTradingName=t.companyData.trading_name,1!=t.companyData.agree_terms&&e.router.navigate(["/company-contract"]).then((function(){return!1})),0==t.companyConfiguration.final_countdown&&0!=t.companyConfiguration.free_days&&e.router.navigate(["/free-test-expired"]).then((function(){return!1})),e.hasNotification=0!=t.hasNotification,e.hasBill=t.hasBill})),this.companyService.getIdEmitter().subscribe((function(t){null!=t&&""!=t||e.router.navigate(["/company-register"]).then((function(){return!1}))})),this.userService.getIdEmitter().subscribe((function(t){return e.userId=t})),this.userService.getNameEmitter().subscribe((function(t){return e.userName=t})),this.userService.getPhotoUrlEmitter().subscribe((function(t){return e.userPhotoUrl=t})),this.notificationDatabase.getNotificationRead().subscribe((function(t){e.hasNotification=0!=t})),this.companyInfoDatabase.getHaveInfo([],(function(t){t.error||(e.getHaveInfoCount=t.data.getHaveInfoCount)}))}},{key:"resetUrlImg",value:function(){this.userPhotoUrl="/assets/img/photo-user.png"}},{key:"toggleMenuUser",value:function(){this.menuUserActive=!this.menuUserActive}},{key:"showModalCalculator",value:function(){this.modalCalculator=!0}},{key:"hideModalCalculator",value:function(){this.modalCalculator=!1}},{key:"showModalUser",value:function(){this.modalUser=!0}},{key:"hideModalUser",value:function(){this.modalUser=!1}},{key:"showModalCompanyInfo",value:function(){this.modalCompanyInfo=!0}},{key:"hideModalCompanyInfo",value:function(){this.modalCompanyInfo=!1}},{key:"showModalSwap",value:function(){this.modalSwap=!0}},{key:"hideModalSwap",value:function(){this.modalSwap=!1}},{key:"showPortoSeguroLogo",value:function(){return new Date("2022-08-01 00:00:00")>new Date}},{key:"logout",value:function(){this.databaseService.logout()}}])}()).\u0275fac=function(e){return new(e||hU)($r(wp),$r(Ol),$r(yM),$r(RH),$r(Mz),$r(tI),$r(tT),$r(zP),$r(WO),$r(JO),$r(jH),$r(iT),$r(YP),$r(HH),$r(VH))},hU.\u0275cmp=Ot({type:hU,selectors:[["io-header"]],viewQuery:function(e,t){var n;1&e&&Rc(nU,!0),2&e&&Bc(n=Yc())&&(t.menuUser=n.first)},decls:47,vars:24,consts:[[1,"header"],[1,"container"],[1,"flex","headerBox"],[1,"headerLeft"],["title","Trocar Empresa",1,"companySwapBox","flex","start","clickPlace",3,"click"],[1,"sizeA","fontBold","fontCap"],["class","sizeC internal",4,"ngIf"],["size","3x",1,"iconItem","iconSizeF","cl-blue","mrgL1",3,"icon"],[1,"headerRight","flex","end"],["title","Informa\xe7\xf5es da empresa",3,"class","click",4,"ngIf"],["action","''",3,"routerLink","moduleName",4,"ngIf"],["class","flex center imgBorder mrgL1 mrgR1 pulse pulseBlue clickPlace",3,"routerLink",4,"ngIf"],[1,"flex","center","imgBorder","mrgL1","mrgR1","pulseTest","clickPlace",3,"click"],[1,"iconItem","iconDropSign","iconSizeG","cl-white",3,"icon"],[1,"menuUserDrop",3,"ngClass"],[1,"menuUser","flex","center","clickPlace",3,"click"],["menuUser",""],[1,"userNameBox","mrgR1","leftText"],[1,"sizeC","fontBold"],[1,"sizeC"],[3,"src","alt","title","error"],[1,"menuUserBox"],["title","Editar perfil",1,"menuUserItem","clickPlace",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue",3,"icon"],[1,"sizeC","mrgL1"],["class","menuUserItem clickPlace","title","Gestores",3,"routerLink",4,"ngIf"],["title","Trocar Empresa",1,"menuUserItem","clickPlace",3,"click"],["title","Suporte",1,"menuUserItem","clickPlace",3,"routerLink"],[1,"detail","bg-gray","mrgB1","mrgT1"],["title","Sair",1,"menuUserItem","clickPlace",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-red",3,"icon"],[3,"showModal","hideModal"],[3,"showModal","userId","hideModal"],[3,"showModal","hideModal",4,"ngIf"],[1,"sizeC","internal"],["title","Informa\xe7\xf5es da empresa",3,"click"],["action","''",3,"routerLink","moduleName"],["title","Fatura em aberto",1,"flex","center","imgBorder","mrgL1","mrgR1","pulse","pulseGreen","clickPlace"],[1,"flex","center","imgBorder","mrgL1","mrgR1","pulse","pulseBlue","clickPlace",3,"routerLink"],["title","Gestores",1,"menuUserItem","clickPlace",3,"routerLink"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),ls("click",(function(){return t.showModalSwap()})),es(5,"h2",5),Gs(6),Jr(7,iU,2,1,"span",6),ts(),ns(8,"fa-icon",7),ts(),ts(),es(9,"div",8),Jr(10,oU,2,4,"div",9),Jr(11,rU,3,4,"io-permission",10),Jr(12,lU,2,3,"div",11),es(13,"div",12),ls("click",(function(){return t.showModalCalculator()})),ns(14,"fa-icon",13),ts(),es(15,"div",14),es(16,"div",15,16),ls("click",(function(){return t.toggleMenuUser()})),es(18,"div",17),es(19,"span",18),Gs(20),ts(),es(21,"span",19),Gs(22,"Gestor"),ts(),ts(),es(23,"img",20),ls("error",(function(){return t.resetUrlImg()})),ts(),ts(),es(24,"div",21),es(25,"div",22),ls("click",(function(){return t.showModalUser()})),ns(26,"fa-icon",23),es(27,"span",24),Gs(28,"Perfil"),ts(),ts(),Jr(29,uU,4,3,"div",25),es(30,"div",26),ls("click",(function(){return t.showModalSwap()})),ns(31,"fa-icon",23),es(32,"span",24),Gs(33,"Trocar empresa"),ts(),ts(),es(34,"div",27),ns(35,"fa-icon",23),es(36,"span",24),Gs(37,"Ajuda"),ts(),ts(),ns(38,"div",28),es(39,"div",29),ls("click",(function(){return t.logout()})),ns(40,"fa-icon",30),es(41,"span",24),Gs(42,"Sair"),ts(),ts(),ts(),ts(),ts(),ts(),ts(),ts(),es(43,"io-company-modal-swap",31),ls("hideModal",(function(){return t.hideModalSwap()})),ts(),es(44,"io-modal-calculator",31),ls("hideModal",(function(){return t.hideModalCalculator()})),ts(),es(45,"io-user-modal-form",32),ls("hideModal",(function(){return t.hideModalUser()})),ts(),Jr(46,dU,1,1,"io-modal-company-info",33)),2&e&&(Bo(6),Qs("",t.companyTradingName," "),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(1),Zr("icon",t.iconSolidService.faRetweet),Bo(2),Zr("ngIf",t.isSupport||t.isDev),Bo(1),Zr("ngIf",t.hasBill),Bo(1),Zr("ngIf",t.hasNotification),Bo(2),Zr("icon",t.iconSolidService.faCalculator),Bo(1),Zr("ngClass",t.menuUserActive?"active":""),Bo(5),$s(t.userName),Bo(3),vs("alt",t.userName),vs("title",t.userName),Zr("src",t.userPhotoUrl,mo),Bo(3),Zr("icon",t.iconSolidService.faUserCircle),Bo(3),Zr("ngIf",t.hasPermissionUser),Bo(2),Zr("icon",t.iconRegularService.faBuilding),Bo(3),Zr("routerLink",mc(23,mU)),Bo(1),Zr("icon",t.iconSolidService.faHeadset),Bo(5),Zr("icon",t.iconSolidService.faSignOutAlt),Bo(3),Zr("showModal",t.modalSwap),Bo(1),Zr("showModal",t.modalCalculator),Bo(1),Zr("showModal",t.modalUser)("userId",t.userId),Bo(1),Zr("ngIf",t.isSupport||t.isDev))},directives:[sh,FD,ih,bM,KH,tY,wY,PY,tU],styles:['.header[_ngcontent-%COMP%]{padding:16px 0 0;margin:0 0 10px}.header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none;text-transform:capitalize}.header[_ngcontent-%COMP%]   .pulseTest[_ngcontent-%COMP%]{height:28px;width:28px;border-radius:50%;display:grid;place-items:center;font-size:50px;background-color:var(--primary-color)}.header[_ngcontent-%COMP%]   .logoPartner[_ngcontent-%COMP%]{max-width:100px;margin-right:10px}.header[_ngcontent-%COMP%]   .headerBox[_ngcontent-%COMP%]{padding-left:40px;margin-left:-40px}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]{position:relative;z-index:99;border-radius:4px;border:1px solid var(--cl-gray-light)}.header[_ngcontent-%COMP%]   .menuUserDrop.active[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.07)}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:30px}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUser[_ngcontent-%COMP%]{padding:10px;z-index:1}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUser[_ngcontent-%COMP%]   .userNameBox[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUser[_ngcontent-%COMP%]   .userNameBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;height:17px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUser[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUser[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{z-index:-1}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUserBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;z-index:-1;position:absolute;top:0;right:0;width:200px;background-color:var(--secondary-color);padding:10px;border-radius:4px;transition:all .4s ease;border:1px solid var(--cl-gray-light)}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUserBox[_ngcontent-%COMP%]:after{bottom:100%;left:78%;content:" ";height:0;width:0;position:absolute;pointer-events:none;border:6px solid transparent;border-bottom:6px solid var(--cl-gray)}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUserBox[_ngcontent-%COMP%]   .menuUserItem[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;padding:5px;margin:3px 0;border-radius:5px}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUserBox[_ngcontent-%COMP%]   .menuUserItem[_ngcontent-%COMP%]:hover{background-color:var(--background-color)}.header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .menuUserBox[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:1px}.header[_ngcontent-%COMP%]   .menuUserDrop.active[_ngcontent-%COMP%]   .menuUserBox[_ngcontent-%COMP%]{z-index:1;opacity:1;visibility:visible;transform:translateY(55px)}.pulseInternal[_ngcontent-%COMP%]{box-shadow:0 0 0 rgba(255,0,255,.7)}.pulseInternal[_ngcontent-%COMP%], .pulseInternalButton[_ngcontent-%COMP%], .pulseInternalButton[_ngcontent-%COMP%]:after, .pulseInternalButton[_ngcontent-%COMP%]:before{background-color:#f0f}@media (max-width:1300px){.header[_ngcontent-%COMP%]   .headerBox[_ngcontent-%COMP%]{margin-left:0}}@media (max-width:600px){.logoPartner[_ngcontent-%COMP%]{display:none}}@media (max-width:450px){.companySwapBox[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]   .menuUserDrop[_ngcontent-%COMP%]   .userNameBox[_ngcontent-%COMP%]{display:none}}']}),hU),gU=function(e,t){return{pulse:e,pulseBlue:t}},vU=((fU=function(){return d((function e(t,n,i){c(this,e),this.databaseService=t,this.functionsService=n,this.iconRegularService=i,this.currentYear=this.functionsService.currentDateEN("2020-01-01","min").slice(0,4),this.systemVersion=this.databaseService.currentSystemVersion(),this.changeLogDate=""}),[{key:"ngOnInit",value:function(){this.getLastChangeLog()}},{key:"getLastChangeLog",value:function(){var e=this;this.databaseService.getLastChangeLogDate((function(t){e.changeLogDate=t.data}))}}])}()).\u0275fac=function(e){return new(e||fU)($r(tT),$r(zP),$r(WO))},fU.\u0275cmp=Ot({type:fU,selectors:[["io-footer"]],decls:13,vars:7,consts:[[1,"container"],[1,"flex"],[1,"sizeC","flex"],[1,"fontBold"],["href","/changelog"],["size","3x","title","\xdaltima atualiza\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1","pulse","pulseBlue",3,"icon","ngClass"]],template:function(e,t){1&e&&(es(0,"footer"),es(1,"div",0),es(2,"div",1),es(3,"h3",2),Gs(4),es(5,"span",3),Gs(6,"iopoint"),ts(),Gs(7),es(8,"span"),es(9,"a",4),Gs(10,"\xdaltimas atualiza\xe7\xf5es:"),ts(),ts(),es(11,"a",4),ns(12,"fa-icon",5),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(4),Qs(" \xa9 Copyright ",t.currentYear," -\xa0"),Bo(3),Qs("\xa0- Todos os direitos reservados - ",t.systemVersion," -\xa0"),Bo(5),Zr("icon",t.iconRegularService.faListAlt)("ngClass",gc(4,gU,t.changeLogDate,t.changeLogDate)))},directives:[FD,ih],styles:['footer[_ngcontent-%COMP%]{padding:12px 0}.pulseContainer[_ngcontent-%COMP%]{display:flex;vertical-align:middle}.pulseBlue[_ngcontent-%COMP%]{background-color:var(--cl-white)}.pulseBlue[_ngcontent-%COMP%]:after, .pulseBlue[_ngcontent-%COMP%]:before{background-color:var(--primary-color)}.pulse[_ngcontent-%COMP%]{height:22px;width:22px;border-radius:50%;display:grid;place-items:center;font-size:30px;color:#fff}.pulse[_ngcontent-%COMP%]:after, .pulse[_ngcontent-%COMP%]:before{content:"";position:absolute;height:19px;width:19px;border-radius:50%;z-index:-1;opacity:.7}']}),fU);function yU(e,t){if(1&e){var n=as();es(0,"span",5),ls("click",(function(){return mn(n),fs().toggleMenu()})),ts()}}var bU,_U,kU=((_U=function(){return d((function e(t,n,i,o,a){var r=this;c(this,e),this.cookieService=t,this.companyService=n,this.databaseService=i,this.loadingScreenService=o,this.permissionService=a,this.retractedMenu=!0,this.menuItemTrigger=0,this.modalSystemUpdate=!1,window.addEventListener("storage",(function(e){"companyId"==e.key&&e.oldValue!=e.newValue&&r.permissionService.loadUserPermission()}))}),[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.databaseService.getLoadingOn().subscribe((function(t){return e.setLoadingOn(t)})),window.innerWidth<=1030?this.retractedMenu=!1:this.cookieService.get("retractedMenu")&&(this.retractedMenu="true"==this.cookieService.get("retractedMenu"))}},{key:"setLoadingOn",value:function(e){var t=this;e?this.loadingScreenService.show():(clearTimeout(this.time),this.time=setTimeout((function(){t.loadingScreenService.hide()}),200))}},{key:"ngOnDestroy",value:function(){}},{key:"expandMenu",value:function(){this.retractedMenu||this.toggleMenu()}},{key:"toggleMenu",value:function(){this.retractedMenu=!this.retractedMenu,this.cookieService.set("retractedMenu",this.retractedMenu?"true":"false",90)}},{key:"hideModalSystemUpdate",value:function(){this.modalSystemUpdate=!1}}])}()).\u0275fac=function(e){return new(e||_U)($r(kH),$r(tI),$r(tT),$r(dL),$r(iT))},_U.\u0275cmp=Ot({type:_U,selectors:[["io-content"]],decls:8,vars:8,consts:[[1,"main-fluid"],[1,"sidebar",3,"menuItemTrigger","retractedMenu","menuToggle"],["class","mobToggleCover",3,"click",4,"ngIf"],[1,"main-content","fullHeight"],["bdColor","rgba(0,0,0,0.7)","size","medium","color","#23a3ff","type","timer",3,"fullScreen"],[1,"mobToggleCover",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"io-menu",1),ls("menuToggle",(function(){return t.toggleMenu()})),ts(),Jr(2,yU,1,0,"span",2),es(3,"div",3),ns(4,"io-header"),ns(5,"router-outlet"),ns(6,"io-footer"),ts(),ts(),ns(7,"ngx-spinner",4)),2&e&&(Bo(1),Es(t.retractedMenu?"retracted":""),Zr("menuItemTrigger",t.menuItemTrigger)("retractedMenu",t.retractedMenu),Bo(1),Zr("ngIf",!t.retractedMenu),Bo(4),Es(t.retractedMenu?"retracted":""),Bo(1),Zr("fullScreen",!0))},directives:[NH,sh,pU,PM,vU,lL],styles:[".main-fluid[_ngcontent-%COMP%]{position:relative;display:flex;height:inherit;min-height:100%}.main-fluid[_ngcontent-%COMP%]   io-menu[_ngcontent-%COMP%]{width:100%;max-width:240px;transition:all .2s ease;z-index:9}.main-fluid[_ngcontent-%COMP%]   io-menu.retracted[_ngcontent-%COMP%]{max-width:80px}.main-fluid[_ngcontent-%COMP%]   .main-content[_ngcontent-%COMP%]{width:100%}.main-fluid[_ngcontent-%COMP%]   .fullHeight[_ngcontent-%COMP%]{min-height:100%}.main-fluid[_ngcontent-%COMP%]   io-footer[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;padding-right:90px;padding-left:240px}.main-fluid[_ngcontent-%COMP%]   io-footer.retracted[_ngcontent-%COMP%]{padding-left:90px;transition:all .2s ease}.mobToggleCover[_ngcontent-%COMP%]{display:none}.sidebar[_ngcontent-%COMP%]{background-color:var(--primary-color-light-80)}@media (max-width:1460px){.main-fluid[_ngcontent-%COMP%]   .fullHeight[_ngcontent-%COMP%]{padding:0 0 60px}.main-fluid[_ngcontent-%COMP%]   io-footer[_ngcontent-%COMP%]{padding-right:0}}@media (max-width:1030px){.main-fluid[_ngcontent-%COMP%]   io-menu[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:block;width:240px;max-width:240px;height:auto;min-height:100%;padding:0;background-color:var(--background-color);z-index:200}.main-fluid[_ngcontent-%COMP%]   io-menu.retracted[_ngcontent-%COMP%]{max-width:240px;left:-240px}.main-fluid[_ngcontent-%COMP%]   io-footer[_ngcontent-%COMP%]{padding:0}.main-fluid[_ngcontent-%COMP%]   io-footer.retracted[_ngcontent-%COMP%]{padding-left:0}}@media (max-width:768px){.mobToggleCover[_ngcontent-%COMP%]{position:absolute;left:240px;display:block;width:calc(100% - 240px);height:100%}}@media (max-width:500px){.fullHeight[_ngcontent-%COMP%]{min-height:100%;padding:0 0 100px}}"]}),_U),CU=((bU=function(){return d((function e(t,n){c(this,e),this.databaseService=t,this.loadingScreenService=n,this.expandedMenu=!0,window.addEventListener("storage",(function(e){"userToken"==e.key&&null!=e.newValue&&window.location.reload()}))}),[{key:"ngOnInit",value:function(){var e=this;this.subscription=this.databaseService.getLoadingOn().subscribe((function(t){return e.setLoadingOn(t)}))}},{key:"setLoadingOn",value:function(e){var t=this;e?this.loadingScreenService.show():(clearTimeout(this.time),this.time=setTimeout((function(){t.loadingScreenService.hide()}),200))}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"toggleMenu",value:function(){this.expandedMenu=!this.expandedMenu}}])}()).\u0275fac=function(e){return new(e||bU)($r(tT),$r(dL))},bU.\u0275cmp=Ot({type:bU,selectors:[["io-content-out"]],decls:2,vars:1,consts:[["bdColor","rgba(0,0,0,0.7)","size","medium","color","#23a3ff","type","timer",3,"fullScreen"]],template:function(e,t){1&e&&(ns(0,"router-outlet"),ns(1,"ngx-spinner",0)),2&e&&(Bo(1),Zr("fullScreen",!0))},directives:[PM,lL],styles:[""]}),bU);function wU(e,t){if(1&e&&(es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",16),Gs(4),ts(),ts()),2&e){var n=t.$implicit;Bo(2),Qs("Nome: ",n.collaboratorRegisterErrorName," "),Bo(2),Qs("E-mail: ",n.collaboratorRegisterErrorEmail,"")}}function xU(e,t){if(1&e&&(es(0,"div",10),es(1,"h3",11),Gs(2,"E-mail j\xe1 utilizado:"),ts(),es(3,"ul",12),Jr(4,wU,5,2,"li",13),ts(),ts()),2&e){var n=fs();Bo(4),Zr("ngForOf",n.registerErrorListEmailHasBeenTaken)}}function MU(e,t){if(1&e&&(es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",16),Gs(4),_c(5,"mask"),ts(),ts()),2&e){var n=t.$implicit;Bo(2),Qs("Nome: ",n.collaboratorRegisterErrorName,""),Bo(2),Qs("CPF: ",Cc(5,2,n.collaboratorRegisterErrorNationalRegistry,"000.000.000-00"),"")}}function SU(e,t){if(1&e&&(es(0,"div",17),es(1,"h3",11),Gs(2,"CPF j\xe1 utilizado:"),ts(),es(3,"ul",12),Jr(4,MU,6,5,"li",13),ts(),ts()),2&e){var n=fs();Bo(4),Zr("ngForOf",n.registerErrorListNationalRegisterIsUsed)}}function PU(e,t){if(1&e&&(es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",16),Gs(4),ts(),ts()),2&e){var n=t.$implicit,i=fs(2);Bo(2),Qs("Nome: ",n.collaboratorRegisterErrorName,""),Bo(2),Qs("Dados: ",i.getFieldNameList(n.collaboratorRegisterErrorFieldList),"")}}function TU(e,t){if(1&e&&(es(0,"div",18),es(1,"h3",11),Gs(2,"Dados inv\xe1lidos:"),ts(),es(3,"ul",12),Jr(4,PU,5,2,"li",13),ts(),ts()),2&e){var n=fs();Bo(4),Zr("ngForOf",n.registerErrorListInvalidData)}}var OU,LU=((OU=function(){return d((function e(){c(this,e),this.showModal=!0,this.registerErrorData={},this.hideModal=new Mc,this.registerErrorListEmailHasBeenTaken=[],this.registerErrorListNationalRegisterIsUsed=[],this.registerErrorListInvalidData=[]}),[{key:"ngOnChanges",value:function(){this.showModal&&null!=this.registerErrorData?(this.registerErrorListEmailHasBeenTaken=this.registerErrorData.registerErrorListEmailHasBeenTaken,this.registerErrorListNationalRegisterIsUsed=this.registerErrorData.registerErrorListNationalRegisterIsUsed,this.registerErrorListInvalidData=this.registerErrorData.registerErrorListInvalidData):(this.registerErrorListEmailHasBeenTaken=[],this.registerErrorListNationalRegisterIsUsed=[],this.registerErrorListInvalidData=[])}},{key:"getFieldNameList",value:function(e){var t="",n={begin_date:"Data de in\xedcio de uso",birth_date:"Data de nascimento",collaborator_settings_id:"Configura\xe7\xe3o de funcion\xe1rio",department_id:"Departamento",first_day:"Dia de in\xedcio na escala",email:"E-mail",journey_id:"Escala",name:"Nome",national_registry:"CPF",point_rule_id:"Regra do ponto",unit_id:"Unidade"};return e.forEach((function(e){t=t+"; "+n[e]})),t.slice(2)}},{key:"closeModal",value:function(){this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||OU)},OU.\u0275cmp=Ot({type:OU,selectors:[["io-collaborator-modal-import-error"]],inputs:{showModal:"showModal",registerErrorData:"registerErrorData"},outputs:{hideModal:"hideModal"},features:[dl],decls:12,vars:10,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB1"],[1,"sizeC","mrgB2"],[1,"error-list-box"],["class","email-has-taken borderTop pdgT1 mrgB2",4,"ngIf"],["class","national-register-is-used borderTop pdgT1 mrgB2",4,"ngIf"],["class","invalid-data borderTop pdgT1 mrgB2",4,"ngIf"],[1,"flex","center"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"email-has-taken","borderTop","pdgT1","mrgB2"],[1,"sizeC"],[1,"listBox"],["class","flex start spcDesk",4,"ngFor","ngForOf"],[1,"flex","start","spcDesk"],[1,"item","sizeC"],[1,"item","sizeC","mrgL1"],[1,"national-register-is-used","borderTop","pdgT1","mrgB2"],[1,"invalid-data","borderTop","pdgT1","mrgB2"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Alguns funcion\xe1rios n\xe3o puderam ser importados"),ts(),es(4,"h3",3),Gs(5,"Verifique a lista:"),ts(),es(6,"div",4),Jr(7,xU,5,1,"div",5),Jr(8,SU,5,1,"div",6),Jr(9,TU,5,1,"div",7),ts(),ts(),es(10,"div",8),es(11,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),Zr("ngIf",t.registerErrorListEmailHasBeenTaken.length>0),Bo(1),Zr("ngIf",t.registerErrorListNationalRegisterIsUsed.length>0),Bo(1),Zr("ngIf",t.registerErrorListInvalidData.length>0),Bo(2),Zr("moduleName","collaborator")("action","")("btnColor","")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1))},directives:[CE,sh,jD,ah],pipes:[IE],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}"]}),OU);function DU(e,t){1&e&&(es(0,"h2",13),Gs(1,"Sua empresa chegou ao n\xfamero m\xe1ximo de funcion\xe1rios permitido pelo plano atual!"),ts())}function IU(e,t){1&e&&(es(0,"h2",13),Gs(1,"Sua empresa chegou ao n\xfamero m\xednimo de funcion\xe1rios permitido pelo plano atual!"),ts())}function FU(e,t){1&e&&(es(0,"div",7),Gs(1,"Ao adicionar mais funcion\xe1rios, seu plano ser\xe1 atualizado para: "),ts())}function AU(e,t){if(1&e&&(es(0,"div",8),es(1,"span",9),Gs(2),ts(),Gs(3," no valor de "),es(4,"strong"),Gs(5),ts(),Gs(6,". "),ts()),2&e){var n=fs(2);Bo(2),$s(null==n.plans.next?null:n.plans.next.name),Bo(3),Ks("R$ ",null==n.plans.next?null:n.plans.next.price,"/",(null==n.plans.next?null:n.plans.next.type)||"","")}}function EU(e,t){1&e&&(es(0,"div",7),Gs(1,"Ao demitir o funcion\xe1rio, seu plano ser\xe1 atualizado para: "),ts())}function BU(e,t){if(1&e&&(es(0,"div",8),es(1,"span",9),Gs(2),ts(),Gs(3," no valor de "),es(4,"strong"),Gs(5),ts(),Gs(6,". "),ts()),2&e){var n=fs(2);Bo(2),$s(null==n.plans.previous?null:n.plans.previous.name),Bo(3),Ks("R$ ",(null==n.plans.previous?null:n.plans.previous.price)||"","/",(null==n.plans.previous?null:n.plans.previous.type)||"","")}}function NU(e,t){1&e&&(es(0,"span",14),Gs(1,"\xc9 necess\xe1rio ter permiss\xe3o para prosseguir."),ts())}function RU(e,t){if(1&e&&(es(0,"div",4),Jr(1,DU,2,0,"h2",5),Jr(2,IU,2,0,"h2",5),ns(3,"div",6),es(4,"div",7),Gs(5,"Atualmente o seu plano \xe9:"),ts(),es(6,"div",8),es(7,"span",9),Gs(8),ts(),Gs(9," no valor de "),es(10,"strong"),Gs(11),ts(),Gs(12,". "),ts(),Jr(13,FU,2,0,"div",10),Jr(14,AU,7,3,"div",11),Jr(15,EU,2,0,"div",10),Jr(16,BU,7,3,"div",11),Jr(17,NU,2,0,"span",12),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.up),Bo(1),Zr("ngIf",!n.up),Bo(6),$s(null==n.plans.current?null:n.plans.current.name),Bo(3),Ks("R$ ",n.plans.current.price,"/",(null==n.plans.current?null:n.plans.current.type)||"",""),Bo(2),Zr("ngIf",n.up),Bo(1),Zr("ngIf",n.up),Bo(1),Zr("ngIf",!n.up),Bo(1),Zr("ngIf",!n.up),Bo(1),Zr("ngIf",!n.userHasPermission)}}function jU(e,t){if(1&e){var n=as();es(0,"io-btn",18),ls("btnClick",(function(){return mn(n),fs(2).closeModalAndContinue()})),ts()}2&e&&Zr("moduleName","invoice")("action","update")("btnColor","btn-blue-bg")("btnText","Aceitar")("btnTitle","Aceitar")}function zU(e,t){if(1&e){var n=as();es(0,"div",15),es(1,"io-btn",16),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts(),Jr(2,jU,1,5,"io-btn",17),ts()}if(2&e){var i=fs();Bo(1),Zr("moduleName","invoice")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("ngIf",i.showMsg)}}function VU(e,t){if(1&e){var n=as();es(0,"div",19),es(1,"io-btn",16),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","invoice")("action","")("btnColor","btn-blue")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1))}var HU,YU=((HU=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.functionsService=n,this.permissionService=i,this.showModal=!0,this.showMsg=!0,this.updateOn=!1,this.plans=[],this.up=!1,this.hideModal=new Mc,this.nextModal=new Mc,this.userHasPermission=!0}),[{key:"ngOnChanges",value:function(){this.showModal&&(this.permissionService.canAccess("invoice","show")||(this.userHasPermission=!1))}},{key:"closeModal",value:function(){this.hideModal.emit()}},{key:"closeModalAndContinue",value:function(){this.hideModal.emit(),this.nextModal.emit()}}])}()).\u0275fac=function(e){return new(e||HU)($r(wp),$r(zP),$r(iT))},HU.\u0275cmp=Ot({type:HU,selectors:[["io-invoice-modal-plan-update"]],inputs:{showModal:"showModal",showMsg:"showMsg",updateOn:"updateOn",plans:"plans",up:"up"},outputs:{hideModal:"hideModal",nextModal:"nextModal"},features:[dl],decls:4,vars:4,consts:[[3,"showModal","hideModal"],["class","minHeightBox",4,"ngIf"],["class","flex",4,"ngIf"],["class","flex center",4,"ngIf"],[1,"minHeightBox"],["class","sizeA cl-blue fontBold fontUp pdgB2 mrgB2 center",4,"ngIf"],[1,"pdg2"],[1,"sizeB","mrgB1"],[1,"sizeB","pdgB2","mrgB2"],[1,"fontBold"],["class","sizeB mrgB1",4,"ngIf"],["class","sizeB pdgB2 mrgB2",4,"ngIf"],["class","sizeC fontBold fontUp center cl-red mrgB2",4,"ngIf"],[1,"sizeA","cl-blue","fontBold","fontUp","pdgB2","mrgB2","center"],[1,"sizeC","fontBold","fontUp","center","cl-red","mrgB2"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick",4,"ngIf"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"flex","center"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),Jr(1,RU,18,10,"div",1),Jr(2,zU,3,7,"div",2),Jr(3,VU,2,6,"div",3),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("ngIf",t.showMsg),Bo(1),Zr("ngIf",t.userHasPermission),Bo(1),Zr("ngIf",!t.userHasPermission))},directives:[CE,sh,jD],styles:[".planBox[_ngcontent-%COMP%]{border-bottom:2px solid var(--terceary-color)}.planBox[_ngcontent-%COMP%]   .minimalLicenseInput[_ngcontent-%COMP%]{width:100%;max-width:470px;font-size:25px;border:none;margin:0 0 5px;text-align:center}.planBox[_ngcontent-%COMP%]   .minimalLicense[_ngcontent-%COMP%]{margin:0 10px}.costBox[_ngcontent-%COMP%]{margin-bottom:8px}"]}),HU);function qU(e,t){if(1&e&&(es(0,"h2",25),Gs(1),ts()),2&e){var n=fs(3);Bo(1),Qs("Visualiza\xe7\xe3o de Escala ",n.journeyWeekModel==n.journeyWeekEnum.MondayFriday?"Semanal - Seg a Sex":"Semanal - Seg a S\xe1b","")}}function UU(e,t){if(1&e&&(es(0,"h2",25),Gs(1),ts()),2&e){var n=fs(3);Bo(1),Qs("Visualiza\xe7\xe3o de Escala ",n.journeyEspecialModels[n.journeyEspecialModel-1].title,"")}}function WU(e,t){if(1&e&&(es(0,"span",26),Gs(1," In\xedcio na escala: "),es(2,"span",12),Gs(3),ts(),ts()),2&e){var n=fs(3);Bo(3),Qs(" Dia ",n.firstDayJourney,"")}}function JU(e,t){1&e&&ns(0,"div",30)}function GU(e,t){if(1&e&&(es(0,"div",27),es(1,"h3",28),Gs(2,"Entrada"),ts(),Jr(3,JU,1,0,"div",29),es(4,"h3",28),Gs(5,"Sa\xedda"),ts(),ts()),2&e){var n=fs(3);Bo(3),Zr("ngIf",n.journeyType==n.journeyEnum.Special)}}function $U(e,t){1&e&&(es(0,"span",15),Gs(1,"Horas Noturnas"),ts())}function QU(e,t){1&e&&(es(0,"span",42),Gs(1,"*"),ts())}function KU(e,t){1&e&&(es(0,"span",42),Gs(1,"*"),ts())}function ZU(e,t){if(1&e&&(es(0,"div",39),es(1,"div",40),es(2,"span"),Gs(3),_c(4,"mask"),ts(),Jr(5,QU,2,0,"span",41),ts(),es(6,"div",40),es(7,"span"),Gs(8),_c(9,"mask"),ts(),Jr(10,KU,2,0,"span",41),ts(),ts()),2&e){var n=t.index,i=fs(2),o=i.index,a=i.$implicit,r=fs(3);Bo(3),$s(Cc(4,4,r.days[o].dayTurn[n].in,"00:00")),Bo(2),Zr("ngIf",n>0&&r.journeyOptionPreassigned),Bo(3),$s(Cc(9,7,r.days[o].dayTurn[n].out,"00:00")),Bo(2),Zr("ngIf",n+1<a.dayTurn.length&&r.journeyOptionPreassigned)}}function XU(e,t){if(1&e&&(es(0,"div",32),es(1,"div",17),Jr(2,ZU,11,10,"div",38),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),Zr("ngForOf",n.dayTurn)}}function eW(e,t){1&e&&(es(0,"div",32),es(1,"div",17),es(2,"div",39),es(3,"div",40),es(4,"span",43),Gs(5,"Folga"),ts(),ts(),ts(),ts(),ts())}function tW(e,t){if(1&e&&(es(0,"span",44),Gs(1),_c(2,"mask"),ts()),2&e){var n=fs().$implicit;Bo(1),$s(Cc(2,1,n.dayChangeOfShift,"00:00"))}}function nW(e,t){if(1&e&&(es(0,"span",44),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.dayHours)}}function iW(e,t){1&e&&(es(0,"span",45),Gs(1,"DSR"),ts())}function oW(e,t){if(1&e&&(es(0,"div",32),es(1,"span",46),Gs(2),ts(),ts()),2&e){var n=fs(),i=n.$implicit,o=n.index,a=fs(3);Bo(2),$s(i.dayDsr?"":a.nightTimeArray[o])}}function aW(e,t){if(1&e&&(es(0,"div",39),es(1,"div",40),es(2,"span"),Gs(3),_c(4,"mask"),ts(),ts(),es(5,"div",40),es(6,"span"),Gs(7),_c(8,"mask"),ts(),ts(),ts()),2&e){var n=t.$implicit;Bo(3),$s(Cc(4,2,n.time_in,"00:00")),Bo(4),$s(Cc(8,5,n.time_out,"00:00"))}}function rW(e,t){1&e&&ns(0,"div",32)}function sW(e,t){if(1&e&&(es(0,"div",31),es(1,"div",32),es(2,"span",51),Gs(3),ts(),ts(),es(4,"div",32),es(5,"div",17),Jr(6,aW,9,8,"div",38),ts(),ts(),es(7,"div",32),es(8,"span",44),Gs(9),ts(),ts(),es(10,"div",32),es(11,"span",44),Gs(12),ts(),ts(),Jr(13,rW,1,0,"div",34),ts()),2&e){var n=t.$implicit,i=t.index,o=fs(5);Bo(3),Qs("S\xe1b ",i+1,""),Bo(3),Zr("ngForOf",n.turns),Bo(3),$s(n.dayChangeOfShift),Bo(3),$s(o.getTotalTimeFromTurns(n.turns)),Bo(1),Zr("ngIf",o.nightTimeShow)}}function lW(e,t){if(1&e&&(is(0,47),es(1,"div",48),es(2,"span",49),Gs(3,"S\xe1bado D"),ts(),ts(),Jr(4,sW,14,5,"div",50),os()),2&e){var n=fs(4);Bo(4),Zr("ngForOf",n.journeySaturdayData)}}function cW(e,t){if(1&e&&(is(0),es(1,"div",31),es(2,"div",32),es(3,"span",33),Gs(4),ts(),ts(),Jr(5,XU,3,1,"div",34),Jr(6,eW,6,0,"div",34),es(7,"div",32),Jr(8,tW,3,4,"span",35),ts(),es(9,"div",32),Jr(10,nW,2,1,"span",35),Jr(11,iW,2,0,"span",36),ts(),Jr(12,oW,3,1,"div",34),ts(),Jr(13,lW,5,1,"ng-container",37),os()),2&e){var n=t.$implicit,i=t.index,o=fs(3);Bo(3),Zr("ngClass",n.dayOff?"cl-gray":"cl-blue"),Bo(1),Qs("",o.journeyEspecialModel>1&&o.journeyEspecialModel<5||1==o.journeyType?n.dayName:"Dia "+n.dayNumber," "),Bo(1),Zr("ngIf",!n.dayOff),Bo(1),Zr("ngIf",n.dayOff),Bo(2),Zr("ngIf",!n.dayDsr&&!n.dayOff),Bo(2),Zr("ngIf",!n.dayDsr),Bo(1),Zr("ngIf",n.dayDsr),Bo(1),Zr("ngIf",o.nightTimeShow&&!n.dayOff),Bo(1),Zr("ngIf",5==i&&o.journeySaturdayData.length>0)}}function uW(e,t){1&e&&(es(0,"div",52),es(1,"span",53),Gs(2," Intervalo pr\xe9-assinalado: "),es(3,"span",12),Gs(4," Sim"),ts(),ts(),ts())}function dW(e,t){1&e&&(es(0,"div",52),es(1,"span",53),Gs(2," Escala por exce\xe7\xe3o: "),es(3,"span",12),Gs(4," Sim"),ts(),ts(),ts())}function hW(e,t){if(1&e&&(es(0,"div",54),es(1,"span",53),Gs(2,"Total de horas na semana: "),es(3,"span",12),Gs(4),ts(),ts(),ts()),2&e){var n=fs(3);Zr("ngClass",n.journeyEspecialModel!=n.journeySpecialEnum.Journey24x48&&n.journeyEspecialModel!=n.journeySpecialEnum.Journey24x72?"":"end"),Bo(4),$s(n.totalWeekTime)}}function fW(e,t){if(1&e&&(es(0,"div",55),es(1,"span",53),Gs(2," Total de horas reduzidas: "),es(3,"span",12),Gs(4),ts(),ts(),ts()),2&e){var n=fs(3);Bo(4),$s(n.nightTimeTotal)}}function mW(e,t){if(1&e&&(es(0,"div",55),es(1,"span",53),Gs(2," Total de horas na semana + reduzidas: "),es(3,"span",12),Gs(4),ts(),ts(),ts()),2&e){var n=fs(3);Bo(4),$s(n.totalWeekTimePlusReduced)}}function pW(e,t){if(1&e&&(es(0,"div",7),Jr(1,qU,2,1,"h2",8),Jr(2,UU,2,1,"h2",8),es(3,"p",9),Gs(4),ts(),es(5,"div",10),es(6,"span",11),Gs(7,"Nome da escala: "),es(8,"span",12),Gs(9),ts(),ts(),Jr(10,WU,4,1,"span",13),ts(),es(11,"div",14),es(12,"div"),es(13,"span",15),Gs(14,"Dia da semana"),ts(),es(15,"div",16),es(16,"div",17),Jr(17,GU,6,1,"div",18),ts(),ts(),es(18,"span",15),Gs(19,"Virada de turno"),ts(),es(20,"span",15),Gs(21,"Total de horas"),ts(),Jr(22,$U,2,0,"span",19),ts(),es(23,"div"),Jr(24,cW,14,9,"ng-container",20),ts(),ts(),es(25,"div",21),Jr(26,uW,5,0,"div",22),Jr(27,dW,5,0,"div",22),Jr(28,hW,5,2,"div",23),Jr(29,fW,5,1,"div",24),Jr(30,mW,5,1,"div",24),ts(),ts()),2&e){var n=fs(2);Zr("ngClass",n.journeyType==n.journeyEnum.Weekly?"week":""),Bo(1),Zr("ngIf",1==n.journeyType),Bo(1),Zr("ngIf",2==n.journeyType),Bo(2),$s(n.auxiliaryText),Bo(5),$s(n.description),Bo(1),Zr("ngIf",(n.journeyEspecialModel==n.journeySpecialEnum.Journey5x1||n.journeyEspecialModel>=n.journeySpecialEnum.Journey12x36)&&n.journeyType>n.journeyEnum.Weekly&&null!=n.firstDayJourney&&0==n.screenJourney),Bo(2),Xs("flex listHeader listAlign borderTop ",n.nightTimeShow?"nightTimeOn":"",""),Bo(5),Zr("ngForOf",n.dayTurn),Bo(5),Zr("ngIf",n.nightTimeShow),Bo(1),el("listAlign pdgT1 mrgB2 ",n.nightTimeShow?"nightTimeOn":""," ",n.days.length>7?"listMore":"",""),Bo(1),Zr("ngForOf",n.days),Bo(2),Zr("ngIf",n.journeyOptionPreassigned),Bo(1),Zr("ngIf",n.journeyOptionException),Bo(1),Zr("ngIf",n.journeyType!=n.journeyEnum.Special),Bo(1),Zr("ngIf",n.nightTimeShow),Bo(1),Zr("ngIf",n.nightTimeShow)}}function gW(e,t){if(1&e&&(es(0,"div",65),es(1,"span",15),Gs(2,"Horas por dia"),ts(),es(3,"span",15),Gs(4,"Dias da semana"),ts(),es(5,"span",15),Gs(6,"Virada de turno"),ts(),es(7,"span",15),Gs(8,"Total de horas"),ts(),ts()),2&e){var n=fs(3);Zr("ngClass",n.journeyFlexModel!=n.journeyFlexEnum.Daily?"flexWeekHeader":"flexHourHeader")}}function vW(e,t){1&e&&(es(0,"div",32),es(1,"span",66),Gs(2,"Horas trabalhadas na semana:"),ts(),ts())}function yW(e,t){if(1&e&&(es(0,"div",32),es(1,"span"),Gs(2),_c(3,"mask"),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),$s(Cc(3,1,n.total,"00:00"))}}function bW(e,t){if(1&e&&(es(0,"div",32),es(1,"span"),Gs(2),_c(3,"mask"),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),$s(Cc(3,1,n.time,"00:00"))}}function _W(e,t){if(1&e&&(es(0,"span",68),Gs(1),ts()),2&e){var n=t.$implicit;Zr("ngClass",n.value?"cl-blue":"cl-gray"),Bo(1),$s(n.name)}}function kW(e,t){if(1&e&&(es(0,"div",32),Jr(1,_W,2,2,"span",67),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngForOf",n.day)}}function CW(e,t){if(1&e&&(es(0,"div",32),es(1,"span"),Gs(2),_c(3,"mask"),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),$s(Cc(3,1,n.change_of_shift,"00:00"))}}function wW(e,t){if(1&e&&(es(0,"div",32),es(1,"span",44),Gs(2),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),$s(n.total)}}function xW(e,t){1&e&&(es(0,"div",32),es(1,"span",66),Gs(2,"Virada de turno da escala:"),ts(),ts())}function MW(e,t){if(1&e&&(es(0,"div",32),es(1,"span"),Gs(2),_c(3,"mask"),ts(),ts()),2&e){var n=fs(4);Bo(2),$s(Cc(3,1,n.change_of_shift,"00:00"))}}function SW(e,t){if(1&e&&(es(0,"div",31),Jr(1,vW,3,0,"div",34),Jr(2,yW,4,4,"div",34),Jr(3,bW,4,4,"div",34),Jr(4,kW,2,1,"div",34),Jr(5,CW,4,4,"div",34),Jr(6,wW,3,1,"div",34),Jr(7,xW,3,0,"div",34),Jr(8,MW,4,4,"div",34),ts()),2&e){var n=fs(3);Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Weekly),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Weekly),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Intermittent||n.journeyFlexModel==n.journeyFlexEnum.Free),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Intermittent||n.journeyFlexModel==n.journeyFlexEnum.Free)}}function PW(e,t){1&e&&(es(0,"span",72),Gs(1,"Sem data fixa."),ts())}function TW(e,t){if(1&e&&(es(0,"span",73),Gs(1),ts()),2&e){var n=fs(4);Bo(1),$s(n.arrayWeekDay[n.flexArrayDsrSelected])}}function OW(e,t){if(1&e&&(es(0,"div",69),es(1,"span",53),Gs(2,"Selecione o DSR:"),ts(),Jr(3,PW,2,0,"span",70),Jr(4,TW,2,1,"span",71),ts()),2&e){var n=fs(3);Bo(3),Zr("ngIf",0==n.flexArrayDsrSelect.length),Bo(1),Zr("ngIf",0!=n.flexArrayDsrSelect.length)}}function LW(e,t){if(1&e&&(es(0,"span",53),Gs(1,"Total de horas na semana: "),es(2,"span",12),Gs(3),ts(),ts()),2&e){var n=fs(3);Bo(3),$s(n.totalWeekTime)}}function DW(e,t){if(1&e&&(es(0,"div",56),es(1,"h2",25),Gs(2),ts(),es(3,"p",57),Gs(4,"D\xfavidas? Entre em contato com a contabilidade."),ts(),es(5,"div",58),es(6,"span",53),Gs(7,"Nome da escala: "),es(8,"span",12),Gs(9),ts(),ts(),ts(),es(10,"div",59),Jr(11,gW,9,1,"div",60),es(12,"div",61),Jr(13,SW,9,8,"div",50),ts(),Jr(14,OW,5,2,"div",62),es(15,"div",63),es(16,"div"),Jr(17,LW,4,1,"span",64),ts(),ts(),ts(),ts()),2&e){var n=fs(2);Bo(2),Qs("Visualiza\xe7\xe3o de Escala ",n.journeyFlexModelTitle[n.journeyFlexModel],""),Bo(7),$s(n.description),Bo(2),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngClass",n.journeyFlexModel!=n.journeyFlexEnum.Daily?"flexWeek":"flexHourLine"),Bo(1),Zr("ngForOf",n.flexArray),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(2),Xs("flex ",n.journeyFlexModel<n.journeyFlexEnum.Intermittent?"":"start",""),Bo(1),Zr("ngIf",n.journeyFlexModel<n.journeyFlexEnum.Intermittent)}}function IW(e,t){if(1&e&&(es(0,"div",4),Jr(1,pW,31,21,"div",5),Jr(2,DW,18,10,"div",6),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",3!=n.journeyType),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Flex)}}function FW(e,t){1&e&&(es(0,"div"),es(1,"div",74),es(2,"div",74),es(3,"h2",75),Gs(4,"visualiza\xe7\xe3o de Escala"),ts(),ns(5,"div",76),es(6,"div",77),es(7,"div",78),es(8,"span",79),Gs(9,"Carregando dados da escala."),ts(),ts(),ts(),ts(),ts(),ts())}var AW,EW=function(e){return e[e.Invalid=0]="Invalid",e[e.Weekly=1]="Weekly",e[e.Special=2]="Special",e[e.Flex=3]="Flex",e}({}),BW=function(e){return e[e.Invalid=0]="Invalid",e[e.MondayFriday=1]="MondayFriday",e[e.MondaySaturday=2]="MondaySaturday",e}({}),NW=function(e){return e[e.Invalid=0]="Invalid",e[e.Journey5x1=1]="Journey5x1",e[e.Journey5x2=2]="Journey5x2",e[e.Journey6x1=3]="Journey6x1",e[e.CustomDay=4]="CustomDay",e[e.Journey12x36=5]="Journey12x36",e[e.Journey24x48=6]="Journey24x48",e[e.Journey24x72=7]="Journey24x72",e[e.CustomHour=8]="CustomHour",e}({}),RW=function(e){return e[e.Invalid=0]="Invalid",e[e.Weekly=1]="Weekly",e[e.Daily=2]="Daily",e[e.Intermittent=3]="Intermittent",e[e.Free=4]="Free",e}({}),jW=((AW=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.journeyDatabase=o,this.storageService=a,this.validService=r,this.journeyEnum=EW,this.journeyWeekEnum=BW,this.journeySpecialEnum=NW,this.journeyFlexEnum=RW,this.auxiliaryText=null,this.journeyId=null,this.collaboratorId=null,this.showModal=!0,this.screenJourney=!1,this.hideModal=new Mc,this.arrayWeekDay=["Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom"],this.change_of_shift="",this.countTurn=0,this.days=[],this.dayTurn=[],this.description="",this.firstDayJourney="",this.flexArray=[],this.flexArrayDsrSelect=[],this.flexArrayDsrSelected=null,this.journeyType=0,this.journeyWeekModel=0,this.journeyFlexModel=0,this.journeyFlexModelTitle={1:"Flex\xedvel",2:"Flex\xedvel",3:"Intermitente",4:"Livre"},this.journeyEspecialModel=0,this.journeyEspecialModels=[{title:"5x1",description:"5x1",value:"5x1"},{title:"5x2",description:"5x2",value:"5x2"},{title:"6x1",description:"6x1",value:"6x1"},{title:"personalizada por dia",description:"custom_day",value:"5x2"},{title:"12x36",description:"12x36",value:"1x1"},{title:"24x48",description:"24x48",value:"1x2"},{title:"24x72",description:"24x72",value:"1x3"},{title:"personalizada por hora",description:"custom_hour",value:"1x0"}],this.journeyOptionException=!1,this.journeyOptionPreassigned=!1,this.journeySaturdayData=[],this.nightTimeArray=[],this.nightTimeTotal="00:00",this.nightTimeShow=!1,this.previewEnable=!1,this.tolerance="",this.tolerance_day="",this.totalWeekTime="00:00",this.totalWeekTimePlusReduced="00:00",this.JourneySpecialModel=NW}),[{key:"ngOnChanges",value:function(){var e=this;null!=this.journeyId&&this.showModal&&(this.journeyDatabase.getJourney(this.journeyId,(function(t){t.error||(e.loadSavedData(t.data.journey),e.loadSaturdayData(t.data.journeySaturdayData))})),null!=this.collaboratorId&&this.journeyDatabase.getFirstDayJourney(this.journeyId,this.collaboratorId,(function(t){t.error||(e.firstDayJourney=t.data.journey.first_day)})))}},{key:"loadSavedData",value:function(e){switch(this.description=e[0].description,this.tolerance=e[0].tolerance,this.tolerance_day=e[0].tolerance_day,this.change_of_shift=e[0].change_of_shift,this.journeyOptionPreassigned=e[0].preassigned,this.journeyOptionException=e[0].exception,e[0].type.toString().toLowerCase()){case"intermittent":this.setJourneyFlexModel(RW.Intermittent),this.setJourneyType(EW.Flex);break;case"free":this.setJourneyFlexModel(RW.Free),this.setJourneyType(EW.Flex);break;case"flex":this.setJourneyFlexModel(RW.Daily),this.setJourneyType(EW.Flex);break;case"flex_week":this.setJourneyFlexModel(RW.Weekly),this.setJourneyType(EW.Flex);break;case"week":this.setJourneyType(EW.Weekly);break;default:this.setJourneyType(EW.Special)}this.journeyType!=EW.Flex?this.loadSaved(e):this.loadSavedFlex(e)}},{key:"setJourneyType",value:function(e){this.journeyType=e}},{key:"setJourneyWeekModel",value:function(e){this.journeyWeekModel=e}},{key:"setJourneyEspecialModel",value:function(e){this.journeyEspecialModel=e}},{key:"setJourneyFlexModel",value:function(e){this.journeyFlexModel=e}},{key:"loadSaved",value:function(e){if(2==this.journeyType)for(var t=0;t<this.journeyEspecialModels.length;t++)e[0].type==this.journeyEspecialModels[t].description&&this.setJourneyEspecialModel(t+1);for(var n=e.length,i=[],o=[],a=0;a<e[n-1].day;a++)i.push(0);var r=1;e.forEach((function(t,n){e[n+1]&&void 0!==e[n+1]&&e[n].day==e[n+1].day?r++:("00:00:00"!=e[n].total_hours?(i[e[n].day-1]=r,o[e[n].day-1]=e[n].change_of_shift_day):i[e[n].day-1]=0,r=1)}));for(var s=0,l=3,c=0;c<i.length;c++){var u=[],d=!0,h=e[s].dayDsr;0==i[c]&&(s++,l--);for(var f=0;f<i[c];f++)u.push({in:"00:00",out:"00:00"}),u[f].in=e[s].time_in,u[f].out=e[s].time_out,s++,d=!1;this.days.push({dayName:this.arrayWeekDay[c],dayNumber:c+1,dayTurn:u,dayHours:"00:00",dayOff:d,dayDsr:h,dayChangeOfShift:o[c]})}1==this.journeyType&&this.setJourneyWeekModel(l),this.verifyPreviewTime(),3!=this.journeyType&&this.verifyTurnTitle(),this.previewEnable=!0}},{key:"loadSavedFlex",value:function(e){if(this.journeyFlexModel==this.journeyFlexEnum.Intermittent||this.journeyFlexModel==this.journeyFlexEnum.Free)return this.createFlexLine(this.totalWeekTime,"23:59"),void(this.previewEnable=!0);if(this.journeyFlexModel==this.journeyFlexEnum.Weekly)return this.totalWeekTime=e[0].hours.split(":")[0]+":"+e[0].hours.split(":")[1],this.createFlexLine(this.totalWeekTime,"23:59"),this.flexArray[0].total=this.totalWeekTime,void(this.previewEnable=!0);this.flexArray=[];for(var t=[],n=[],i=0;i<e.length;i++){var o=e[i].total_hours,a=e[i].change_of_shift_day;if("00:00:00"!=o&&"00:00"!=o){0==t.length&&(this.createFlexLine(o,a),t.push(o),n.push(a));for(var r=0,s=0;s<t.length;s++)o!=t[s]||a!=n[s]?r++:this.flexArray[s].day[i].value=!0;r==t.length&&(this.createFlexLine(o,a),this.flexArray[t.length].day[i].value=!0,t.push(o),n.push(a))}1==e[i].dayDsr&&(this.flexArrayDsrSelect.push(i),this.flexArrayDsrSelected=i)}this.verifyFlexDayTime(),this.previewEnable=!0}},{key:"loadSaturdayData",value:function(e){var t=this;this.journeySaturdayData=[];for(var n=function(n){var i=e.filter((function(e){return e.week_of_month==n+1}));i.length>0&&t.journeySaturdayData.push({turns:i})},i=0;i<5;i++)n(i)}},{key:"verifyPreviewTime",value:function(){for(var e="00:00",t=0;t<this.days.length;t++){var n="00:00",i=this.days[t].dayTurn;if(0==this.days[t].dayOff){for(var o=0;o<i.length;o++)this.journeyEspecialModel>5?(i[o].total=this.functionsService.diffTime([i[o].in,i[o].out],!0),n=this.functionsService.sumTime([n,this.functionsService.diffTime([i[o].in,i[o].out],!0)])):(i[o].total=this.functionsService.diffTime([i[o].in,i[o].out]),n=this.functionsService.sumTime([n,this.functionsService.diffTime([i[o].in,i[o].out])]));this.days[t].dayHours=n}else this.days[t].dayHours="";e=this.functionsService.sumTime([e,n])}this.totalWeekTime=e,this.verifyNightTime()}},{key:"verifyTurnTitle",value:function(){for(var e=0,t=0,n=0;n<this.days.length;n++){var i=this.days[n].dayTurn;i.length>e&&(e=i.length,t=n)}this.countTurn=e,this.dayTurn=this.days[t].dayTurn}},{key:"verifyNightTime",value:function(){var e=[],t="00:00";this.nightTimeTotal="00:00";for(var n=0;n<this.days.length;n++)if(e.push("00:00"),0==this.days[n].dayOff)for(var i=this.days[n].dayTurn,o=0;o<this.days[n].dayTurn.length;o++){var a=this.functionsService.calcTimeInsideInterval(i[o].in,i[o].out,"22:00","05:00",8==this.journeyEspecialModel),r=this.functionsService.convertNightTime(a);t=this.functionsService.sumTime([t,this.functionsService.diffTime([a,r])]),e[n]=this.functionsService.sumTime([e[n],r]),this.nightTimeTotal=this.functionsService.sumTime([r,this.nightTimeTotal])}this.nightTimeArray=e,this.totalWeekTimePlusReduced=this.functionsService.sumTime([t,this.totalWeekTime]),e.find((function(e){return"00:00"!=e}))&&(this.nightTimeArray=e,this.nightTimeShow=!0)}},{key:"createFlexLine",value:function(e,t){this.flexArray.push({time:e,day:[{value:!1,name:"Seg"},{value:!1,name:"Ter"},{value:!1,name:"Qua"},{value:!1,name:"Qui"},{value:!1,name:"Sex"},{value:!1,name:"S\xe1b"},{value:!1,name:"Dom"}],total:"00:00",change_of_shift:t})}},{key:"verifyFlexDayTime",value:function(){var e;this.totalWeekTime="00:00";for(var t=0;t<this.flexArray.length;t++){e=this.flexArray[t].time;for(var n=0,i=0;i<7;i++)1==this.flexArray[t].day[i].value&&n++;this.flexArray[t].total=this.functionsService.multiplyTime(e,n),this.totalWeekTime=this.functionsService.sumTime([this.totalWeekTime,this.flexArray[t].total])}1!=this.journeyFlexModel||(this.totalWeekTime=this.flexArray[0].time)}},{key:"closeModal",value:function(){this.reset(),this.hideModal.emit(!1)}},{key:"reset",value:function(){this.days=[],this.dayTurn=[],this.flexArray=[],this.journeyOptionException=!1,this.journeyOptionPreassigned=!1,this.journeySaturdayData=[],this.previewEnable=!1}},{key:"getTotalTimeFromTurns",value:function(e){var t=this,n="00:00";return e.forEach((function(e){n=t.functionsService.sumTime([n,e.total_hours.toString().slice(0,5)])})),n}}])}()).\u0275fac=function(e){return new(e||AW)($r(wp),$r(yM),$r(zP),$r(DN),$r(YP),$r(TN))},AW.\u0275cmp=Ot({type:AW,selectors:[["io-journey-modal-view"]],inputs:{auxiliaryText:"auxiliaryText",journeyId:"journeyId",collaboratorId:"collaboratorId",showModal:"showModal",screenJourney:"screenJourney"},outputs:{hideModal:"hideModal"},features:[dl],decls:4,vars:3,consts:[[3,"showModal","hideModal"],[1,"modalViewBox"],["class","relativePlace scrollbarEnable",4,"ngIf"],[4,"ngIf"],[1,"relativePlace","scrollbarEnable"],["class","previewJourneyBox",3,"ngClass",4,"ngIf"],["class","previewJourneyBox flexible",4,"ngIf"],[1,"previewJourneyBox",3,"ngClass"],["class","sizeA cl-blue fontUp fontBold mrgB1",4,"ngIf"],[1,"sizeB","cl-red","fontBold","mrgB2"],[1,"flex","mrgB1"],[1,"start","sizeC"],[1,"fontBold"],["class","end sizeC",4,"ngIf"],[1,"minHeightBox"],[1,"item","sizeC","fontBold"],[1,"flex","item"],[1,"flex","start","wdFull"],["class","flex subItem",4,"ngFor","ngForOf"],["class","item sizeC fontBold",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"journeyInfoBox","pdgT1"],["class","flex start",4,"ngIf"],["class","flex",3,"ngClass",4,"ngIf"],["class","flex end nightTimeTotal",4,"ngIf"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB1"],[1,"end","sizeC"],[1,"flex","subItem"],[1,"sizeC","fontBold"],["class","spacer",4,"ngIf"],[1,"spacer"],[1,"day","boxWhite"],[1,"item"],[1,"fontBold",3,"ngClass"],["class","item",4,"ngIf"],["class","sizeB",4,"ngIf"],["class","sizeB fontBold cl-gray",4,"ngIf"],["class","mrgB1 mrgT1",4,"ngIf"],["class","flex setHourInputBox subItem",4,"ngFor","ngForOf"],[1,"flex","setHourInputBox","subItem"],[1,"flex","center"],["class","intervalSign",4,"ngIf"],[1,"intervalSign"],[1,"sizeC","cl-gray"],[1,"sizeB"],[1,"sizeB","fontBold","cl-gray"],[1,"sizeB","nightTimeTotal"],[1,"mrgB1","mrgT1"],[1,"flex","center","mrgB1"],[1,"sizeC","fontBold","fontUp"],["class","day boxWhite",4,"ngFor","ngForOf"],[1,"fontBold","cl-blue"],[1,"flex","start"],[1,"sizeC"],[1,"flex",3,"ngClass"],[1,"flex","end","nightTimeTotal"],[1,"previewJourneyBox","flexible"],[1,"sizeB","mrgB2"],[1,"mrgB2"],[1,"minHeightBox","pdgB2","mrgB2"],["class","flex listHeader listAlign borderTop",3,"ngClass",4,"ngIf"],[1,"listAlign","pdgB2","mrgT2","mrgB2",3,"ngClass"],["class","flex start dsrSelector boxWhite",4,"ngIf"],[1,"journeyInfoBox","pdgT2"],["class","sizeC",4,"ngIf"],[1,"flex","listHeader","listAlign","borderTop",3,"ngClass"],[1,"fontBold","flexDays","clickPlace","cl-blue"],["class","fontBold flexDays clickPlace",3,"ngClass",4,"ngFor","ngForOf"],[1,"fontBold","flexDays","clickPlace",3,"ngClass"],[1,"flex","start","dsrSelector","boxWhite"],["class","sizeC noDsrMsg",4,"ngIf"],["class","sizeC fontBold fontUp cl-blue clickPlace",4,"ngIf"],[1,"sizeC","noDsrMsg"],[1,"sizeC","fontBold","fontUp","cl-blue","clickPlace"],[1,"previewJourneyBox"],[1,"sizeA","cl-blue","fontUp","fontBold","pdgB2","mrgB2"],[1,"pdg2","mrgB2"],[1,"minHeightBox","pgd2","mrgT2","mrgB2"],[1,"flex","center","pgdT2","mrgT2"],[1,"flex","center","pgdT2","mrgT2","sizeC"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),Jr(2,IW,3,2,"div",2),Jr(3,FW,10,0,"div",3),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Zr("ngIf",t.previewEnable),Bo(1),Zr("ngIf",!t.previewEnable))},directives:[CE,sh,ih,ah],pipes:[IE],styles:[".formBox[_ngcontent-%COMP%]{min-height:475px}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:140px;align-items:center}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]{position:relative;width:30px;text-align:right}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]{position:absolute;top:100%;left:50%;transform:translateX(-50%);display:none;width:45px;background:#fff;padding:0 0 5px;box-shadow:0 1px 5px rgba(0,0,0,.08)}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;width:100%;padding:5px 5px 0;cursor:pointer;text-align:center;border-bottom:1px solid #ccc}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{background-color:#ddd}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop.active[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]{display:block}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:25px;cursor:pointer}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listMore[_ngcontent-%COMP%]{max-height:364px;max-width:640px;overflow:auto;padding:5px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listMore[_ngcontent-%COMP%]   .boxWhite[_ngcontent-%COMP%]{padding:0 5px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:10px 0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:70px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:70px;text-align:center;padding:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:60px;text-align:center;padding:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:20px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:30px;height:30px;padding:5px;cursor:pointer}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:70px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:70px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:60px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:50%;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{width:100%;max-width:125px;margin-right:25px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]:last-child{margin-right:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]{width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{position:relative;width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]   .intervalSign[_ngcontent-%COMP%]{position:absolute;top:1px;right:50%;width:8px;transform:translateX(30px);text-align:right;color:var(--primary-color)}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]{justify-content:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize;width:auto}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:5px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 0 10px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:80px;text-align:center;padding:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:80px;text-align:center}.previewJourneyBox.week[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{max-width:180px}.previewJourneyBox.week[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]   img.active[_ngcontent-%COMP%]{margin:0 -15px;z-index:1}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:70px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:70px;text-align:center;padding:0}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:70px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:70px;text-align:center;padding-left:10px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:100%;text-align:left}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .flexDays[_ngcontent-%COMP%]{margin-left:5px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;justify-content:flex-end}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:150px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:150px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   span[_ngcontent-%COMP%]{max-width:60px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .addBtn[_ngcontent-%COMP%]{max-width:100px}.previewJourneyBox[_ngcontent-%COMP%]   .inputBottom[_ngcontent-%COMP%]{max-width:45px}.previewJourneyBox[_ngcontent-%COMP%]   input.borderless[_ngcontent-%COMP%]{border:none}.dsrSelector[_ngcontent-%COMP%]{padding:0 20px;margin:20px 0 10px}.dsrSelector[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:100%;max-width:40px;margin-right:10px}.dsrSelector[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{max-width:130px}.dsrSelector[_ngcontent-%COMP%]   span.noDsrMsg[_ngcontent-%COMP%]{max-width:150px}.selectJourneyBox[_ngcontent-%COMP%]   .wdFull[_ngcontent-%COMP%]{max-width:260px}.blockPreview[_ngcontent-%COMP%]{position:absolute;top:40px;left:0;display:flex;align-items:center;width:100%;height:95%;z-index:10}.blockPreview[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:20px;height:50px;margin:0 auto}.boxWhite[_ngcontent-%COMP%]{height:30px;padding:0}@media (max-width:990px){.modalViewBox[_ngcontent-%COMP%]{overflow-x:auto}.modalViewBox[_ngcontent-%COMP%]   .relativePlace[_ngcontent-%COMP%]{min-width:600px;padding-bottom:5px}}"]}),AW);function zW(e,t){1&e&&ns(0,"div")}function VW(e,t){if(1&e&&(es(0,"div",18),es(1,"span",19),Gs(2),ts(),ts()),2&e){var n=fs();Bo(2),$s(n.collaboratorFileName)}}function HW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function YW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function qW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function UW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function WW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function JW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function GW(e,t){if(1&e){var n=as();es(0,"fa-icon",52),ls("click",(function(){mn(n),fs();var e=Gr(39);return fs().showModalJourneyView(e.value)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEye)}function $W(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.index;vs("value",n+1),Bo(1),Qs("Dia ",n+1,"")}}function QW(e,t){if(1&e){var n=as();is(0),es(1,"select",53),ls("change",(function(){return mn(n),fs(2).setFieldForEveryCollaborator("first_day")})),Jr(2,$W,2,2,"option",28),ts(),es(3,"label",54),Gs(4,"Dia de in\xedcio na escala"),ts(),ns(5,"fa-icon",30),os()}if(2&e){var i=fs(2);Bo(1),Zr("formControlName","first_day"),Bo(1),Zr("ngForOf",i.selectForm.get("journeySelectedFirstDayList").value),Bo(3),Zr("icon",i.iconSolidService.faCaretDown)}}function KW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function ZW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function XW(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function eJ(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function tJ(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function nJ(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function iJ(e,t){if(1&e){var n=as();es(0,"fa-icon",52),ls("click",(function(){mn(n),fs();var e=Gr(52);return fs(2).showModalJourneyView(e.value)})),ts()}2&e&&Zr("icon",fs(3).iconRegularService.faEye)}function oJ(e,t){if(1&e&&(es(0,"option",51),Gs(1),ts()),2&e){var n=t.index;vs("value",n+1),Bo(1),Qs("Dia ",n+1,"")}}function aJ(e,t){if(1&e&&(es(0,"div",57),es(1,"select",73),Jr(2,oJ,2,2,"option",28),ts(),es(3,"label",74),Gs(4,"Dia de in\xedcio na escala"),ts(),ns(5,"fa-icon",30),ts()),2&e){var n=fs(),i=n.index,o=n.$implicit,a=fs(2);Bo(1),ys("id","first_day",i,""),Zr("formControlName","first_day"),Bo(1),Zr("ngForOf",o.journeySelectedFirstDayList),Bo(1),ys("for","first_day",i,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown)}}function rJ(e,t){1&e&&(es(0,"span",75),Gs(1,"Funcion\xe1rio cadastrado!"),ts())}function sJ(e,t){if(1&e){var n=as();es(0,"div",55),es(1,"div",56),es(2,"div",57),es(3,"input",58),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"name")})),ts(),es(4,"label",59),Gs(5,"Nome Completo"),ts(),ts(),ts(),es(6,"div",60),es(7,"div",57),es(8,"input",61),ls("change",(function(){mn(n);var e=t.index,i=fs(2);return i.checkErrorField(e,"national_registry"),i.collaboratorFieldIsValidCPF(e)})),ts(),es(9,"label",59),Gs(10,"CPF"),ts(),ts(),es(11,"div",57),es(12,"input",62),ls("change",(function(){mn(n);var e=t.index;return fs(2).verifyDate(e,"birth_date_form")})),ts(),es(13,"label",59),Gs(14,"Data de Nascimento"),ts(),ts(),es(15,"div",57),es(16,"input",63),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"email")})),ts(),es(17,"label",59),Gs(18,"E-mail"),ts(),ts(),es(19,"io-datepicker",64),ls("dateSelectedEN",(function(e){mn(n);var i=t.index;return fs(2).setCollaboratorBeginDate(i,e)})),ts(),es(20,"div",57),es(21,"select",65),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"department_id")})),Jr(22,KW,2,2,"option",28),ts(),es(23,"label",66),Gs(24,"Departamento"),ts(),ns(25,"fa-icon",30),ts(),es(26,"div",57),es(27,"select",65),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"cost_center_id")})),Jr(28,ZW,2,2,"option",28),ts(),es(29,"label",66),Gs(30,"Centro de custo"),ts(),ns(31,"fa-icon",30),ts(),es(32,"div",57),es(33,"select",65),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"unit_id")})),Jr(34,XW,2,2,"option",28),ts(),es(35,"label",66),Gs(36,"Unidade"),ts(),ns(37,"fa-icon",30),ts(),es(38,"div",57),es(39,"select",65),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"point_rule_id")})),Jr(40,eJ,2,2,"option",28),ts(),es(41,"label",66),Gs(42,"Regra do ponto"),ts(),ns(43,"fa-icon",30),ts(),es(44,"div",57),es(45,"select",65),ls("change",(function(){mn(n);var e=t.index;return fs(2).checkErrorField(e,"collaborator_settings_id")})),Jr(46,tJ,2,2,"option",28),ts(),es(47,"label",66),Gs(48,"Configura\xe7\xe3o de funcion\xe1rio"),ts(),ns(49,"fa-icon",30),ts(),es(50,"div",67),es(51,"select",65,41),ls("change",(function(){mn(n);var e=t.index,i=fs(2);return i.checkErrorField(e,"journey_id"),i.checkCollaboratorJourneyFirstDay(e)})),Jr(53,nJ,2,2,"option",28),ts(),es(54,"label",66),Gs(55,"Escala"),ts(),ns(56,"fa-icon",30),Jr(57,iJ,1,1,"fa-icon",43),ts(),Jr(58,aJ,6,5,"div",68),ts(),es(59,"div",69),es(60,"div",70),es(61,"label",45),Gs(62,"Marcar para importa\xe7\xe3o "),ns(63,"input",71),ns(64,"span",47),ts(),ts(),ts(),Jr(65,rJ,2,0,"span",72),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs(2);Zr("formGroupName",o.toString()),Bo(3),Xs("",a.collaboratorFormFieldState[o].name.class," fontBold"),ys("id","name",o,""),Zr("formControlName","name"),Bo(1),ys("for","name",o,""),Bo(4),Es(a.collaboratorFormFieldState[o].national_registry.class),ys("id","national_registry",o,""),Zr("formControlName","national_registry"),Bo(1),ys("for","national_registry",o,""),Bo(3),Es(a.collaboratorFormFieldState[o].birth_date_form.class),ys("id","birth_date_form",o,""),Zr("dropSpecialCharacters",!1)("formControlName","birth_date_form"),Bo(1),ys("for","birth_date_form",o,""),Bo(3),Es(a.collaboratorFormFieldState[o].email.class),ys("id","email",o,""),Zr("formControlName","email"),Bo(1),ys("for","email",o,""),Bo(2),Xs("datepicker required ",a.collaboratorFormFieldState[o].begin_date.class,""),Zr("labelText","Data de in\xedcio de uso do sistema")("currentDate",a.collaboratorFormArray.at(o).get("begin_date").value)("minDate",a.minDateUseSystem),Bo(2),Es(a.collaboratorFormFieldState[o].department_id.class),ys("id","department_id",o,""),Zr("formControlName","department_id"),Bo(1),Zr("ngForOf",a.selectFieldListDepartment),Bo(1),ys("for","department_id",o,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown),Bo(2),Es(a.collaboratorFormFieldState[o].cost_center_id.class),ys("id","cost_center_id",o,""),Zr("formControlName","cost_center_id"),Bo(1),Zr("ngForOf",a.selectFieldListCostCenter),Bo(1),ys("for","cost_center_id",o,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown),Bo(2),Es(a.collaboratorFormFieldState[o].unit_id.class),ys("id","unit_id",o,""),Zr("formControlName","unit_id"),Bo(1),Zr("ngForOf",a.selectFieldListUnit),Bo(1),ys("for","unit_id",o,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown),Bo(2),Es(a.collaboratorFormFieldState[o].point_rule_id.class),ys("id","point_rule_id",o,""),Zr("formControlName","point_rule_id"),Bo(1),Zr("ngForOf",a.selectFieldListPointRule),Bo(1),ys("for","point_rule_id",o,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown),Bo(2),Es(a.collaboratorFormFieldState[o].collaborator_settings_id.class),ys("id","collaborator_settings_id",o,""),Zr("formControlName","collaborator_settings_id"),Bo(1),Zr("ngForOf",a.selectFieldListCollaboratorSettings),Bo(1),ys("for","collaborator_settings_id",o,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown),Bo(2),Es(a.collaboratorFormFieldState[o].journey_id.class),ys("id","journey_id",o,""),Zr("formControlName","journey_id"),Bo(2),Zr("ngForOf",a.selectFieldListJourney),Bo(1),ys("for","journey_id",o,""),Bo(2),Zr("icon",a.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",a.collaboratorFormArray.at(o).get("journey_id").value),Bo(1),Zr("ngIf",i.journeySelectedFirstDayList.length>0),Bo(5),Zr("formControlName","register"),Bo(2),Zr("ngIf",1==i.registered)}}function lJ(e,t){if(1&e){var n=as();es(0,"div",20),es(1,"div",21),es(2,"div",22),es(3,"span",23),Gs(4,"Valores padr\xf5es: "),ts(),ts(),es(5,"div",24),es(6,"io-datepicker",25),ls("dateSelectedEN",(function(e){return mn(n),fs().setMainBeginDate(e)})),ts(),es(7,"div",26),es(8,"select",27),ls("change",(function(){return mn(n),fs().setFieldForEveryCollaborator("department_id")})),Jr(9,HW,2,2,"option",28),ts(),es(10,"label",29),Gs(11,"Departamento"),ts(),ns(12,"fa-icon",30),ts(),es(13,"div",26),es(14,"select",31),ls("change",(function(){return mn(n),fs().setFieldForEveryCollaborator("cost_center_id")})),Jr(15,YW,2,2,"option",28),ts(),es(16,"label",32),Gs(17,"Centro de custo"),ts(),ns(18,"fa-icon",30),ts(),es(19,"div",26),es(20,"select",33),ls("change",(function(){return mn(n),fs().setFieldForEveryCollaborator("unit_id")})),Jr(21,qW,2,2,"option",28),ts(),es(22,"label",34),Gs(23,"Unidade"),ts(),ns(24,"fa-icon",30),ts(),es(25,"div",26),es(26,"select",35),ls("change",(function(){return mn(n),fs().setFieldForEveryCollaborator("point_rule_id")})),Jr(27,UW,2,2,"option",28),ts(),es(28,"label",36),Gs(29,"Regra do ponto"),ts(),ns(30,"fa-icon",30),ts(),es(31,"div",26),es(32,"select",37),ls("change",(function(){return mn(n),fs().setFieldForEveryCollaborator("collaborator_settings_id")})),Jr(33,WW,2,2,"option",28),ts(),es(34,"label",38),Gs(35,"Configura\xe7\xe3o de funcion\xe1rio"),ts(),ns(36,"fa-icon",30),ts(),es(37,"div",39),es(38,"select",40,41),ls("change",(function(){mn(n);var e=fs();return e.setFieldForEveryCollaborator("journey_id"),e.checkJourneySelected()})),Jr(40,JW,2,2,"option",28),ts(),es(41,"label",42),Gs(42,"Escala"),ts(),ns(43,"fa-icon",30),Jr(44,GW,1,1,"fa-icon",43),ts(),es(45,"div",26),Jr(46,QW,6,3,"ng-container",10),ts(),es(47,"div",44),es(48,"label",45),Gs(49,"Marcar TODOS para importa\xe7\xe3o "),es(50,"input",46),ls("change",(function(){return mn(n),fs().setFieldForEveryCollaborator("register")})),ts(),ns(51,"span",47),ts(),ts(),ts(),ts(),es(52,"div",48),es(53,"div",49),Jr(54,sJ,66,84,"div",50),ts(),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("formGroup",i.selectForm),Bo(5),Zr("labelText","Data de in\xedcio de uso do sistema")("startDate",i.currentDate)("minDate",i.minDateUseSystem),Bo(2),Zr("formControlName","department_id"),Bo(1),Zr("ngForOf",i.selectFieldListDepartment),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","cost_center_id"),Bo(1),Zr("ngForOf",i.selectFieldListCostCenter),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","unit_id"),Bo(1),Zr("ngForOf",i.selectFieldListUnit),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","point_rule_id"),Bo(1),Zr("ngForOf",i.selectFieldListPointRule),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","collaborator_settings_id"),Bo(1),Zr("ngForOf",i.selectFieldListCollaboratorSettings),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","journey_id"),Bo(2),Zr("ngForOf",i.selectFieldListJourney),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",null!=i.selectForm.get("journey_id").value),Bo(2),Zr("ngIf",i.selectForm.get("journeySelectedFirstDayList").value&&i.selectForm.get("journeySelectedFirstDayList").value.length>0),Bo(4),Zr("formControlName","register"),Bo(2),Zr("formGroup",i.collaboratorForm),Bo(1),Zr("formArrayName","collaborator"),Bo(1),Zr("ngForOf",i.collaboratorFormListShow)}}function cJ(e,t){if(1&e&&(es(0,"div",20),es(1,"span",76),Gs(2,"Todos os funcion\xe1rios do arquivo "),es(3,"span",77),Gs(4),ts(),Gs(5," j\xe1 foram importados!"),ts(),ts()),2&e){var n=fs();Bo(4),$s(n.collaboratorFileName)}}function uJ(e,t){if(1&e){var n=as();es(0,"io-btn",78),ls("btnClick",(function(){return mn(n),fs().importCollaboratorSelectedList()})),ts()}2&e&&Zr("moduleName","holiday")("btnText","Cadastrar")("action","create")("btnColor","btn-blue-bg")}function dJ(e,t){if(1&e){var n=as();es(0,"io-journey-modal-view",79),ls("hideModal",(function(){return mn(n),fs().hideModalJourneyView()})),ts()}if(2&e){var i=fs();Zr("journeyId",i.journeySelectedId)("showModal",i.modalJourneyView)}}var hJ,fJ=((hJ=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h,f){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.functionsService=a,this.journeyDatabase=r,this.iconRegularService=s,this.iconSolidService=l,this.storageService=u,this.titleService=d,this.validService=h,this.dataBaseService=f,this.collaboratorFormFieldState=[],this.collaboratorFormListShow=[],this.collaboratorFileName="",this.collaboratorDataList=[],this.companyData=null,this.currentDate=this.functionsService.currentDateEN("01/01/2020","min"),this.hasCollaboratorToImport=!0,this.journeySelectedId=null,this.minDateUseSystem=this.functionsService.getFirstLastDay()[0],this.databaseUrl="",this.modalJourneyView=!1,this.modalPlanUpdate=!1,this.modalRegisterErrorData=!1,this.registerErrorData=null,this.selectFieldListDepartment=[],this.selectFieldListCostCenter=[],this.selectFieldListCollaboratorSettings=[],this.selectFieldListJourney=[],this.selectFieldListPointRule=[],this.selectFieldListUnit=[],this.FormGroup=Jm,this.titleService.setTitle("Importar Funcion\xe1rios"),this.collaboratorForm=this.formBuilder.group({collaborator:new Gm([this.collaboratorFormGroup([])])}),this.selectForm=this.getSelectFormGroup(),this.addCollaboratorFieldState(),this.updateCollaboratorListShow()}),[{key:"getSelectFormGroup",value:function(){return this.formBuilder.group({begin_date:new Wm(this.currentDate,[Jf.required]),collaborator_settings_id:new Wm("",[Jf.required]),department_id:new Wm("",[Jf.required]),cost_center_id:new Wm("",[Jf.required]),first_day:new Wm("0",[Jf.required]),journey_id:new Wm("",[Jf.required]),point_rule_id:new Wm("",[Jf.required]),unit_id:new Wm("",[Jf.required]),register:new Wm(!1,[Jf.required]),journeySelectedFirstDayList:new Wm([],[Jf.required])})}},{key:"collaboratorFormGroup",value:function(e){return this.formBuilder.group({begin_date:new Wm(e.begin_date||"",[Jf.required]),birth_date:new Wm(e.birth_date||"",[Jf.required]),birth_date_form:new Wm(e.birth_date_form||"",[Jf.required]),collaborator_settings_id:new Wm(e.collaborator_settings_id||"",[Jf.required]),department_id:new Wm(e.department_id||"",[Jf.required]),cost_center_id:new Wm(e.cost_center_id||"",[Jf.required]),first_day:new Wm(e.first_day||"0",[Jf.required]),email:new Wm(e.email||"",[Jf.required]),journey_id:new Wm(e.journey_id||"",[Jf.required]),name:new Wm(e.name||"",[Jf.required]),national_registry:new Wm(e.national_registry||"",[Jf.required]),point_rule_id:new Wm(e.point_rule_id||"",[Jf.required]),unit_id:new Wm(e.unit_id||"",[Jf.required]),register:new Wm(!1),registered:new Wm(!1),journeySelectedFirstDayList:new Wm([])})}},{key:"addCollaboratorFieldState",value:function(){var e={};Object.keys(this.collaboratorFormArray.at(0).value).forEach((function(t){e[t]={class:""}})),this.collaboratorFormFieldState.push(e)}},{key:"updateCollaboratorListShow",value:function(){this.collaboratorFormListShow=this.collaboratorFormArray.value}},{key:"checkJourneySelected",value:function(){var e=this,t=this.selectForm.get("journey_id").value,n=this.selectFieldListJourney.find((function(e){return e.id==t}));if(!this.journeyNeedsFirstDay(n.type))return this.selectForm.get("journeySelectedFirstDayList").setValue([]),this.setFieldForEveryCollaborator("journeySelectedFirstDayList"),this.selectForm.get("first_day").setValue("0"),void this.setFieldForEveryCollaborator("first_day");this.journeyDatabase.getJourneyHours(t,(function(t){e.selectForm.get("journeySelectedFirstDayList").setValue(t.data.journeyHours),e.setFieldForEveryCollaborator("journeySelectedFirstDayList"),e.selectForm.get("first_day").setValue(t.data.journeyHours[0].first_day),e.setFieldForEveryCollaborator("first_day")}))}},{key:"journeyNeedsFirstDay",value:function(e){return["5x1","12x36","24x48","24x72","custom_hour"].includes(e)}},{key:"collaboratorFormControls",get:function(){return this.collaboratorForm.controls}},{key:"collaboratorFormArray",get:function(){return this.collaboratorFormControls.collaborator}},{key:"ngOnInit",value:function(){this.updateCollaboratorListShow(),this.databaseUrl=this.dataBaseService.currentDatabaseUrl()}},{key:"handleFile",value:function(e){var t=this;if(this.resetCompanyData(),e.target&&!(e.target.files.length<1)){var n=e.target.files[0],i=n.name.split(".").reverse().toString().split(",")[0];if("xls"===i||"xlsx"===i){var o=new FormData;o.append("collaboratorsImportFile",n),this.collaboratorDatabase.postCollaboratorImportFile(o,(function(e){if(!e.error){if(e.data.collaboratorList.length<0)return;t.companyDatabase.getSelectList({listRequired:JSON.stringify(["collaborator_settings","department","costCenter","journey","point_rule","unit"])},(function(e){e.error||t.loadSelectFieldList(e.data)})),t.collaboratorFormReset(),t.loadCollaboratorForm(e.data.collaboratorList),t.collaboratorFileName=n.name,0==e.data.collaboratorList.length&&e.data.arrayDuplicated.length>0&&(t.hasCollaboratorToImport=!1)}}))}else this.functionsService.openSnackBar("O arquivo de importa\xe7\xe3o deve ser do tipo XLSX ou XLS.")}}},{key:"loadSelectFieldList",value:function(e){var t=this;e.collaborator_settings.forEach((function(e){t.selectFieldListCollaboratorSettings.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListCollaboratorSettings.push(e)})),e.department.forEach((function(e){t.selectFieldListDepartment.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListDepartment.push(e)})),e.journey.forEach((function(e){t.selectFieldListJourney.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListJourney.push(e)})),e.point_rule.forEach((function(e){t.selectFieldListPointRule.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListPointRule.push(e)})),e.unit.forEach((function(e){t.selectFieldListUnit.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListUnit.push(e)})),e.costCenter.forEach((function(e){t.selectFieldListCostCenter.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListCostCenter.push(e)}))}},{key:"resetCompanyData",value:function(){this.companyData=null}},{key:"collaboratorFormReset",value:function(){this.hasCollaboratorToImport=!0,this.resetSelectForm(),this.collaboratorFormArray.clear(),this.collaboratorFormArray.removeAt(0),this.updateCollaboratorListShow()}},{key:"resetSelectForm",value:function(){var e=this;Object.keys(this.selectForm.controls).forEach((function(t){"journeySelectedFirstDayList"!=t&&"begin_date"!=t&&e.selectForm.get(t).setValue(null)}))}},{key:"loadCollaboratorForm",value:function(e){var t=this;this.collaboratorDataList=[],e.forEach((function(e){e.birth_date_form=t.functionsService.dateENtoBR(e.birth_date),t.addNewCollaborator(e),Object.keys(t.collaboratorFormArray.at(0).value).forEach((function(t){delete e[t]})),t.collaboratorDataList.push(e)}))}},{key:"addNewCollaborator",value:function(e){this.collaboratorFormArray.push(this.collaboratorFormGroup(e)),this.addCollaboratorFieldState(),this.updateCollaboratorListShow()}},{key:"restartImportation",value:function(){this.collaboratorFileName="",this.collaboratorFormReset()}},{key:"setFieldForEveryCollaborator",value:function(e){var t=this;this.collaboratorFormListShow.forEach((function(n,i){n.registered||t.collaboratorFormArray.at(i).get(e).setValue(t.selectForm.get(e).value),"journey_id"==e&&t.checkCollaboratorJourneyFirstDay(i)}))}},{key:"checkCollaboratorJourneyFirstDay",value:function(e){var t=this,n=this.collaboratorFormArray.at(e).get("journey_id").value,i=this.selectFieldListJourney.find((function(e){return e.id==n}));if(!this.journeyNeedsFirstDay(i.type))return this.collaboratorFormArray.at(e).get("journeySelectedFirstDayList").setValue([]),this.collaboratorFormArray.at(e).get("first_day").setValue(0),void this.updateCollaboratorListShow();this.journeyDatabase.getJourneyHours(n,(function(n){n.error||(t.collaboratorFormArray.at(e).get("journeySelectedFirstDayList").setValue(n.data.journeyHours),t.collaboratorFormArray.at(e).get("first_day").setValue(n.data.journeyHours[0].first_day),t.updateCollaboratorListShow())}))}},{key:"importFileHasExceededMinimalLicense",value:function(){return null!=this.companyData}},{key:"setCollaboratorBeginDate",value:function(e,t){this.collaboratorFormArray.at(e).get("begin_date").setValue(t)}},{key:"setMainBeginDate",value:function(e){this.selectForm.get("begin_date").setValue(e),this.setFieldForEveryCollaborator("begin_date")}},{key:"importCollaboratorSelectedList",value:function(){var e=this;this.updateCollaboratorListShow();var t=[];this.collaboratorFormListShow.forEach((function(n,i){n.register&&!n.registered&&(n.birth_date=e.functionsService.dateBRtoEN(n.birth_date_form),t.push(Object.assign(Object.assign(Object.assign({},n),e.collaboratorDataList[i]),{formArrayIndex:i})))})),this.collaboratorFormListIsValid(t)?this.collaboratorFormListIsValidCpf(t)?0!=t.length?this.collaboratorDatabase.postCollaboratorList({collaboratorDataList:t},(function(n){n.error?n.error&&n.error.error&&n.error.error.registerErrorData&&(e.showModalRegisterErrorData(n.error.error.registerErrorData),e.setCollaboratorListRegistered(n.error.error.registerErrorData.registerSuccessList)):e.setCollaboratorListRegistered(t)})):this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar ao menos um funcion\xe1rio para cadastrar"):this.functionsService.openSnackBar("invalidCpf"):this.functionsService.openSnackBar("emptyField")}},{key:"showModalRegisterErrorData",value:function(e){this.registerErrorData=e,this.modalRegisterErrorData=!0}},{key:"hideModalRegisterErrorData",value:function(){this.modalRegisterErrorData=!1,this.registerErrorData=null}},{key:"collaboratorFormListIsValid",value:function(e){var t=this,n=0;return e.forEach((function(e){Object.keys(t.collaboratorFormArray.at(0).value).forEach((function(i){t.collaboratorFieldIsValid(e.formArrayIndex,i)||n++}))})),0==n}},{key:"collaboratorFieldIsValid",value:function(e,t){return this.collaboratorFormArray.at(e).get(t).valid?(this.collaboratorFormFieldState[e][t].class="",!0):(this.collaboratorFormFieldState[e][t].class="emptyError",!1)}},{key:"collaboratorFormListIsValidCpf",value:function(e){var t=this,n=0;return e.forEach((function(e){t.collaboratorFieldIsValidCPF(e.formArrayIndex)||n++})),0==n}},{key:"collaboratorFieldIsValidCPF",value:function(e){return this.validService.validCPF(this.collaboratorFormArray.at(e).get("national_registry").value)?(this.collaboratorFormFieldState[e].national_registry.class="",!0):(this.collaboratorFormFieldState[e].national_registry.class="emptyError",!1)}},{key:"setCollaboratorListRegistered",value:function(e){var t=this;e.forEach((function(e){var n=t.collaboratorFormListShow.findIndex((function(t){return t.email==e.email&&t.national_registry==e.national_registry}));t.collaboratorFormArray.at(n).get("registered").setValue(!0)})),this.updateCollaboratorListShow()}},{key:"showModalPlanUpdate",value:function(){this.modalPlanUpdate=!0}},{key:"hideModalPlanUpdate",value:function(){this.modalPlanUpdate=!1}},{key:"checkErrorField",value:function(e,t){this.collaboratorFieldIsValid(e,t)}},{key:"verifyDate",value:function(e,t){this.collaboratorFormArray.at(e).get(t).value&&this.collaboratorFormArray.at(e).get(t).setValue(this.validService.validDate(this.collaboratorFormArray.at(e).get(t).value))}},{key:"showModalJourneyView",value:function(e){this.journeySelectedId=e,this.modalJourneyView=!0}},{key:"hideModalJourneyView",value:function(){this.modalJourneyView=!0,this.journeySelectedId=null}}])}()).\u0275fac=function(e){return new(e||hJ)($r(wp),$r(yM),$r(LN),$r(Mz),$r(zP),$r(DN),$r(WO),$r(JO),$r(YP),$r(hL),$r(TN),$r(tT))},hJ.\u0275cmp=Ot({type:hJ,selectors:[["io-collaborator-page-import"]],decls:24,vars:23,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],["hidden","","type","file","accept","application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",1,"hide",3,"change"],["fileInput",""],[1,"minHeightBox"],[1,"flex","top","pdgB1","borderBottom","mrgB2"],[1,"sizeB"],["title","Baixar modelo de importa\xe7\xe3o.",1,"fontUp","clickPlace","cl-blue",3,"href"],[1,"sizeC"],[4,"ngIf"],["class","flex",4,"ngIf"],["class","collaborator-form-box",4,"ngIf"],[3,"moduleName","btnText","btnTitle","useValidation","urlNavigation"],["class","mrgL2",3,"moduleName","btnText","action","btnColor","btnClick",4,"ngIf"],[3,"showModal","registerErrorData","hideModal"],[3,"showModal","hideModal"],[3,"journeyId","showModal","hideModal",4,"ngIf"],[1,"flex"],[1,"sizeC","fontBold"],[1,"collaborator-form-box"],[1,"collaborator-form-select-box","mrgB2",3,"formGroup"],[1,"mrgB2"],[1,"sizeB","fontBold"],[1,"collaborator-form-select"],[1,"datepicker","select-item","required",3,"labelText","startDate","minDate","dateSelectedEN"],[1,"form-group","select-item","inputAnimated"],["id","department_id","required","",3,"formControlName","change"],[3,"value",4,"ngFor","ngForOf"],["for","department_id",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["id","cost_center_id","required","",3,"formControlName","change"],["for","cost_center_id",1,"form-label","flex","required"],["id","unit_id","required","",3,"formControlName","change"],["for","unit_id",1,"form-label","flex","required"],["id","point_rule_id","required","",3,"formControlName","change"],["for","point_rule_id",1,"form-label","flex","required"],["id","collaborator_settings_id","required","",3,"formControlName","change"],["for","collaborator_settings_id",1,"form-label","flex","required"],[1,"form-group","select-item","inputAnimated","selectViewList"],["id","journey_id","required","",3,"formControlName","change"],["selectJourney",""],["for","journey_id",1,"form-label","flex","required"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace iconViewJourney","title","Visualizar escala",3,"icon","click",4,"ngIf"],[1,"form-group","select-item","pdgT1"],[1,"radioBox","hd2","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"collaborator-form-grid-box","scrollbarEnable",3,"formGroup"],[1,"collaborator-form-grid",3,"formArrayName"],["class","collaborator-form bg-white",3,"formGroupName",4,"ngFor","ngForOf"],[3,"value"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","iconViewJourney",3,"icon","click"],["id","first_day","required","",3,"formControlName","change"],["for","first_day",1,"form-label","flex"],[1,"collaborator-form","bg-white",3,"formGroupName"],[1,"flex","collaborator-form-line"],[1,"form-group","inputAnimated"],["autocomplete","off","autofocus","","placeholder","","required","","type","text",3,"formControlName","id","change"],[1,"form-label","required",3,"for"],[1,"collaborator-form-grid"],["autocomplete","off","mask","000.000.000-00","maxlength","14","placeholder","","required","","type","text",3,"formControlName","id","change"],["autocomplete","off","autofocus","","mask","00/00/0000","maxlength","10","required","","type","text",3,"dropSpecialCharacters","formControlName","id","change"],["autocomplete","off","placeholder","","type","text","required","",3,"formControlName","id","change"],[3,"labelText","currentDate","minDate","dateSelectedEN"],["required","",3,"formControlName","id","change"],[1,"form-label","flex","required",3,"for"],[1,"form-group","inputAnimated","selectViewList"],["class","form-group inputAnimated",4,"ngIf"],[1,"flex","start"],[1,"form-group"],["type","checkbox",3,"formControlName"],["class","sent-marker sizeB cl-blue",4,"ngIf"],["required","",3,"formControlName","id"],[1,"form-label","flex",3,"for"],[1,"sent-marker","sizeB","cl-blue"],[1,"sizeB","cl-red"],[1,"fontBold"],[1,"mrgL2",3,"moduleName","btnText","action","btnColor","btnClick"],[3,"journeyId","showModal","hideModal"]],template:function(e,t){if(1&e){var n=as();es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){mn(n);var e=Gr(4);return""==t.collaboratorFileName?e.click():t.restartImportation()})),ts(),es(3,"input",3,4),ls("change",(function(e){return t.handleFile(e)})),ts(),es(5,"div",5),es(6,"div",6),es(7,"div"),es(8,"p",7),Gs(9,"O arquivo para a importa\xe7\xe3o de funcion\xe1rios deve seguir o: "),es(10,"a",8),Gs(11,"Modelo de importa\xe7\xe3o."),ts(),ts(),es(12,"p",9),Gs(13,"A listagem de importa\xe7\xe3o se limita a 100 funcion\xe1rios."),ts(),ts(),Jr(14,zW,1,0,"div",10),Jr(15,VW,3,1,"div",11),ts(),Jr(16,lJ,55,28,"div",12),Jr(17,cJ,6,1,"div",12),ts(),es(18,"div"),ns(19,"io-btn",13),Jr(20,uJ,1,4,"io-btn",14),ts(),ts(),ts(),es(21,"io-collaborator-modal-import-error",15),ls("hideModal",(function(){return t.hideModalRegisterErrorData()})),ts(),es(22,"io-invoice-modal-plan-update",16),ls("hideModal",(function(){return t.hideModalPlanUpdate()})),ts(),Jr(23,dJ,1,2,"io-journey-modal-view",17)}2&e&&(Bo(1),Zr("formGroup",t.collaboratorForm),Bo(1),Zr("moduleName","collaborator")("titleTop","Importar Funcion\xe1rios")("showBtn",!0)("btnDataText",""==t.collaboratorFileName?"importar":"Reiniciar importa\xe7\xe3o"),Bo(8),ys("href","",t.databaseUrl,"/storage/files/iopoint_importacao.xlsx",mo),Bo(4),Zr("ngIf",""==t.collaboratorFileName),Bo(1),Zr("ngIf",""!=t.collaboratorFileName),Bo(1),Zr("ngIf",t.hasCollaboratorToImport&&""!=t.collaboratorFileName),Bo(1),Zr("ngIf",!t.hasCollaboratorToImport&&""!=t.collaboratorFileName),Bo(1),Xs("flex pdgT2 ",t.hasCollaboratorToImport||""==t.collaboratorFileName?"":"start",""),Bo(1),Zr("moduleName","collaborator")("btnText","Voltar")("btnTitle","Voltar")("useValidation",!1)("urlNavigation","collaborator"),Bo(1),Zr("ngIf",t.hasCollaboratorToImport&&""!=t.collaboratorFileName),Bo(1),Zr("showModal",t.modalRegisterErrorData)("registerErrorData",t.registerErrorData),Bo(1),Zr("showModal",t.modalPlanUpdate),Bo(1),Zr("ngIf",null!=t.journeySelectedId))},directives:[Hf,ip,eI,sh,jD,LU,YU,UA,vm,bp,Vf,vp,ah,FD,Of,sp,ym,xm,ap,If,DE,kp,jW],styles:[".collaboratorListImportBox[_ngcontent-%COMP%]{max-height:310px;overflow-y:auto}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:space-between;margin:0 0 10px}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;height:35px;padding:0;margin:0;border-bottom:1px solid}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:280px;padding-top:10px}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:280px}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:30px;border:none}.collaboratorListImportBox[_ngcontent-%COMP%]   .collaboratorListImport[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{border:none;margin:0;padding-bottom:0}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-select-box[_ngcontent-%COMP%]   .collaborator-form-select[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:10px}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-select-box[_ngcontent-%COMP%]   .collaborator-form-select[_ngcontent-%COMP%]   .select-item[_ngcontent-%COMP%]{margin:0}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-grid-box[_ngcontent-%COMP%]{overflow:auto;max-height:680px}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-grid-box[_ngcontent-%COMP%]   .collaborator-form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-column-gap:10px;grid-row-gap:10px}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-grid-box[_ngcontent-%COMP%]   .collaborator-form-grid[_ngcontent-%COMP%]   .collaborator-form[_ngcontent-%COMP%]{position:relative;padding:10px}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-grid-box[_ngcontent-%COMP%]   .collaborator-form-grid[_ngcontent-%COMP%]   .collaborator-form[_ngcontent-%COMP%]   .collaborator-form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-column-gap:10px;grid-row-gap:5px}.collaborator-form-box[_ngcontent-%COMP%]   .collaborator-form-grid-box[_ngcontent-%COMP%]   .collaborator-form-grid[_ngcontent-%COMP%]   .collaborator-form[_ngcontent-%COMP%]   .sent-marker[_ngcontent-%COMP%]{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:hsla(0,0%,100%,.85);z-index:11}"]}),hJ);function mJ(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",10),ls("keyup.enter",(function(){return mn(n),fs().verifyCpf()})),es(2,"div",11),es(3,"div",12),es(4,"h2",13),Gs(5,"Novo funcion\xe1rio"),ts(),es(6,"p",14),Gs(7),ts(),ts(),ns(8,"io-btn",15),ts(),ns(9,"div",16),es(10,"span",17),Gs(11,"Digite o CPF e clique em Continuar."),ts(),ns(12,"div",16),es(13,"div",18),es(14,"input",19),ls("change",(function(){return mn(n),fs().checkErrorField("national_registry")})),ts(),es(15,"label",20),Gs(16,"CPF"),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(7),$s(i.companyTradingName),Bo(1),Zr("moduleName","collaborator")("action","create")("btnText","importar")("btnTitle","importar")("urlNavigation","collaborator-import"),Bo(6),Es(i.collaboratorFormFieldState.national_registry.class),Zr("formControlName","national_registry")}}function pJ(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function gJ(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function vJ(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function yJ(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function bJ(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function _J(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function kJ(e,t){if(1&e&&(es(0,"option",53),Gs(1),ts()),2&e){var n=t.index;vs("value",n+1),Bo(1),Qs("Dia ",n+1,"")}}function CJ(e,t){if(1&e&&(es(0,"div",46),ns(1,"div",18),es(2,"div",18),es(3,"select",54),Jr(4,kJ,2,2,"option",34),ts(),es(5,"label",55),Gs(6,"Dia de in\xedcio na escala"),ts(),ns(7,"fa-icon",36),ts(),ts()),2&e){var n=fs(2);Bo(3),Zr("formControlName","first_day"),Bo(1),Zr("ngForOf",n.selectFieldListJourneyDays),Bo(3),Zr("icon",n.iconSolidService.faCaretDown)}}function wJ(e,t){1&e&&(es(0,"div",56),es(1,"p",57),Gs(2,"Por favor, indique qual ser\xe1 o dia de in\xedcio na escala para este funcion\xe1rio."),ts(),ts())}function xJ(e,t){if(1&e){var n=as();es(0,"div",21),es(1,"div",11),es(2,"div",12),es(3,"h2",13),Gs(4),ts(),es(5,"p",22),Gs(6),es(7,"span",23),Gs(8),ts(),Gs(9,"?"),ts(),ts(),ts(),es(10,"div",24),es(11,"div",4),es(12,"div",18),es(13,"input",25),ls("change",(function(){return mn(n),fs().checkErrorField("name")})),ts(),es(14,"label",26),Gs(15,"Nome completo"),ts(),ts(),es(16,"div",18),es(17,"input",27),ls("change",(function(){return mn(n),fs().checkErrorField("national_registry")})),ts(),es(18,"label",28),Gs(19,"CPF"),ts(),ts(),ts(),es(20,"div",4),es(21,"div",18),es(22,"input",29),ls("change",(function(){return mn(n),fs().verifyDate("birth_date_form")})),ts(),es(23,"label",30),Gs(24,"Data de nascimento"),ts(),ts(),es(25,"div",18),es(26,"input",31),ls("change",(function(){return mn(n),fs().checkErrorField("email")})),ts(),es(27,"label",32),Gs(28,"E-mail"),ts(),ts(),ts(),es(29,"div",4),es(30,"div",18),es(31,"select",33),ls("change",(function(){return mn(n),fs().checkErrorField("department_id")})),Jr(32,pJ,2,2,"option",34),ts(),es(33,"label",35),Gs(34,"Departamento"),ts(),ns(35,"fa-icon",36),ts(),es(36,"div",18),es(37,"select",37),ls("change",(function(){return mn(n),fs().checkErrorField("unit_id")})),Jr(38,gJ,2,2,"option",34),ts(),es(39,"label",38),Gs(40,"Unidade"),ts(),ns(41,"fa-icon",36),ts(),ts(),es(42,"div",4),es(43,"io-datepicker",39),ls("dateSelectedEN",(function(e){return mn(n),fs().collaboratorForm.controls.begin_date.setValue(e)})),ts(),es(44,"div",18),es(45,"select",40),ls("change",(function(){return mn(n),fs().checkErrorField("point_rule_id")})),Jr(46,vJ,2,2,"option",34),ts(),es(47,"label",41),Gs(48,"Regra do ponto"),ts(),ns(49,"fa-icon",36),ts(),ts(),es(50,"div",4),es(51,"div",18),es(52,"select",42),ls("change",(function(){return mn(n),fs().checkErrorField("collaborator_settings_id")})),Jr(53,yJ,2,2,"option",34),ts(),es(54,"label",43),Gs(55,"Configura\xe7\xe3o de funcion\xe1rio"),ts(),ns(56,"fa-icon",36),ts(),es(57,"div",18),es(58,"select",44),ls("change",(function(){return mn(n),fs().checkErrorField("cost_center_id")})),Jr(59,bJ,2,2,"option",34),ts(),es(60,"label",45),Gs(61,"Centro de custo"),ts(),ns(62,"fa-icon",36),ts(),ts(),es(63,"div",4),es(64,"div",46),es(65,"select",47,48),ls("change",(function(){mn(n);var e=fs();return e.checkErrorField("journey_id"),e.checkJourneySelected()})),Jr(67,_J,2,2,"option",34),ts(),es(68,"label",49),Gs(69,"Escala"),ts(),ns(70,"fa-icon",36),es(71,"fa-icon",50),ls("click",(function(){mn(n);var e=Gr(66);return fs().showModalJourneyView(e.value)})),ts(),ts(),Jr(72,CJ,8,3,"div",51),ts(),Jr(73,wJ,3,0,"div",52),ts(),ts()}if(2&e){var i=fs();Bo(4),$s(i.collaboratorFounded?"Este funcion\xe1rio j\xe1 faz parte da iopoint.":"Novo funcion\xe1rio"),Bo(2),$s(i.collaboratorFounded?"Deseja adicion\xe1-lo como funcion\xe1rio \xe0 empresa ":""),Bo(2),$s(i.companyTradingName),Bo(5),Es(i.collaboratorFormFieldState.name.class),Zr("formControlName","name"),Bo(4),Es(i.collaboratorFormFieldState.national_registry.class),Zr("formControlName","national_registry"),Bo(5),Es(i.collaboratorFormFieldState.birth_date_form.class),Zr("dropSpecialCharacters",!1)("formControlName","birth_date_form"),Bo(4),Es(i.collaboratorFormFieldState.email.class),Zr("formControlName","email"),Bo(5),Es(i.collaboratorFormFieldState.department_id.class),Zr("formControlName","department_id"),Bo(1),Zr("ngForOf",i.selectFieldListDepartment),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Es(i.collaboratorFormFieldState.unit_id.class),Zr("formControlName","unit_id"),Bo(1),Zr("ngForOf",i.selectFieldListUnit),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Xs("datepicker required ",i.collaboratorFormFieldState.begin_date.class,""),Zr("labelText","Data de in\xedcio de uso do sistema")("startDate",i.currentDate)("minDate",i.minDateUseSystem),Bo(2),Es(i.collaboratorFormFieldState.point_rule_id.class),Zr("formControlName","point_rule_id"),Bo(1),Zr("ngForOf",i.selectFieldListPointRule),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(3),Es(i.collaboratorFormFieldState.collaborator_settings_id.class),Zr("formControlName","collaborator_settings_id"),Bo(1),Zr("ngForOf",i.selectFieldListCollaboratorSettings),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Es(i.collaboratorFormFieldState.cost_center_id.class),Zr("formControlName","cost_center_id"),Bo(1),Zr("ngForOf",i.selectFieldListCostCenter),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(3),Es(i.collaboratorFormFieldState.journey_id.class),Zr("formControlName","journey_id"),Bo(2),Zr("ngForOf",i.selectFieldListJourney),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("icon",i.iconRegularService.faEye),Bo(1),Zr("ngIf",i.especialJourney),Bo(1),Zr("ngIf",i.especialJourney)}}function MJ(e,t){1&e&&(es(0,"div"),es(1,"div",58),es(2,"h2",59),Gs(3,"Funcion\xe1rio cadastrado com sucesso!"),ts(),es(4,"h2",59),Gs(5,"O funcion\xe1rio esta apto"),ts(),es(6,"h2",60),Gs(7,"a registar o ponto."),ts(),es(8,"p",61),Gs(9,"O funcion\xe1rio vai receber no e-mail cadastrado as informa\xe7\xf5es para o registro do ponto."),ts(),es(10,"p",22),Gs(11,"Para completar a ficha cadastral do funcion\xe1rio clique em COMPLETAR ou MAIS TARDE para finalizar."),ts(),ts(),ts())}function SJ(e,t){if(1&e){var n=as();es(0,"io-btn",62),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts()}2&e&&Zr("moduleName","collaborator")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1)}function PJ(e,t){if(1&e){var n=as();es(0,"io-btn",63),ls("btnClick",(function(){return mn(n),fs().verifyCpf()})),ts()}2&e&&Zr("moduleName","collaborator")("action","create")("btnColor","btn-blue-bg")("btnText","Continuar")("btnTitle","Continuar")("btnClassList","mrgL2")}function TJ(e,t){if(1&e){var n=as();es(0,"io-btn",63),ls("btnClick",(function(){return mn(n),fs().sendCollaborator()})),ts()}if(2&e){var i=fs();Zr("moduleName","collaborator")("action","create")("btnColor","btn-blue-bg")("btnText",i.collaboratorFounded?"Adicionar":"Cadastrar")("btnTitle",i.collaboratorFounded?"Adicionar":"Cadastrar")("btnClassList","mrgL2")}}function OJ(e,t){if(1&e&&ns(0,"io-btn",64),2&e){var n=fs();Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue")("btnText","Completar")("btnTitle","Completar")("urlNavigation","collaborator-update/"+n.collaboratorId)}}function LJ(e,t){if(1&e){var n=as();es(0,"io-btn",65),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts()}2&e&&Zr("moduleName","collaborator")("action","")("btnColor","btn-blue-bg")("btnText","Mais tarde")("btnTitle","Mais tarde")("btnClassList","mrgL2")("useValidation",!1)}function DJ(e,t){if(1&e){var n=as();es(0,"io-journey-modal-view",66),ls("hideModal",(function(){return mn(n),fs().hideModalJourneyView()})),ts()}if(2&e){var i=fs();Zr("journeyId",i.journeyId)("showModal",i.modalJourneyView)}}var IJ,FJ=((IJ=function(){return d((function e(t,n,i,o,a,r,s,l,u,d){var h=this;c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.journeyDatabase=l,this.storageService=u,this.validService=d,this.showModal=!1,this.hideModal=new Mc,this.updateList=new Mc,this.collaboratorFormFieldState={},this.collaboratorFounded=!1,this.collaboratorId=null,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.companyTradingName=this.storageService.decodeFromLocalStorage("companyTradingName"),this.currentDate=this.functionsService.currentDateEN("01/01/2020","min"),this.especialJourney=!1,this.journeyId=null,this.minDateUseSystem=this.functionsService.getFirstLastDay()[0],this.modalJourneyView=!1,this.selectFieldListDepartment=[],this.selectFieldListCostCenter=[],this.selectFieldListCollaboratorSettings=[],this.selectFieldListJourney=[],this.selectFieldListJourneyDays=[],this.selectFieldListPointRule=[],this.selectFieldListUnit=[],this.step=1,this.collaboratorForm=this.formBuilder.group({begin_date:new Wm("",[Jf.required]),birth_date_form:new Wm("",[Jf.required]),collaborator_settings_id:new Wm("",[Jf.required]),department_id:new Wm("",[Jf.required]),cost_center_id:new Wm("",[Jf.required]),first_day:new Wm("0",[Jf.required]),email:new Wm("",[Jf.required]),journey_id:new Wm("",[Jf.required]),name:new Wm("",[Jf.required]),national_registry:new Wm("",[Jf.required]),point_rule_id:new Wm("",[Jf.required]),unit_id:new Wm("",[Jf.required])}),Object.keys(this.collaboratorForm.controls).forEach((function(e){h.collaboratorFormFieldState[e]={class:""}}))}),[{key:"ngOnChanges",value:function(){this.showModal&&(this.collaboratorForm.reset(),this.collaboratorForm.get("begin_date").setValue(this.currentDate))}},{key:"verifyCpf",value:function(){var e=this,t=this.collaboratorForm.get("national_registry").value;this.validService.validCPF(t)?(this.collaboratorFounded=!1,this.collaboratorDatabase.getPersonByNationalRegister({national_registry:t},(function(t){if(!t.error){var n=t.data.personData;n&&(e.collaboratorForm.get("birth_date_form").setValue(null!=n.birth_date?e.functionsService.dateENtoBR(n.birth_date):""),e.collaboratorForm.get("email").setValue(n.email),e.collaboratorForm.get("name").setValue(n.name),e.collaboratorForm.get("national_registry").setValue(n.national_registry),e.collaboratorFounded=!0),e.getSelectFieldList(),e.step++}}))):this.functionsService.openSnackBar("invalidCpf")}},{key:"getSelectFieldList",value:function(){var e=this;this.companyDatabase.getSelectList({listRequired:JSON.stringify(["collaborator_settings","department","costCenter","journey","point_rule","unit"])},(function(t){t.error||e.loadSelectFieldList(t.data)}))}},{key:"loadSelectFieldList",value:function(e){var t=this;e.collaborator_settings.forEach((function(e){t.selectFieldListCollaboratorSettings.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListCollaboratorSettings.push(e)})),e.department.forEach((function(e){t.selectFieldListDepartment.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListDepartment.push(e)})),e.costCenter.forEach((function(e){t.selectFieldListCostCenter.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListCostCenter.push(e)})),e.journey.forEach((function(e){t.selectFieldListJourney.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListJourney.push(e)})),e.point_rule.forEach((function(e){t.selectFieldListPointRule.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListPointRule.push(e)})),e.unit.forEach((function(e){t.selectFieldListUnit.findIndex((function(t){return t.id==e.id}))<0&&t.selectFieldListUnit.push(e)})),this.resetSelectForm()}},{key:"resetSelectForm",value:function(){var e=this;Object.keys(this.collaboratorForm.controls).forEach((function(t){t.includes("_id")&&e.collaboratorForm.get(t).setValue(null)}))}},{key:"checkJourneySelected",value:function(){var e=this,t=this.collaboratorForm.get("journey_id").value,n=this.selectFieldListJourney.find((function(e){return e.id==t}));"5x1"==n.type||"12x36"==n.type||"24x48"==n.type||"24x72"==n.type||"custom_hour"==n.type?this.journeyDatabase.getJourneyHours(t,(function(t){e.selectFieldListJourneyDays=t.data.journeyHours,e.collaboratorForm.get("first_day").setValue(e.selectFieldListJourneyDays[0].first_day),e.especialJourney=!0})):(this.collaboratorForm.get("first_day").setValue("0"),this.especialJourney=!1)}},{key:"sendCollaborator",value:function(){var e=this,t=0;if(Object.keys(this.collaboratorForm.controls).forEach((function(n){e.checkErrorField(n)||t++})),this.validService.validCPF(this.collaboratorForm.get("national_registry").value))if(this.validService.validEmail(this.collaboratorForm.get("email").value))if(0==t){var n=Object.assign({birth_date:this.functionsService.dateBRtoEN(this.collaboratorForm.get("birth_date_form").value)},this.collaboratorForm.value);this.collaboratorDatabase.postCollaborator(n,(function(t){t.error||(e.collaboratorId=t.data.collaboratorId,e.emitUpdateList(Object.assign(Object.assign({},e.collaboratorForm.value),{collaborator_id:e.collaboratorId})),e.step++)}))}else this.functionsService.openSnackBar("emptyField");else this.functionsService.openSnackBar("invalidEmail");else this.functionsService.openSnackBar("invalidCpf")}},{key:"showModalJourneyView",value:function(e){this.journeyId=e,this.modalJourneyView=!0}},{key:"hideModalJourneyView",value:function(){this.journeyId=null,this.modalJourneyView=!1}},{key:"checkErrorField",value:function(e){return this.collaboratorForm.get(e).valid?(this.collaboratorFormFieldState[e].class="",!0):(this.collaboratorFormFieldState[e].class="emptyError",!1)}},{key:"emitUpdateList",value:function(e){this.updateList.emit(e)}},{key:"verifyDate",value:function(e){this.collaboratorForm.get(e).value.length>2&&this.collaboratorForm.get(e).setValue(this.validService.validDate(this.collaboratorForm.get(e).value))}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.collaboratorForm.reset(),this.step=1}}])}()).\u0275fac=function(e){return new(e||IJ)($r(wp),$r(yM),$r(LN),$r(Mz),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(TN))},IJ.\u0275cmp=Ot({type:IJ,selectors:[["io-collaborator-modal-form"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",updateList:"updateList"},features:[dl],decls:12,vars:11,consts:[[3,"showModal","hideModal"],[3,"formGroup"],[4,"ngIf"],["class","formBox",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick",4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick",4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation",4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","useValidation","btnClick",4,"ngIf"],[3,"journeyId","showModal","hideModal",4,"ngIf"],[1,"minHeightBox",3,"keyup.enter"],[1,"blockTop","top"],[1,"wdFull","mrgB2"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[1,"sizeC","fontBold"],[1,"btnSmall","mrgB2",3,"moduleName","action","btnText","btnTitle","urlNavigation"],[1,"spacer"],[1,"flex","start","sizeC"],[1,"form-group","inputAnimated"],["autocomplete","off","id","firstCpf","mask","000.000.000-00","maxlength","14","placeholder","","required","","type","text",3,"formControlName","change"],["for","firstCpf",1,"form-label","required"],[1,"formBox"],[1,"sizeC"],[1,"fontBold"],[1,"pdgT1","minHeightBox","split"],["autocomplete","off","autofocus","","id","name","placeholder","","required","","type","text",3,"formControlName","change"],["for","name",1,"form-label","required"],["autocomplete","off","id","national_registry","mask","000.000.000-00","maxlength","14","placeholder","","required","","type","text",3,"formControlName","change"],["for","national_registry",1,"form-label","required"],["autocomplete","off","autofocus","","id","birth_date_form","mask","00/00/0000","maxlength","10","required","","type","text",3,"dropSpecialCharacters","formControlName","change"],["for","birth_date_form",1,"form-label","required"],["autocomplete","off","id","email","placeholder","","type","text","required","",3,"formControlName","change"],["for","email",1,"form-label","required"],["id","department_id","required","",3,"formControlName","change"],[3,"value",4,"ngFor","ngForOf"],["for","department_id",1,"form-label","required","flex"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["id","unit_id","required","",3,"formControlName","change"],["for","unit_id",1,"form-label","required","flex"],[3,"labelText","startDate","minDate","dateSelectedEN"],["id","point_rule_id","required","",3,"formControlName","change"],["for","point_rule_id",1,"form-label","required","flex"],["id","collaborator_settings_id","required","",3,"formControlName","change"],["for","collaborator_settings_id",1,"form-label","required","flex"],["id","cost_center_id","required","",3,"formControlName","change"],["for","cost_center_id",1,"form-label","required","flex"],[1,"form-group","inputAnimated","selectViewList"],["id","journey_id","required","",3,"formControlName","change"],["selectJourney",""],["for","journey_id",1,"form-label","required","flex"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","iconViewJourney",3,"icon","click"],["class","form-group inputAnimated selectViewList",4,"ngIf"],["class","flex center pdgB2",4,"ngIf"],[3,"value"],["id","first_day","required","",3,"formControlName"],["for","first_day",1,"form-label","flex"],[1,"flex","center","pdgB2"],[1,"sizeC","center"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp"],[1,"sizeA","cl-blue","fontUp","pdgB2","mrgB2"],[1,"sizeC","pdgB2","mrgB2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","useValidation","btnClick"],[3,"journeyId","showModal","hideModal"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),Jr(2,mJ,17,10,"div",2),Jr(3,xJ,74,65,"div",3),Jr(4,MJ,12,0,"div",2),es(5,"div",4),Jr(6,SJ,1,6,"io-btn",5),Jr(7,PJ,1,6,"io-btn",6),Jr(8,TJ,1,6,"io-btn",6),Jr(9,OJ,1,6,"io-btn",7),Jr(10,LJ,1,7,"io-btn",8),ts(),ts(),ts(),Jr(11,DJ,1,2,"io-journey-modal-view",9)),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.collaboratorForm),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(1),Zr("ngIf",3==t.step),Bo(2),Zr("ngIf",t.step<3),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(1),Zr("ngIf",3==t.step),Bo(1),Zr("ngIf",3==t.step),Bo(1),Zr("ngIf",null!=t.journeyId))},directives:[CE,Hf,ip,sh,jD,If,DE,kp,bp,Vf,vp,vm,ah,FD,UA,ym,xm,jW],styles:[".spacer[_ngcontent-%COMP%]{height:50px}.borderBottom[_ngcontent-%COMP%]{border-color:var(--cl-gray-dark)}.blockTop[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media (max-width:470px){.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]{display:block}.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{height:36px}}"]}),IJ);function AJ(e,t){if(1&e){var n=as();es(0,"span",25),ls("click",(function(){return mn(n),fs().showModalDeletePhoto()})),Gs(1,"Excluir foto"),ts()}}function EJ(e,t){1&e&&(es(0,"p",26),Gs(1,'Nova Foto - Se deseja usar esta foto clique em "SALVAR".'),ts())}var BJ,NJ=((BJ=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyService=o,this.databaseService=a,this.functionService=r,this.collaboratorId=null,this.showModal=!1,this.hideModal=new Mc,this.collaboratorPhoto=null,this.collaboratorHasPhoto=!1,this.imgSource="/assets/img/photo-user.png",this.modalDeletePhoto=!1,this.faceRecognitionForm=this.formBuilder.group({twins:new Wm(!1,[Jf.required]),force:new Wm(!1,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;if(this.resetPreview(),this.collaboratorPhoto=null,this.collaboratorHasPhoto=!1,this.collaboratorId){var t=this.databaseService.currentDatabaseUrl(),n=this.companyService.getId();this.collaboratorDatabase.getCollaborator(this.collaboratorId,(function(i){i.error||(null!=i.data.collaboratorData.photo_face_recognition&&(e.collaboratorHasPhoto=!0),e.imgSource=t+"/storage/company_"+n+"/collaborator/collaborator_"+e.collaboratorId+"/face_recognition/"+i.data.collaboratorData.photo_face_recognition)}))}}},{key:"handleFile",value:function(e){e.size/1e6>4.5?this.functionService.openSnackBar("Tamanho m\xe1ximo de arquivo excedido. Tamanho m\xe1ximo 5mb.","error"):["image/jpeg","image/jpg","image/png"].includes(e.type)?(this.collaboratorPhoto=e,this.previewImg()):this.functionService.openSnackBar("Tipo de arquivo incompat\xedvel","error")}},{key:"previewImg",value:function(){var e=this,t=new FileReader;t.onload=function(t){return e.imgSource=t.target.result},t.readAsDataURL(this.collaboratorPhoto)}},{key:"resetPreview",value:function(){this.imgSource="/assets/img/photo-user.png"}},{key:"uploadPhoto",value:function(){var e=this;if(null!=this.collaboratorPhoto){var t=new FormData;t.append("collaboratorId",this.collaboratorId),t.append("collaboratorPhoto",this.collaboratorPhoto),t.append("twins",this.faceRecognitionForm.get("twins").value),t.append("force",this.faceRecognitionForm.get("force").value),this.collaboratorDatabase.postCollaboratorFaceRecognitionPhoto(t,(function(t){t.error||e.closeModal()}))}else this.functionService.openSnackBar("Imagem obrigat\xf3ria!","error")}},{key:"showModalDeletePhoto",value:function(){this.modalDeletePhoto=!0}},{key:"deletePhoto",value:function(){var e=this;this.collaboratorDatabase.deleteCollaboratorPhoto(this.collaboratorId,(function(t){t.error||(e.resetPreview(),e.modalDeletePhoto=null,e.collaboratorHasPhoto=!1,e.hideModalDeletePhoto())}))}},{key:"hideModalDeletePhoto",value:function(){this.modalDeletePhoto=!1}},{key:"closeModal",value:function(){this.hideModal.emit(),this.faceRecognitionForm.reset()}}])}()).\u0275fac=function(e){return new(e||BJ)($r(wp),$r(yM),$r(LN),$r(tI),$r(tT),$r(zP))},BJ.\u0275cmp=Ot({type:BJ,selectors:[["io-collaborator-modal-form-face-recognition"]],inputs:{collaboratorId:"collaboratorId",showModal:"showModal"},outputs:{hideModal:"hideModal"},features:[dl],decls:46,vars:25,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2"],[1,"flex","top"],[1,"photo-box"],[1,"photo-box-holder"],[1,"uploadImgBox"],["type","file","accept",".png, .jpg, .jpeg",3,"multiple","change"],["alt","collaboratorImg",3,"src","error"],[1,"detailHover","anmtd2"],[1,"flex","mrgB1"],["class","flex cl-red clickPlace",3,"click",4,"ngIf"],["class","sizeD",4,"ngIf"],[1,"txt-box","pdgL2"],[1,"sizeB","fontBold","pdgB2","mrgB1"],[1,"sizeC","mrgB1"],[1,"flex","mrgB2",3,"formGroup"],[1,"radioBox","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark"],[1,"img-box-instruction"],["src","assets/img/face-recognition-instructions.png","alt","instructions"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[3,"showModal","title","text","btnTextConfirm","hideModal","confirmClick"],[1,"flex","cl-red","clickPlace",3,"click"],[1,"sizeD"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),es(5,"div",5),es(6,"input",6),ls("change",(function(e){return t.handleFile(e.target.files[0])})),ts(),es(7,"img",7),ls("error",(function(){return t.resetPreview()})),ts(),es(8,"span",8),Gs(9,"+"),ts(),ts(),ts(),es(10,"div",9),Jr(11,AJ,2,0,"span",10),Jr(12,EJ,2,0,"p",11),ts(),ts(),es(13,"div",12),es(14,"h3",13),Gs(15,"Requisitos para o reconhecimento:"),ts(),es(16,"p",14),Gs(17,"- Verifique se o rosto est\xe1 vis\xedvel e a testa n\xe3o est\xe1 coberta por cabelos."),ts(),es(18,"p",14),Gs(19,"- Enquadre todo o rosto, olhe para a c\xe2mera e esteja de olhos abertos durante a foto."),ts(),es(20,"p",14),Gs(21,"- N\xe3o utilize adornos (\xf3culos, chap\xe9us, etc...)."),ts(),es(22,"p",14),Gs(23,"- Enquadre da cabe\xe7a aos ombros."),ts(),es(24,"p",14),Gs(25,"- Utilize um fundo neutro ou branco, evite sombras."),ts(),es(26,"p",14),Gs(27,"- Fa\xe7a uma express\xe3o neutra e natural, mantenha os bra\xe7os ao longo do corpo."),ts(),es(28,"p",14),Gs(29,"- N\xe3o se mantenha muito pr\xf3ximo ou muito longe da c\xe2mera ao fotografar."),ts(),es(30,"div",15),es(31,"label",16),Gs(32,"Possui g\xeameo id\xeantico nesta empresa. "),ns(33,"input",17),ns(34,"span",18),ts(),ts(),es(35,"div",15),es(36,"label",16),Gs(37,"Imagem de baixa qualidade. "),ns(38,"input",17),ns(39,"span",18),ts(),ts(),ts(),ts(),es(40,"span",19),ns(41,"img",20),ts(),ts(),es(42,"div",21),es(43,"io-btn",22),ls("btnClick",(function(){return t.closeModal()})),ts(),es(44,"io-btn",23),ls("btnClick",(function(){return t.uploadPhoto()})),ts(),ts(),ts(),es(45,"io-modal-confirm",24),ls("hideModal",(function(){return t.hideModalDeletePhoto()}))("confirmClick",(function(){return t.deletePhoto()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(6),Zr("multiple",!1),Bo(1),Zr("src",t.imgSource,mo),Bo(4),Zr("ngIf",t.collaboratorHasPhoto&&null==t.collaboratorPhoto),Bo(1),Zr("ngIf",null!=t.collaboratorPhoto),Bo(18),Zr("formGroup",t.faceRecognitionForm),Bo(3),Zr("formControlName","twins"),Bo(2),Zr("formGroup",t.faceRecognitionForm),Bo(3),Zr("formControlName","force"),Bo(5),Zr("moduleName","collaborator")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("btnClassList","mrgL2"),Bo(1),Zr("showModal",t.modalDeletePhoto)("title","Deseja excluir a foto")("text","A exclus\xe3o da foto imperdir\xe1 o funcion\xe1rio de registrar o ponto atr\xe1ves do reconhecimento facial.")("btnTextConfirm","Excluir"))},directives:[CE,sh,Hf,ip,Of,Vf,vp,jD,UB],styles:[".photo-box[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;max-width:300px;width:400px;min-width:200px;border:1px solid var(--primary-color);margin:0 0 2px}.photo-box[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0;margin:0}.photo-box[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]   .detailHover[_ngcontent-%COMP%]{border-radius:0}.txt-box[_ngcontent-%COMP%]{width:100%}.txt-box[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:1.1rem}.img-box-instruction[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.img-box-instruction[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin:0}@media (max-width:470px){.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]{display:block}.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{height:36px}}"]}),X_([fL()],BJ.prototype,"collaboratorId",void 0),BJ);function RJ(e,t){if(1&e&&(es(0,"div",11),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("CPF: ",n.collaboratorNationalRegistry," ")}}function jJ(e,t){if(1&e&&(es(0,"div",11),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("Senha: ",n.collaboratorHash," ")}}function zJ(e,t){if(1&e&&(es(0,"div",11),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("ID: ",n.collaboratorId," ")}}var VJ,HJ=((VJ=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.collaboratorDatabase=n,this.storageService=i,this.functionsService=o,this.router=a,this.showModal=!0,this.collaboratorId="",this.collaboratorName="",this.hideModal=new Mc,this.collaboratorEmail="",this.collaboratorHash="",this.collaboratorNationalRegistry="",this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId}),[{key:"ngOnChanges",value:function(){""!=this.collaboratorId&&this.showModal&&this.showModalPassword(this.collaboratorId)}},{key:"showModalPassword",value:function(e){var t=this,n=this.storageService.decodeFromLocalStorage("companyId"),i=this.storageService.decodeFromLocalStorage("userId");this.collaboratorDatabase.getCollaboratorPassword(e,n,i,(function(e){e.error||(t.collaboratorName=(e=e.data.collaborator).name,t.collaboratorEmail=e.email,t.collaboratorHash=e.hash_helper,t.collaboratorNationalRegistry=e.national_registry)}))}},{key:"resendPasswordToEmail",value:function(){var e=this;this.collaboratorDatabase.getResendPassword(this.collaboratorId,(function(t){t.error||e.closeModal()}))}},{key:"resendPasswordToSms",value:function(){var e=this;this.collaboratorDatabase.getSendPasswordToSms(this.collaboratorId,(function(t){t.error||e.closeModal()}))}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||VJ)($r(wp),$r(LN),$r(YP),$r(zP),$r(yM))},VJ.\u0275cmp=Ot({type:VJ,selectors:[["io-collaborator-modal-access-data"]],inputs:{showModal:"showModal",collaboratorId:"collaboratorId",collaboratorName:"collaboratorName"},outputs:{hideModal:"hideModal"},features:[dl],decls:19,vars:23,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","fontUp","fontBold","cl-blue","center"],[1,"passwordBox"],[1,"siceC","borderBottom"],["class","sizeB cl-magenta pdgT1",4,"ngIf"],[1,"downloadBox"],[1,"flex","sizeC","pdgB2","center","fontBold"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[1,"sizeB","cl-magenta","pdgT1"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Dados de acesso:"),ts(),es(4,"div",3),es(5,"span",4),Gs(6),ts(),es(7,"span",4),Gs(8),ts(),Jr(9,RJ,2,1,"div",5),Jr(10,jJ,2,1,"div",5),Jr(11,zJ,2,1,"div",5),es(12,"div",6),es(13,"span",7),Gs(14,"Deseja enviar uma nova senha para o funcion\xe1rio?"),ts(),ts(),ts(),ts(),es(15,"div",8),es(16,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),es(17,"io-btn",10),ls("btnClick",(function(){return t.resendPasswordToEmail()})),ts(),es(18,"io-btn",10),ls("btnClick",(function(){return t.resendPasswordToSms()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(6),Qs("Funcion\xe1rio: ",t.collaboratorName,""),Bo(2),Qs("Email: ",t.collaboratorEmail,""),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(5),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Fechar")("btnTitle","Fechar"),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Enviar nova senha por email")("btnTitle","Enviar nova senha por email")("btnClassList","mrgL1"),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Enviar nova senha por sms")("btnTitle","Enviar nova senha por sms")("btnClassList","mrgL1"))},directives:[CE,sh,jD],styles:[".passwordBox[_ngcontent-%COMP%]{max-width:480px;margin:60px auto 0}.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0;display:flex;padding:15px 0}.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{border:none}.passwordBox[_ngcontent-%COMP%]   .downloadBox[_ngcontent-%COMP%]{margin:30px auto 0}.passwordBox[_ngcontent-%COMP%]   .downloadBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:40px;margin:0 auto}@media (max-width:500px){.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{justify-content:center}}"]}),VJ);function YJ(e,t){if(1&e){var n=as();es(0,"div",15),es(1,"p",5),es(2,"span",9),Gs(3,"Aten\xe7\xe3o!"),ts(),Gs(4," Este funcion\xe1rio possui fator de banco de horas!"),ts(),es(5,"p",16),Gs(6,"Deseja converter o banco banco de horas fatorado para horas normais?"),ts(),es(7,"div",17),es(8,"div",18),es(9,"label",19),Gs(10,"N\xe3o "),es(11,"input",20),ls("click",(function(){return mn(n),fs().toggleCheckboxBankTimeFactored(0)})),ts(),ns(12,"span",21),ts(),ns(13,"div",22),es(14,"label",23),Gs(15,"Sim "),es(16,"input",20),ls("click",(function(){return mn(n),fs().toggleCheckboxBankTimeFactored(1)})),ts(),ns(17,"span",21),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(7),Zr("formGroup",i.collaboratorForm),Bo(4),Zr("checked",i.checkboxBankTimeFactored1),Bo(5),Zr("checked",i.checkboxBankTimeFactored2)}}function qJ(e,t){if(1&e){var n=as();es(0,"div",24),es(1,"p",5),es(2,"span",9),Gs(3,"Aten\xe7\xe3o!"),ts(),Gs(4," Este funcion\xe1rio est\xe1 cadastrado como gestor!"),ts(),es(5,"p",16),Gs(6,"Tamb\xe9m deseja inativar o cadastro do gestor "),es(7,"span",4),Gs(8),ts(),Gs(9,"?"),ts(),es(10,"div",17),es(11,"div",18),es(12,"label",19),Gs(13,"N\xe3o "),es(14,"input",20),ls("click",(function(){return mn(n),fs().toggleCheckbox(0)})),ts(),ns(15,"span",21),ts(),ns(16,"div",22),es(17,"label",23),Gs(18,"Sim "),es(19,"input",20),ls("click",(function(){return mn(n),fs().toggleCheckbox(1)})),ts(),ns(20,"span",21),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(8),$s(i.collaboratorName),Bo(2),Zr("formGroup",i.collaboratorForm),Bo(4),Zr("checked",i.checkbox1),Bo(5),Zr("checked",i.checkbox2)}}var UJ,WJ=((UJ=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.storageService=o,this.functionsService=a,this.validService=r,this.showModal=!0,this.collaboratorData={},this.hideModal=new Mc,this.updateList=new Mc,this.resetDate=new Mc,this.currentDate=this.functionsService.currentDateEN("0000-00-00","min"),this.collaboratorId="",this.haveBankTimeFactored="",this.collaboratorName="",this.userId=null,this.userIdLocalStorage=this.storageService.decodeFromLocalStorage("userId"),this.checkMarkOption=!1,this.checkbox1=!0,this.checkbox2=!1,this.checkboxBankTimeFactored1=!0,this.checkboxBankTimeFactored2=!1,this.lastClickedCheckbox=null,this.lastClickedCheckboxBankTimeFactored=null,this.checkDeleteUser=0,this.checkBankTimeFactored=0}),[{key:"ngOnInit",value:function(){this.maxEndDate=this.collaboratorData.begin_date,this.collaboratorForm=this.formBuilder.group({dismissal_date:new Wm("",[Jf.required])})}},{key:"ngOnChanges",value:function(){this.showCollaboratorData()}},{key:"showCollaboratorData",value:function(){this.collaboratorData!=[]&&(this.collaboratorName=this.collaboratorData.name,this.collaboratorId=this.collaboratorData.id,this.userId=this.collaboratorData.user_id,this.haveBankTimeFactored=this.collaboratorData.total_bankTime),"object"==typeof this.userId&&null!==this.userId&&"id"in this.userId&&(this.userId=this.userId.id)}},{key:"toggleCheckbox",value:function(e){e===this.lastClickedCheckbox?0===e?(this.checkbox2=!this.checkbox2,this.checkbox1=!this.checkbox1,this.checkDeleteUser=this.checkbox1?0:1):1===e&&(this.checkbox1=!this.checkbox1,this.checkbox2=!this.checkbox2,this.checkDeleteUser=this.checkbox2?1:0):0===e?(this.checkbox1=!this.checkbox1,this.checkbox2=!1,this.checkDeleteUser=0):1===e&&(this.checkbox2=!this.checkbox2,this.checkbox1=!1,this.checkDeleteUser=1),this.lastClickedCheckbox=e}},{key:"toggleCheckboxBankTimeFactored",value:function(e){0===e?this.checkboxBankTimeFactored1?(this.checkboxBankTimeFactored1=!1,this.checkboxBankTimeFactored2=!0,this.checkBankTimeFactored=1):(this.checkboxBankTimeFactored1=!0,this.checkboxBankTimeFactored2=!1,this.checkBankTimeFactored=0):1===e&&(this.checkboxBankTimeFactored2?(this.checkboxBankTimeFactored2=!1,this.checkboxBankTimeFactored1=!0,this.checkBankTimeFactored=0):(this.checkboxBankTimeFactored2=!0,this.checkboxBankTimeFactored1=!1,this.checkBankTimeFactored=1)),this.lastClickedCheckboxBankTimeFactored=e}},{key:"blockCollaborator",value:function(){var e=this,t=this.functionsService.dateBRtoEN(this.collaboratorForm.controls.dismissal_date.value);if(!t||t.length<10)this.functionsService.openSnackBar("emptyField");else if("00-00-0000"!=t){var n=this.collaboratorData.begin_date;parseInt(this.functionsService.removeSings(t))<parseInt(this.functionsService.removeSings(n))?this.functionsService.openSnackBar("A data de demiss\xe3o n\xe3o pode ser inferior a data de in\xedcio de uso do sistema."):("object"==typeof this.userId&&null!==this.userId&&"id"in this.userId&&(this.userId=this.userId.id),this.collaboratorDatabase.putCollaboratorDismissal(this.collaboratorId,{dismissal_date:t,userId:this.userId,checkBankTimeFactored:this.checkBankTimeFactored,totalBankFactored:this.haveBankTimeFactored,checkDeleteUser:this.checkDeleteUser},(function(n){n.error||(e.emmitUpdate(e.collaboratorId,t),e.closeModal())})))}else this.functionsService.openSnackBar("Informe a data da demiss\xe3o.")}},{key:"emmitUpdate",value:function(e,t){this.updateList.emit({id:e,dismissal_date:t}),this.closeModal()}},{key:"verifyDate",value:function(e){this.collaboratorForm.controls[e].value.length>2&&this.collaboratorForm.controls[e].setValue(this.validService.validDate(this.collaboratorForm.controls[e].value))}},{key:"setBankTimeEndDate",value:function(e){this.collaboratorForm.controls.dismissal_date.setValue(e)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.collaboratorForm.controls.dismissal_date.setValue(this.functionsService.currentDateBR("00/00/0000","min")),this.collaboratorData=[],this.userId=null}}])}()).\u0275fac=function(e){return new(e||UJ)($r(wp),$r(yM),$r(LN),$r(YP),$r(zP),$r(TN))},UJ.\u0275cmp=Ot({type:UJ,selectors:[["io-collaborator-modal-dismissal"]],inputs:{showModal:"showModal",collaboratorData:"collaboratorData"},outputs:{hideModal:"hideModal",updateList:"updateList",resetDate:"resetDate"},features:[dl],decls:23,vars:19,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB2"],[1,"sizeC"],[1,"fontBold"],[1,"sizeC","mrgB2"],[1,"mrgB2",3,"formGroup"],[1,"wdMax25"],[1,"required",3,"resetDate","minDate","maxDate","dateSelectedEN"],[1,"sizeB","cl-red","fontBold"],["class","mrgB3 mrgT2",4,"ngIf"],["class","mrgB3 mrgT3",4,"ngIf"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[1,"mrgB3","mrgT2"],[1,"sizeC","mrgB1"],[3,"formGroup"],[1,"form-group","inputAnimated"],[1,"item","radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","click"],[1,"checkmark"],[1,"mrgL2","mrgR2"],[1,"mrgL","item","radioBox","sizeC","mrgR2"],[1,"mrgB3","mrgT3"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Demitir"),ts(),es(4,"p",3),Gs(5,"Voc\xea tem certeza que deseja demitir o funcion\xe1rio "),es(6,"span",4),Gs(7),ts(),Gs(8," ?"),ts(),es(9,"p",5),Gs(10,"Por favor, digite a data final do registro de ponto."),ts(),es(11,"div",6),es(12,"div",7),es(13,"io-datepicker",8),ls("dateSelectedEN",(function(e){return t.setBankTimeEndDate(e)})),ts(),ts(),ts(),es(14,"p",5),es(15,"span",9),Gs(16,"Aten\xe7\xe3o!"),ts(),Gs(17," A partir dessa data, o funcion\xe1rio n\xe3o ter\xe1 mais acesso ao aplicativo."),ts(),Jr(18,YJ,18,3,"div",10),Jr(19,qJ,21,4,"div",11),ts(),es(20,"div",12),es(21,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),ts(),es(22,"io-btn",14),ls("btnClick",(function(){return t.blockCollaborator()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),$s(t.collaboratorName),Bo(4),Zr("formGroup",t.collaboratorForm),Bo(2),Zr("resetDate",t.resetDate)("minDate",t.maxEndDate)("maxDate",t.currentDate),Bo(5),Zr("ngIf","-"!=t.haveBankTimeFactored),Bo(1),Zr("ngIf",t.userId&&t.userIdLocalStorage!=t.userId),Bo(2),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar"),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Demitir")("btnTitle","Demitir")("btnClassList","mrgL1"))},directives:[CE,Hf,ip,UA,sh,jD],styles:[".passwordBox[_ngcontent-%COMP%]{margin:60px 80px 0}.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0;display:flex;padding:15px 0}.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{border:none}.passwordBox[_ngcontent-%COMP%]   .downloadBox[_ngcontent-%COMP%]{margin:30px auto 0}.passwordBox[_ngcontent-%COMP%]   .downloadBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:40px;margin:0 auto}.mrgL[_ngcontent-%COMP%]{margin-left:15%}.mrgT3[_ngcontent-%COMP%]{margin-top:8%}.mrgB3[_ngcontent-%COMP%]{margin-bottom:10%}"]}),UJ);function JJ(e,t){if(1&e&&(es(0,"option",16),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.description),Bo(1),Qs("",n.description," ")}}function GJ(e,t){if(1&e&&(es(0,"span",39),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function $J(e,t){if(1&e&&(es(0,"span",40),ns(1,"fa-icon",41),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),ys("title","Funcion\xe1rio de Anivers\xe1rio no M\xeas - ",i.validBirthDay(n.birth_date)," anos"),Zr("icon",i.iconSolidService.faBirthdayCake)}}function QJ(e,t){1&e&&(es(0,"span",45),Gs(1,"Atrasado"),ts())}function KJ(e,t){1&e&&(es(0,"span",46),Gs(1,"Descanso"),ts())}function ZJ(e,t){1&e&&(es(0,"span",47),Gs(1,"Trabalhando"),ts())}function XJ(e,t){if(1&e&&(es(0,"span",35),Jr(1,QJ,2,0,"span",42),Jr(2,KJ,2,0,"span",43),Jr(3,ZJ,2,0,"span",44),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngIf",1==n.is_late&&0==n.working),Bo(1),Zr("ngIf",0==n.is_late&&0==n.working),Bo(1),Zr("ngIf",1==n.working)}}function eG(e,t){if(1&e&&(es(0,"span",35),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.dismissal_date.split("-").reverse().join("/"))}}function tG(e,t){if(1&e){var n=as();es(0,"io-icon",48),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalFaceRecognition(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","faceRecognition")("iconClassList","mrgR1")("iconTitle","Reconhecimento facial")}function nG(e,t){if(1&e){var n=as();es(0,"li",27),es(1,"span",28),Jr(2,GJ,2,1,"span",29),Jr(3,$J,2,2,"span",30),es(4,"span"),Gs(5),ts(),ts(),es(6,"span",31),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalJourney(e.journey_id,e.id)})),ns(7,"fa-icon",32),es(8,"span",33),Gs(9),ts(),ts(),Jr(10,XJ,4,3,"span",34),Jr(11,eG,2,1,"span",34),es(12,"span",35),Jr(13,tG,1,4,"io-icon",36),es(14,"io-icon",37),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalPassword(e.id,e.name)})),ts(),ns(15,"io-icon",38),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Zr("ngIf","0"!=o.validBirthDay(i.birth_date)),Bo(1),Xs("sizeC ",null!=i.dismissal_date?"cl-gray":"",""),Bo(1),$s(i.name),Bo(2),Zr("icon",o.iconRegularService.faEye),Bo(2),Ks("",i.journey_description," ",0!=i.first_day&&null!=i.first_day?"(Dia "+i.first_day+")":"",""),Bo(1),Zr("ngIf",!i.dismissal_date),Bo(1),Zr("ngIf",i.dismissal_date),Bo(2),Zr("ngIf",i.hasFaceRecognition),Bo(1),Zr("moduleName","collaborator")("action","show")("iconTitle","Visualizar dados de acesso"),Bo(1),Zr("moduleName","collaborator")("action","update")("iconTitle","Editar funcion\xe1rio")("iconClassList","mrgL1")("urlNavigation","collaborator-update/"+i.id)}}function iG(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function oG(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum funcion\xe1rio encontrado..."),ts())}function aG(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rio cadastrado..."),ts())}function rG(e,t){if(1&e&&(es(0,"li"),Jr(1,iG,2,0,"p",19),Jr(2,oG,2,0,"p",19),Jr(3,aG,2,0,"p",19),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var sG,lG=((sG=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.titleService=u,this.currentPage=1,this.inputText="",this.filterData={collaboratorStatusList:JSON.stringify(["1"])},this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredJourney=[],this.collaboratorListFilteredSearch=[],this.collaboratorListFilteredSituation=[],this.collaboratorId="",this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.collaboratorSelectedData={},this.collaboratorTotalActive=0,this.journeyFields=[],this.journeySelectedId=null,this.modalDismissal=!1,this.modalFaceRecognition=!1,this.modalJourney=!1,this.modalPassword=!1,this.modalPlanNext=!1,this.modalPlanPrevious=!1,this.modalPlanShowMsg=!1,this.collaboratorIdDismissal="",this.collaboratorIndexDismissal=null,this.modalRegister=!1,this.paginationData=null,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.getUserIdByCollaborator="",this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.plans=[],this.titleService.setTitle("Funcion\xe1rios"),this.searchForm=this.formBuilder.group({journey:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required]),situation:new Wm("all",[Jf.required]),status:new Wm(1,[Jf.required])});var h=this.router.getCurrentNavigation();h.extras.state&&h.extras.state.situation&&this.searchForm.controls.situation.setValue(h.extras.state.situation),this.companyDatabase.getSelectList({listRequired:JSON.stringify(["journey"])},(function(e){e.error||(d.journeyFields=e.data.journey)}))}),[{key:"ngOnInit",value:function(){this.loadCollaboratorList()}},{key:"setFilterData",value:function(e){this.filterData=e,this.loadCollaboratorList()}},{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.loadCollaboratorList()}},{key:"loadCollaboratorList",value:function(){var e=this,t=Object.assign(Object.assign({},this.filterData),{page:this.currentPage.toString(),filterText:this.inputText});this.collaboratorDatabase.getCollaboratorList(t,(function(t){t.error||(e.collaboratorList=(t=t.data).collaborator_list.data||[],e.paginationData=t.collaborator_list||[],e.plans=t.plans,e.collaboratorTotalActive=t.collaborator_total_active,e.filterCollaboratorJourney())}))}},{key:"filterCollaboratorJourney",value:function(){var e=this.searchForm.controls.journey.value;this.collaboratorListFilteredJourney=this.collaboratorList.filter((function(t){return t.journey_description==e})),"all"==e&&(this.collaboratorListFilteredJourney=this.collaboratorList),this.filterCollaboratorSituation()}},{key:"filterCollaboratorSituation",value:function(){var e=this.searchForm.controls.situation.value;"resting"!=e&&(this.collaboratorListFilteredSituation=this.collaboratorListFilteredJourney.filter((function(t){return 1==t[e]}))),"resting"==e&&(this.collaboratorListFilteredSituation=this.collaboratorListFilteredJourney.filter((function(e){return 0==e.is_late&&0==e.working}))),"all"==e&&(this.collaboratorListFilteredSituation=this.collaboratorListFilteredJourney),0==this.searchForm.controls.status.value&&(this.collaboratorListFilteredSituation=this.collaboratorListFilteredJourney),this.collaboratorListFilteredSearch=this.collaboratorListFilteredSituation}},{key:"updateListDismissal",value:function(e){this.loadCollaboratorList()}},{key:"hideModalDismissal",value:function(){this.modalDismissal=!1}},{key:"showModalFaceRecognition",value:function(e){this.collaboratorSelectedId=e,this.modalFaceRecognition=!0}},{key:"hideModalFaceRecognition",value:function(){this.modalFaceRecognition=!1,this.collaboratorSelectedId=null}},{key:"showModalJourney",value:function(e,t){this.collaboratorId=t,this.journeySelectedId=e,this.modalJourney=!0}},{key:"hideModalJourney",value:function(){this.modalJourney=!1,this.collaboratorId=null,this.journeySelectedId=null}},{key:"showModalPassword",value:function(e,t){this.collaboratorSelectedId=e,this.collaboratorSelectedName=t,this.modalPassword=!0}},{key:"hideModalPassword",value:function(){this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.modalPassword=!1}},{key:"checkNextLicense",value:function(){this.plans.need_next?this.showModalPlanNext():this.showModalRegister()}},{key:"showModalPlanNext",value:function(){this.modalPlanShowMsg=!0,this.modalPlanNext=!0}},{key:"hideModalPlanNext",value:function(){this.modalPlanNext=!1}},{key:"showModalPlanPrevious",value:function(){this.modalPlanShowMsg=!0,this.modalPlanPrevious=!0}},{key:"hideModalPlanPrevious",value:function(){this.modalPlanPrevious=!1}},{key:"showModalRegister",value:function(){this.modalRegister=!0}},{key:"updateListRegister",value:function(e){this.collaboratorList.push(e),this.loadCollaboratorList()}},{key:"hideModalRegister",value:function(){this.modalRegister=!1}},{key:"validBirthDay",value:function(e){var t=this.functionsService.dateENtoBR(e=e||"0000-00-00").slice(3,5),n=this.functionsService.dateENtoBR(e).slice(0,5),i=this.functionsService.currentDateBR("00/00/0000","min").slice(3,5),o=this.functionsService.currentDateEN("00/00/0000","min"),a=this.functionsService.yearsDiff(e,o);return i==t?"Data: ".concat(n," - ").concat(a.toString()):"0"}}])}()).\u0275fac=function(e){return new(e||sG)($r(wp),$r(yM),$r(LN),$r(Mz),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},sG.\u0275cmp=Ot({type:sG,selectors:[["io-collaborator-page-list"]],decls:40,vars:33,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnClick"],[1,"flex","end"],[3,"showCollaboratorStatusList","selectedFiltersAsStrings"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","departmentFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],["id","situationFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[3,"showModal","updateList","hideModal"],[3,"showModal","collaboratorId","hideModal"],[3,"showModal","collaboratorId","collaboratorName","hideModal"],[3,"showModal","collaboratorData","hideModal","updateList"],[3,"showModal","showMsg","plans","up","nextModal","hideModal"],[3,"showModal","journeyId","collaboratorId","hideModal"],[1,"flex","bg-white","listAlign"],[1,"item","flex","start"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],["class","iconBox",4,"ngIf"],[1,"item","flex","start","clickPlace",3,"click"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeH","cl-gray-dark",3,"icon"],[1,"sizeC","pdgL1","mrgR1"],["class","item",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","urlNavigation"],[1,"sizeB","cl-magenta","mrgR1"],[1,"iconBox"],["size","3x",1,"iconItem","iconSizeH","cl-blue",3,"icon","title"],["class","sizeC cl-red",4,"ngIf"],["class","sizeC cl-gray-dark",4,"ngIf"],["class","sizeC cl-blue",4,"ngIf"],[1,"sizeC","cl-red"],[1,"sizeC","cl-gray-dark"],[1,"sizeC","cl-blue"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.checkNextLicense()})),ts(),es(3,"div",3),es(4,"io-collaborator-filter",4),ls("selectedFiltersAsStrings",(function(e){return t.setFilterData(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"h3",9),Gs(10,"Nome"),ts(),es(11,"div",10),es(12,"select",11),ls("change",(function(){return t.filterCollaboratorJourney()})),es(13,"option",12),Gs(14,"Escala"),ts(),Jr(15,JJ,2,2,"option",13),ts(),ns(16,"fa-icon",14),ts(),es(17,"div",10),es(18,"select",15),ls("change",(function(){return t.filterCollaboratorSituation()})),es(19,"option",16),Gs(20,"Situa\xe7\xe3o"),ts(),es(21,"option",16),Gs(22,"Atrasado"),ts(),es(23,"option",16),Gs(24,"Descanso"),ts(),es(25,"option",16),Gs(26,"Trabalhando"),ts(),ts(),ns(27,"fa-icon",14),ts(),es(28,"h3",9),Gs(29,"A\xe7\xe3o"),ts(),ts(),es(30,"ul",17),Jr(31,nG,16,20,"li",18),Jr(32,rG,4,3,"li",19),ts(),es(33,"io-pagination",20),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),ts(),es(34,"io-collaborator-modal-form",21),ls("updateList",(function(e){return t.updateListRegister(e)}))("hideModal",(function(){return t.hideModalRegister()})),ts(),es(35,"io-collaborator-modal-form-face-recognition",22),ls("hideModal",(function(){return t.hideModalFaceRecognition()})),ts(),es(36,"io-collaborator-modal-access-data",23),ls("hideModal",(function(){return t.hideModalPassword()})),ts(),es(37,"io-collaborator-modal-dismissal",24),ls("hideModal",(function(){return t.hideModalDismissal()}))("updateList",(function(e){return t.updateListDismissal(e)})),ts(),es(38,"io-invoice-modal-plan-update",25),ls("nextModal",(function(){return t.showModalRegister()}))("hideModal",(function(){return t.hideModalPlanNext()})),ts(),es(39,"io-journey-modal-view",26),ls("hideModal",(function(){return t.hideModalJourney()})),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchForm),Bo(1),Zr("moduleName","collaborator")("titleTop","Funcion\xe1rios")("showBtn",!0),Bo(2),Zr("showCollaboratorStatusList",!0),Bo(8),Zr("formControlName","journey"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.journeyFields),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(2),Zr("formControlName","situation"),Bo(1),Zr("value","all"),Bo(2),Zr("value","is_late"),Bo(2),Zr("value","resting"),Bo(2),Zr("value","working"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("showModal",t.modalRegister),Bo(1),Zr("showModal",t.modalFaceRecognition)("collaboratorId",t.collaboratorSelectedId),Bo(1),Zr("showModal",t.modalPassword)("collaboratorId",t.collaboratorSelectedId)("collaboratorName",t.collaboratorSelectedName),Bo(1),Zr("showModal",t.modalDismissal)("collaboratorData",t.collaboratorSelectedData),Bo(1),Zr("showModal",t.modalPlanNext)("showMsg",t.modalPlanShowMsg)("plans",t.plans.plans)("up",!0),Bo(1),Zr("showModal",t.modalJourney)("journeyId",t.journeySelectedId)("collaboratorId",t.collaboratorId))},directives:[Hf,ip,eI,qV,oE,vm,bp,Vf,vp,ym,xm,ah,FD,sh,hE,FJ,NJ,HJ,WJ,YU,jW,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   .birthDayBox[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:flex-start}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%;min-width:120px;margin:0;text-align:right}"]}),sG);function cG(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function uG(e){return(uG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dG(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function hG(e){dG(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===uG(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function fG(e){dG(1,arguments);var t=hG(e);return t.setHours(0,0,0,0),t}var mG,pG=((mG=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.showModal=!1,this.hideModal=new Mc,this.dateSelected=new Mc,this.changeConfigurationForm=this.formBuilder.group({date:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){this.changeConfigurationForm.reset()}},{key:"confirmConfigurationChange",value:function(){null!=this.changeConfigurationForm.controls.date.value&&""!=this.changeConfigurationForm.controls.date.value?this.dateSelected.emit(this.changeConfigurationForm.controls.date.value):this.functionsService.openSnackBar("Selecione a data da mudan\xe7a de regra de ponto.")}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||mG)($r(wp),$r(yM),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP))},mG.\u0275cmp=Ot({type:mG,selectors:[["io-collaborator-modal-change-point-rule"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",dateSelected:"dateSelected"},features:[dl],decls:13,vars:14,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeB","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC"],[1,"sizeC","mrgB2"],[1,"flex","mrgB2"],[1,"datepicker",3,"labelText","dateSelectedEN"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Mudan\xe7a de Regra de ponto"),ts(),es(4,"p",3),Gs(5,"Voc\xea precisa definir uma data para o in\xedcio da nova Regra de ponto de trabalho"),ts(),es(6,"p",4),Gs(7,"Por favor, preencha a data de in\xedcio da nova Regra de ponto:"),ts(),es(8,"div",5),es(9,"io-datepicker",6),ls("dateSelectedEN",(function(e){return t.changeConfigurationForm.controls.date.setValue(e)})),ts(),ts(),ts(),es(10,"div",7),es(11,"io-btn",8),ls("btnClick",(function(){return t.closeModal()})),ts(),es(12,"io-btn",9),ls("btnClick",(function(){return t.confirmConfigurationChange()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.changeConfigurationForm),Bo(8),Zr("labelText","*Data Inicial da Regra de ponto"),Bo(2),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar"),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar")("btnClassList","mrgL1"))},directives:[CE,Hf,ip,UA,jD],styles:[".pointRuleText[_ngcontent-%COMP%]{max-width:440px;margin:0 auto}"]}),mG);function gG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.trading_name)}}function vG(e,t){if(1&e&&(es(0,"div"),es(1,"h2",18),Gs(2,"A empresa selecionada chegou ao n\xfamero m\xe1ximo de funcion\xe1rios permitido pelo plano atual!"),ts(),es(3,"div",11),Gs(4,"Atualmente o plano \xe9:"),ts(),es(5,"div",19),es(6,"span",20),Gs(7),ts(),Gs(8," no valor de "),es(9,"strong"),Gs(10),ts(),Gs(11,". "),ts(),es(12,"div",11),Gs(13,"Ao transferir este funcion\xe1rio, o plano ser\xe1 atualizado para: "),ts(),es(14,"div",19),es(15,"span",20),Gs(16),ts(),Gs(17," no valor de "),es(18,"strong"),Gs(19),ts(),Gs(20,". "),ts(),ts()),2&e){var n=fs(2);Bo(7),$s(null==n.plans.plans.current?null:n.plans.plans.current.name),Bo(3),Ks("R$ ",n.plans.plans.current.price,"/",(null==n.plans.plans.current?null:n.plans.plans.current.type)||"",""),Bo(6),$s(null==n.plans.plans.next?null:n.plans.plans.next.name),Bo(3),Ks("R$ ",null==n.plans.plans.next?null:n.plans.plans.next.price,"/",(null==n.plans.plans.next?null:n.plans.plans.next.type)||"","")}}function yG(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",10),es(2,"span",11),Gs(3,"Selecione a empresa para qual este funcion\xe1rio ser\xe1 transferido."),ts(),es(4,"div",12),es(5,"select",13),ls("change",(function(){return mn(n),fs().setCompanySelected()})),es(6,"option",14),Gs(7,"Selecione uma empresa"),ts(),Jr(8,gG,2,2,"option",15),ts(),es(9,"label",16),Gs(10,"Empresa"),ts(),ns(11,"fa-icon",17),ts(),Jr(12,vG,21,6,"div",4),ts(),ts()}if(2&e){var i=fs();Bo(5),Es(i.collaboratorFormFieldState.company_id.class),Zr("formControlName","company_id"),Bo(1),Zr("value",null),Bo(2),Zr("ngForOf",i.companyFields),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",i.showPlanTransfer&&i.plans.need_next)}}function bG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function _G(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function kG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function CG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function wG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function xG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function MG(e,t){if(1&e){var n=as();es(0,"fa-icon",51),ls("click",(function(){mn(n),fs();var e=Gr(37);return fs().showModalJourneyView(e.value)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEye)}function SG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function PG(e,t){if(1&e&&(es(0,"option",14),Gs(1),ts()),2&e){var n=t.index;vs("value",n+1),Bo(1),Qs("Dia ",n+1,"")}}function TG(e,t){if(1&e&&(es(0,"div",23),ns(1,"div",24),es(2,"div",24),es(3,"select",52),Jr(4,PG,2,2,"option",15),ts(),es(5,"label",53),Gs(6,"Dia de in\xedcio na escala"),ts(),ns(7,"fa-icon",17),ts(),ts()),2&e){var n=fs(2);Bo(3),Zr("formControlName","first_day"),Bo(1),Zr("ngForOf",n.selectFieldListJourneyDays),Bo(3),Zr("icon",n.iconSolidService.faCaretDown)}}function OG(e,t){1&e&&(es(0,"div",54),es(1,"p",46),Gs(2,"Por favor, indique qual ser\xe1 o dia de in\xedcio na escala para este funcion\xe1rio."),ts(),ts())}function LG(e,t){if(1&e){var n=as();es(0,"div",21),es(1,"div",22),es(2,"div",23),es(3,"div",24),es(4,"select",25),ls("change",(function(){return mn(n),fs().checkErrorField("department_id")})),Jr(5,bG,2,2,"option",15),ts(),es(6,"label",26),Gs(7,"Departamento"),ts(),ns(8,"fa-icon",17),ts(),es(9,"div",24),es(10,"select",27),ls("change",(function(){return mn(n),fs().checkErrorField("unit_id")})),Jr(11,_G,2,2,"option",15),ts(),es(12,"label",28),Gs(13,"Unidade"),ts(),ns(14,"fa-icon",17),ts(),ts(),es(15,"div",23),es(16,"div",24),es(17,"select",29),ls("change",(function(){return mn(n),fs().checkErrorField("occupation_id")})),Jr(18,kG,2,2,"option",15),ts(),es(19,"label",30),Gs(20,"Cargo"),ts(),ns(21,"fa-icon",17),ts(),es(22,"div",24),es(23,"select",31),ls("change",(function(){return mn(n),fs().checkErrorField("point_rule_id")})),Jr(24,CG,2,2,"option",15),ts(),es(25,"label",32),Gs(26,"Regra do ponto"),ts(),ns(27,"fa-icon",17),ts(),ts(),es(28,"div",23),es(29,"div",24),es(30,"select",33),ls("change",(function(){return mn(n),fs().checkErrorField("collaborator_settings_id")})),Jr(31,wG,2,2,"option",15),ts(),es(32,"label",34),Gs(33,"Configura\xe7\xe3o de funcion\xe1rio"),ts(),ns(34,"fa-icon",17),ts(),es(35,"div",35),es(36,"select",36,37),ls("change",(function(){mn(n);var e=fs();return e.checkErrorField("journey_id"),e.checkJourneySelected()})),Jr(38,xG,2,2,"option",15),ts(),es(39,"label",38),Gs(40,"Escala"),ts(),ns(41,"fa-icon",17),Jr(42,MG,1,1,"fa-icon",39),ts(),ts(),es(43,"div",23),es(44,"div",35),es(45,"select",40,41),ls("change",(function(){return mn(n),fs().checkErrorField("cost_center_id")})),Jr(47,SG,2,2,"option",15),ts(),es(48,"label",42),Gs(49,"Centro de custo"),ts(),ns(50,"fa-icon",17),ts(),ts(),Jr(51,TG,8,3,"div",43),Jr(52,OG,3,0,"div",44),es(53,"div",45),es(54,"p",46),es(55,"span",47),Gs(56,"Aten\xe7\xe3o!"),ts(),Gs(57," Este funcion\xe1rio ser\xe1 demitido da empresa "),es(58,"span",20),Gs(59),ts(),ts(),es(60,"p",46),Gs(61,"E adicionado \xe0 empresa "),es(62,"span",20),Gs(63),ts(),Gs(64,"."),ts(),ts(),es(65,"div",45),es(66,"label",48),es(67,"p"),Gs(68,"Confirmo que j\xe1 orientei o funcion\xe1rio a acessar o aplicativo com a empresa "),es(69,"span",20),Gs(70),ts(),Gs(71,", ap\xf3s esta transfer\xeancia."),ts(),es(72,"input",49),ls("click",(function(){return mn(n),fs().checkConfirmLogout("confirmed")})),ts(),ns(73,"span",50),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(4),Es(i.collaboratorFormFieldState.department_id.class),Zr("formControlName","department_id"),Bo(1),Zr("ngForOf",i.selectFieldListDepartment),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Es(i.collaboratorFormFieldState.unit_id.class),Zr("formControlName","unit_id"),Bo(1),Zr("ngForOf",i.selectFieldListUnit),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(3),Es(i.collaboratorFormFieldState.occupation_id.class),Zr("formControlName","occupation_id"),Bo(1),Zr("ngForOf",i.selectFieldListOccupation),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Es(i.collaboratorFormFieldState.point_rule_id.class),Zr("formControlName","point_rule_id"),Bo(1),Zr("ngForOf",i.selectFieldListPointRule),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(3),Es(i.collaboratorFormFieldState.collaborator_settings_id.class),Zr("formControlName","collaborator_settings_id"),Bo(1),Zr("ngForOf",i.selectFieldListCollaboratorSettings),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Es(i.collaboratorFormFieldState.journey_id.class),Zr("formControlName","journey_id"),Bo(2),Zr("ngForOf",i.selectFieldListJourney),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",null!=i.collaboratorTransferForm.get("journey_id").value),Bo(3),Es(i.collaboratorFormFieldState.cost_center_id.class),Zr("formControlName","cost_center_id"),Bo(2),Zr("ngForOf",i.selectFieldListCostCenter),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",i.especialJourney),Bo(1),Zr("ngIf",i.especialJourney),Bo(7),$s(i.companyName),Bo(4),$s(i.companySelectedData.trading_name),Bo(7),$s(i.companySelectedData.trading_name)}}function DG(e,t){if(1&e&&(es(0,"div"),es(1,"div",10),ns(2,"div",55),es(3,"h2",56),Gs(4,"Funcion\xe1rio transferido com sucesso!"),ts(),ns(5,"div",55),es(6,"h2",57),Gs(7,"A partir de agora este funcion\xe1rio est\xe1 vinculado a empresa:"),ts(),es(8,"h2",58),Gs(9),ts(),ts(),ts()),2&e){var n=fs();Bo(9),$s(n.companySelectedData.trading_name||"")}}function IG(e,t){if(1&e){var n=as();es(0,"io-btn",59),ls("btnClick",(function(){return mn(n),fs().closeModal()})),ts()}2&e&&Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")}function FG(e,t){if(1&e){var n=as();es(0,"io-btn",60),ls("click",(function(){return mn(n),fs().getSelects()})),ts()}2&e&&Zr("moduleName","collaborator")("action","update")("btnText","Continuar")("btnTitle","Continuar")}function AG(e,t){if(1&e){var n=as();es(0,"io-btn",60),ls("click",(function(){return mn(n),fs().sendTransfer()})),ts()}2&e&&Zr("moduleName","collaborator")("action","update")("btnText","Transferir")("btnTitle","Transferir")}function EG(e,t){if(1&e){var n=as();es(0,"io-btn",61),ls("click",(function(){return mn(n),fs().closeModal()})),ts()}2&e&&Zr("moduleName","collaborator")("action","update")("btnText","Fechar")("btnTitle","Fechar")}function BG(e,t){if(1&e){var n=as();es(0,"io-journey-modal-view",62),ls("hideModal",(function(){return mn(n),fs().hideModalJourneyView()})),ts()}if(2&e){var i=fs();Zr("journeyId",i.journeyId)("showModal",i.modalJourneyView)}}var NG,RG,jG=((RG=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.databaseService=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.journeyDatabase=u,this.storageService=d,this.validService=h,this.showModal=!1,this.collaboratorId=null,this.hideModal=new Mc,this.updateList=new Mc,this.showModalImport=new Mc,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.companyName=this.storageService.decodeFromLocalStorage("companyTradingName"),this.companySelectedData=null,this.companyFields=[],this.especialJourney=!1,this.journeyId=null,this.modalJourneyView=!1,this.confirmedLogout=!1,this.confirmedLogoutCheck=null,this.selectFieldListDepartment=[],this.selectFieldListCostCenter=[],this.selectFieldListCollaboratorSettings=[],this.selectFieldListJourney=[],this.selectFieldListJourneyDays=[],this.selectFieldListOccupation=[],this.selectFieldListPointRule=[],this.selectFieldListUnit=[],this.collaboratorFormFieldState={point_rule_id:{},collaborator_settings_id:{},company_id:{},cost_center_id:{},department_id:{},journey_id:{},occupation_id:{},unit_id:{},first_day:{}},this.step=1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.plans=[],this.showPlanTransfer=!1,this.collaboratorTransferForm=this.formBuilder.group({collaborator_settings_id:new Wm("",[Jf.required]),company_id:new Wm(null,[Jf.required]),cost_center_id:new Wm("",[Jf.required]),department_id:new Wm("",[Jf.required]),journey_id:new Wm("",[Jf.required]),first_day:new Wm("",[Jf.required]),occupation_id:new Wm("",[Jf.required]),point_rule_id:new Wm("",[Jf.required]),unit_id:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.collaboratorTransferForm.reset(),this.showModal&&this.companyDatabase.getCompanyListTransfer({userId:this.userId},(function(t){t.error||(e.companyFields=t.data.companyList||[])}))}},{key:"checkConfirmLogout",value:function(e){e!=this.confirmedLogoutCheck?(this.confirmedLogout=!0,this.confirmedLogoutCheck=e):(this.confirmedLogout=!1,this.confirmedLogoutCheck="")}},{key:"setCompanySelected",value:function(){var e=this,t=this.collaboratorTransferForm.controls.company_id.value;"null"!=t&&(this.companySelectedData=this.companyFields.filter((function(e){return e.id==t}))[0]||null,this.companyDatabase.getPlans(t,(function(t){t.error||(e.plans=t.data,e.showPlanTransfer=!0)})))}},{key:"getSelects",value:function(){var e=this,t=this.collaboratorTransferForm.controls.company_id.value;if(null!=t&&"null"!=t){var n={companyId:t,listRequired:JSON.stringify(["point_rule","collaborator_settings","department","costCenter","journey","occupation","unit"])};this.companyDatabase.getSelectList(n,(function(t){t.error||(e.selectFieldListCollaboratorSettings=t.data.collaborator_settings,e.selectFieldListDepartment=t.data.department,e.selectFieldListJourney=t.data.journey,e.selectFieldListOccupation=t.data.occupation,e.selectFieldListPointRule=t.data.point_rule,e.selectFieldListUnit=t.data.unit,e.selectFieldListCostCenter=t.data.costCenter,e.step++)}))}else this.functionsService.openSnackBar("Selecione uma empresa.")}},{key:"checkJourneySelected",value:function(){var e=this,t=this.collaboratorTransferForm.controls.journey_id.value,n=this.selectFieldListJourney.find((function(e){return e.id==t}));"5x1"==n.type||"12x36"==n.type||"24x48"==n.type||"24x72"==n.type||"custom_hour"==n.type?this.journeyDatabase.getJourneyHours(t,(function(t){e.selectFieldListJourneyDays=t.data.journeyHours,e.collaboratorTransferForm.controls.first_day.setValue(e.selectFieldListJourneyDays[0].first_day),e.especialJourney=!0})):(this.collaboratorTransferForm.controls.first_day.setValue("0"),this.especialJourney=!1)}},{key:"validTransfer",value:function(){return this.checkErrorField("point_rule_id")?this.checkErrorField("collaborator_settings_id")?this.checkErrorField("journey_id")?this.checkErrorField("unit_id")?this.checkErrorField("cost_center_id")?!!this.checkErrorField("first_day")||(this.functionsService.openSnackBar("Selecione o dia de in\xedcio na escala."),!1):(this.functionsService.openSnackBar("Selecione o centro de custo."),!1):(this.functionsService.openSnackBar("Selecione uma unidade."),!1):(this.functionsService.openSnackBar("Selecione uma escala."),!1):(this.functionsService.openSnackBar("Selecione uma configura\xe7\xe3o de funcion\xe1rio."),!1):(this.functionsService.openSnackBar("Selecione uma regra de ponto."),!1)}},{key:"sendTransfer",value:function(){var e=this;if(0!=this.confirmedLogout){if(this.validTransfer()){var t=Object.assign(Object.assign({},this.collaboratorTransferForm.value),{collaborator_id:this.collaboratorId});this.collaboratorDatabase.postCollaboratorTransfer(t,(function(t){t.error||(e.step++,e.plans=[])}))}}else this.functionsService.openSnackBar("\xc9 necess\xe1rio declarar ci\xeancia sobre o acesso do aplicativo com a nova empresa","error",4e3)}},{key:"showModalJourneyView",value:function(e){this.journeyId=e,this.modalJourneyView=!0}},{key:"hideModalJourneyView",value:function(){this.journeyId=null,this.modalJourneyView=!1}},{key:"checkErrorField",value:function(e){return this.collaboratorTransferForm.controls[e].valid?(this.collaboratorFormFieldState[e].class="",!0):(this.collaboratorFormFieldState[e].class="emptyError",!1)}},{key:"closeModal",value:function(){3==this.step&&this.router.navigate(["/collaborator"]).then((function(){return!1})),this.hideModal.emit(!1),this.step=1,this.confirmedLogout=!1,this.confirmedLogoutCheck="",this.collaboratorTransferForm.reset(),this.plans=[]}}])}()).\u0275fac=function(e){return new(e||RG)($r(wp),$r(yM),$r(LN),$r(Mz),$r(tT),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(TN))},RG.\u0275cmp=Ot({type:RG,selectors:[["io-collaborator-modal-transfer"]],inputs:{showModal:"showModal",collaboratorId:"collaboratorId"},outputs:{hideModal:"hideModal",updateList:"updateList",showModalImport:"showModalImport"},features:[dl],decls:14,vars:13,consts:[[3,"showModal","hideModal"],[3,"formGroup"],[1,"wdFull","mrgB2"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[4,"ngIf"],["class","formBox",4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick",4,"ngIf"],["class","mrgL2",3,"moduleName","action","btnText","btnTitle","click",4,"ngIf"],[3,"moduleName","action","btnText","btnTitle","click",4,"ngIf"],[3,"journeyId","showModal","hideModal",4,"ngIf"],[1,"minHeightBox"],[1,"sizeC"],[1,"mrgT2","form-group","inputAnimated"],["id","companyID","required","",3,"formControlName","change"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["for","companyID",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"sizeB","cl-blue","fontBold","fontUp","pdgB2","center"],[1,"sizeC","pdgB1"],[1,"fontBold"],[1,"formBox"],[1,"minHeightBox","split","pdgT2"],[1,"flex"],[1,"form-group","inputAnimated"],["id","department_id","required","",3,"formControlName","change"],["for","department_id",1,"form-label","flex","required"],["id","unit_id","required","",3,"formControlName","change"],["for","unit_id",1,"form-label","flex","required"],["id","occupation_id","required","",3,"formControlName","change"],["for","occupation_id",1,"form-label","flex"],["id","point_rule_id","required","",3,"formControlName","change"],["for","point_rule_id",1,"form-label","flex","required"],["id","collaborator_settings_id","required","",3,"formControlName","change"],["for","collaborator_settings_id",1,"form-label","flex","required"],[1,"form-group","inputAnimated","selectViewList"],["id","journey_id","required","",3,"formControlName","change"],["selectJourney",""],["for","journey_id",1,"form-label","flex","required"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace iconViewJourney","title","Visualizar escala",3,"icon","click",4,"ngIf"],["id","cost_center_id","required","",3,"formControlName","change"],["selectCostCenter",""],["for","cost_center_id",1,"form-label","flex","required"],["class","flex",4,"ngIf"],["class","flex center pdgB2",4,"ngIf"],[1,"pdgT2"],[1,"sizeC","center"],[1,"sizeB","cl-red","fontBold"],[1,"radioBox","sizeC"],["type","checkbox",1,"center",3,"click"],[1,"checkmark","center"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","iconViewJourney",3,"icon","click"],["id","first_day","required","",3,"formControlName"],["for","first_day",1,"form-label","flex"],[1,"flex","center","pdgB2"],[1,"pdgB2","mrgB2"],[1,"sizeA","center","cl-blue","fontUp","pdgB2","mrgB2"],[1,"sizeB","center","mrgB2"],[1,"sizeA","fontBold","center","cl-blue"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"mrgL2",3,"moduleName","action","btnText","btnTitle","click"],[3,"moduleName","action","btnText","btnTitle","click"],[3,"journeyId","showModal","hideModal"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Transfer\xeancia de funcion\xe1rio"),ts(),ts(),Jr(5,yG,13,8,"div",4),Jr(6,LG,74,48,"div",5),Jr(7,DG,10,1,"div",4),es(8,"div"),Jr(9,IG,1,5,"io-btn",6),Jr(10,FG,1,4,"io-btn",7),Jr(11,AG,1,4,"io-btn",7),Jr(12,EG,1,4,"io-btn",8),ts(),ts(),ts(),Jr(13,BG,1,2,"io-journey-modal-view",9)),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.collaboratorTransferForm),Bo(4),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(1),Zr("ngIf",3==t.step),Bo(1),Xs("flex ",3==t.step?"center":"",""),Bo(1),Zr("ngIf",t.step<3),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(1),Zr("ngIf",3==t.step),Bo(1),Zr("ngIf",null!=t.journeyId))},directives:[CE,Hf,ip,sh,vm,bp,Vf,vp,ym,xm,ah,FD,jD,jW],styles:[".spacer[_ngcontent-%COMP%]{height:50px}.borderBottom[_ngcontent-%COMP%]{border-color:var(--cl-gray-dark)}.blockTop[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.mrgHere[_ngcontent-%COMP%]{margin-bottom:5px}@media (max-width:470px){.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]{display:block}.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{height:36px}}"]}),RG),zG=((NG=function(){return d((function e(t){c(this,e),this.functionService=t,this.reminder="ATEN\xc7\xc3O: Esse processo ser\xe1 realizado em segundo plano, podendo demorar at\xe9 20 minutos para que todas as revalida\xe7\xf5es sejam efetuadas.",this.showModal=!1,this.hideModal=new Mc,this.confirmClick=new Mc}),[{key:"ngOnInit",value:function(){this.newDateBr=this.functionService.dateENtoBR(this.newDate)}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}},{key:"confirm",value:function(){this.confirmClick.emit()}},{key:"getDateBR",value:function(e){return null==e||""===e?"":this.functionService.dateENtoBR(e)}}])}()).\u0275fac=function(e){return new(e||NG)($r(zP))},NG.\u0275cmp=Ot({type:NG,selectors:[["io-modal-change-initial-date-warning"]],inputs:{showModal:"showModal",currentDate:"currentDate",newDate:"newDate"},outputs:{hideModal:"hideModal",confirmClick:"confirmClick"},decls:26,vars:13,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC","mrgB2"],[1,"sizeC"],[1,"sizeC","mrgT2","fontBold","cl-red"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Atualizar data de in\xedcio de uso do sistema"),ts(),es(4,"h2",3),Gs(5,"A mudan\xe7a na data de in\xedcio ir\xe1 atualizar as informa\xe7\xf5es anteriores a "),es(6,"strong"),Gs(7),ts(),ts(),es(8,"p",3),Gs(9,"Ser\xe3o atualizados com base na nova data de in\xedcio os seguintes itens:"),ts(),es(10,"ul",4),es(11,"li",4),Gs(12,"- Regra de ponto"),ts(),es(13,"li",4),Gs(14,"- Hist\xf3rico de unidade"),ts(),es(15,"li",4),Gs(16,"- Escala"),ts(),es(17,"li",4),Gs(18,"- Hist\xf3rico de regime de horas"),ts(),es(19,"li",4),Gs(20,"- Data de in\xedcio de uso do sistema"),ts(),ts(),es(21,"p",5),Gs(22,"Aten\xe7\xe3o: Todo o hist\xf3rico dos itens acima ser\xe1 perdido. Apenas a configura\xe7\xe3o atual ser\xe1 mantida!"),ts(),ts(),es(23,"div",6),es(24,"io-btn",7),ls("btnClick",(function(){return t.closeModal()})),ts(),es(25,"io-btn",8),ls("btnClick",(function(){return t.confirm()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),$s(t.newDateBr),Bo(17),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","point")("action","update")("btnColor","btn-blue-bg")("btnText","Atualizar")("btnTitle","Atualizar"))},directives:[CE,jD],styles:["ul[_ngcontent-%COMP%]{padding:0 0 0 40px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none;margin:0 0 10px}"]}),NG);function VG(e,t){if(1&e&&(es(0,"option",22),Gs(1),ts()),2&e){var n=t.index;vs("value",t.$implicit.first_day),Bo(1),Qs("Dia ",n+1,"")}}function HG(e,t){if(1&e&&(es(0,"div",16),es(1,"div",17),es(2,"select",18),Jr(3,VG,2,2,"option",19),ts(),es(4,"label",20),Gs(5,"Dia de in\xedcio na escala"),ts(),ns(6,"fa-icon",21),ts(),ts()),2&e){var n=fs();Bo(1),Zr("formGroup",n.changeJourneyForm),Bo(1),Zr("formControlName","first_day"),Bo(1),Zr("ngForOf",n.journey_days),Bo(3),Zr("icon",n.iconSolidService.faCaretDown)}}function YG(e,t){1&e&&(es(0,"div",23),es(1,"p",24),Gs(2,"Por favor, indique qual ser\xe1 o dia de in\xedcio na escala para este funcion\xe1rio."),ts(),ts())}function qG(e,t){if(1&e&&(es(0,"div"),es(1,"p",25),Gs(2),ts(),es(3,"label",26),Gs(4,"Estou ciente da altera\xe7\xe3o. "),ns(5,"input",27),ns(6,"span",28),ts(),ts()),2&e){var n=fs();Bo(2),Ks(' Aten\xe7\xe3o! Est\xe1 programada uma troca de escala para a escala: "',n.changeJourneyDescription,'", que ocorrer\xe1 no dia ',n.changeJourneyDate.split("-").reverse().join("/"),". A troca de escala ir\xe1 sobrepor a programa\xe7\xe3o atual. "),Bo(3),Zr("formControlName","allowedChange")}}var UG,WG=((UG=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.journeyDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.changeJourneyDate="",this.changeJourneyDescription="",this.changeJourneyMinDate="",this.changeJourneyType="",this.journeyId="",this.showModal=!1,this.hideModal=new Mc,this.journeyData=new Mc,this.journeyEspecial=!1,this.journey_days=[],this.changeJourneyForm=this.formBuilder.group({date:new Wm("",[Jf.required]),first_day:new Wm("",[Jf.required]),allowedChange:new Wm(!0,[Jf.required])})}),[{key:"ngOnChanges",value:function(){this.changeJourneyForm.controls.date.setValue(""),this.changeJourneyForm.controls.first_day.setValue(""),this.changeJourneyForm.controls.allowedChange.setValue(""==this.changeJourneyDescription),this.checkJourneySelected()}},{key:"checkJourneySelected",value:function(){var e=this;"5x1"==this.changeJourneyType||"12x36"==this.changeJourneyType||"24x48"==this.changeJourneyType||"24x72"==this.changeJourneyType||"custom_hour"==this.changeJourneyType?this.journeyDatabase.getJourneyHours(this.journeyId,(function(t){e.journey_days=t.data.journeyHours,e.changeJourneyForm.controls.first_day.setValue(e.journey_days[0].first_day),e.journeyEspecial=!0})):(this.changeJourneyForm.controls.first_day.setValue("0"),this.journeyEspecial=!1)}},{key:"confirmJourneyChange",value:function(){""!=this.changeJourneyForm.controls.date.value?1==this.changeJourneyForm.controls.allowedChange.value?this.journeyData.emit({begin_date:this.changeJourneyForm.controls.date.value,first_day:this.changeJourneyForm.controls.first_day.value}):this.functionsService.openSnackBar("Confirme que esta ciente da altera\xe7\xe3o."):this.functionsService.openSnackBar("Selecione a data da troca de escala.")}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||UG)($r(wp),$r(yM),$r(DN),$r(zP),$r(WO),$r(JO),$r(YP))},UG.\u0275cmp=Ot({type:UG,selectors:[["io-collaborator-modal-change-journey"]],inputs:{changeJourneyDate:"changeJourneyDate",changeJourneyDescription:"changeJourneyDescription",changeJourneyMinDate:"changeJourneyMinDate",changeJourneyType:"changeJourneyType",journeyId:"journeyId",showModal:"showModal"},outputs:{hideModal:"hideModal",journeyData:"journeyData"},features:[dl],decls:25,vars:18,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeB","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC"],[1,"sizeC","mrgB2"],[1,"flex","mrgB2"],[1,"datepicker","required",3,"labelText","minDate","dateSelectedEN"],["class","form-group inputAnimated mrgL2",4,"ngIf"],["class","flex center mrgB2",4,"ngIf"],[4,"ngIf"],[1,"pdg2"],[1,"sizeC","center","pointRuleText"],[1,"fontBold"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[1,"form-group","inputAnimated","mrgL2"],[1,"form-group","inputAnimated","relativePlace",3,"formGroup"],["id","first_day","required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],["for","first_day",1,"form-label"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[3,"value"],[1,"flex","center","mrgB2"],[1,"sizeC","center"],[1,"sizeC","fontBold","cl-red","mrgB1"],[1,"radioBox","sizeC","hd2"],["type","checkbox",3,"formControlName"],[1,"checkmark"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Troca de Escala"),ts(),es(4,"p",3),Gs(5,"Voc\xea precisa definir uma data para o in\xedcio da nova escala de trabalho"),ts(),es(6,"p",4),Gs(7,"Por favor, preencha a data de in\xedcio da nova escala:"),ts(),es(8,"div",5),es(9,"io-datepicker",6),ls("dateSelectedEN",(function(e){return t.changeJourneyForm.controls.date.setValue(e)})),ts(),Jr(10,HG,7,4,"div",7),ts(),Jr(11,YG,3,0,"div",8),es(12,"div",5),Jr(13,qG,7,3,"div",9),ts(),ns(14,"div",10),es(15,"p",11),es(16,"span",12),Gs(17,"Se considerar necess\xe1rio"),ts(),Gs(18,", \xe9 poss\xedvel transferir esse funcion\xe1rio para outra "),es(19,"span",12),Gs(20,"regra do ponto"),ts(),Gs(21,' em "Configura\xe7\xf5es > Regras do ponto".'),ts(),ts(),es(22,"div",13),es(23,"io-btn",14),ls("btnClick",(function(){return t.closeModal()})),ts(),es(24,"io-btn",15),ls("btnClick",(function(){return t.confirmJourneyChange()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.changeJourneyForm),Bo(8),Zr("labelText","Data Inicial da escala")("minDate",t.changeJourneyMinDate),Bo(1),Zr("ngIf",t.journeyEspecial),Bo(1),Zr("ngIf",t.journeyEspecial),Bo(2),Zr("ngIf",""!=t.changeJourneyDescription),Bo(10),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar"),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar")("btnClassList","mrgL1"))},directives:[CE,Hf,ip,UA,sh,jD,vm,bp,Vf,vp,ah,FD,ym,xm,Of],styles:[".pointRuleText[_ngcontent-%COMP%]{max-width:440px;margin:0 auto}"]}),UG);function JG(e,t){if(1&e&&(es(0,"h3",42),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.collaboratorForm.get("position").value)}}function GG(e,t){if(1&e&&(es(0,"h3",16),es(1,"span",17),Gs(2,"Data de demiss\xe3o:"),ts(),Gs(3),ts()),2&e){var n=fs();Bo(3),Qs(" ",n.getCollaboratorDismissalDate(),"")}}function $G(e,t){if(1&e&&(es(0,"span",48),Gs(1),_c(2,"mask"),_c(3,"mask"),ts()),2&e){var n=fs().index,i=fs();Bo(1),Ks("",Cc(2,2,i.lastPoints[n].adjustments[0].end_date.split("-").reverse(),"00/00")," ",Cc(3,5,i.lastPoints[n].adjustments[0].adjustment_hour,"00:00"),"")}}function QG(e,t){if(1&e&&(es(0,"span",48),Gs(1),_c(2,"mask"),_c(3,"mask"),ts()),2&e){var n=fs().$implicit;Bo(1),Ks("",Cc(2,2,n.punch_date_time.split(" ")[0].split("-").reverse(),"00/00")," ",Cc(3,5,n.punch_date_time.split(" ")[1],"00:00"),"")}}function KG(e,t){1&e&&ns(0,"span",49)}function ZG(e,t){if(1&e&&(es(0,"span",50),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.in_out?"Sa\xedda":"Entrada"," Ajustada")}}function XG(e,t){if(1&e&&(es(0,"span",50),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.in_out?"Sa\xedda":"Entrada")}}function e$(e,t){if(1&e&&(es(0,"li",43),Jr(1,$G,4,8,"span",44),Jr(2,QG,4,8,"span",44),es(3,"span",45),Jr(4,KG,1,0,"span",46),ts(),Jr(5,ZG,2,1,"span",47),Jr(6,XG,2,1,"span",47),ts()),2&e){var n=t.$implicit,i=t.index;Bo(1),Zr("ngIf",0!=n.adjustments.length),Bo(1),Zr("ngIf",0==n.adjustments.length),Bo(2),Zr("ngIf",i>0),Bo(1),Zr("ngIf",0!=n.adjustments.length),Bo(1),Zr("ngIf",0==n.adjustments.length)}}function t$(e,t){if(1&e){var n=as();es(0,"span",51),ls("click",(function(){return mn(n),fs().checkPlanOnDismissal()})),Gs(1,"Demitir"),ts()}}function n$(e,t){if(1&e){var n=as();es(0,"span",51),ls("click",(function(){return mn(n),fs().checkPlanOnReadmit()})),Gs(1,"Readmitir"),ts()}}function i$(e,t){if(1&e){var n=as();es(0,"div",52),es(1,"div",53),es(2,"div",54),es(3,"input",55),ls("keyup",(function(){return mn(n),fs().checkErrorField("name")})),ts(),es(4,"label",56),Gs(5,"Nome completo"),ts(),ts(),es(6,"div",54),es(7,"input",57),ls("keyup",(function(){return mn(n),fs().checkErrorField("national_registry")})),ts(),es(8,"label",58),Gs(9,"CPF"),ts(),ts(),ts(),es(10,"div",53),es(11,"div",54),ns(12,"input",59),es(13,"label",60),Gs(14,"RG"),ts(),ts(),es(15,"div",54),es(16,"input",61),ls("change",(function(){mn(n);var e=fs();return e.verifyDate("birth_date_BR"),e.checkErrorField("birth_date_BR")})),ts(),es(17,"label",62),Gs(18,"Data de nascimento"),ts(),ts(),ts(),es(19,"div",53),es(20,"div",54),es(21,"select",63),es(22,"option",64),Gs(23,"Feminino"),ts(),es(24,"option",65),Gs(25,"Masculino"),ts(),ts(),es(26,"label",66),Gs(27,"Sexo"),ts(),ns(28,"fa-icon",67),ts(),es(29,"div",54),es(30,"select",68),es(31,"option",69),Gs(32,"Solteiro(a)"),ts(),es(33,"option",70),Gs(34,"Casado(a)"),ts(),es(35,"option",71),Gs(36,"Vi\xfavo(a)"),ts(),es(37,"option",72),Gs(38,"Separado(a) judicialmente"),ts(),es(39,"option",73),Gs(40,"Divorciado(a)"),ts(),ts(),es(41,"label",74),Gs(42,"Estado civil"),ts(),ns(43,"fa-icon",67),ts(),ts(),es(44,"div",53),es(45,"div",54),ns(46,"input",75),es(47,"label",76),Gs(48,"Nome do pai"),ts(),ts(),es(49,"div",54),ns(50,"input",77),es(51,"label",78),Gs(52,"Nome da m\xe3e"),ts(),ts(),ts(),es(53,"div",53),es(54,"div",54),ns(55,"input",79),es(56,"label",80),Gs(57,"Naturalidade"),ts(),ts(),es(58,"div",54),ns(59,"input",81),es(60,"label",82),Gs(61,"Nacionalidade"),ts(),ts(),ts(),es(62,"div",53),es(63,"div",54),ns(64,"input",83),es(65,"label",84),Gs(66,"CNH / Categoria CNH"),ts(),ts(),es(67,"div",54),ns(68,"input",85),es(69,"label",86),Gs(70,"Certificado de reservista"),ts(),ts(),ts(),es(71,"div",53),es(72,"div",54),ns(73,"input",87),es(74,"label",88),Gs(75,"N\xfamero PIS"),ts(),ts(),es(76,"div",54),ns(77,"input",89),es(78,"label",90),Gs(79,"T\xedtulo de eleitor"),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(3),Es(i.stateFields.name.class),Zr("formControlName","name"),Bo(4),Es(i.stateFields.national_registry.class),Zr("formControlName","national_registry"),Bo(5),Zr("formControlName","identity_number"),Bo(4),Es(i.stateFields.birth_date_BR.class),Zr("dropSpecialCharacters",!1)("formControlName","birth_date_BR"),Bo(5),Zr("formControlName","gender"),Bo(7),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","marital_status"),Bo(13),Zr("icon",i.iconSolidService.faCaretDown),Bo(3),Zr("formControlName","father_name"),Bo(4),Zr("formControlName","mother_name"),Bo(5),Zr("formControlName","naturalness"),Bo(4),Zr("formControlName","nationality"),Bo(5),Zr("formControlName","driver_license"),Bo(4),Zr("formControlName","reservist_card"),Bo(5),Zr("formControlName","pis_pasep")("dropSpecialCharacters",!0),Bo(4),Zr("formControlName","voter_registration")}}function o$(e,t){if(1&e){var n=as();es(0,"div",52),es(1,"div",53),es(2,"div",54),es(3,"input",91),ls("change",(function(){return mn(n),fs().searchCep()})),ts(),es(4,"label",92),Gs(5,"CEP"),ts(),ts(),es(6,"div",54),ns(7,"input",93),es(8,"label",94),Gs(9,"Endere\xe7o"),ts(),ts(),ts(),es(10,"div",53),es(11,"div",54),ns(12,"input",95),es(13,"label",96),Gs(14,"Complemento"),ts(),ts(),es(15,"div",54),ns(16,"input",97),es(17,"label",98),Gs(18,"Bairro"),ts(),ts(),ts(),es(19,"div",53),es(20,"div",54),ns(21,"input",99),es(22,"label",100),Gs(23,"Cidade"),ts(),ts(),es(24,"div",54),ns(25,"input",101),es(26,"label",102),Gs(27,"Estado"),ts(),ts(),ts(),es(28,"div",53),es(29,"div",54),ns(30,"input",103),es(31,"label",104),Gs(32,"Telefone"),ts(),ts(),es(33,"div",54),es(34,"input",105),ls("keyup",(function(){return mn(n),fs().checkErrorField("email")})),ts(),es(35,"label",106),Gs(36,"E-mail"),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("formControlName","zip_code"),Bo(4),Zr("formControlName","address"),Bo(5),Zr("formControlName","address_extra"),Bo(4),Zr("formControlName","neighborhood"),Bo(5),Zr("formControlName","city"),Bo(4),Zr("formControlName","state"),Bo(5),Zr("formControlName","phone")("dropSpecialCharacters",!1),Bo(4),Es(i.stateFields.email.class),Zr("formControlName","email")}}function a$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.value),Bo(1),Qs("",n.type," ")}}function r$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.description," ")}}function s$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.description," ")}}function l$(e,t){if(1&e){var n=as();es(0,"fa-icon",138),ls("click",(function(){mn(n);var e=fs(2);return e.showModalJourneyView(e.changeJourneyId,!0)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faExclamation)}function c$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.description," ")}}function u$(e,t){if(1&e){var n=as();es(0,"div",107),es(1,"div",53),es(2,"div",54),es(3,"select",108),Jr(4,a$,2,2,"option",109),ts(),es(5,"label",110),Gs(6,"Contrato"),ts(),ns(7,"fa-icon",67),ts(),es(8,"div",54),ns(9,"input",111),es(10,"label",112),Gs(11,"N\xfamero da matr\xedcula"),ts(),ts(),ts(),es(12,"div",53),es(13,"div",54),ns(14,"input",113),es(15,"label",114),Gs(16,"N\xfamero do eSocial"),ts(),ts(),es(17,"div",54),ns(18,"input",115),es(19,"label",116),Gs(20,"N\xfamero do Crach\xe1"),ts(),ts(),ts(),es(21,"div",53),es(22,"div",54),es(23,"select",117),Jr(24,r$,2,2,"option",109),ts(),es(25,"label",118),Gs(26,"Departamento"),ts(),ns(27,"fa-icon",67),ts(),es(28,"div",119),es(29,"select",120,121),ls("change",(function(){return mn(n),fs().verifyJourneySelected()}))("keyup",(function(){return mn(n),fs().checkErrorField("id")})),Jr(31,s$,2,2,"option",109),ts(),es(32,"label",122),Gs(33,"Escala"),ts(),ns(34,"fa-icon",67),es(35,"fa-icon",123),ls("click",(function(){mn(n);var e=Gr(30);return fs().showModalJourneyView(e.value)})),ts(),Jr(36,l$,1,1,"fa-icon",124),ts(),ts(),es(37,"div",53),es(38,"div",54),es(39,"select",125),Jr(40,c$,2,2,"option",109),ts(),es(41,"label",126),Gs(42,"Cargo"),ts(),ns(43,"fa-icon",67),ts(),es(44,"div",54),ns(45,"input",127),es(46,"label",128),Gs(47,"Fun\xe7\xe3o"),ts(),ts(),ts(),es(48,"div",53),es(49,"io-datepicker",129),ls("dateSelectedEN",(function(e){return mn(n),fs().collaboratorForm.get("admission_date").setValue(e)})),ts(),es(50,"div",130),ns(51,"input",131),es(52,"label",132),Gs(53,"Data de demiss\xe3o"),ts(),ts(),ts(),es(54,"div",53),es(55,"div",54),ns(56,"input",133),es(57,"label",134),Gs(58,"CTPS"),ts(),ts(),es(59,"div",54),es(60,"input",135),ls("change",(function(){return mn(n),fs().validOverTimeHour("contracted_hours")})),ts(),es(61,"label",136),Gs(62,"Horas contratadas"),ts(),ts(),ts(),ns(63,"div",53),ts()}if(2&e){var i=fs();Zr("formGroup",i.collaboratorForm),Bo(3),Zr("formControlName","type"),Bo(1),Zr("ngForOf",i.contract_type),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","registration_number"),Bo(5),Zr("formControlName","esocial_id"),Bo(4),Zr("formControlName","card_id"),Bo(5),Zr("formControlName","department_id"),Bo(1),Zr("ngForOf",i.selectFieldListDepartment),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("formGroup",i.journeyForm),Bo(1),Zr("formControlName","id"),Bo(2),Zr("ngForOf",i.selectFieldListJourney),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("icon",i.iconRegularService.faEye),Bo(1),Zr("ngIf",""!=i.changeJourneyId),Bo(3),Zr("formControlName","occupation_id"),Bo(1),Zr("ngForOf",i.selectFieldListOccupation),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("formControlName","position"),Bo(4),Zr("labelText","Data de admiss\xe3o")("validMinDate",!1)("startDate",i.collaboratorForm.get("admission_date").value||"")("currentDate",i.collaboratorForm.get("admission_date").value),Bo(1),Zr("formGroup",i.collaboratorForm),Bo(1),Zr("formControlName","dismissal_date_BR")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","ctps")("dropSpecialCharacters",!0),Bo(4),Zr("formControlName","contracted_hours")("dropSpecialCharacters",!0)}}function d$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.description," ")}}function h$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.name," ")}}function f$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.description," ")}}function m$(e,t){if(1&e&&(es(0,"option",137),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),Qs("",n.name," ")}}function p$(e,t){if(1&e){var n=as();es(0,"div",107),es(1,"div",53),es(2,"io-datepicker",139),ls("dateSelectedEN",(function(e){return mn(n),fs().collaboratorForm.get("begin_date").setValue(e)})),ts(),es(3,"div",140),es(4,"select",141),ls("change",(function(){return mn(n),fs().verifyPointRuleSelected()})),Jr(5,d$,2,2,"option",109),ts(),es(6,"label",142),Gs(7,"Regra do ponto"),ts(),ns(8,"fa-icon",67),ts(),ts(),es(9,"div",143),es(10,"div",144),es(11,"select",145),Jr(12,h$,2,2,"option",109),ts(),es(13,"label",146),Gs(14,"Unidade"),ts(),ts(),es(15,"div",144),es(16,"select",147),Jr(17,f$,2,2,"option",109),ts(),es(18,"label",148),Gs(19,"Configura\xe7\xe3o de funcion\xe1rio"),ts(),ts(),ts(),es(20,"div",53),es(21,"div",144),es(22,"select",149),Jr(23,m$,2,2,"option",109),ts(),es(24,"label",150),Gs(25,"Centro de custo"),ts(),ns(26,"fa-icon",67),ts(),ts(),es(27,"div",53),es(28,"io-btn",33),ls("btnClick",(function(){return mn(n),fs().showModalAccessData()})),ts(),es(29,"io-btn",33),ls("btnClick",(function(){return mn(n),fs().checkPlanPreviousTransfer()})),ts(),ts(),ts()}if(2&e){var i=fs();Zr("formGroup",i.collaboratorForm),Bo(2),Zr("labelText","Data de in\xedcio de uso do sistema")("currentDate",i.collaboratorBeginDate)("minDate",i.minDateUseSystem),Bo(1),Zr("formGroup",i.pointRuleForm),Bo(1),Zr("formControlName","id"),Bo(1),Zr("ngForOf",i.selectFieldListPointRule),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(3),Zr("formControlName","unit_id"),Bo(1),Zr("ngForOf",i.selectFieldListUnit),Bo(4),Zr("formControlName","collaborator_settings_id"),Bo(1),Zr("ngForOf",i.selectFieldListCollaboratorSettings),Bo(5),Zr("formControlName","cost_center_id"),Bo(1),Zr("ngForOf",i.selectFieldListCostCenter),Bo(3),Zr("icon",i.iconSolidService.faCaretDown),Bo(2),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Dados de acesso")("btnTitle","Dados de acesso")("btnClassList","btnSmall mrgB1"),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Transferir funcion\xe1rio")("btnTitle","Transferir funcion\xe1rio")("btnClassList","btnSmall mrgB1")}}function g$(e,t){if(1&e){var n=as();es(0,"io-modal-change-initial-date-warning",151),ls("confirmClick",(function(){return mn(n),fs().sendCollaboratorForm()}))("hideModal",(function(){return mn(n),fs().hideModalChangeInitialDate()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalChangeInitialDate)("currentDate",i.collaboratorBeginDate)("newDate",i.collaboratorForm.get("begin_date").value)}}function v$(e,t){if(1&e){var n=as();es(0,"io-collaborator-modal-change-journey",152),ls("journeyData",(function(e){return mn(n),fs().confirmJourneyChange(e)}))("hideModal",(function(){return mn(n),fs().hideModalJourneyChange()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalJourneyChange)("changeJourneyDate",i.changeJourneyDate)("changeJourneyDescription",i.changeJourneyDescription)("changeJourneyMinDate",i.changeJourneyMinDate)("changeJourneyType",i.journeySelectedType)("journeyId",i.journeySelectedId)}}function y$(e,t){if(1&e){var n=as();es(0,"io-collaborator-modal-dismissal",153),ls("updateList",(function(){return mn(n),fs().getCollaboratorData()}))("hideModal",(function(){return mn(n),fs().hideModalDismissal()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalDismissal)("collaboratorData",i.collaboratorDataToModal)}}function b$(e,t){if(1&e){var n=as();es(0,"io-journey-modal-view",154),ls("hideModal",(function(){return mn(n),fs().hideModalJourneyView()})),ts()}if(2&e){var i=fs();Zr("auxiliaryText",i.changeJourneyAuxiliaryText)("journeyId",i.journeySelectedId)("collaboratorId",i.collaboratorId)("showModal",i.modalJourneyView)}}var _$,k$,C$,w$=function(){return["/collaborator"]},x$=function(){return{}},M$=((C$=function(){return d((function e(t,n,i,o,a,r,s,l,u,d){var h=this;c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.databaseService=a,this.storageService=r,this.functionsService=s,this.iconRegularService=l,this.iconSolidService=u,this.validService=d,this.currentJourneyFromCollaborator=null,this.currentPointRuleFromCollaborator=null,this.imgFile=null,this.companyTradingName=this.storageService.decodeFromLocalStorage("companyTradingName"),this.changeJourneyAuxiliaryText="",this.changeJourneyDate="",this.changeJourneyDescription="",this.changeJourneyId="",this.userId="",this.changeJourneyMinDate=this.functionsService.getMonthBeforeEN(this.functionsService.getFirstLastDay()[0],2),this.collaboratorBeginDate="",this.collaboratorDataToModal={},this.companyConfigurationData={},this.imgPreviewUrl="/assets/img/photo-user.png",this.journeySelectedId=null,this.journeySelectedType=null,this.totalBankTimeFactored=null,this.lastPoints=[],this.minDateUseSystem=this.functionsService.getMonthBeforeEN(this.functionsService.getFirstLastDay()[0]),this.modalAccessData=!1,this.modalAdmission=!1,this.modalDismissal=!1,this.modalJourneyChange=!1,this.modalJourneyView=!1,this.modalPlanUpdate=!1,this.modalPointRule=!1,this.modalTransfer=!1,this.modalChangeInitialDate=!1,this.selectFieldListCollaboratorSettings=[],this.selectFieldListDepartment=[],this.selectFieldListCostCenter=[],this.selectFieldListJourney=[],this.selectFieldListOccupation=[],this.selectFieldListPointRule=[],this.selectFieldListUnit=[],this.stateFields={national_registry:{class:""},name:{class:""},email:{class:""},birth_date_BR:{class:""}},this.tabSelected=1,this.contract_type=[{type:"Horista",value:0},{type:"Mensalista",value:1},{type:"Terceirizado",value:2},{type:"Outros",value:3}],this.plans=[],this.modalPlanNext=!1,this.modalPlanPrevious=!1,this.modalPlanPreviousTransfer=!1,this.modalPlanShowMsg=!1,this.collaboratorForm=this.formBuilder.group({unit_id:new Wm(null,[Jf.required]),cost_center_id:new Wm(null,[Jf.required]),person_id:new Wm(null,[Jf.required]),department_id:new Wm(null,[Jf.required]),occupation_id:new Wm(null,[Jf.required]),collaborator_settings_id:new Wm(null,[Jf.required]),begin_date:new Wm(null,[Jf.required]),admission_date:new Wm(null,[Jf.required]),dismissal_date:new Wm(null,[Jf.required]),dismissal_date_BR:new Wm(null,[Jf.required]),position:new Wm("",[Jf.required]),type:new Wm(null,[Jf.required]),photo_face_recognition:new Wm(null,[Jf.required]),permission:new Wm(null,[Jf.required]),app:new Wm(null,[Jf.required]),registration_number:new Wm(null,[Jf.required]),esocial_id:new Wm(null,[Jf.required]),card_id:new Wm(null,[Jf.required]),ctps:new Wm("",[Jf.required]),contracted_hours:new Wm("",[Jf.required])}),this.journeyForm=this.formBuilder.group({begin_date:new Wm("",[Jf.required]),id:new Wm("",[Jf.required]),first_day:new Wm("",[Jf.required])}),this.personForm=this.formBuilder.group({name:new Wm(null,[Jf.required]),email:new Wm(null,[Jf.required]),phone:new Wm(null,[Jf.required]),national_registry:new Wm(null,[Jf.required]),identity_number:new Wm(null,[Jf.required]),birth_date:new Wm(null,[Jf.required]),birth_date_BR:new Wm(null,[Jf.required]),driver_license:new Wm(null,[Jf.required]),voter_registration:new Wm(null,[Jf.required]),reservist_card:new Wm(null,[Jf.required]),gender:new Wm(null,[Jf.required]),pis_pasep:new Wm(null,[Jf.required]),zip_code:new Wm(null,[Jf.required]),address:new Wm(null,[Jf.required]),address_number:new Wm(null,[Jf.required]),address_extra:new Wm(null,[Jf.required]),neighborhood:new Wm(null,[Jf.required]),nationality:new Wm(null,[Jf.required]),naturalness:new Wm(null,[Jf.required]),father_name:new Wm(null,[Jf.required]),mother_name:new Wm(null,[Jf.required]),marital_status:new Wm(null,[Jf.required]),photo:new Wm(null,[Jf.required]),city:new Wm("",[Jf.required]),state:new Wm("",[Jf.required])}),this.pointRuleForm=this.formBuilder.group({begin_date:new Wm("",[Jf.required]),id:new Wm("",[Jf.required])});var f={listRequired:JSON.stringify(["collaborator_settings","department","costCenter","journey","occupation","point_rule","unit"])};this.companyDatabase.getSelectList(f,(function(e){e.error?(h.router.navigate(["/collaborator"]).then((function(){return!1})),h.functionsService.openSnackBar("Erro ao carregar dados...","error")):(h.selectFieldListCollaboratorSettings=e.data.collaborator_settings,h.selectFieldListDepartment=e.data.department,h.selectFieldListJourney=e.data.journey,h.selectFieldListOccupation=e.data.occupation,h.selectFieldListPointRule=e.data.point_rule,h.selectFieldListCostCenter=e.data.costCenter,h.selectFieldListUnit=e.data.unit)}))}),[{key:"ngOnInit",value:function(){var e=this;this.collaboratorForm.get("collaborator_settings_id").disable(),this.collaboratorForm.get("dismissal_date_BR").disable(),this.collaboratorForm.get("unit_id").disable(),this.getCollaboratorData(),this.collaboratorDatabase.getCollaboratorLastPoints(this.collaboratorId,(function(t){t.error||(e.lastPoints=t.data.lastPoints)}))}},{key:"getCollaboratorData",value:function(){var e=this;this.resetAllData(),this.userId="",this.collaboratorDatabase.getCollaborator(this.collaboratorId,(function(t){t.error?e.router.navigate(["/collaborator"]).then((function(){return!1})):(e.totalBankTimeFactored=t.data.totalBalance,e.setCollaboratorData(t.data.collaboratorData),e.setCompanyConfigurationData(t.data.companyConfiguration),e.setJourneyData(t.data.journeyFromCollaborator),e.setPersonData(t.data.personData),e.setPointRuleData(t.data.pointRuleFromCollaborator),e.plans=t.data.plans,e.getUserIdByCollaboratorId())}))}},{key:"getUserIdByCollaboratorId",value:function(){var e=this;this.collaboratorDatabase.getUserIdByCollaboratorId(this.collaboratorId,(function(t){t.error?e.router.navigate(["/collaborator"]).then((function(){return!1})):(e.userId=t.data,0===Object.keys(e.userId).length&&(e.userId=null))}))}},{key:"resetAllData",value:function(){this.userId="",this.currentJourneyFromCollaborator=[],this.currentPointRuleFromCollaborator=[],this.collaboratorForm.reset(),this.journeyForm.reset(),this.personForm.reset(),this.pointRuleForm.reset(),this.closeEveryModal()}},{key:"closeEveryModal",value:function(){this.modalAccessData=!1,this.modalAdmission=!1,this.modalDismissal=!1,this.modalJourneyChange=!1,this.modalJourneyView=!1,this.modalPlanUpdate=!1,this.modalPointRule=!1,this.modalTransfer=!1}},{key:"setCollaboratorData",value:function(e){var t=this;Object.keys(this.collaboratorForm.controls).forEach((function(n){t.collaboratorForm.get(n).setValue(e[n])})),this.collaboratorForm.get("dismissal_date").value&&this.collaboratorForm.get("dismissal_date_BR").setValue(this.functionsService.dateENtoBR(this.collaboratorForm.get("dismissal_date").value)),this.collaboratorBeginDate=this.collaboratorForm.get("begin_date").value}},{key:"setCompanyConfigurationData",value:function(e){this.companyConfigurationData=e}},{key:"setJourneyData",value:function(e){if(0==e[0].active&&this.selectFieldListJourney.push({id:e[0].id,description:e[0].description}),this.journeyForm.get("id").setValue(e[0].id),this.currentJourneyFromCollaborator=e[0],e.length>1){var t=e[1];this.changeJourneyDate=t.begin_date,this.changeJourneyDescription=t.description,this.changeJourneyId=t.id}}},{key:"setPersonData",value:function(e){var t=this;Object.keys(this.personForm.controls).forEach((function(n){t.personForm.get(n).setValue(e[n])})),this.personForm.get("birth_date_BR").setValue(this.functionsService.dateENtoBR(this.personForm.get("birth_date").value)),e.photo&&(this.imgPreviewUrl=this.databaseService.currentDatabaseUrl()+"/storage/person/person_"+e.id+"/"+e.photo)}},{key:"searchCep",value:function(){var e=this,t=this.functionsService.removeSings(this.personForm.get("zip_code").value||"");8==t.length&&this.databaseService.getCep(t,(function(t){var n=t.data.data_city[0];e.functionsService.removeSpaces(n.address)!==e.functionsService.removeSpaces(n.city)&&e.personForm.get("address").setValue(n.address),e.personForm.get("city").setValue(n.city),e.personForm.get("state").setValue(n.state),e.personForm.get("neighborhood").setValue(n.neighborhood)}))}},{key:"setPointRuleData",value:function(e){0==e[0].active&&this.selectFieldListPointRule.push({id:e[0].id,description:e[0].description}),this.pointRuleForm.get("id").setValue(e[0].id),this.currentPointRuleFromCollaborator=e[0]}},{key:"handleFile",value:function(e){this.imgFile=e,this.uploadPhoto()}},{key:"uploadPhoto",value:function(){var e=this,t=new FormData;t.append("person_id",this.collaboratorForm.get("person_id").value),t.append("avatar",this.imgFile),this.collaboratorDatabase.postCollaboratorImg(t,(function(t){t.error||e.getCollaboratorData()}))}},{key:"selectTab",value:function(e){this.tabSelected=e}},{key:"getCollaboratorDismissalDate",value:function(){return this.collaboratorForm.get("dismissal_date_BR").value||""}},{key:"showModalAccessData",value:function(){this.modalAccessData=!0}},{key:"hideModalAccessData",value:function(){this.modalAccessData=!1}},{key:"readmitCollaboratorIsAllowed",value:function(){return function(e,t){dG(2,arguments);var n=fG(e),i=fG(t),o=n.getTime()-cG(n),a=i.getTime()-cG(i);return Math.round((o-a)/864e5)}(Date.parse(this.functionsService.getCurrentDateEN()),Date.parse(this.collaboratorForm.get("dismissal_date").value||0))<=10}},{key:"showModalAdmission",value:function(){this.modalAdmission=!0}},{key:"readmitCollaborator",value:function(){this.collaboratorForm.get("dismissal_date").setValue(null),this.sendCollaboratorForm()}},{key:"hideModalAdmission",value:function(){this.modalAdmission=!1}},{key:"showModalDismissal",value:function(){this.collaboratorDataToModal={id:this.collaboratorId,name:this.personForm.get("name").value,begin_date:this.collaboratorForm.get("begin_date").value,total_bankTime:this.totalBankTimeFactored,user_id:this.userId},this.modalDismissal=!0}},{key:"hideModalDismissal",value:function(){this.modalDismissal=!1}},{key:"verifyJourneySelected",value:function(){var e=this;this.journeySelectedId=this.journeyForm.get("id").value,this.journeySelectedId!=this.currentJourneyFromCollaborator.id&&(this.journeySelectedType=this.selectFieldListJourney.find((function(t){return t.id==e.journeySelectedId})).type,this.showModalJourneyChange())}},{key:"showModalJourneyChange",value:function(){this.modalJourneyChange=!0}},{key:"confirmJourneyChange",value:function(e){this.journeyForm.get("first_day").setValue(e.first_day),this.journeyForm.get("begin_date").setValue(e.begin_date),this.modalJourneyChange=!1,this.journeySelectedId=null,this.journeySelectedType=null}},{key:"hideModalJourneyChange",value:function(){this.modalJourneyChange=!1,this.journeyForm.get("id").setValue(this.currentJourneyFromCollaborator.id),this.journeySelectedId=null,this.journeySelectedType=null}},{key:"showModalJourneyView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.journeySelectedId=e,this.modalJourneyView=!0,this.changeJourneyAuxiliaryText=t?"Data programada para troca de escala: "+this.changeJourneyDate.split("-").reverse().join("/"):""}},{key:"hideModalJourneyView",value:function(){this.modalJourneyView=!1,this.journeySelectedId=null}},{key:"verifyPointRuleSelected",value:function(){this.pointRuleForm.get("id").value!=this.currentPointRuleFromCollaborator.id&&this.showModalPointRule()}},{key:"showModalPointRule",value:function(){this.modalPointRule=!0}},{key:"confirmPointRuleChange",value:function(e){this.pointRuleForm.controls.begin_date.setValue(e),this.modalPointRule=!1}},{key:"hideModalPointRule",value:function(){this.modalPointRule=!1,this.pointRuleForm.get("id").setValue(this.currentPointRuleFromCollaborator.id)}},{key:"verifyCollaboratorBeginDate",value:function(){this.collaboratorBeginDate!==this.collaboratorForm.get("begin_date").value?this.showModalChangeInitialDate():this.sendCollaboratorForm()}},{key:"sendCollaboratorForm",value:function(){var e=this;if(this.modalChangeInitialDate=!1,this.validCollaboratorForm()){this.personForm.get("birth_date").setValue(this.functionsService.dateBRtoEN(this.personForm.get("birth_date_BR").value));var t=this.journeyForm.get("id").value!=this.currentJourneyFromCollaborator.id&&this.journeyForm.get("begin_date").value,n=this.pointRuleForm.get("id").value!=this.currentPointRuleFromCollaborator.id&&this.pointRuleForm.get("begin_date").value;0==this.modalChangeInitialDate&&this.collaboratorDatabase.putCollaborator(this.collaboratorId,{collaboratorData:this.collaboratorForm.value,journeyChangeData:t?this.journeyForm.value:null,personData:this.personForm.value,pointRuleChangeData:n?this.pointRuleForm.value:null},(function(t){t.error||e.getCollaboratorData()}))}}},{key:"showModalChangeInitialDate",value:function(){this.modalChangeInitialDate=!0}},{key:"hideModalChangeInitialDate",value:function(){this.modalChangeInitialDate=!1,this.collaboratorForm.get("begin_date").setValue(this.collaboratorBeginDate)}},{key:"validCollaboratorForm",value:function(){var e=this,t=0;return Object.keys(this.stateFields).forEach((function(n){e.checkErrorField(n)||t++})),0!=t?(this.functionsService.openSnackBar("emptyField"),!1):this.validService.validCPF(this.personForm.get("national_registry").value)?this.validService.validEmail(this.personForm.get("email").value)?!!this.collaboratorForm.controls.begin_date.value||(this.functionsService.openSnackBar("Selecione a Data de in\xedcio de uso do sistema"),!1):(this.functionsService.openSnackBar("invalidEmail"),!1):(this.functionsService.openSnackBar("invalidCpf"),!1)}},{key:"checkErrorField",value:function(e){return this.personForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"verifyDate",value:function(e){this.collaboratorForm.controls[e].value&&this.collaboratorForm.controls[e].setValue(this.validService.validDate(this.collaboratorForm.controls[e].value))}},{key:"validOverTimeHour",value:function(e){this.collaboratorForm.get(e).setValue(this.validService.validHour(this.collaboratorForm.get(e).value,!1))}},{key:"checkPlanOnReadmit",value:function(){this.readmitCollaboratorIsAllowed()?this.plans.need_next?this.showModalPlanNext():this.showModalAdmission():this.functionsService.openSnackBar("O per\xedodo m\xe1ximo para readmitir o funcion\xe1rio \xe9 de 10 dias.")}},{key:"checkPlanOnDismissal",value:function(){this.plans.need_previous?this.showModalPlanPrevious():this.showModalDismissal()}},{key:"showModalPlanNext",value:function(){this.modalPlanShowMsg=!0,this.modalPlanNext=!0}},{key:"hideModalPlanNext",value:function(){this.modalPlanNext=!1}},{key:"showModalPlanPrevious",value:function(){this.modalPlanShowMsg=!0,this.modalPlanPrevious=!0}},{key:"hideModalPlanPrevious",value:function(){this.modalPlanPrevious=!1}},{key:"showModalTransfer",value:function(){this.modalTransfer=!0}},{key:"hideModalTransfer",value:function(){this.modalTransfer=!1}},{key:"checkPlanPreviousTransfer",value:function(){this.plans.need_previous?this.showModalPlanPreviousTransfer():this.showModalTransfer()}},{key:"showModalPlanPreviousTransfer",value:function(){this.modalPlanShowMsg=!0,this.modalPlanPreviousTransfer=!0}},{key:"hideModalPlanPreviousTransfer",value:function(){this.modalPlanPreviousTransfer=!1}}])}()).\u0275fac=function(e){return new(e||C$)($r(wp),$r(yM),$r(LN),$r(Mz),$r(tT),$r(YP),$r(zP),$r(WO),$r(JO),$r(TN))},C$.\u0275cmp=Ot({type:C$,selectors:[["io-collaborator-form"]],inputs:{collaboratorId:"collaboratorId"},decls:63,vars:53,consts:[[1,"collaboratorBox","flexDesk","fullHeight",3,"formGroup"],[1,"block","mrgB2"],[1,"topBlock"],[1,"sizeA","fontBold","fontUp","cl-blue","mrgB1"],["title","Voltar para listagem de Funcion\xe1rios",1,"iconItem","iconSizeD","cl-blue","clickPlace","mrgR1",3,"routerLink"],["size","3x",3,"icon"],[1,"card","bg-white","round2","border-gray-light","round2"],[1,"flex","center"],[1,"uploadImgBox"],["type","file","accept","image/*",3,"change"],["alt","collaboratorImg",1,"imgBorder",3,"src","error"],[1,"detailHover","anmtd2"],[1,"collaboratorNameBox"],[1,"sizeB","fontBold","fontCap","center"],["class","sizeC center",4,"ngIf"],[1,"collaboratorStatusBox"],[1,"sizeC"],[1,"fontBold"],["class","sizeC",4,"ngIf"],[1,"bg-gray-dark","heightHere","mrgB1"],[1,"sizeB","lastPointsTitle","fontBold"],[1,"lastPointsBox"],["class","item",4,"ngFor","ngForOf"],[1,"card","border-gray-light","bg-white","round2"],[1,"topBlock","flex"],[1,"sizeA","cl-blue"],["class","sizeB cl-blue pdg1 clickPlace",3,"click",4,"ngIf"],[1,"tabSelectBox"],[1,"tabSelect","sizeB","clickPlace",3,"ngClass","click"],[1,"tabBox",3,"formGroup"],["class","tab",4,"ngIf"],["class","tab",3,"formGroup",4,"ngIf"],[1,"btnBox","flex"],[1,"btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[3,"showModal","currentDate","newDate","confirmClick","hideModal",4,"ngIf"],[3,"showModal","collaboratorId","hideModal"],[3,"showModal","changeJourneyDate","changeJourneyDescription","changeJourneyMinDate","changeJourneyType","journeyId","journeyData","hideModal",4,"ngIf"],[3,"showModal","dateSelected","hideModal"],[3,"showModal","collaboratorData","updateList","hideModal",4,"ngIf"],[3,"auxiliaryText","journeyId","collaboratorId","showModal","hideModal",4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"showModal","showMsg","plans","up","nextModal","hideModal"],[1,"sizeC","center"],[1,"item"],["class","itemHour sizeC",4,"ngIf"],[1,"dot","bg-blue"],["class","detail bg-gray-dark",4,"ngIf"],["class","itemText sizeC fontBold",4,"ngIf"],[1,"itemHour","sizeC"],[1,"detail","bg-gray-dark"],[1,"itemText","sizeC","fontBold"],[1,"sizeB","cl-blue","pdg1","clickPlace",3,"click"],[1,"tab"],[1,"tabItem"],[1,"form-group","inputAnimated"],["autocomplete","off","id","name","required","","type","text",3,"formControlName","keyup"],["for","name",1,"form-label","required"],["autocomplete","off","id","national_registry","mask","000.000.000-00","maxlength","14","required","","type","text",3,"formControlName","keyup"],["for","national_registry",1,"form-label","required"],["autocomplete","off","id","identity_number","type","text","required","",3,"formControlName"],["for","identity_number",1,"form-label"],["autocomplete","off","id","birth_date_BR","mask","00/00/0000","maxlength","10","placeholder","","required","","type","text",3,"dropSpecialCharacters","formControlName","change"],["for","birth_date_BR",1,"form-label","required"],["autocomplete","off","id","gender","required","",3,"formControlName"],["value","FEMININO"],["value","MASCULINO"],["for","gender",1,"form-label"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["autocomplete","off","id","marital_status","required","",3,"formControlName"],["value","Solteiro(a)"],["value","Casado(a)"],["value","Vi\xfavo(a)"],["value","Separado(a) judicialmente"],["value","Divorciado(a)"],["for","marital_status",1,"form-label"],["autocomplete","off","id","father_name","required","","type","text",3,"formControlName"],["for","father_name",1,"form-label"],["autocomplete","off","id","mother_name","required","","type","text",3,"formControlName"],["for","mother_name",1,"form-label"],["autocomplete","off","id","naturalness","type","text","required","",3,"formControlName"],["for","naturalness",1,"form-label"],["autocomplete","off","id","nationality","type","text","required","",3,"formControlName"],["for","nationality",1,"form-label"],["id","drive_document","required","","type","text",3,"formControlName"],["for","drive_document",1,"form-label","wdFull"],["id","reservist_card","required","","type","text",3,"formControlName"],["for","reservist_card",1,"form-label","wdFull"],["mask","000.00000.00-0","maxlength","14","autocomplete","off","id","pis_pasep","required","","type","text",3,"formControlName","dropSpecialCharacters"],["for","pis_pasep",1,"form-label","wdFull"],["autocomplete","off","id","voter_registration","type","text","required","",3,"formControlName"],["for","voter_registration",1,"form-label"],["autocomplete","off","id","zip_code","mask","00.000-000","maxlength","10","type","text","required","",3,"formControlName","change"],["for","zip_code",1,"form-label"],["autocomplete","off","id","address","required","","type","text",3,"formControlName"],["for","address",1,"form-label"],["autocomplete","off","id","address_extra ","required","","type","text",3,"formControlName"],["for","address_extra ",1,"form-label"],["autocomplete","off","id","neighborhood","type","text","required","",3,"formControlName"],["for","neighborhood",1,"form-label"],["autocomplete","off","id","city","type","text","required","",3,"formControlName"],["for","city",1,"form-label"],["autocomplete","off","id","state","required","","type","text",3,"formControlName"],["for","state",1,"form-label"],["autocomplete","off","id","phone","mask","(00) 00000-0000","maxlength","15","type","text","required","",3,"formControlName","dropSpecialCharacters"],["for","phone",1,"form-label"],["autocomplete","off","id","email","type","text","required","",3,"formControlName","keyup"],["for","email",1,"form-label","required"],[1,"tab",3,"formGroup"],["id","type","required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],["for","type",1,"form-label"],["autocomplete","off","id","registration_number","type","text","required","",3,"formControlName"],["for","registration_number",1,"form-label"],["autocomplete","off","id","esocial_id","type","text","required","",3,"formControlName"],["for","esocial_id",1,"form-label"],["autocomplete","off","id","card_id","type","text","required","",3,"formControlName"],["for","card_id",1,"form-label"],["id","department_id","required","",3,"formControlName"],["for","department_id",1,"form-label"],[1,"form-group","inputAnimated","selectViewList",3,"formGroup"],["id","journey_id","required","",3,"formControlName","change","keyup"],["selectJourney",""],["for","journey_id",1,"form-label","required"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","iconViewJourney",3,"icon","click"],["size","3x","class","iconItem iconSizeG cl-red clickPlace iconViewJourney iconViewFutureJourney","title","Existe uma troca de escala programada",3,"icon","click",4,"ngIf"],["id","occupation_id","required","",3,"formControlName"],["for","occupation_id",1,"form-label"],["autocomplete","off","id","position","required","","type","text",3,"formControlName"],["for","position",1,"form-label"],[1,"datepicker",3,"labelText","validMinDate","startDate","currentDate","dateSelectedEN"],[1,"form-group","inputAnimated",3,"formGroup"],["autocomplete","off","id","dismissal_date_BR","mask","00/00/0000","maxlength","10","required","","type","text",3,"formControlName","dropSpecialCharacters"],["for","dismissal_date_BR",1,"form-label"],["mask","00000000/000","maxlength","12","autocomplete","off","id","ctps","required","","type","text",3,"formControlName","dropSpecialCharacters"],["for","ctps",1,"form-label","wdFull"],["onclick","this.select();","mask","000:00","maxlength","6","autocomplete","off","id","contracted_hours","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","contracted_hours",1,"form-label","wdFull"],[3,"value"],["size","3x","title","Existe uma troca de escala programada",1,"iconItem","iconSizeG","cl-red","clickPlace","iconViewJourney","iconViewFutureJourney",3,"icon","click"],[1,"datepicker","required",3,"labelText","currentDate","minDate","dateSelectedEN"],[1,"form-group","inputAnimated","relativePlace",3,"formGroup"],["id","point_rule_id","required","",3,"formControlName","change"],["for","point_rule_id",1,"form-label"],[1,"tabItem","mrgB1"],[1,"form-group","inputAnimated","relativePlace"],["id","unit_id","required","",3,"formControlName"],["for","unit_id",1,"form-label"],["id","collaborator_settings_id","required","",3,"formControlName"],["for","collaborator_settings_id",1,"form-label"],["id","cost_center_id","required","",3,"formControlName"],["for","cost_center_id",1,"form-label"],[3,"showModal","currentDate","newDate","confirmClick","hideModal"],[3,"showModal","changeJourneyDate","changeJourneyDescription","changeJourneyMinDate","changeJourneyType","journeyId","journeyData","hideModal"],[3,"showModal","collaboratorData","updateList","hideModal"],[3,"auxiliaryText","journeyId","collaboratorId","showModal","hideModal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),es(3,"h2",3),es(4,"span",4),ns(5,"fa-icon",5),ts(),Gs(6),ts(),ts(),es(7,"div",6),es(8,"div",7),es(9,"div",8),es(10,"input",9),ls("change",(function(e){return t.handleFile(e.target.files[0])})),ts(),es(11,"img",10),ls("error",(function(){return t.imgPreviewUrl="/assets/img/photo-user.png"})),ts(),es(12,"span",11),Gs(13,"+"),ts(),ts(),ts(),es(14,"div",12),es(15,"h3",13),Gs(16),ts(),Jr(17,JG,2,1,"h3",14),ts(),es(18,"div",15),es(19,"h3",16),es(20,"span",17),Gs(21,"Status:"),ts(),Gs(22),ts(),Jr(23,GG,4,1,"h3",18),ts(),ns(24,"div",19),es(25,"h3",20),Gs(26,"Atividades recentes"),ts(),es(27,"ul",21),Jr(28,e$,7,5,"li",22),ts(),ts(),ts(),es(29,"div",1),es(30,"div",23),es(31,"div",24),es(32,"h2",25),Gs(33,"Ficha do Funcion\xe1rio(a)"),ts(),Jr(34,t$,2,0,"span",26),Jr(35,n$,2,0,"span",26),ts(),es(36,"div",27),es(37,"span",28),ls("click",(function(){return t.selectTab(1)})),Gs(38,"Dados pessoais"),ts(),es(39,"span",28),ls("click",(function(){return t.selectTab(2)})),Gs(40,"Dados de contato"),ts(),es(41,"span",28),ls("click",(function(){return t.selectTab(3)})),Gs(42,"Dados trabalhistas"),ts(),es(43,"span",28),ls("click",(function(){return t.selectTab(4)})),Gs(44,"Dados do sistema"),ts(),ts(),es(45,"div",29),Jr(46,i$,80,27,"div",30),Jr(47,o$,37,12,"div",30),Jr(48,u$,64,31,"div",31),Jr(49,p$,30,27,"div",31),ts(),es(50,"div",32),es(51,"io-btn",33),ls("btnClick",(function(){return t.verifyCollaboratorBeginDate()})),ts(),ts(),ts(),ts(),ts(),Jr(52,g$,1,3,"io-modal-change-initial-date-warning",34),es(53,"io-collaborator-modal-access-data",35),ls("hideModal",(function(){return t.hideModalAccessData()})),ts(),Jr(54,v$,1,6,"io-collaborator-modal-change-journey",36),es(55,"io-collaborator-modal-change-point-rule",37),ls("dateSelected",(function(e){return t.confirmPointRuleChange(e)}))("hideModal",(function(){return t.hideModalPointRule()})),ts(),Jr(56,y$,1,2,"io-collaborator-modal-dismissal",38),es(57,"io-collaborator-modal-transfer",35),ls("hideModal",(function(){return t.hideModalTransfer()})),ts(),Jr(58,b$,1,4,"io-journey-modal-view",39),es(59,"io-modal-confirm",40),ls("confirmClick",(function(){return t.readmitCollaborator()}))("hideModal",(function(){return t.hideModalAdmission()})),ts(),es(60,"io-invoice-modal-plan-update",41),ls("nextModal",(function(){return t.showModalAdmission()}))("hideModal",(function(){return t.hideModalPlanNext()})),ts(),es(61,"io-invoice-modal-plan-update",41),ls("nextModal",(function(){return t.showModalDismissal()}))("hideModal",(function(){return t.hideModalPlanPrevious()})),ts(),es(62,"io-invoice-modal-plan-update",41),ls("nextModal",(function(){return t.showModalTransfer()}))("hideModal",(function(){return t.hideModalPlanPreviousTransfer()})),ts()),2&e&&(Zr("formGroup",t.collaboratorForm),Bo(4),Zr("routerLink",mc(51,w$)),Bo(1),Zr("icon",t.iconSolidService.faChevronLeft),Bo(1),Qs(" ",t.companyTradingName," "),Bo(5),Zr("src",t.imgPreviewUrl,mo),Bo(5),$s(t.personForm.get("name").value),Bo(1),Zr("ngIf",""!=t.collaboratorForm.get("position").value),Bo(5),Qs(" ",""==t.getCollaboratorDismissalDate()?"Ativo":"Inativo"," "),Bo(1),Zr("ngIf",""!=t.getCollaboratorDismissalDate()),Bo(5),Zr("ngForOf",t.lastPoints),Bo(6),Zr("ngIf",""==t.getCollaboratorDismissalDate()),Bo(1),Zr("ngIf",""!=t.getCollaboratorDismissalDate()&&t.readmitCollaboratorIsAllowed()),Bo(2),Zr("ngClass",1==t.tabSelected?"active":""),Bo(2),Zr("ngClass",2==t.tabSelected?"active":""),Bo(2),Zr("ngClass",3==t.tabSelected?"active":""),Bo(2),Zr("ngClass",4==t.tabSelected?"active":""),Bo(2),Zr("formGroup",t.personForm),Bo(1),Zr("ngIf",1==t.tabSelected),Bo(1),Zr("ngIf",2==t.tabSelected),Bo(1),Zr("ngIf",3==t.tabSelected),Bo(1),Zr("ngIf",4==t.tabSelected),Bo(2),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("btnClassList","btnSmall"),Bo(1),Zr("ngIf",t.modalChangeInitialDate),Bo(1),Zr("showModal",t.modalAccessData)("collaboratorId",t.collaboratorId),Bo(1),Zr("ngIf",t.modalJourneyChange),Bo(1),Zr("showModal",t.modalPointRule),Bo(1),Zr("ngIf",t.collaboratorDataToModal!=mc(52,x$)&&1==t.modalDismissal),Bo(1),Zr("showModal",t.modalTransfer)("collaboratorId",t.collaboratorId),Bo(1),Zr("ngIf",null!=t.journeySelectedId),Bo(1),Zr("showModal",t.modalAdmission)("title","Deseja readmitir este funcion\xe1rio?")("btnTextConfirm","Readmitir"),Bo(1),Zr("showModal",t.modalPlanNext)("showMsg",t.modalPlanShowMsg)("plans",t.plans.plans)("up",!0),Bo(1),Zr("showModal",t.modalPlanPrevious)("showMsg",t.modalPlanShowMsg)("plans",t.plans.plans)("up",!1),Bo(1),Zr("showModal",t.modalPlanPreviousTransfer)("showMsg",t.modalPlanShowMsg)("plans",t.plans.plans)("up",!1))},directives:[Hf,ip,bM,FD,sh,ah,ih,jD,HJ,pG,jG,UB,YU,If,bp,Vf,vp,DE,kp,vm,ym,xm,UA,zG,WG,WJ,jW],pipes:[IE],styles:[".collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .topBlock[_ngcontent-%COMP%]{height:60px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .topBlock[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{display:flex;align-items:center}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:30%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .topBlock[_ngcontent-%COMP%]{padding:0 0 10px;margin:0 0 1px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .card[_ngcontent-%COMP%]{padding:20px 20px 30px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .card[_ngcontent-%COMP%]   .collaboratorNameBox[_ngcontent-%COMP%]{min-height:40px;margin:10px 0}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .card[_ngcontent-%COMP%]   .collaboratorStatusBox[_ngcontent-%COMP%]{max-height:35px;margin:0 0 10px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .card[_ngcontent-%COMP%]   .collaboratorStatusBox[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:5px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .card[_ngcontent-%COMP%]   .heightHere[_ngcontent-%COMP%]{height:1px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsTitle[_ngcontent-%COMP%]{height:24px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]{min-height:297px;padding:20px 0 0;list-style:none}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;margin:0 0 10px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .itemHour[_ngcontent-%COMP%]{margin:0;width:86px;overflow:hidden}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]{position:relative;display:block;width:10px;height:10px;border-radius:50%;margin:0 15px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .dot[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);display:block;width:1px;height:165%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .itemText[_ngcontent-%COMP%]{margin:0}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:66%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .topBlock[_ngcontent-%COMP%]{padding:0 20px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:2px 20px;background-color:var(--primary-color)}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect[_ngcontent-%COMP%]{padding:10px;color:var(--secondary-color);background-color:var(--primary-color);border-radius:4px;transition:all .1s ease}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect.active[_ngcontent-%COMP%]{background-color:var(--secondary-color);color:var(--primary-color)}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]{min-height:450px;padding:50px 20px 20px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .tabItemBlock[_ngcontent-%COMP%]{width:49%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .tabItemBlock[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .btnBox[_ngcontent-%COMP%]{justify-content:flex-end;padding:0 20px 30px}.borderBottom[_ngcontent-%COMP%]{border-color:#444}.iconViewFutureJourney[_ngcontent-%COMP%]{right:-20px}.ipBtn[_ngcontent-%COMP%]{margin:0;max-width:23px}@media (max-width:912px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect[_ngcontent-%COMP%]{width:-moz-min-content;width:min-content}}@media (max-width:810px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:31%}}@media (max-width:780px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{max-width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .collaboratorStatusBox[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsTitle[_ngcontent-%COMP%]{text-align:center}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]{min-height:120px;padding:10px 0}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .lastPointsBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:200px;margin:0 auto 10px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}}@media (max-width:500px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]{padding:2px;background-color:var(--primary-color)}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabSelectBox[_ngcontent-%COMP%]   .tabSelect[_ngcontent-%COMP%]{padding:5px 3px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]{display:block}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .tabBox[_ngcontent-%COMP%]   .tabItem[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{display:block;margin:0 auto 10px}.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .btnBox[_ngcontent-%COMP%]{justify-content:center}}@media (max-width:340px){.collaboratorBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .topBlock[_ngcontent-%COMP%]{padding:0 10px}}"]}),C$),S$=((k$=function(){return d((function e(t,n){var i=this;c(this,e),this.activatedRoute=t,this.titleService=n,this.collaborator_id="",this.activatedRoute.params.subscribe((function(e){i.collaborator_id=e.collaborator_id}))}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Ficha de Funcion\xe1rio")}}])}()).\u0275fac=function(e){return new(e||k$)($r(lx),$r(hL))},k$.\u0275cmp=Ot({type:k$,selectors:[["io-collaborator-page-update"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"collaboratorId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-collaborator-form",2),ts(),ts()),2&e&&(Bo(2),Zr("collaboratorId",t.collaborator_id))},directives:[M$],styles:[""]}),k$),P$=((_$=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteCollaboratorSettings",value:function(e,t){this.databaseService.delete("/collaboratorSettings/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorSettings",value:function(e,t){this.databaseService.get("/collaboratorSettings/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorSettingsFormData",value:function(e){this.databaseService.get("/collaboratorSettings/formData",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getCollaboratorSettingsList",value:function(e){this.databaseService.get("/collaboratorSettings",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getPointRuleCollaboratorList",value:function(e,t){this.databaseService.get("/collaboratorSettings/getCollaboratorList/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointRuleCollaboratorListOut",value:function(e,t){this.databaseService.get("/collaboratorSettings/getCollaboratorListOut/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"externalGetIp",value:function(e){this.databaseService.externalGet("http://api.ipify.org/?format=json",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postCollaboratorSettings",value:function(e,t){this.databaseService.post("/collaboratorSettings",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postPointRuleCollaboratorList",value:function(e,t,n){this.databaseService.post("/collaboratorSettings/updateCollaboratorList/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCollaboratorSettings",value:function(e,t,n){this.databaseService.put("/collaboratorSettings/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||_$)(ut(tT))},_$.\u0275prov=Se({token:_$,factory:_$.\u0275fac,providedIn:"root"}),_$);function T$(e,t){if(1&e&&(es(0,"span",27),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}var O$=function(e){return{collaboratorSettingsId:e}};function L$(e,t){if(1&e){var n=as();es(0,"li",19),es(1,"span",20),Jr(2,T$,2,1,"span",21),Gs(3),ts(),es(4,"span",20),Gs(5),ts(),es(6,"span",22),Gs(7),ts(),es(8,"span",23),es(9,"io-icon",24),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),ns(10,"io-icon",25),es(11,"io-icon",26),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalRemoveCollaboratorSettings(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description,""),Bo(2),$s(i.collaboratorCount),Bo(2),$s(i.active?"Ativo":"Inativo"),Bo(2),Zr("moduleName","barrier")("action","showCollaboratorLinked")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","barrier")("action","update")("iconClassList","mrgL1")("iconTitle","Editar configura\xe7\xe3o")("urlNavigation","collaborator-settings-update")("urlStateData",pc(17,O$,i.id)),Bo(1),Zr("moduleName","barrier")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir configura\xe7\xe3o")}}function D$(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function I$(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma configura\xe7\xe3o de funcion\xe1rio encontrada."),ts())}function F$(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 configura\xe7\xe3o de funcion\xe1rio cadastrada."),ts())}function A$(e,t){if(1&e&&(es(0,"li"),Jr(1,D$,2,0,"p",15),Jr(2,I$,2,0,"p",15),Jr(3,F$,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorSettingsList.length>0&&n.collaboratorSettingsList[0].loading),Bo(1),Zr("ngIf",n.collaboratorSettingsList.length>0&&!n.collaboratorSettingsList[0].loading&&0==n.collaboratorSettingsListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorSettingsList.length)}}var E$,B$=((E$=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.collaboratorSettingsDatabase=t,this.formBuilder=n,this.router=i,this.storageService=o,this.iconRegularService=a,this.iconSolidService=r,this.functionsService=s,this.titleService=l,this.collaboratorListIn=[],this.collaboratorListOut=[],this.collaboratorSettingsList=[{loading:!0}],this.collaboratorSettingsListFilteredStatus=[],this.collaboratorSettingsListFilteredSearch=[],this.collaboratorSettingsSelectedId=null,this.modalCollaboratorSettings=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.modalRemoveCollaboratorSettings=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Configura\xe7\xe3o de funcion\xe1rio"),this.searchForm=this.formBuilder.group({status:new Wm(1,[Jf.required]),search:new Wm("",[Jf.required])});var u=this.router.getCurrentNavigation();u.extras.state&&u.extras.state.collaboratorSettingsId&&(this.collaboratorSettingsSelectedId=u.extras.state.collaboratorSettingsId,this.showModalCollaboratorLink())}),[{key:"ngOnInit",value:function(){this.loadList()}},{key:"loadList",value:function(){var e=this;this.collaboratorSettingsDatabase.getCollaboratorSettingsList((function(t){t.error||(e.collaboratorSettingsList=t.data.collaboratorSettingsList||[],e.filterCollaboratorSettingsStatus())}))}},{key:"filterCollaboratorSettingsStatus",value:function(){var e=this.searchForm.get("status").value;this.collaboratorSettingsListFilteredStatus=this.collaboratorSettingsList.filter((function(t){return t.active==e})),"all"==e&&(this.collaboratorSettingsListFilteredStatus=this.collaboratorSettingsList),this.filterCollaboratorSettingsSearch(this.searchForm.controls.search.value)}},{key:"filterCollaboratorSettingsSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.collaboratorSettingsListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorSettingsListFilteredStatus,e,"description")}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.collaboratorSettingsDatabase.getPointRuleCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.collaboratorSettingsSelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1,this.collaboratorSettingsSelectedId=null}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.collaboratorSettingsDatabase.getPointRuleCollaboratorListOut(this.collaboratorSettingsSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.collaboratorListOut||[])})),this.modalCollaboratorList=!1,this.modalCollaboratorLink=!0}},{key:"linkCollaboratorList",value:function(e){var t=this;0!=e.length&&this.collaboratorSettingsDatabase.postPointRuleCollaboratorList(this.collaboratorSettingsSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.loadList(),t.hideModalCollaboratorLink())}))}},{key:"hideModalCollaboratorLink",value:function(){this.modalCollaboratorLink=!1,this.collaboratorSettingsSelectedId=null}},{key:"showModalRemoveCollaboratorSettings",value:function(e){this.collaboratorSettingsSelectedId=e,this.modalRemoveCollaboratorSettings=!0}},{key:"deleteCollaboratorSettings",value:function(e){var t=this;this.collaboratorSettingsDatabase.deleteCollaboratorSettings(e,(function(n){if(!n.error){var i=t.collaboratorSettingsList.findIndex((function(t){return t.id==e}));t.collaboratorSettingsList.splice(i,1),t.collaboratorSettingsListFilteredSearch=t.collaboratorSettingsList,t.hideModalRemoveCollaboratorSettings(),t.loadList()}}))}},{key:"hideModalRemoveCollaboratorSettings",value:function(){this.collaboratorSettingsSelectedId=null,this.modalRemoveCollaboratorSettings=!1}}])}()).\u0275fac=function(e){return new(e||E$)($r(P$),$r(wp),$r(yM),$r(YP),$r(WO),$r(JO),$r(zP),$r(hL))},E$.\u0275cmp=Ot({type:E$,selectors:[["io-collaborator-settings-page-list"]],decls:28,vars:32,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","statusFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectionEnabled","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","hideModal"],[1,"flex","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","urlNavigation","urlStateData"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[1,"sizeB","cl-magenta","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterCollaboratorSettingsSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Descri\xe7\xe3o"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rios"),ts(),es(11,"div",8),es(12,"select",9),ls("change",(function(){return t.filterCollaboratorSettingsStatus()})),es(13,"option",10),Gs(14,"Todos"),ts(),es(15,"option",11),Gs(16,"Ativo"),ts(),es(17,"option",10),Gs(18,"Inativo"),ts(),ts(),ns(19,"fa-icon",12),ts(),es(20,"h3",7),Gs(21,"A\xe7\xe3o"),ts(),ts(),es(22,"ul",13),Jr(23,L$,12,19,"li",14),Jr(24,A$,4,3,"li",15),ts(),ts(),ts(),ts(),es(25,"io-modal-confirm",16),ls("confirmClick",(function(){return t.deleteCollaboratorSettings(t.collaboratorSettingsSelectedId)}))("hideModal",(function(){return t.hideModalRemoveCollaboratorSettings()})),ts(),es(26,"io-modal-multi-select-id",17),ls("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(27,"io-modal-multi-select-id",18),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchForm),Bo(1),Zr("moduleName","collaborator")("titleTop","Configura\xe7\xe3o de funcion\xe1rio")("showBtn",!0)("btnDataUrl","/collaborator-settings-register"),Bo(10),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",1),Bo(2),Zr("value",0),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.collaboratorSettingsListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorSettingsListFilteredSearch.length),Bo(1),Zr("showModal",t.modalRemoveCollaboratorSettings)("title","Excluir configura\xe7\xe3o de funcion\xe1rio?")("btnTextConfirm","Excluir"),Bo(1),Zr("title","Funcion\xe1rios vinculados a esta configura\xe7\xe3o de funcion\xe1rio")("moduleName","collaborator")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorList)("selectionEnabled",!1),Bo(1),Zr("title","Vincular funcion\xe1rios a esta configura\xe7\xe3o de funcion\xe1rio")("moduleName","collaborator")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink))},directives:[Hf,ip,eI,oE,vm,bp,Vf,vp,ym,xm,FD,ah,sh,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%;margin:0;text-align:right}"]}),E$),N$=["modalFilter"];function R$(e,t){if(1&e&&(es(0,"h3",7),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("",n.title," ")}}function j$(e,t){if(1&e&&(es(0,"span",10),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs("",n.inlineTitle," ")}}function z$(e,t){if(1&e&&(es(0,"p",8),Jr(1,j$,2,1,"span",9),Gs(2),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",""!=n.inlineTitle),Bo(1),$s(n.text)}}function V$(e,t){if(1&e&&(es(0,"span",10),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs("",n.inlineTitle," ")}}function H$(e,t){if(1&e&&(es(0,"p",8),Jr(1,V$,2,1,"span",9),Gs(2),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",""!=n.inlineTitle),Bo(1),$s(n.text2)}}var Y$,q$=function(e){return{width:e}},U$=["*"],W$=((Y$=function(){return d((function e(t){c(this,e),this.renderer=t,this.showCard=!0,this.inlineTitle="",this.cardWidth="400px",this.text="",this.text2="",this.title="",this.hideCard=new Mc,this.activeCard=!1}),[{key:"ngOnInit",value:function(){var e=this;this.renderer.listen("window","click",(function(t){t.target==e.modalFilter.nativeElement&&e.closeModal()}))}},{key:"ngOnChanges",value:function(){this.showCard&&(this.activeCard=!0)}},{key:"closeModal",value:function(){var e=this;this.activeCard=!1,setTimeout((function(){e.hideCard.emit(!1)}),100)}}])}()).\u0275fac=function(e){return new(e||Y$)($r(Ol))},Y$.\u0275cmp=Ot({type:Y$,selectors:[["io-modal-question-card"]],viewQuery:function(e,t){var n;1&e&&Rc(N$,!0),2&e&&Bc(n=Yc())&&(t.modalFilter=n.first)},inputs:{showCard:"showCard",inlineTitle:"inlineTitle",cardWidth:"cardWidth",text:"text",text2:"text2",title:"title"},outputs:{hideCard:"hideCard"},features:[dl],ngContentSelectors:U$,decls:9,vars:16,consts:[[1,"filterBlack2","modalFilter",3,"ngClass"],["modalFilter",""],[3,"ngStyle"],["class","sizeB fontBold mrgB2",4,"ngIf"],["class","sizeC",4,"ngIf"],[1,"flex","center","mrgT2"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","btnClick"],[1,"sizeB","fontBold","mrgB2"],[1,"sizeC"],["class","fontBold",4,"ngIf"],[1,"fontBold"]],template:function(e,t){1&e&&(ps(),es(0,"div",0,1),es(2,"div",2),Jr(3,R$,2,1,"h3",3),Jr(4,z$,3,2,"p",4),Jr(5,H$,3,2,"p",4),gs(6),es(7,"div",5),es(8,"io-btn",6),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts(),ts()),2&e&&(Zr("ngClass",1==t.showCard?"active":""),Bo(2),Xs("fadeEffect ",t.activeCard?"active":"",""),Zr("ngStyle",pc(14,q$,t.cardWidth)),Bo(1),Zr("ngIf",""!=t.title),Bo(1),Zr("ngIf",t.text),Bo(1),Zr("ngIf",t.text2),Bo(3),Zr("moduleName","collaborator")("action","create")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Fechar")("btnTitle","Fechar"))},directives:[ih,gh,sh,jD],styles:[".fadeEffect[_ngcontent-%COMP%]{padding:20px;left:50%;top:50%;transform:translate(-50%,-15%)}.fadeEffect[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:justify}.fadeEffect.active[_ngcontent-%COMP%]{transform:translate(-50%,-55%)}"]}),Y$);function J$(e,t){1&e&&(es(0,"div",7),es(1,"div",8),es(2,"span",9),Gs(3,"Carregando..."),ts(),ts(),ts())}function G$(e,t){if(1&e){var n=as();es(0,"div",37),es(1,"label",38),Gs(2,"Tempo limite de registro: "),ts(),es(3,"input",39),ls("change",(function(){return mn(n),fs(2).verifyShiftChange()})),ts(),ts()}2&e&&(Bo(3),Zr("dropSpecialCharacters",!1)("formControlName","shift_change_point_max_time"))}function $$(e,t){if(1&e){var n=as();es(0,"div",16),es(1,"h3",17),Gs(2),ts(),es(3,"div",18),es(4,"label",19),es(5,"input",40),ls("change",(function(){mn(n);var e=t.$implicit;return fs(2).validWebViewPermissionCode(e.code)})),ts(),es(6,"span",21),es(7,"span",22),Gs(8,"Sim"),ts(),es(9,"span",23),Gs(10,"N\xe3o"),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2);Bo(2),$s(i.name),Bo(3),Zr("checked",o.webViewModuleListPermission.indexOf(i.code)>=0)}}function Q$(e,t){if(1&e){var n=as();es(0,"div",16),es(1,"h3",24),Gs(2,"Aprova\xe7\xe3o autom\xe1tica de hora extra "),es(3,"fa-icon",25),ls("click",(function(){return mn(n),fs(2).showQuestionCard(4)})),ts(),ts(),es(4,"div",18),es(5,"label",19),ns(6,"input",20),es(7,"span",21),es(8,"span",22),Gs(9,"Sim"),ts(),es(10,"span",23),Gs(11,"N\xe3o"),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(3),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","over_time_without_request_allowed")}}function K$(e,t){1&e&&(es(0,"div",16),es(1,"h3",31),Gs(2,"Reconhecimento facial"),ts(),es(3,"div",18),es(4,"label",19),ns(5,"input",20),es(6,"span",21),es(7,"span",22),Gs(8,"Sim"),ts(),es(9,"span",23),Gs(10,"N\xe3o"),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(5),Zr("formControlName","app_face_recognition"))}function Z$(e,t){if(1&e){var n=as();es(0,"div",16),es(1,"h3",31),Gs(2,"Reconhecimento facial"),ts(),es(3,"div",18),es(4,"label",41),ls("click",(function(){return mn(n),fs(2).checkFaceRecognition()})),ns(5,"input",20),es(6,"span",21),es(7,"span",22),Gs(8,"Sim"),ts(),es(9,"span",23),Gs(10,"N\xe3o"),ts(),ts(),ts(),ts(),ts()}2&e&&(Bo(5),Zr("formControlName","multi_face_recognition"))}function X$(e,t){if(1&e&&(es(0,"div",42),es(1,"label",43),Gs(2,"IP: "),ts(),ns(3,"input",44),ts()),2&e){var n=fs(2);Bo(3),Es(n.stateFields.description.class),Zr("formControlName","ip_address")}}function eQ(e,t){1&e&&(es(0,"div",16),es(1,"label",45),Gs(2,"Quando ocorrer intrajornada: "),ts(),es(3,"label",19),ns(4,"input",46,36),es(6,"span",21),es(7,"span",22),Gs(8,"Sim"),ts(),es(9,"span",23),Gs(10,"N\xe3o"),ts(),ts(),ts(),ts()),2&e&&(Bo(4),Zr("formControlName","intrajourney"))}function tQ(e,t){1&e&&(es(0,"div",16),es(1,"label",47),Gs(2,"Quando ocorrer interjornada: "),ts(),es(3,"label",19),ns(4,"input",48,36),es(6,"span",21),es(7,"span",22),Gs(8,"Sim"),ts(),es(9,"span",23),Gs(10,"N\xe3o"),ts(),ts(),ts(),ts()),2&e&&(Bo(4),Zr("formControlName","interjourney"))}function nQ(e,t){if(1&e){var n=as();es(0,"div",16),es(1,"div",49),es(2,"label",50),Gs(3,"Tempo limite de hora extra di\xe1ria: "),es(4,"input",51),ls("change",(function(){return mn(n),fs(2).verifyHour("over_time_reference")})),ts(),ns(5,"fa-icon",52),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(4),Zr("dropSpecialCharacters",!1)("formControlName","over_time_reference"),Bo(1),Zr("icon",i.iconSolidService.faExclamation)("title","Deixe em branco para n\xe3o gerar inconsist\xeancia")}}function iQ(e,t){if(1&e){var n=as();es(0,"div",7),es(1,"div",10),es(2,"div",11),es(3,"input",12),ls("keyup",(function(){return mn(n),fs().checkErrorField("description")})),ts(),es(4,"label",13),Gs(5,"Descri\xe7\xe3o"),ts(),ts(),ts(),es(6,"h3",14),Gs(7,"Configura\xe7\xf5es Gerais"),ts(),es(8,"div",15),es(9,"div",16),es(10,"h3",17),Gs(11,"Comprovante no e-mail"),ts(),es(12,"div",18),es(13,"label",19),ns(14,"input",20),es(15,"span",21),es(16,"span",22),Gs(17,"Sim"),ts(),es(18,"span",23),Gs(19,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(20,"div",16),es(21,"h3",24),Gs(22,"Ponto autom\xe1tico ap\xf3s virada de turno "),es(23,"fa-icon",25),ls("click",(function(){return mn(n),fs().showQuestionCard(0)})),ts(),ts(),es(24,"div",18),es(25,"label",19),ns(26,"input",20,26),es(28,"span",21),es(29,"span",22),Gs(30,"Sim"),ts(),es(31,"span",23),Gs(32,"N\xe3o"),ts(),ts(),ts(),ts(),Jr(33,G$,4,2,"div",27),ts(),es(34,"div",16),es(35,"h3",24),Gs(36,"Aprova\xe7\xe3o autom\xe1tica de ponto fora da escala "),es(37,"fa-icon",25),ls("click",(function(){return mn(n),fs().showQuestionCard(1)})),ts(),ts(),es(38,"div",18),es(39,"label",19),ns(40,"input",20),es(41,"span",21),es(42,"span",22),Gs(43,"Sim"),ts(),es(44,"span",23),Gs(45,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(46,"div",16),es(47,"h3",24),Gs(48,"Aprova\xe7\xe3o autom\xe1tica de pontos fora da cerca digital "),es(49,"fa-icon",25),ls("click",(function(){return mn(n),fs().showQuestionCard(2)})),ts(),ts(),es(50,"div",18),es(51,"label",19),ns(52,"input",20),es(53,"span",21),es(54,"span",22),Gs(55,"Sim"),ts(),es(56,"span",23),Gs(57,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(58,"div",16),es(59,"h3",24),Gs(60,"Adicionar aus\xeancia quando possui ponto e ponto quando possui aus\xeancia. "),es(61,"fa-icon",25),ls("click",(function(){return mn(n),fs().showQuestionCard(6)})),ts(),ts(),es(62,"div",18),es(63,"label",19),ns(64,"input",20),es(65,"span",21),es(66,"span",22),Gs(67,"Sim"),ts(),es(68,"span",23),Gs(69,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),ts(),es(70,"h3",14),Gs(71,"M\xf3dulos vis\xedveis na \xc1rea do Funcion\xe1rio no aplicativo"),ts(),es(72,"div",28),Jr(73,$$,11,2,"div",29),ts(),es(74,"div",28),Jr(75,Q$,12,2,"div",30),ts(),es(76,"h3",14),Gs(77,"Configura\xe7\xf5es do Aplicativo Individual (Funcion\xe1rio)"),ts(),es(78,"div",28),es(79,"div",16),es(80,"h3",31),Gs(81,"Registrar no APP"),ts(),es(82,"div",18),es(83,"label",19),ns(84,"input",20),es(85,"span",21),es(86,"span",22),Gs(87,"Sim"),ts(),es(88,"span",23),Gs(89,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(90,"div",16),es(91,"h3",31),Gs(92,"Lembrete de ponto"),ts(),es(93,"div",18),es(94,"label",19),ns(95,"input",20),es(96,"span",21),es(97,"span",22),Gs(98,"Sim"),ts(),es(99,"span",23),Gs(100,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(101,"div",16),es(102,"h3",31),Gs(103,"GPS obrigat\xf3rio"),ts(),es(104,"div",18),es(105,"label",19),ns(106,"input",20),es(107,"span",21),es(108,"span",22),Gs(109,"Sim"),ts(),es(110,"span",23),Gs(111,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),Jr(112,K$,11,1,"div",30),ts(),ns(113,"div",10),es(114,"h3",14),Gs(115,"Configura\xe7\xf5es do Aplicativo Multiponto (Empresa)"),ts(),es(116,"div",28),es(117,"div",16),es(118,"h3",31),Gs(119,"Registrar no Multiponto"),ts(),es(120,"div",18),es(121,"label",19),ns(122,"input",20),es(123,"span",21),es(124,"span",22),Gs(125,"Sim"),ts(),es(126,"span",23),Gs(127,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(128,"div",16),es(129,"h3",31),Gs(130,"GPS obrigat\xf3rio"),ts(),es(131,"div",18),es(132,"label",19),ns(133,"input",20),es(134,"span",21),es(135,"span",22),Gs(136,"Sim"),ts(),es(137,"span",23),Gs(138,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),Jr(139,Z$,11,1,"div",30),ts(),es(140,"h3",14),Gs(141,"Configura\xe7\xf5es do Ponto Web"),ts(),es(142,"div",28),es(143,"div",16),es(144,"h3",31),Gs(145,"Registrar no Ponto Web"),ts(),es(146,"div",18),es(147,"label",19),ns(148,"input",20),es(149,"span",21),es(150,"span",22),Gs(151,"Sim"),ts(),es(152,"span",23),Gs(153,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(154,"div",16),es(155,"h3",17),Gs(156,"Vincular IP Fixo "),es(157,"fa-icon",25),ls("click",(function(){return mn(n),fs().showQuestionCard(3)})),ts(),ts(),es(158,"div",18),es(159,"label",19),es(160,"input",32),ls("change",(function(){return mn(n),fs().getIp()})),ts(),es(161,"span",21),es(162,"span",22),Gs(163,"Sim"),ts(),es(164,"span",23),Gs(165,"N\xe3o"),ts(),ts(),ts(),ts(),Jr(166,X$,4,4,"div",33),ts(),ts(),es(167,"h3",14),Gs(168,"Configura\xe7\xf5es de Inconsist\xeancias"),ts(),es(169,"div",15),es(170,"div",34),es(171,"h3",35),Gs(172,"Habilitar notifica\xe7\xe3o de inconsist\xeancia "),es(173,"fa-icon",25),ls("click",(function(){return mn(n),fs().showQuestionCard(5)})),ts(),ts(),es(174,"div",18),es(175,"label",19),ns(176,"input",20,36),es(178,"span",21),es(179,"span",22),Gs(180,"Sim"),ts(),es(181,"span",23),Gs(182,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),Jr(183,eQ,11,1,"div",30),Jr(184,tQ,11,1,"div",30),Jr(185,nQ,6,4,"div",30),ts(),ts()}if(2&e){var i=Gr(27),o=Gr(177),a=fs();Bo(3),Es(a.stateFields.description.class),Zr("formControlName","description"),Bo(11),Zr("formControlName","proof_of_point"),Bo(9),Zr("icon",a.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","shift_change_point_max_time_enable"),Bo(7),Zr("ngIf",i.checked),Bo(4),Zr("icon",a.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","point_out_journey_allowed"),Bo(9),Zr("icon",a.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","point_out_barrier_allowed"),Bo(9),Zr("icon",a.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","absence_on_point"),Bo(9),Zr("ngForOf",a.webViewModuleList),Bo(2),Zr("ngIf",a.webViewModuleListPermission.indexOf(256)>=0&&!a.collaboratorSettingForm.get("point_out_journey_allowed").value),Bo(9),Zr("formControlName","access_app"),Bo(11),Zr("formControlName","point_remember"),Bo(11),Zr("formControlName","app_gps_required"),Bo(6),Zr("ngIf",a.hasIoFaceIdEnable),Bo(10),Zr("formControlName","access_multipoint"),Bo(11),Zr("formControlName","multi_gps_required"),Bo(6),Zr("ngIf",a.hasIoFaceIdEnable),Bo(9),Zr("formControlName","access_web"),Bo(9),Zr("icon",a.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","access_only_ip"),Bo(6),Zr("ngIf",a.collaboratorSettingForm.get("access_only_ip").value),Bo(7),Zr("icon",a.iconRegularService.faQuestionCircle),Bo(3),Zr("formControlName","enable_inconsistency_notification"),Bo(7),Zr("ngIf",o.checked),Bo(1),Zr("ngIf",o.checked),Bo(1),Zr("ngIf",o.checked)}}var oQ,aQ,rQ,sQ,lQ=((sQ=function(){return d((function e(t,n,i,o,a,r,s,l){var u=this;c(this,e),this.formBuilder=t,this.router=n,this.collaboratorSettingsDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.validService=l,this.collaboratorSettingsId=null,this.formIsReady=!1,this.hasIoFaceIdEnable=!1,this.questionCardData=[{title:"Ponto autom\xe1tico ap\xf3s virada de turno",text:"Ao habilitar esta op\xe7\xe3o, o sistema gerar\xe1 automaticamente os pontos de fim e in\xedcio de turno caso o ponto de sa\xedda seja registrado ap\xf3s a virada de turno. Somente gerar\xe1 esses pontos caso o ponto de sa\xedda seja inferior ao tempo limite informado."},{title:"Aprova\xe7\xe3o autom\xe1tica de ponto fora da escala",text:"Ao desabilitar esta op\xe7\xe3o, dever\xe1 ser feita a aprova\xe7\xe3o manual dos pontos fora da escala de trabalho."},{title:"Aprova\xe7\xe3o autom\xe1tica de ponto fora da cerca digital",text:"Ao desabilitar esta op\xe7\xe3o, dever\xe1 ser feita a aprova\xe7\xe3o manual dos pontos fora da cerca digital."},{title:"Registro de ponto apenas por IPs registrados",text:"Ao habilitar esta op\xe7\xe3o, ser\xe1 poss\xedvel registrar o ponto apenas em m\xe1quinas cujo IP esteja no campo abaixo. Para usar mais de um IP, separe por Ponto e Virgula(;)."},{title:"Aprova\xe7\xe3o autom\xe1tica de hora extra",text:'Ao desabilitar esta op\xe7\xe3o, os pontos registrados fora da escala de trabalho, por motivo de horas extras, somente ser\xe3o aprovado mediante requisi\xe7\xe3o pr\xe9via do funcion\xe1rio. Se n\xe3o houver requisi\xe7\xe3o os pontos ser\xe3o maracados como "pendentes de aprova\xe7\xe3o do gestor".'},{title:"Habilitar notifica\xe7\xe3o de inconsist\xeancia",text:"Ser\xe3o habilitadas notifica\xe7\xf5es das seguintes consist\xeancias: tempo limite, configur\xe1vel, de horas extras trabalhadas, menos de 1 hora de intrajornada e menos de 11 horas interjornada."},{title:"Adicionar aus\xeancia nos dias com registro de ponto e incluir ponto nos dias com aus\xeancia",text:"Impossibilita a adi\xe7\xe3o de aus\xeancia em per\xedodo que existe ponto.",text2:"Impossibilita a adi\xe7\xe3o manual de ponto em per\xedodo que existe aus\xeancia."}],this.questionCardType=null,this.ipAddress=null,this.stateFields={description:{class:""},intrajourney:{class:""},interjourney:{class:""},over_time_reference:{class:""}},this.webViewModuleList=[{name:"Escala",code:2},{name:"Horas extras",code:4},{name:"Aus\xeancias",code:8},{name:"Espelho ponto",code:512},{name:"Holerite",code:1024},{name:"Documentos",code:2048}],this.webViewModuleListPermission=[1,2,4,8,16,32,64,128,512,1024,2048],this.collaboratorSettingForm=this.formBuilder.group({description:new Wm("",[Jf.required]),app_face_recognition:new Wm(!1,[Jf.required]),app_gps_required:new Wm(!0,[Jf.required]),multi_face_recognition:new Wm(!1,[Jf.required]),multi_gps_required:new Wm(!0,[Jf.required]),multi_hide_password:new Wm(!1,[Jf.required]),access_app:new Wm(!0,[Jf.required]),access_multipoint:new Wm(!0,[Jf.required]),access_web:new Wm(!0,[Jf.required]),access_only_ip:new Wm(!1,[Jf.required]),ip_address:new Wm("",[Jf.required]),over_time_without_request_allowed:new Wm(!0,[Jf.required]),point_out_barrier_allowed:new Wm(!0,[Jf.required]),absence_on_point:new Wm(!0,[Jf.required]),enable_inconsistency_notification:new Wm(!1,[Jf.required]),point_out_journey_allowed:new Wm(!0,[Jf.required]),point_remember:new Wm(!0,[Jf.required]),proof_of_point:new Wm(!0,[Jf.required]),shift_change_point_max_time_enable:new Wm(!1,[Jf.required]),shift_change_point_max_time:new Wm("00:00",[Jf.required]),intrajourney:new Wm(!1,[Jf.required]),interjourney:new Wm(!1,[Jf.required]),over_time_reference:new Wm(null,[Jf.required])}),this.collaboratorSettingsDatabase.getCollaboratorSettingsFormData((function(e){e.error||(u.hasIoFaceIdEnable=1==e.data.formData.ioface_is_enabled,u.formIsReady=!0)}));var d=this.storageService.decodeFromLocalStorage("companyId");["835","836"].includes(d)&&(this.webViewModuleList.push({name:"Solicitar HE",code:256}),this.webViewModuleListPermission.push(256))}),[{key:"ngOnInit",value:function(){var e=this;this.collaboratorSettingsId&&this.collaboratorSettingsDatabase.getCollaboratorSettings(this.collaboratorSettingsId,(function(t){t.error||(Object.keys(e.collaboratorSettingForm.controls).forEach((function(n){e.collaboratorSettingForm.controls[n].setValue(t.data.collaboratorSettingsData[n])})),e.webViewModuleListPermission=t.data.collaboratorSettingsData.webViewModuleListPermission,e.verifyShiftChange(),e.collaboratorSettingForm.get("shift_change_point_max_time_enable").setValue("00:00"!=e.collaboratorSettingForm.get("shift_change_point_max_time").value),e.collaboratorSettingForm.get("access_only_ip").setValue(null!=e.collaboratorSettingForm.get("ip_address").value),null!=t.data.inconsistencySettingsData&&(e.collaboratorSettingForm.get("intrajourney").setValue(t.data.inconsistencySettingsData.intrajourney),e.collaboratorSettingForm.get("interjourney").setValue(t.data.inconsistencySettingsData.interjourney),e.collaboratorSettingForm.get("over_time_reference").setValue(t.data.inconsistencySettingsData.over_time_reference)))}))}},{key:"validWebViewPermissionCode",value:function(e){this.webViewModuleListPermission.indexOf(e)>=0?this.webViewModuleListPermission=this.webViewModuleListPermission.filter((function(t){return t!=e})):this.webViewModuleListPermission.push(e),this.validOverTimeRequest()}},{key:"validOverTimeRequest",value:function(){}},{key:"validCollaboratorSetting",value:function(){return""==this.collaboratorSettingForm.controls.description.value?(this.functionsService.openSnackBar("Informe uma descri\xe7\xe3o"),!1):""!=this.collaboratorSettingForm.controls.over_time_reference.value?!(this.collaboratorSettingForm.controls.enable_inconsistency_notification.value&&!this.collaboratorSettingForm.controls.intrajourney.value&&!this.collaboratorSettingForm.controls.interjourney.value&&!this.collaboratorSettingForm.controls.over_time_reference.value&&(this.functionsService.openSnackBar("Por favor, selecione uma inconsist\xeancia ou desmarque a notifica\xe7\xe3o para inconsist\xeancias!"),1)):void this.collaboratorSettingForm.controls.over_time_reference.setValue(null)}},{key:"sendCollaboratorSettings",value:function(){if(this.validCollaboratorSetting()){(0==this.webViewModuleListPermission.indexOf(256)||this.collaboratorSettingForm.get("point_out_journey_allowed").value)&&this.collaboratorSettingForm.get("over_time_without_request_allowed").setValue(!0);var e=Object.assign(Object.assign({},this.collaboratorSettingForm.value),{webViewModuleListPermission:JSON.stringify(this.webViewModuleListPermission)});null!=this.collaboratorSettingsId?this.putForm(e):this.postForm(e)}}},{key:"postForm",value:function(e){var t=this;this.collaboratorSettingsDatabase.postCollaboratorSettings(e,(function(e){e.error||t.router.navigate(["/collaborator-settings"],{state:{collaboratorSettingsId:e.data.id}}).then((function(){return!1}))}))}},{key:"putForm",value:function(e){var t=this;this.collaboratorSettingsDatabase.putCollaboratorSettings(this.collaboratorSettingsId,e,(function(e){e.error||t.router.navigate(["/collaborator-settings"]).then((function(){return!1}))}))}},{key:"showQuestionCard",value:function(e){this.questionCardType=e}},{key:"hideQuestionCard",value:function(){this.questionCardType=null}},{key:"verifyShiftChange",value:function(){var e=this.validService.validHour(this.collaboratorSettingForm.get("shift_change_point_max_time").value);parseInt(this.functionsService.removeSings(e))>800&&(this.functionsService.openSnackBar("O tempo m\xe1ximo para o ponto de virada de turno \xe9 08:00h"),e="08:00"),this.collaboratorSettingForm.get("shift_change_point_max_time").setValue(e)}},{key:"getIp",value:function(){var e=this;this.collaboratorSettingForm.get("access_only_ip").value?this.collaboratorSettingsDatabase.externalGetIp((function(t){e.ipAddress=t.data.ip,e.collaboratorSettingForm.get("ip_address").setValue(e.ipAddress)})):this.collaboratorSettingForm.get("ip_address").setValue("")}},{key:"checkErrorField",value:function(e){return this.collaboratorSettingForm.controls[e].valid?(this.stateFields[e]=Object.assign(Object.assign({},this.stateFields[e]),{class:""}),!0):(this.stateFields[e]=Object.assign(Object.assign({},this.stateFields[e]),{class:"emptyError"}),!1)}},{key:"checkFaceRecognition",value:function(){this.collaboratorSettingForm.controls.multi_face_recognition.value&&this.collaboratorSettingForm.get("multi_hide_password").setValue(0)}},{key:"verifyHour",value:function(e){""!=this.collaboratorSettingForm.get(e).value?this.collaboratorSettingForm.get(e).setValue(this.validService.validHour(this.collaboratorSettingForm.get(e).value)):this.collaboratorSettingForm.get(e).setValue(null)}}])}()).\u0275fac=function(e){return new(e||sQ)($r(wp),$r(yM),$r(P$),$r(zP),$r(WO),$r(JO),$r(YP),$r(TN))},sQ.\u0275cmp=Ot({type:sQ,selectors:[["io-collaborator-settings-form"]],inputs:{collaboratorSettingsId:"collaboratorSettingsId"},decls:9,vars:18,consts:[[1,"formBox",3,"formGroup"],[3,"moduleName","titleTop"],["class","minHeightBox",4,"ngIf"],[1,"flex","pdgT2"],[3,"moduleName","btnText","btnColor","urlNavigation","useValidation"],[1,"mrgL2",3,"moduleName","btnText","action","btnColor","btnClick"],[3,"showCard","title","text","text2","hideCard"],[1,"minHeightBox"],[1,"pdg2","mrgB2"],[1,"pdg2"],[1,"mrgB2"],[1,"form-group","inputAnimated"],["id","journeyDescription","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","journeyDescription",1,"form-label","required"],[1,"sizeB","fontBold","borderBottom","mrgB2"],[1,"permissionLine","flexPad","top","start","general-settings"],[1,"permissionItem"],[1,"sizeC","mrgB1"],[1,"permissionSwitchBox","center"],[1,"switchBox","switchOnOff"],["type","checkbox",1,"switchInput",3,"formControlName"],[1,"switch"],[1,"switchTextOn"],[1,"switchTextOff"],[1,"sizeC","flex","top","mrgB1"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],["shiftChange",""],["class","shiftChangeHourBox flex start mrgT1",4,"ngIf"],[1,"permissionLine","flexPad","top","start"],["class","permissionItem",4,"ngFor","ngForOf"],["class","permissionItem",4,"ngIf"],[1,"sizeC","center","mrgB1"],["type","checkbox",1,"switchInput",3,"formControlName","change"],["class","shiftChangeIpBox flex start mrgT1",4,"ngIf"],[1,"permissionItem","inconsistency"],[1,"sizeC","top","mrgB1"],["enableInconsistencyNotification",""],[1,"shiftChangeHourBox","flex","start","mrgT1"],["for","shiftChangeHour",1,"sizeC","mrgR1"],["onClick","this.select();","id","shiftChangeHour","autocomplete","off","mask","00:00","maxlength","5","placeholder","00:00","type","text",1,"center","borderBottom",3,"dropSpecialCharacters","formControlName","change"],["type","checkbox",1,"switchInput",3,"checked","change"],[1,"switchBox","switchOnOff",3,"click"],[1,"shiftChangeIpBox","flex","start","mrgT1"],["for","ipAddress",1,"sizeC","mrgR1"],["id","ipAddress","placeholder","","required","","type","text",3,"formControlName"],["for","inconsistencyIntrajourney",1,"sizeC","mrgR1"],["type","checkbox","id","inconsistencyIntrajourney",1,"switchInput",3,"formControlName"],["for","inconsistencyInterjourney",1,"sizeC","mrgR1"],["type","checkbox","id","inconsistencyInterjourney",1,"switchInput",3,"formControlName"],[1,"inputHour","flex","center"],["for","inconsistencyOvertimeReference",1,"sizeC","mrgR1"],["onClick","this.select();","id","inconsistencyOvertimeReference","autocomplete","off","mask","00:00","maxlength","5","placeholder","00:00","type","text",1,"center","borderBottom","extraTime",3,"dropSpecialCharacters","formControlName","change"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon","title"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div"),ns(2,"io-main-top",1),Jr(3,J$,4,0,"div",2),Jr(4,iQ,186,32,"div",2),ts(),es(5,"div",3),ns(6,"io-btn",4),es(7,"io-btn",5),ls("btnClick",(function(){return t.sendCollaboratorSettings()})),ts(),ts(),ts(),es(8,"io-modal-question-card",6),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Zr("formGroup",t.collaboratorSettingForm),Bo(2),Zr("moduleName","collaborator")("titleTop",t.collaboratorSettingsId?"Editar configura\xe7\xe3o de funcion\xe1rio":"Nova configura\xe7\xe3o de funcion\xe1rio"),Bo(1),Zr("ngIf",!t.formIsReady),Bo(1),Zr("ngIf",t.formIsReady),Bo(2),Zr("moduleName","collaborator-settings")("btnText","Cancelar")("btnColor","btn-red")("urlNavigation","collaborator-settings")("useValidation",!1),Bo(1),Zr("moduleName","collaborator-settings")("btnText",t.collaboratorSettingsId?"Salvar":"Cadastrar")("action",t.collaboratorSettingsId?"update":"create")("btnColor","btn-blue-bg"),Bo(1),Zr("showCard",null!=t.questionCardType)("title",null!=t.questionCardType?t.questionCardData[t.questionCardType].title:"")("text",null!=t.questionCardType?t.questionCardData[t.questionCardType].text:"")("text2",null!=t.questionCardType?t.questionCardData[t.questionCardType].text2:""))},directives:[Hf,ip,eI,sh,jD,W$,If,bp,Vf,vp,Of,FD,ah,DE,kp],styles:[".minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]{margin:0 auto 20px}.minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]{display:inline-block;margin:0 20px 10px 0}.minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]:last-child{margin-right:0}.minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]   .switchBox[_ngcontent-%COMP%]{margin:0 5px 0 0;width:50px}.minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]   .shiftChangeHourBox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:50px;border-color:var(--cl-gray-dark)}.minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]   .shiftChangeIpBox[_ngcontent-%COMP%]{max-width:300px}.minHeightBox[_ngcontent-%COMP%]   .permissionLine[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]   .shiftChangeIpBox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:150px;border-bottom:1px solid var(--cl-gray-dark)}.minHeightBox[_ngcontent-%COMP%]   .permissionLine.general-settings[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]{width:100%;max-width:30%}.minHeightBox[_ngcontent-%COMP%]   .permissionLine.general-settings[_ngcontent-%COMP%]   .permissionItem.inconsistency[_ngcontent-%COMP%]{max-width:100%}.minHeightBox[_ngcontent-%COMP%]   .permissionLine.general-settings[_ngcontent-%COMP%]   .permissionItem[_ngcontent-%COMP%]:first-child:not(.inconsistency){max-width:20%}.inputHour[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:50px;border-color:var(--cl-gray-dark)}input[_ngcontent-%COMP%]::-moz-placeholder{color:var(--cl-gray-dark)}input[_ngcontent-%COMP%]::placeholder{color:var(--cl-gray-dark)}input.extraTime[_ngcontent-%COMP%]::-webkit-input-placeholder, input.extraTime[_ngcontent-%COMP%]::placeholder{opacity:.8;color:var(--cl-gray)}"]}),sQ),cQ=((rQ=function(){return d((function e(t){c(this,e),this.titleService=t}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Configura\xe7\xe3o de funcion\xe1rio - Cadastro")}}])}()).\u0275fac=function(e){return new(e||rQ)($r(hL))},rQ.\u0275cmp=Ot({type:rQ,selectors:[["io-collaborator-setting-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-collaborator-settings-form"),ts(),ts())},directives:[lQ],styles:[""]}),rQ),uQ=((aQ=function(){return d((function e(t,n){c(this,e),this.router=t,this.titleService=n,this.collaboratorSettingsId="",this.titleService.setTitle("Configura\xe7\xe3o de funcion\xe1rio - Edi\xe7\xe3o");var i=this.router.getCurrentNavigation();i.extras.state?this.collaboratorSettingsId=i.extras.state.collaboratorSettingsId:this.router.navigate(["/collaborator-settings"]).then((function(){return!1}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||aQ)($r(yM),$r(hL))},aQ.\u0275cmp=Ot({type:aQ,selectors:[["io-collaborator-setting-page-update"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"collaboratorSettingsId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-collaborator-settings-form",2),ts(),ts()),2&e&&(Bo(2),Zr("collaboratorSettingsId",t.collaboratorSettingsId))},directives:[lQ],styles:[""]}),aQ),dQ=((oQ=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getMirror",value:function(e,t){this.databaseService.getFile("/mirror/mirrorPayment",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getMirrorList",value:function(e,t){this.databaseService.get("/mirror",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||oQ)(ut(tT))},oQ.\u0275prov=Se({token:oQ,factory:oQ.\u0275fac,providedIn:"root"}),oQ);function hQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Hora noturna estendida"),ts(),es(3,"p",3),Gs(4," Quando o trabalho iniciado em per\xedodo noturno se estende al\xe9m das 5h da manh\xe3, gera o direito ao recebimento de adicional noturno sobre o total das horas trabalhadas, independente do fato de essa prorroga\xe7\xe3o referir-se ou n\xe3o \xe0 presta\xe7\xe3o de horas extras."),ns(5,"br"),ns(6,"br"),Gs(7," Entendimento conforme orienta\xe7\xe3o da S\xfamula 60, item II, do TST (Tribunal Superior do Trabalho). "),ts(),ts())}function fQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Hora noturna reduzida"),ts(),es(3,"p",3),Gs(4,"A hora ficta, ou hora noturna, tem a extens\xe3o de 52 minutos e 30 segundos."),ns(5,"br"),ns(6,"br"),Gs(7," Assim a hora noturna ser\xe1 calculada com 52 (cinquenta e dois) minutos e 30 (trinta) segundos."),ts(),ts())}function mQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Adicionar hora noturna \xe0s horas totais"),ts(),es(3,"p",3),Gs(4,"Ser\xe3o adicionadas as horas noturnas reduzidas \xe0s horas totais trabalhadas."),ts(),ts())}function pQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Toler\xe2ncias"),ts(),es(3,"p",3),Gs(4,' A CLT (Consolida\xe7\xe3o das Leis do Trabalho), no artigo 58 \xa7 1\xba informa: "N\xe3o ser\xe3o descontadas nem computadas como jornada extraordin\xe1ria as varia\xe7\xf5es de hor\xe1rio no registro de ponto n\xe3o excedentes de cinco minutos, observado o limite m\xe1ximo de dez minutos di\xe1rios."'),ns(5,"br"),ns(6,"br"),es(7,"span",4),Gs(8,"Aten\xe7\xe3o:"),ts(),Gs(9," As jornadas especiais 12x36, 24x48 e 24x72 n\xe3o possuem toler\xe2ncia. "),ts(),ts())}function gQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Tempo de intervalo em minutos"),ts(),es(3,"p",3),Gs(4," O artigo 71 da CLT estabelece que: "),ns(5,"br"),ts(),es(6,"ul"),es(7,"li"),Gs(8,"Para jornadas de trabalho de 4 (quatro) a 6 (seis) horas, o intervalo deve ser de 15 (quinze) minutos. "),ts(),es(9,"li"),Gs(10,"Para jornadas de trabalho superiores a 6 (seis) horas, o intervalo deve ser de no m\xednimo 1 (uma) hora e no m\xe1ximo 2 (duas) horas. "),ts(),ts(),es(11,"p",3),ns(12,"br"),Gs(13," O profissional apenas n\xe3o tem direito ao intervalo intrajornada quando trabalha menos de 4 (quatro) horas por dia."),ns(14,"br"),ns(15,"br"),Gs(16," O intervalo m\xednimo para jornada acima de 6 (seis) horas, pode ser reduzido por meio de acordo ou conven\xe7\xe3o, desde que respeitado o limite m\xednimo de 30 (trinta) minutos. "),ts(),ts())}function vQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Per\xedodo de lanche"),ts(),es(3,"p",3),Gs(4," Disponibilizar um per\xedodo de tempo para que o funcion\xe1rio possa usufruir de um per\xedodo de descanso em sua jornada di\xe1ria."),ns(5,"br"),ns(6,"br"),es(7,"span",4),Gs(8,"Aten\xe7\xe3o: "),ts(),Gs(9,"Essa op\xe7\xe3o \xe9 recomendada para funcion\xe1rios que registram ponto no in\xedcio e fim do per\xedodo de descanso, este periodo n\xe3o deve constar na escala. "),ts(),ts())}function yQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Escala 12x36 com intrajornada"),ts(),es(3,"p",3),Gs(4," Mesmo em regime de 12x36, deve ser concedida a hora intrajornada (almo\xe7o/jantar), caso contr\xe1rio s\xe3o devidas horas extras pelo intervalo suprimido ou n\xe3o concedido. "),ts(),ts())}function bQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Regime de horas padr\xe3o"),ts(),es(3,"p",3),Gs(4,"Esta configura\xe7\xe3o define o regime de horas padr\xe3o para o funcion\xe1rio vinculado a esta regra no momento do cadastro."),ts(),ts())}function _Q(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Fator de banco de horas"),ts(),es(3,"p",3),Gs(4,"Percentual de aumento no c\xe1lculo de banco de horas."),ts(),ts())}function kQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Compensa\xe7\xe3o de horas no mesmo dia"),ts(),es(3,"p",3),Gs(4,"Atrav\xe9s desta op\xe7\xe3o, o funcion\xe1rio tem a possibilidade de compensar o tempo trabalhado extra ou faltante no mesmo dia."),ns(5,"br"),ns(6,"br"),es(7,"span",4),Gs(8,"ATEN\xc7\xc3O:"),ts(),Gs(9," A compensa\xe7\xe3o \xe9 v\xe1lida APENAS PARA O MESMO DIA. "),ts(),ts())}function CQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Calcular hora faltantes"),ts(),es(3,"p",3),Gs(4," Apresentar no espelho ponto as horas faltantes quando o trabalhador n\xe3o cumprir o total de horas di\xe1rias requeridas pela jornada de trabalho. "),ts(),ts())}function wQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Calcular hora extra intrajornada"),ts(),es(3,"p",3),Gs(4,"Ser\xe1 calculado o tempo de intervalo intrajornada n\xe3o realizado. "),ns(5,"br"),ns(6,"br"),ts(),es(7,"p",3),Gs(8,"O artigo 71 da CLT obriga o empregador a remunerar o trabalhador quando violar o intervalo intrajornada m\xednimo, com acr\xe9scimo de 50% sobre o valor da hora normal de trabalho."),ts(),ts())}function xQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Aplicar toler\xe2ncia di\xe1ria na hora noturna"),ts(),es(3,"p",3),Gs(4,"Aplicar\xe1 a toler\xe2ncia di\xe1ria configurada em turno noturno."),ts(),ts())}function MQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Perda de "),es(3,"abbr",5),Gs(4,"DSR"),ts(),ts(),es(5,"p",3),Gs(6,"Calcular a perda de "),es(7,"abbr",6),Gs(8,"DSR"),ts(),Gs(9," de acordo com as regras marcadas."),ts(),ts())}function SQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Perda de "),es(3,"abbr",5),Gs(4,"DSR"),ts(),Gs(5," na semana atual"),ts(),es(6,"p",3),Gs(7,"A perda de "),es(8,"abbr",6),Gs(9,"DSR"),ts(),Gs(10," ser\xe1 debitada na semana atual de trabalho, ou seja, o primeiro domingo ap\xf3s a(s) falta(s)."),ts(),ts())}function PQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Descontar apenas faltas integrais"),ts(),es(3,"p",3),Gs(4,"O desconto do "),es(5,"abbr",6),Gs(6,"DSR"),ts(),Gs(7," ser\xe1 calculado apenas sobre faltas integrais."),ts(),ts())}function TQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"N\xe3o descontar de feriados"),ts(),es(3,"p",3),Gs(4,"N\xe3o ser\xe1 descontado "),es(5,"abbr",6),Gs(6,"DSR"),ts(),Gs(7," de feriados."),ts(),es(8,"p",3),ns(9,"br"),ts(),es(10,"p",3),Gs(11,"Por padr\xe3o, ocorrendo feriado na semana da falta, este tempo \xe9 duplicado devido ao feriado, isto n\xe3o ocorrer\xe1 se esta op\xe7\xe3o estiver marcada"),ts(),ts())}function OQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Descontar a partir do tempo configurado"),ts(),es(3,"p",3),Gs(4,"O desconto de "),es(5,"abbr",6),Gs(6,"DSR"),ts(),Gs(7," ocorrer\xe1 somente a partir do tempo configurado para horas faltantes no dia. "),ts(),ts())}function LQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Debitar horas faltantes das horas extras"),ts(),es(3,"p",3),Gs(4,"Ser\xe1 adicionado ao espelho ponto um resumo de horas debitando as horas faltantes das horas extras. "),ns(5,"br"),ns(6,"br"),ts(),es(7,"span",4),Gs(8,"Aten\xe7\xe3o: "),ts(),Gs(9,"Essa op\xe7\xe3o \xe9 apenas para funcion\xe1rios que est\xe3o no regime de hora extra. "),ts())}function DQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Calcular horas extras feriado entre pontos ap\xf3s meia noite"),ts(),es(3,"p",3),Gs(4,"Caso a jornada inicie e um dia e termine no dia seguinte, as horas a partir da meia noite trabalhadas ser\xe3o contabilizadas como horas extras feriado."),ns(5,"br"),ns(6,"br"),ts(),es(7,"span",4),Gs(8,"Aten\xe7\xe3o: "),ts(),Gs(9,"Essa op\xe7\xe3o \xe9 apenas para funcion\xe1rios que est\xe3o no regime de hora extra. "),ts())}function IQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Separar horas extras noturnas de horas noturnas"),ts(),es(3,"p",3),Gs(4,"N\xe3o ser\xe3o contabilizadas as horas extras noturnas \xe0s horas noturnas. "),ts(),ts())}function FQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Separar horas extras em feriado/DSR de horas extras 100%"),ts(),es(3,"p",3),Gs(4,"Se ocorrer hora extra em feriado ou DSR, o tempo ser\xe1 calculado e exibido somente em horas extras feriado ou DSR e retirado da hora extra 100%."),ns(5,"br"),ns(6,"br"),ts(),ts())}function AQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Separar horas de intrajornada em diurna ou noturna"),ts(),es(3,"p",3),Gs(4,"Ser\xe3o separadas as horas intrajornada, entre noturna e diurna, no espelho ponto e c\xe1lculo."),ns(5,"br"),ns(6,"br"),ts(),ts())}function EQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Separar horas negativas em noturnas e diurnas"),ts(),es(3,"p",3),Gs(4,"As horas negativas ser\xe3o calculadas e exibidas separadamente entre diurnas e noturnas."),ns(5,"br"),ns(6,"br"),ts(),ts())}function BQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Calcular horas extras excedentes na jornada 12x36"),ts(),es(3,"p",3),Gs(4," Se um funcion\xe1rio trabalhar em regime de 12x36 e fizer horas extras, apenas o tempo que ultrapassar a jornada normal ser\xe1 contado como hora extra. "),ts(),ts())}function NQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Debitar apenas das faltas parciais"),ts(),es(3,"p",3),Gs(4," Debitar\xe1 das horas extras apenas as faltas paricias, mantendo as faltas integrais como horas faltas. "),ts(),ts())}function RQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Hora extra intrajornada"),ts(),es(3,"p",3),Gs(4,"Apresentar o total de horas extras intrajornada no espelho ponto."),ts(),ts())}function jQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Hora extra interjornada"),ts(),es(3,"p",3),Gs(4,"Apresentar o total de horas extras interjornada no espelho ponto."),ts(),ts())}function zQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Hora real trabalhada"),ts(),es(3,"p",3),Gs(4,"Apresentar o total de horas trabalhadas pelo funcion\xe1rio sem levar em considera\xe7\xe3o as toler\xe2ncias."),ts(),ts())}function VQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Saldo de horas do funcion\xe1rio"),ts(),es(3,"p",3),Gs(4,"Apresentar o saldo de horas no espelho ponto."),ts(),ts())}function HQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Apresentar banco de horas original"),ts(),es(3,"p",3),Gs(4,"Apresentar o banco de horas original e fatorado no espelho ponto."),ts(),ts())}function YQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Separar horas faltantes"),ts(),es(3,"p",3),Gs(4,"As horas faltantes ser\xe3o divididas entre Integrais e Parciais."),ts(),ts())}function qQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Total de horas"),ts(),es(3,"p",3),Gs(4,"Exibir o som\xe1torio de horas ao fim da coluna de horas trabalhadas."),ts(),ts())}function UQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Horas normais"),ts(),es(3,"p",3),Gs(4,"Ser\xe1 apresentado as horas normais (sem horas extras) na coluna "),es(5,"abbr",7),Gs(6,"HT"),ts(),Gs(7,"."),ts(),ts())}function WQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Horas reduzidas"),ts(),es(3,"p",3),Gs(4,"Ser\xe1 apresentada a coluna e totalizador de horas reduzidas (Diferen\xe7a entre a hora noturna reduzida e hora noturna)."),ts(),ts())}function JQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Dividir horas extras noturnas e diurnas"),ts(),es(3,"p",3),Gs(4,"O espelho ponto apresentar\xe1 as horas extras noturnas e diurnas de forma separada."),ts(),ts())}function GQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Definir descri\xe7\xe3o para horas faltantes"),ts(),es(3,"p",3),Gs(4,'O espelho pronto apresentar\xe1 a descri\xe7\xe3o "FALTA" quando ocorrer horas faltantes integrais.'),ts(),ts())}function $Q(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Dividir horas faltantes das horas compensadas"),ts(),es(3,"p",3),Gs(4,"Apresentar as horas faltantes e as horas compensadas de forma separada."),ts(),ts())}function QQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Dividir horas extras das horas em feriado"),ts(),es(3,"p",3),Gs(4,"Apresentar\xe1 as horas extras e as horas feriado de forma separada."),ts(),ts())}function KQ(e,t){1&e&&(es(0,"div"),es(1,"h3",2),Gs(2,"Sobrepor c\xf3digo de exporta\xe7\xe3o"),ts(),es(3,"p",3),Gs(4,"Ao definir um c\xf3digo de exporta\xe7\xe3o na unidade, esse ser\xe1 utilizado como c\xf3digo da empresa, sobrescrevendo o valor configurado na exporta\xe7\xe3o. "),ts(),ts())}var ZQ,XQ=((ZQ=function(){return d((function e(){c(this,e),this.showCard=!1,this.questionCardType=null,this.hideCard=new Mc}),[{key:"closeCard",value:function(){this.hideCard.emit()}}])}()).\u0275fac=function(e){return new(e||ZQ)},ZQ.\u0275cmp=Ot({type:ZQ,selectors:[["io-point-rule-modal-question-card"]],inputs:{showCard:"showCard",questionCardType:"questionCardType"},outputs:{hideCard:"hideCard"},decls:41,vars:41,consts:[[3,"showCard","hideCard"],[4,"ngIf"],[1,"sizeC","fontBold","mrgB1"],[1,"sizeC"],[1,"fontBold"],["title","Descanso Semanal Remunerado",1,"fontBold"],["title","Descanso Semanal Remunerado"],["title","Horas Trabalhadas"]],template:function(e,t){1&e&&(es(0,"io-modal-question-card",0),ls("hideCard",(function(){return t.closeCard()})),Jr(1,hQ,8,0,"div",1),Jr(2,fQ,8,0,"div",1),Jr(3,mQ,5,0,"div",1),Jr(4,pQ,10,0,"div",1),Jr(5,gQ,17,0,"div",1),Jr(6,vQ,10,0,"div",1),Jr(7,yQ,5,0,"div",1),Jr(8,bQ,5,0,"div",1),Jr(9,_Q,5,0,"div",1),Jr(10,kQ,10,0,"div",1),Jr(11,CQ,5,0,"div",1),Jr(12,wQ,9,0,"div",1),Jr(13,xQ,5,0,"div",1),Jr(14,MQ,10,0,"div",1),Jr(15,SQ,11,0,"div",1),Jr(16,PQ,8,0,"div",1),Jr(17,TQ,12,0,"div",1),Jr(18,OQ,8,0,"div",1),Jr(19,LQ,10,0,"div",1),Jr(20,DQ,10,0,"div",1),Jr(21,IQ,5,0,"div",1),Jr(22,FQ,7,0,"div",1),Jr(23,AQ,7,0,"div",1),Jr(24,EQ,7,0,"div",1),Jr(25,BQ,5,0,"div",1),Jr(26,NQ,5,0,"div",1),Jr(27,RQ,5,0,"div",1),Jr(28,jQ,5,0,"div",1),Jr(29,zQ,5,0,"div",1),Jr(30,VQ,5,0,"div",1),Jr(31,HQ,5,0,"div",1),Jr(32,YQ,5,0,"div",1),Jr(33,qQ,5,0,"div",1),Jr(34,UQ,8,0,"div",1),Jr(35,WQ,5,0,"div",1),Jr(36,JQ,5,0,"div",1),Jr(37,GQ,5,0,"div",1),Jr(38,$Q,5,0,"div",1),Jr(39,QQ,5,0,"div",1),Jr(40,KQ,5,0,"div",1),ts()),2&e&&(Zr("showCard",t.showCard),Bo(1),Zr("ngIf",1==t.questionCardType),Bo(1),Zr("ngIf",2==t.questionCardType),Bo(1),Zr("ngIf",18==t.questionCardType),Bo(1),Zr("ngIf",5==t.questionCardType),Bo(1),Zr("ngIf",6==t.questionCardType),Bo(1),Zr("ngIf",21==t.questionCardType),Bo(1),Zr("ngIf",8==t.questionCardType),Bo(1),Zr("ngIf",4==t.questionCardType),Bo(1),Zr("ngIf",22==t.questionCardType),Bo(1),Zr("ngIf",10==t.questionCardType),Bo(1),Zr("ngIf",15==t.questionCardType),Bo(1),Zr("ngIf",40==t.questionCardType),Bo(1),Zr("ngIf",28==t.questionCardType),Bo(1),Zr("ngIf",14==t.questionCardType),Bo(1),Zr("ngIf",30==t.questionCardType),Bo(1),Zr("ngIf",31==t.questionCardType),Bo(1),Zr("ngIf",41==t.questionCardType),Bo(1),Zr("ngIf",42==t.questionCardType),Bo(1),Zr("ngIf",26==t.questionCardType),Bo(1),Zr("ngIf",43==t.questionCardType),Bo(1),Zr("ngIf",44==t.questionCardType),Bo(1),Zr("ngIf",45==t.questionCardType),Bo(1),Zr("ngIf",46==t.questionCardType),Bo(1),Zr("ngIf",47==t.questionCardType),Bo(1),Zr("ngIf",48==t.questionCardType),Bo(1),Zr("ngIf",49==t.questionCardType),Bo(1),Zr("ngIf",9==t.questionCardType),Bo(1),Zr("ngIf",27==t.questionCardType),Bo(1),Zr("ngIf",13==t.questionCardType),Bo(1),Zr("ngIf",24==t.questionCardType),Bo(1),Zr("ngIf",25==t.questionCardType),Bo(1),Zr("ngIf",29==t.questionCardType),Bo(1),Zr("ngIf",32==t.questionCardType),Bo(1),Zr("ngIf",34==t.questionCardType),Bo(1),Zr("ngIf",35==t.questionCardType),Bo(1),Zr("ngIf",19==t.questionCardType),Bo(1),Zr("ngIf",39==t.questionCardType),Bo(1),Zr("ngIf",36==t.questionCardType),Bo(1),Zr("ngIf",37==t.questionCardType),Bo(1),Zr("ngIf",38==t.questionCardType))},directives:[W$,sh],styles:[""]}),ZQ);function eK(e,t){if(1&e&&(es(0,"h3",14),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("Horas faltantes no dia: ",n.negativeTimeReference,"")}}function tK(e,t){if(1&e){var n=as();es(0,"div",16),es(1,"div",17),es(2,"div",18),es(3,"input",19),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_1_day"),e.setupOverTimeNotSplit()})),ts(),es(4,"label",20),Gs(5,"Hora extra 1"),ts(),ts(),ts(),es(6,"div",17),es(7,"div",18),es(8,"input",21),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_2_day"),e.setupOverTimeNotSplit()})),ts(),es(9,"label",22),Gs(10,"Hora extra 2"),ts(),ts(),ts(),es(11,"div",17),es(12,"div",18),es(13,"input",23),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_3_day"),e.setupOverTimeNotSplit()})),ts(),es(14,"label",24),Gs(15,"Hora extra 3"),ts(),ts(),ts(),es(16,"div",17),es(17,"h3",25),Gs(18,"Total"),ts(),es(19,"span",25),Gs(20),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(3),Zr("formControlName","over_time_1_day")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","over_time_2_day")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","over_time_3_day")("dropSpecialCharacters",!1),Bo(7),$s(i.overTimeSumTotal)}}function nK(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",26),es(2,"div",17),es(3,"div",18),es(4,"input",27),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_1_day"),e.calcOverTimeSplitTotal()})),ts(),es(5,"label",28),Gs(6,"Diurnas"),ts(),ts(),ts(),es(7,"div",17),es(8,"div",18),es(9,"input",29),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_1_night"),e.calcOverTimeSplitTotal()})),ts(),es(10,"label",30),Gs(11,"Noturnas"),ts(),ts(),ts(),es(12,"div",17),es(13,"h3",25),Gs(14,"Total"),ts(),es(15,"span",25),Gs(16),ts(),ts(),ts(),es(17,"h3",14),Gs(18,"Hora extra 2"),ts(),es(19,"div",26),es(20,"div",17),es(21,"div",18),es(22,"input",31),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_2_day"),e.calcOverTimeSplitTotal()})),ts(),es(23,"label",32),Gs(24,"Diurnas"),ts(),ts(),ts(),es(25,"div",17),es(26,"div",18),es(27,"input",33),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_2_night"),e.calcOverTimeSplitTotal()})),ts(),es(28,"label",34),Gs(29,"Noturnas"),ts(),ts(),ts(),es(30,"div",17),es(31,"h3",25),Gs(32,"Total"),ts(),es(33,"span",25),Gs(34),ts(),ts(),ts(),es(35,"h3",14),Gs(36,"Hora extra 3"),ts(),es(37,"div",26),es(38,"div",17),es(39,"div",18),es(40,"input",35),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_3_day"),e.calcOverTimeSplitTotal()})),ts(),es(41,"label",36),Gs(42,"Diurnas"),ts(),ts(),ts(),es(43,"div",17),es(44,"div",18),es(45,"input",37),ls("change",(function(){mn(n);var e=fs(2);return e.validHour("over_time_3_night"),e.calcOverTimeSplitTotal()})),ts(),es(46,"label",38),Gs(47,"Noturnas"),ts(),ts(),ts(),es(48,"div",17),es(49,"h3",25),Gs(50,"Total"),ts(),es(51,"span",25),Gs(52),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(4),Zr("formControlName","over_time_1_day")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","over_time_1_night")("dropSpecialCharacters",!1),Bo(7),$s(i.compTimeHourForm.get("over_time_1").value),Bo(6),Zr("formControlName","over_time_2_day")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","over_time_2_night")("dropSpecialCharacters",!1),Bo(7),$s(i.compTimeHourForm.get("over_time_2").value),Bo(6),Zr("formControlName","over_time_3_day")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","over_time_3_night")("dropSpecialCharacters",!1),Bo(7),$s(i.compTimeHourForm.get("over_time_3").value)}}function iK(e,t){if(1&e&&(es(0,"div"),es(1,"h3",14),Gs(2),ts(),Jr(3,tK,21,7,"div",15),Jr(4,nK,53,15,"div",8),ts()),2&e){var n=fs();Bo(2),Qs("Hora extra ",n.hasOverTimeSplit?"1":"",""),Bo(1),Zr("ngIf",!n.hasOverTimeSplit),Bo(1),Zr("ngIf",n.hasOverTimeSplit)}}function oK(e,t){if(1&e){var n=as();es(0,"div"),es(1,"h3",14),Gs(2,"Banco de horas"),ts(),es(3,"div",26),es(4,"div",17),es(5,"div",18),es(6,"input",39),ls("change",(function(){mn(n);var e=fs();return e.validHour("bank_time"),e.calcCompTime()})),ts(),es(7,"label",40),Gs(8,"Banco de horas"),ts(),ts(),ts(),es(9,"div",17),es(10,"div",18),es(11,"input",41),ls("change",(function(){mn(n);var e=fs();return e.validNumber("bank_time"),e.calcCompTime()})),ts(),es(12,"label",42),Gs(13,"Fator de Banco de horas (%)"),ts(),es(14,"fa-icon",43),ls("click",(function(){return mn(n),fs().showQuestionCard()})),ts(),ts(),ts(),es(15,"div",17),es(16,"h3",25),Gs(17,"Total"),ts(),es(18,"span",25),Gs(19),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(6),Zr("formControlName","bank_time")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","bank_time_factor"),Bo(3),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(5),$s(i.compTimeHourForm.get("bank_time_factored").value)}}function aK(e,t){if(1&e){var n=as();es(0,"div"),es(1,"h3",14),Gs(2,"Horas faltantes"),ts(),es(3,"div",26),es(4,"div",17),es(5,"div",18),es(6,"input",44),ls("change",(function(){mn(n);var e=fs();return e.validHour("negative_over_time"),e.callNegativeTime()})),ts(),es(7,"label",45),Gs(8,"Hora falta - HE"),ts(),ts(),ts(),es(9,"div",17),es(10,"div",18),es(11,"input",46),ls("change",(function(){mn(n);var e=fs();return e.validHour("negative_bank_time"),e.callNegativeTime()})),ts(),es(12,"label",47),Gs(13,"Hora falta - BH"),ts(),ts(),ts(),es(14,"div",17),es(15,"h3",25),Gs(16,"Total"),ts(),es(17,"span",25),Gs(18),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(6),Zr("formControlName","negative_over_time")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","negative_bank_time")("dropSpecialCharacters",!1),Bo(7),$s(i.negativeTimeRemaining)}}function rK(e,t){if(1&e&&(es(0,"div"),es(1,"h3",49),Gs(2,"Tempo restante HF: "),ts(),es(3,"span",14),Gs(4),ts(),ts()),2&e){var n=fs(2);Xs("flex ","00:00"!=n.negativeTimeRemaining?"cl-red":"",""),Bo(4),$s(n.negativeTimeRemaining)}}function sK(e,t){if(1&e&&(es(0,"div",48),es(1,"div"),es(2,"div"),es(3,"h3",49),Gs(4,"Tempo restante HE: "),ts(),es(5,"span",14),Gs(6),ts(),ts(),Jr(7,rK,5,4,"div",50),es(8,"div",10),es(9,"h3",49),Gs(10,"Tempo adicionado: "),ts(),es(11,"span",14),Gs(12),ts(),ts(),ts(),ts()),2&e){var n=fs();Bo(2),Xs("flex ","00:00"!=n.overTimeRemaining?"cl-red":"",""),Bo(4),$s(n.overTimeRemaining),Bo(1),Zr("ngIf",n.hasBankTime&&n.hasOverTime),Bo(5),$s(n.addTime)}}var lK,cK=((lK=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.compTimeDatabase=n,this.functionsService=i,this.iconRegularService=o,this.validService=a,this.collaboratorId=null,this.date=null,this.showModal=!0,this.hideModal=new Mc,this.compTimeEdited=new Mc,this.compTimeHourId=null,this.addTime=null,this.hasBankTime=!1,this.hasOverTime=!1,this.hasOverTimeSplit=!1,this.negativeTimeReference=null,this.negativeTimeRemaining=null,this.overTimeReference=null,this.overTimeSumTotal=null,this.overTimeRemaining=null,this.questionCard=!1,this.compTimeHourForm=this.formBuilder.group({bank_time:new Wm("00:00",[Jf.required]),bank_time_factor:new Wm("0",[Jf.required]),bank_time_factored:new Wm("00:00",[Jf.required]),over_time_1:new Wm("00:00",[Jf.required]),over_time_1_day:new Wm("00:00",[Jf.required]),over_time_1_night:new Wm("00:00",[Jf.required]),over_time_2:new Wm("00:00",[Jf.required]),over_time_2_day:new Wm("00:00",[Jf.required]),over_time_2_night:new Wm("00:00",[Jf.required]),over_time_3:new Wm("00:00",[Jf.required]),over_time_3_day:new Wm("00:00",[Jf.required]),over_time_3_night:new Wm("00:00",[Jf.required]),negative_over_time:new Wm("00:00",[Jf.required]),negative_bank_time:new Wm("00:00",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.date&&this.showModal&&this.collaboratorId&&this.compTimeDatabase.getCompTimeHour({date:this.date,collaboratorId:this.collaboratorId},(function(t){if(!t.error){var n=t.data.compTimeHour,i=t.data.pointRuleData,o=t.data.regimeAtDate;Object.keys(e.compTimeHourForm.controls).forEach((function(t){e.compTimeHourForm.get(t).setValue("bank_time_factor"!=t?"00:00":"0"),null!=n[t]&&e.compTimeHourForm.get(t).setValue(n[t].slice(0,5))})),e.compTimeHourId=n.id,e.hasBankTime=1!==o.type,e.hasOverTime=0!==o.type,e.hasOverTimeSplit=1==i.mirror_split_extra_hours,e.negativeTimeReference=n?n.negative_time.slice(0,5):"00:00",e.overTimeReference=n?n.over_time_reference.slice(0,5):"00:00",e.hasOverTimeSplit?e.calcOverTimeSplitTotal():e.setupOverTimeNotSplit(),e.callNegativeTime()}}))}},{key:"showQuestionCard",value:function(){this.questionCard=!0}},{key:"hideQuestionCard",value:function(){this.questionCard=!1}},{key:"setupOverTimeNotSplit",value:function(){this.compTimeHourForm.get("over_time_1_day").setValue(this.functionsService.sumTime([this.compTimeHourForm.get("over_time_1_day").value,this.compTimeHourForm.get("over_time_1_night").value])),this.compTimeHourForm.get("over_time_2_day").setValue(this.functionsService.sumTime([this.compTimeHourForm.get("over_time_2_day").value,this.compTimeHourForm.get("over_time_2_night").value])),this.compTimeHourForm.get("over_time_3_day").setValue(this.functionsService.sumTime([this.compTimeHourForm.get("over_time_3_day").value,this.compTimeHourForm.get("over_time_3_night").value])),this.compTimeHourForm.get("over_time_1_night").setValue("00:00"),this.compTimeHourForm.get("over_time_2_night").setValue("00:00"),this.compTimeHourForm.get("over_time_3_night").setValue("00:00"),this.calcOverTimeSplitTotal()}},{key:"calcOverTimeSplitTotal",value:function(){var e=this.compTimeHourForm.get("over_time_1_day").value,t=this.compTimeHourForm.get("over_time_1_night").value;this.compTimeHourForm.get("over_time_1").setValue(this.functionsService.sumTime([e,t]));var n=this.compTimeHourForm.get("over_time_2_day").value,i=this.compTimeHourForm.get("over_time_2_night").value;this.compTimeHourForm.get("over_time_2").setValue(this.functionsService.sumTime([n,i]));var o=this.compTimeHourForm.get("over_time_3_day").value,a=this.compTimeHourForm.get("over_time_3_night").value;this.compTimeHourForm.get("over_time_3").setValue(this.functionsService.sumTime([o,a])),this.calcOverTimeTotal()}},{key:"calcOverTimeTotal",value:function(){this.overTimeSumTotal=this.functionsService.sumTime([this.compTimeHourForm.get("over_time_1").value,this.compTimeHourForm.get("over_time_2").value]),this.overTimeSumTotal=this.functionsService.sumTime([this.overTimeSumTotal,this.compTimeHourForm.get("over_time_3").value]),this.calcRemainingTime()}},{key:"calcCompTime",value:function(){var e=(parseInt(this.compTimeHourForm.get("bank_time_factor").value)+100)/100;this.compTimeHourForm.get("bank_time_factored").setValue(this.functionsService.multiplyTime(this.compTimeHourForm.get("bank_time").value,e).slice(0,5)),this.calcRemainingTime()}},{key:"calcRemainingTime",value:function(){var e=this.functionsService.sumTime([this.compTimeHourForm.get("over_time_1").value,this.compTimeHourForm.get("over_time_2").value]);e=this.functionsService.sumTime([e,this.compTimeHourForm.get("over_time_3").value]);var t=this.functionsService.sumTime([this.compTimeHourForm.get("bank_time_factored").value,e]),n=this.functionsService.subtractTime(this.overTimeReference.slice(0,5),t);this.addTime="00:00",this.overTimeRemaining=n,n.includes("-")&&(this.addTime=n.slice(1),this.overTimeRemaining="00:00")}},{key:"callNegativeTime",value:function(){var e=this.functionsService.sumTime([this.compTimeHourForm.get("negative_over_time").value,this.compTimeHourForm.get("negative_bank_time").value]);this.negativeTimeRemaining=this.functionsService.subtractTime(this.negativeTimeReference.slice(0,5),e)}},{key:"validCompTimeHour",value:function(){return parseInt(this.functionsService.removeSings(this.overTimeRemaining))>0?(this.functionsService.openSnackBar("N\xe3o pode haver 'tempo restante'"),!1):0==parseInt(this.functionsService.removeSings(this.negativeTimeRemaining))||(this.functionsService.openSnackBar("N\xe3o pode haver resto de hora faltante"),!1)}},{key:"putCompTimeHour",value:function(){var e=this;this.validCompTimeHour()&&this.compTimeDatabase.putCompTimeHour(this.compTimeHourId,this.compTimeHourForm.value,(function(t){t.error||(e.emitCompTimeHourEdited(),e.closeModal())}))}},{key:"emitCompTimeHourEdited",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.compTimeEdited.emit(e)}},{key:"getDateBR",value:function(e){return null==e?"":this.functionsService.getFullDateBR(e)}},{key:"validHour",value:function(e){this.compTimeHourForm.get(e).setValue(this.validService.validHour(this.compTimeHourForm.get(e).value))}},{key:"validNumber",value:function(e){var t=this.compTimeHourForm.get(e).value;null!=t&&""!=t||(t="0"),this.compTimeHourForm.get(e).setValue(this.functionsService.removeLetter(t))}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.compTimeHourForm.reset(),this.overTimeReference="00:00",this.compTimeHourId=null,this.date=null,this.hasBankTime=null,this.hasOverTime=null,this.hasOverTimeSplit=null,this.negativeTimeReference=null,this.overTimeReference=null}}])}()).\u0275fac=function(e){return new(e||lK)($r(wp),$r(xz),$r(zP),$r(WO),$r(TN))},lK.\u0275cmp=Ot({type:lK,selectors:[["io-comp-time-modal-control"]],inputs:{collaboratorId:"collaboratorId",date:"date",showModal:"showModal"},outputs:{hideModal:"hideModal",compTimeEdited:"compTimeEdited"},features:[dl],decls:19,vars:24,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC","borderBottom","pdgHere"],[1,"pdgT2",3,"formGroup"],[1,"center","mrgB2"],[1,"sizeB","fontBold"],["class","sizeC fontBold",4,"ngIf"],[4,"ngIf"],["class","flex end mrgB1",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[3,"showCard","questionCardType","hideCard"],[1,"sizeC","fontBold"],["class","flexPad compTimeLine splitExtraTime",4,"ngIf"],[1,"flexPad","compTimeLine","splitExtraTime"],[1,"item"],[1,"form-group","inputAnimated"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_1_day_sum","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_1_day_sum",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_2_day_sum","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_2_day_sum",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_3_day_sum","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_3_day_sum",1,"form-label"],[1,"sizeC"],[1,"flexPad","compTimeLine"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_1_day","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_1_day",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_1_night","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_1_night",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_2_day","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_2_day",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_2_night","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_2_night",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_3_day","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_3_day",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","over_time_3_night","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","over_time_3_night",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","bank_time","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","bank_time",1,"form-label","required"],["onClick","this.select();","autocomplete","off","id","bank_time_factor","placeholder","","required","","type","text",3,"formControlName","change"],["for","bank_time_factor",1,"form-label","required"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","negative_over_time","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","negative_over_time",1,"form-label"],["onClick","this.select();","mask","00:00","maxlength","5","placeholder",":","autocomplete","off","id","negative_bank_time","required","","type","text",3,"formControlName","dropSpecialCharacters","change"],["for","negative_bank_time",1,"form-label"],[1,"flex","end","mrgB1"],[1,"sizeC","fontBold","mrgR1"],[3,"class",4,"ngIf"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Controle de horas"),ts(),es(4,"h3",3),Gs(5),ts(),es(6,"div",4),es(7,"div",5),es(8,"h3",6),Gs(9),ts(),Jr(10,eK,2,1,"h3",7),ts(),Jr(11,iK,5,3,"div",8),Jr(12,oK,20,5,"div",8),Jr(13,aK,19,5,"div",8),Jr(14,sK,13,6,"div",9),ts(),ts(),es(15,"div",10),es(16,"io-btn",11),ls("btnClick",(function(){return t.closeModal()})),ts(),es(17,"io-btn",12),ls("btnClick",(function(){return t.putCompTimeHour()})),ts(),ts(),ts(),es(18,"io-point-rule-modal-question-card",13),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(5),$s(t.getDateBR(t.date)),Bo(1),Zr("formGroup",t.compTimeHourForm),Bo(3),Qs("Horas extras do dia: ",t.overTimeReference,""),Bo(1),Zr("ngIf",t.hasOverTime&&t.hasBankTime),Bo(1),Zr("ngIf",t.hasOverTime),Bo(1),Zr("ngIf",t.hasBankTime),Bo(1),Zr("ngIf",t.hasOverTime&&t.hasBankTime),Bo(1),Zr("ngIf",t.overTimeReference),Bo(2),Zr("moduleName","comp-time")("action","update")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("btnClassList","btnShort")("useValidation",!1),Bo(1),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("btnClassList","btnShort"),Bo(1),Zr("showCard",t.questionCard)("questionCardType",22))},directives:[CE,Hf,ip,sh,jD,XQ,If,DE,kp,bp,Vf,vp,FD],styles:[".pdgHere[_ngcontent-%COMP%]{padding-bottom:5px}.compTimeLine[_ngcontent-%COMP%]{padding:5px 0 0;margin:0 0 20px}.compTimeLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:27%;width:100%;height:35px;margin-bottom:10px}.compTimeLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:33%}.compTimeLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{text-align:right;border-bottom:1px solid var(--cl-gray-light)}.compTimeLine.splitExtraTime[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:24%}.inputAnimated[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{position:absolute;top:0;right:0}"]}),X_([fL()],lK.prototype,"collaboratorId",void 0),X_([fL()],lK.prototype,"date",void 0),lK),uK=function(e){return[e]};function dK(e,t){if(1&e){var n=as();es(0,"io-datepicker",24),ls("dateSelectedEN",(function(e){return mn(n),fs().setDateSelected(e)})),ts()}if(2&e){var i=fs();Zr("labelText","Selecione a data")("minDate",i.minDate)("validMinDateClosure",!0)("collaboratorListId",pc(5,uK,i.collaboratorId))("resetDate",i.resetDateEmitter)}}function hK(e,t){if(1&e){var n=as();es(0,"div",25),es(1,"div",26),es(2,"h3",27),Gs(3,"Saldo inicial:"),ts(),es(4,"div",28),es(5,"span",29),Gs(6,"Positivo"),ts(),es(7,"label",30),es(8,"input",11),ls("click",(function(){return mn(n),fs().verifyInitialBalancePositiveValue()})),ts(),ns(9,"span",12),ts(),es(10,"span",29),Gs(11,"Negativo"),ts(),ts(),es(12,"div",31),es(13,"input",32),ls("change",(function(){return mn(n),fs().verifyHour("initial_balance")})),ts(),es(14,"label",33),Gs(15,"Horas"),ts(),ts(),ts(),es(16,"div",34),es(17,"p",35),es(18,"span",36),Gs(19,"Saldo Inicial:"),ts(),Gs(20," Este saldo ser\xe1 adicionado ao in\xedcio do c\xe1lculo de horas. "),ns(21,"br"),Gs(22,"Valor padr\xe3o: '000:00'."),ts(),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("formGroup",i.compTimeForm),Bo(7),Zr("formControlName","negativeHour"),Bo(5),Zr("formControlName","initial_balance")("dropSpecialCharacters",!1)("mask",1==i.compTimeForm.get("negativeHour").value?"-000:00":"000:00")}}function fK(e,t){1&e&&ns(0,"div",37)}function mK(e,t){1&e&&(es(0,"p",38),es(1,"span",36),Gs(2,"Banco de horas:"),ts(),Gs(3," Todo tempo excedente de trabalho ser\xe1 adicionado ao "),es(4,"span",39),Gs(5,"banco de horas"),ts(),Gs(6,"."),ts())}function pK(e,t){1&e&&(es(0,"p",38),es(1,"span",36),Gs(2,"Hora extra:"),ts(),Gs(3," Todo tempo excedente de trabalho ser\xe1 contabilizado como hora extra."),ts())}function gK(e,t){1&e&&(es(0,"p",38),es(1,"span",36),Gs(2,"H\xedbrido (BH):"),ts(),Gs(3," Todo tempo excedente de trabalho ser\xe1 adicionado ao "),es(4,"span",39),Gs(5,"banco de horas"),ts(),Gs(6,". Mas essas horas poder\xe3o ser gerenciadas entre banco de horas e hora extra."),ts())}function vK(e,t){1&e&&(es(0,"p",38),es(1,"span",36),Gs(2,"H\xedbrido (HE):"),ts(),Gs(3," Todo tempo excedente de trabalho ser\xe1 contabilizado como "),es(4,"span",39),Gs(5,"hora extra"),ts(),Gs(6,". Mas essas horas poder\xe3o ser gerenciadas entre banco de horas e hora extra."),ts())}function yK(e,t){1&e&&(es(0,"p",35),es(1,"span",40),Gs(2,"ATEN\xc7\xc3O! "),ts(),Gs(3,"Recomendamos que o banco de horas seja pago antes de colocar o funcion\xe1rio em regime de "),es(4,"span",39),Gs(5,"hora extra"),ts(),Gs(6,"."),ts())}var bK,_K=((bK=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.compTimeDatabase=n,this.functionsService=i,this.iconRegularService=o,this.validService=a,this.collaboratorId=null,this.showModal=!0,this.updateFirstRegime=!1,this.hideModal=new Mc,this.compTimeEdited=new Mc,this.resetDateEmitter=new Mc,this.dateSelected="",this.canEditInitialBalance=!1,this.currentRegime=null,this.minDate="",this.regimeSelected=1,this.compTimeForm=this.formBuilder.group({initial_balance:new Wm("000:00",[Jf.required]),negativeHour:new Wm(!1,[Jf.required])}),this.compTimeFormCheck=this.formBuilder.group({bankTime:new Wm(!1,[Jf.required]),overTime:new Wm(!1,[Jf.required]),hybridBankTime:new Wm(!1,[Jf.required]),hybridOverTime:new Wm(!1,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&this.collaboratorId&&this.compTimeDatabase.getHistoricDataFromCollaborator(this.collaboratorId,(function(t){if(!t.error){var n=t.data.historicData;e.setMinDate(n.currentRegimeBeginDate),e.setCurrentRegime(n.currentRegimeType),e.setRegime(n.currentRegimeType),e.loadInitialBalance(n.initialBalance),e.canEditInitialBalance=0==n.regimeChanges}}))}},{key:"resetForm",value:function(){this.resetDateEmitter.emit(),this.canEditInitialBalance=!1,this.compTimeForm.reset(),this.compTimeFormCheck.reset(),this.currentRegime=null,this.minDate="",this.regimeSelected=null}},{key:"setMinDate",value:function(e){this.minDate=this.functionsService.getDayAfter(e,1)}},{key:"setCurrentRegime",value:function(e){this.currentRegime=e}},{key:"setRegime",value:function(e){var t=this;this.regimeSelected=e;var n=["bankTime","overTime","hybridBankTime","hybridOverTime"];n.forEach((function(e){return t.compTimeFormCheck.get(e).setValue(!1)})),this.compTimeFormCheck.get(n[e]).setValue(!0)}},{key:"loadInitialBalance",value:function(e){for(var t=e.includes("-")?e.slice(1):e;t.length<6;)t="0"+t;this.compTimeForm.get("initial_balance").setValue(e.includes("-")?"-":""+t),this.verifyInitialBalancePositiveValue()}},{key:"verifyInitialBalancePositiveValue",value:function(){this.compTimeForm.get("initial_balance").value||this.compTimeForm.get("initial_balance").setValue("000:00");var e=this.functionsService.removeSings(this.compTimeForm.get("initial_balance").value),t=this.compTimeForm.get("negativeHour").value?"-":"";this.compTimeForm.get("initial_balance").setValue(t+e)}},{key:"setDateSelected",value:function(e){this.dateSelected=e}},{key:"sendCompTimeRegime",value:function(){if(this.updateFirstRegime)return this.dateSelected=this.functionsService.getCurrentDateEN(),void this.putCompTimeRegimeChange();this.postCompTimeRegimeChange()}},{key:"putCompTimeRegimeChange",value:function(){var e=this;this.formIsValid()&&this.compTimeDatabase.putCompTimeHistoric(this.getParams(),(function(t){t.error||(e.compTimeEdited.emit(),e.closeModal())}))}},{key:"postCompTimeRegimeChange",value:function(){var e=this;this.formIsValid()&&this.compTimeDatabase.postCompTimeHistoric(this.getParams(),(function(t){t.error||(e.compTimeEdited.emit(),e.closeModal())}))}},{key:"getParams",value:function(){return 1==this.regimeSelected&&this.compTimeForm.get("initial_balance").setValue("000:00"),Object.assign({beginDate:this.dateSelected,collaboratorId:this.collaboratorId,regimeSelected:this.regimeSelected},this.compTimeForm.value)}},{key:"formIsValid",value:function(){return this.dateSelected&&""!=this.dateSelected?this.currentRegime!=this.regimeSelected||(this.functionsService.openSnackBar("Selecione outro regime para fazer a altera\xe7\xe3o"),!1):(this.functionsService.openSnackBar("Selecione uma data para a mudan\xe7a de regime"),!1)}},{key:"closeModal",value:function(){this.resetForm(),this.hideModal.emit()}},{key:"verifyHour",value:function(e){this.compTimeForm.controls[e].setValue(this.validService.validHourNegativeGreaterThan24(this.compTimeForm.controls[e].value))}}])}()).\u0275fac=function(e){return new(e||bK)($r(wp),$r(xz),$r(zP),$r(WO),$r(TN))},bK.\u0275cmp=Ot({type:bK,selectors:[["io-comp-time-modal-regime-change"]],inputs:{collaboratorId:"collaboratorId",showModal:"showModal",updateFirstRegime:"updateFirstRegime"},outputs:{hideModal:"hideModal",compTimeEdited:"compTimeEdited",resetDateEmitter:"resetDateEmitter"},features:[dl],decls:65,vars:29,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"flex","mrgB2",3,"formGroup"],[3,"labelText","minDate","validMinDateClosure","collaboratorListId","resetDate","dateSelectedEN",4,"ngIf"],[1,"sizeB","fontBold","borderBottom","mrgB2"],[1,"compTimeSwapLine","flexPad","top",3,"formGroup"],[1,"compTimeSwapItem"],[1,"sizeC","center","mrgB1"],[1,"compTimeSwapSwitchBox","center"],[1,"switchBox","switchOnOff"],["type","checkbox",1,"switchInput",3,"formControlName","click"],[1,"switch"],[1,"switchTextOn"],[1,"switchTextOff"],[1,"regime-data-box"],["class","flex mrgB1",4,"ngIf"],["class","spacer mrgB2",4,"ngIf"],[1,"swap-txt"],["class","sizeC mrgB2",4,"ngIf"],["class","sizeC",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[3,"labelText","minDate","validMinDateClosure","collaboratorListId","resetDate","dateSelectedEN"],[1,"flex","mrgB1"],[1,"initial-balance-box",3,"formGroup"],[1,"sizeB","fontBold","borderBottom","mrgB1"],[1,"swicthTimeBox","flex"],[1,"sizeD"],[1,"switchBox","switchOnOff","invert","switchSmall"],[1,"form-group","inputAnimated"],["onClick","this.select();","autocomplete","off","id","initial_balance","placeholder","","type","text","required","",1,"",3,"formControlName","dropSpecialCharacters","mask","change"],["for","initial_balance",1,"form-label"],[1,"mrgL2"],[1,"sizeC"],[1,"fontBold"],[1,"spacer","mrgB2"],[1,"sizeC","mrgB2"],[1,"fontBold","fontUp"],[1,"fontBold","cl-red"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3),ts(),es(4,"div",3),Jr(5,dK,1,7,"io-datepicker",4),ts(),es(6,"h3",5),Gs(7,"Selecione o regime:"),ts(),es(8,"div",6),es(9,"div",7),es(10,"h3",8),Gs(11,"Banco de horas"),ts(),es(12,"div",9),es(13,"label",10),es(14,"input",11),ls("click",(function(){return t.setRegime(0)})),ts(),es(15,"span",12),es(16,"span",13),Gs(17,"Sim"),ts(),es(18,"span",14),Gs(19,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(20,"div",7),es(21,"h3",8),Gs(22,"H\xedbrido (BH)"),ts(),es(23,"div",9),es(24,"label",10),es(25,"input",11),ls("click",(function(){return t.setRegime(2)})),ts(),es(26,"span",12),es(27,"span",13),Gs(28,"Sim"),ts(),es(29,"span",14),Gs(30,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(31,"div",7),es(32,"h3",8),Gs(33,"H\xedbrido (HE)"),ts(),es(34,"div",9),es(35,"label",10),es(36,"input",11),ls("click",(function(){return t.setRegime(3)})),ts(),es(37,"span",12),es(38,"span",13),Gs(39,"Sim"),ts(),es(40,"span",14),Gs(41,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(42,"div",7),es(43,"h3",8),Gs(44,"Hora extra"),ts(),es(45,"div",9),es(46,"label",10),es(47,"input",11),ls("click",(function(){return t.setRegime(1)})),ts(),es(48,"span",12),es(49,"span",13),Gs(50,"Sim"),ts(),es(51,"span",14),Gs(52,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),ts(),es(53,"div",15),Jr(54,hK,23,5,"div",16),Jr(55,fK,1,0,"div",17),es(56,"div",18),Jr(57,mK,7,0,"p",19),Jr(58,pK,4,0,"p",19),Jr(59,gK,7,0,"p",19),Jr(60,vK,7,0,"p",19),Jr(61,yK,7,0,"p",20),ts(),ts(),ts(),es(62,"div",21),es(63,"io-btn",22),ls("btnClick",(function(){return t.closeModal()})),ts(),es(64,"io-btn",23),ls("btnClick",(function(){return t.sendCompTimeRegime()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(3),Qs("Mudar regime ",t.updateFirstRegime?"inicial":""," de horas"),Bo(1),Zr("formGroup",t.compTimeForm),Bo(1),Zr("ngIf",!t.updateFirstRegime),Bo(3),Zr("formGroup",t.compTimeFormCheck),Bo(6),Zr("formControlName","bankTime"),Bo(11),Zr("formControlName","hybridBankTime"),Bo(11),Zr("formControlName","hybridOverTime"),Bo(11),Zr("formControlName","overTime"),Bo(7),Zr("ngIf",t.canEditInitialBalance&&1!=t.regimeSelected),Bo(1),Zr("ngIf",!t.canEditInitialBalance||1==t.regimeSelected),Bo(2),Zr("ngIf",0==t.regimeSelected),Bo(1),Zr("ngIf",1==t.regimeSelected),Bo(1),Zr("ngIf",2==t.regimeSelected),Bo(1),Zr("ngIf",3==t.regimeSelected),Bo(1),Zr("ngIf",1==t.regimeSelected&&1!=t.currentRegime),Bo(2),Zr("moduleName","comp-time")("action","update")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("btnClassList","btnShort")("useValidation",!1),Bo(1),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("btnClassList","btnShort"))},directives:[CE,Hf,ip,sh,Of,Vf,vp,jD,UA,If,bp,DE],styles:[".regime-data-box[_ngcontent-%COMP%]{min-height:175px;padding:30px 0 0}.regime-data-box[_ngcontent-%COMP%]   .initial-balance-box[_ngcontent-%COMP%]{max-width:160px}"]}),X_([fL()],bK.prototype,"collaboratorId",void 0),X_([fL()],bK.prototype,"showModal",void 0),bK);function kK(e,t){if(1&e&&(es(0,"p",12),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.collaboratorName)}}function CK(e,t){if(1&e&&(es(0,"p",13),Gs(1),ts()),2&e){var n=fs();Bo(1),$s(n.getDateBr(n.dateNotification))}}var wK,xK,MK=((xK=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.pointDatabase=n,this.storageService=i,this.functionsService=o,this.router=a,this.showModal=!1,this.collaboratorId=null,this.collaboratorName="",this.dateNotification=null,this.pointId=null,this.hideModal=new Mc,this.notificationPost=new Mc,this.notificationForm=this.formBuilder.group({manager_justification:new Wm("",[Jf.required])})}),[{key:"sendNotification",value:function(){var e=this;null==this.dateNotification&&this.functionsService.openSnackBar("N\xe3o foi poss\xedvel enviar a notifica\xe7\xe3o. Por favor, entre em contato com o suporte e relate o acontecido.");var t=Object.assign(Object.assign({},this.notificationForm.value),{collaboratorId:this.collaboratorId,date:this.dateNotification,pointId:this.pointId});this.pointDatabase.postNotification(t,(function(t){t.error||(e.notificationPost.emit(),e.closeModal())}))}},{key:"closeModal",value:function(){this.hideModal.emit(),this.notificationForm.reset()}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e):""}}])}()).\u0275fac=function(e){return new(e||xK)($r(wp),$r(jH),$r(YP),$r(zP),$r(yM))},xK.\u0275cmp=Ot({type:xK,selectors:[["io-point-modal-notification"]],inputs:{showModal:"showModal",collaboratorId:"collaboratorId",collaboratorName:"collaboratorName",dateNotification:"dateNotification",pointId:"pointId"},outputs:{hideModal:"hideModal",notificationPost:"notificationPost"},decls:16,vars:10,consts:[[3,"showModal","hideModal"],[1,"modalBody","minHeightBox"],[1,"mrgB2"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],["class","sizeC pdgT2 pdgB2 fontBold",4,"ngIf"],["class","sizeC pdgB1 borderBottom",4,"ngIf"],[3,"formGroup"],[1,"form-group","inputAnimated"],["placeholder","Coment\xe1rio ou justificativa...","required","",1,"sizeC","round2",3,"formControlName"],[1,"sizeC","fontItalic","fontInit"],[1,"flex","center"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"sizeC","pdgT2","pdgB2","fontBold"],[1,"sizeC","pdgB1","borderBottom"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Solicita\xe7\xe3o de Ajuste"),ts(),Jr(5,kK,2,1,"p",4),Jr(6,CK,2,1,"p",5),ts(),es(7,"form",6),es(8,"div",7),ns(9,"textarea",8),ns(10,"br"),es(11,"p",9),Gs(12,"O funcion\xe1rio ser\xe1 notificado via e-mail e aplicativo no celular."),ts(),ns(13,"br"),ts(),ts(),ts(),es(14,"div",10),es(15,"io-btn",11),ls("btnClick",(function(){return t.sendNotification()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(5),Zr("ngIf",""!=t.collaboratorName),Bo(1),Zr("ngIf",null!=t.dateNotification),Bo(1),Zr("formGroup",t.notificationForm),Bo(2),Zr("formControlName","manager_justification"),Bo(6),Zr("moduleName","point")("action","update")("btnColor","btn-blue")("btnText","Solicitar ajuste")("btnTitle","Solicitar ajuste"))},directives:[CE,sh,ep,Hf,ip,If,bp,Vf,vp,jD],styles:["textarea[_ngcontent-%COMP%]{height:150px}"]}),xK),SK=((wK=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getPointDisregardData",value:function(e,t){this.databaseService.get("/pointManage/getPointDisregardData/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointManage",value:function(e,t,n){this.databaseService.get("/pointManage",{company_id:e,yearMonth:t}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getPointListControl",value:function(e,t){this.databaseService.get("/pointManage/getPointManage",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointListControlCollaborator",value:function(e,t){this.databaseService.get("/pointManage/pointIndex",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointManageCollaboratorPoint",value:function(e,t){this.databaseService.get("/pointManage/collaboratorPoint",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointManagePointByDate",value:function(e,t,n){this.databaseService.get("/pointManage/pointByDate",{collaborator_id:e,datePoint:t}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getPointManagePoint",value:function(e,t){this.databaseService.get("/pointManage/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointsFilePdf",value:function(e,t){this.databaseService.getFile("/pointManage/CollaboratorPoints",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointAuditImageByPointId",value:function(e,t){this.databaseService.get("/pointManage/pointAuditImage/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getRecalculateStatus",value:function(e){this.databaseService.get("/pointManage/recalculateGetStatus",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postPoint",value:function(e,t){this.databaseService.post("/pointManage",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postPointReorder",value:function(e,t){this.databaseService.post("/pointManage/reorderPoints",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postPointRefresh",value:function(e,t){this.databaseService.post("/pointManage/refreshPoints",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postPointRefreshAll",value:function(e,t){this.databaseService.post("/pointManage/recalculateAllCollaborators",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postProofOfPointByEmail",value:function(e,t,n){this.databaseService.post("/pointManage/proofOfPointByEmail/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putPointDisregard",value:function(e,t,n){this.databaseService.put("/pointManage/disregard",{justification:t,id:e}).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putPointRegard",value:function(e,t){this.databaseService.put("/pointManage/regard/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putPointPunchDate",value:function(e,t,n){this.databaseService.put("/pointManage/changePunchDate/"+e,t).subscribe({next:function(e){n({data:e})},error:function(e){n({error:e})}})}}])}()).\u0275fac=function(e){return new(e||wK)(ut(tT))},wK.\u0275prov=Se({token:wK,factory:wK.\u0275fac,providedIn:"root"}),wK);function PK(e,t){if(1&e&&ns(0,"img",1),2&e){var n=fs();Zr("src","../../../../../assets/img/"+n.pointDataOnline[n.pointType].imgSrc,mo)("title",n.pointDataOnline[n.pointType].title)}}function TK(e,t){if(1&e&&ns(0,"img",1),2&e){var n=fs();Zr("src","../../../../../assets/img/"+n.pointDataOffline[n.pointType].imgSrc,mo)("title",n.pointDataOffline[n.pointType].title+n.offlineTitleSync)}}var OK,LK=((OK=function(){return d((function e(t){c(this,e),this.functionsService=t,this.offlineTitleSync="",this.pointDataOnline={app:{imgSrc:"icon-point-app.png",title:"Registrado no App - online"},multipoint:{imgSrc:"icon-point-multipoint.png",title:"Registrado no Multiponto - online"},appFaceRecognition:{imgSrc:"icon-point-app-iofaceid.png",title:"Registrado com Reconhecimento Facial - online"},multipointFaceRecognition:{imgSrc:"icon-point-multipoint-iofaceid.png",title:"Registrado com Reconhecimento Facial - online"},faceRecognition:{imgSrc:"icon-point-multipoint-iofaceid.png",title:"Registrado com Reconhecimento Facial - online"},changeOfShift:{imgSrc:"icon-point-shift.png",title:"Ponto de Virada de Turno"},manager:{imgSrc:"icon-point-manager.png",title:"Ponto adicionado pelo gestor"},preAssigned:{imgSrc:"icon-point-preassigned.png",title:"Ponto pr\xe9 assinalado"},web:{imgSrc:"icon-point-web.png",title:"Registrado via Web"},afd:{imgSrc:"icon-point-import.png",title:"Importado via AFD"},exception:{imgSrc:"icon-point-exception.png",title:"Ponto por exce\xe7\xe3o"},apiCustomer:{imgSrc:"icon-point-api-customer.png",title:"Registrado via API "}},this.pointDataOffline={app:{imgSrc:"icon-point-app-off.png",title:"Registrado no App - offline"},multipoint:{imgSrc:"icon-point-multipoint-off.png",title:"Registrado no Multiponto - offline"},appFaceRecognition:{imgSrc:"icon-point-app-off-iofaceid.png",title:"Registrado com Reconhecimento Facial - offline"},multipointFaceRecognition:{imgSrc:"icon-point-multipoint-off-iofaceid.png",title:"Registrado com Reconhecimento Facial - offline"},faceRecognition:{imgSrc:"icon-point-multipoint-off-iofaceid.png",title:"Registrado com Reconhecimento Facial - offline"},intelbras:{imgSrc:"icon-point-off-intelbras.png",title:"Registrado via Reconhecimento Facial - intelbras "},hikvision:{imgSrc:"icon-point-off-hikvision.png",title:"Registrado via Reconhecimento Facial - hikvision "},apiCustomer:{imgSrc:"icon-point-api-customer.png",title:"Registrado via API "}}}),[{key:"ngOnInit",value:function(){this.pointDataOnline.intelbras={imgSrc:"icon-point-intelbras.png",title:"Registrado via Reconhecimento Facial - intelbras | sincronizado em "+this.getDateBR(this.integrationSync)+" \xe0s "+this.getHour(this.integrationSync)},this.pointDataOnline.hikvision={imgSrc:"icon-point-hikvision.png",title:"Registrado via Reconhecimento Facial - hikvision | sincronizado em "+this.getDateBR(this.integrationSync)+" \xe0s "+this.getHour(this.integrationSync)},this.offlineTitleSync=" | sincronizado em "+this.getDateBR(this.pointCreatedAt)+" \xe0s "+this.getHour(this.pointCreatedAt)}},{key:"getDateBR",value:function(e){return e?this.functionsService.dateENtoBR(e.split(" ")[0]):""}},{key:"getHour",value:function(e){return e?e.split(" ")[1]:""}}])}()).\u0275fac=function(e){return new(e||OK)($r(zP))},OK.\u0275cmp=Ot({type:OK,selectors:[["io-point-component-icon"]],inputs:{pointCreatedAt:"pointCreatedAt",integrationSync:"integrationSync",pointType:"pointType",pointOnline:"pointOnline"},decls:2,vars:2,consts:[["alt","",3,"src","title",4,"ngIf"],["alt","",3,"src","title"]],template:function(e,t){1&e&&(Jr(0,PK,1,2,"img",0),Jr(1,TK,1,2,"img",0)),2&e&&(Zr("ngIf",1==t.pointOnline),Bo(1),Zr("ngIf",0==t.pointOnline))},directives:[sh],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:25%;text-align:right}"]}),X_([fL()],OK.prototype,"pointCreatedAt",void 0),X_([fL()],OK.prototype,"pointType",void 0),X_([fL()],OK.prototype,"pointOnline",void 0),OK);function DK(e){return e[0].toUpperCase()+e.slice(1)}var IK,FK=((IK=function(){return d((function e(){c(this,e)}),[{key:"transform",value:function(e){return DK(Rd(e,"EEEE, ","pt-BR"))+Rd(e,"dd","pt-BR")+" de "+DK(Rd(e,"LLLL","pt-BR"))+" de "+Rd(e,"yyyy","pt-BR")}}])}()).\u0275fac=function(e){return new(e||IK)},IK.\u0275pipe=Bt({name:"dateExt",type:IK,pure:!0}),IK);function AK(e,t){1&e&&(es(0,"div",4),es(1,"h2",5),Gs(2,"Controle de ponto"),ts(),es(3,"p",6),Gs(4,"Carregando..."),ts(),ts())}function EK(e,t){if(1&e&&(es(0,"div",32),es(1,"span",33),Gs(2),ts(),ts()),2&e){var n=fs(2);Bo(2),Ks("",n.pointData.in_out?"Sa\xedda registrada \xe0s ":"Entrada registrada \xe0s "," ",n.pointData.hour," horas ")}}function BK(e,t){if(1&e&&(es(0,"div",32),es(1,"span",19),Gs(2,"Hor\xe1rio ajustado: "),es(3,"span",10),es(4,"span",34),Gs(5),_c(6,"slice"),ts(),Gs(7," - Aprovado"),ts(),ts(),ts()),2&e){var n=fs(2);Bo(5),$s((i=n.pointData.adjustment_hour,o=hn(),a=tn(o,6),xc(o,wc(o,6)?function(e,t,n,i,o,a,r,s){var l=t+1;return Vr(e,l,o,0,5)?Rr(e,l+3,s?i.call(s,o,0,5):i(o,0,5)):vc(e,l+3)}(o,kn(),0,a.transform,i,0,0,a):a.transform(i,0,5))))}var i,o,a}function NK(e,t){if(1&e&&(es(0,"div",32),es(1,"span",33),Gs(2),ts(),ts()),2&e){var n=fs(2);Bo(2),Ks("",n.pointData.in_out?"Sa\xedda adicionada \xe0s ":"Entrada adicionada \xe0s "," ",n.pointData.hour," horas ")}}function RK(e,t){1&e&&(es(0,"span"),Gs(1," - Registrado fora da cerca digital"),ts())}function jK(e,t){1&e&&(es(0,"span"),Gs(1," - pr\xe9-assinalado"),ts())}function zK(e,t){if(1&e&&(es(0,"div",18),es(1,"span",19),Gs(2,"Prova de vida: "),es(3,"span",10),Gs(4),ts(),ts(),ts()),2&e){var n=fs(2);Bo(4),$s(n.liveness)}}function VK(e,t){if(1&e&&(es(0,"span",19),Gs(1,"Precis\xe3o do GPS: "),es(2,"span",10),Gs(3),ts(),ts()),2&e){var n=fs(2);Bo(3),$s(n.pointData.accuracy)}}function HK(e,t){if(1&e&&(es(0,"div",18),es(1,"span",19),Gs(2,"Dispositivo: "),es(3,"span",10),Gs(4),ts(),ts(),ts()),2&e){var n=fs(2);Bo(4),$s(n.pointData.device)}}function YK(e,t){if(1&e&&(es(0,"span",35),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs(" Id: ",n.pointId," ")}}function qK(e,t){if(1&e){var n=as();es(0,"div"),es(1,"span",36),Gs(2,"Se necess\xe1rio, solicite ajuste ao funcion\xe1rio."),ts(),es(3,"io-btn",37),ls("btnClick",(function(){return mn(n),fs(2).emitShowModalNotification()})),ts(),ts()}2&e&&(Bo(3),Zr("moduleName","point")("action","update")("btnClassList","btnSmall")("btnColor","btn-blue")("btnText","Solicitar ajuste")("btnTitle","Solicitar ajuste"))}function UK(e,t){1&e&&(es(0,"span",38),Gs(1,"Localiza\xe7\xe3o"),ts())}function WK(e,t){1&e&&(es(0,"span",38),Gs(1,"\xa0"),ts())}function JK(e,t){1&e&&(es(0,"span",39),Gs(1," (Poss\xedvel altera\xe7\xe3o de GPS)"),ts())}function GK(e,t){1&e&&ns(0,"iframe",40),2&e&&Zr("src",fs(2).googleMapUrl,po)}function $K(e,t){if(1&e){var n=as();es(0,"div",41),es(1,"io-btn",37),ls("btnClick",(function(){return mn(n),fs(2).showModalBarrier()})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","barrier")("action","create")("btnClassList","btnSmall")("btnColor","btn-blue")("btnText","Criar Cerca Digital")("btnTitle","Criar Cerca Digital"))}function QK(e,t){1&e&&(es(0,"div",10),Gs(1,"Este ponto foi registrado via web. "),ts())}function KK(e,t){if(1&e&&(es(0,"div",44),es(1,"span",10),Gs(2,"Este ponto foi adicionado pelo "),es(3,"span",45),Gs(4,"Gestor"),ts(),Gs(5,"."),ts(),es(6,"span",46),Gs(7,"Nome do gestor: "),ts(),es(8,"span",10),Gs(9),ts(),es(10,"span",46),Gs(11,"Justificava do gestor: "),ts(),es(12,"span",10),Gs(13),ts(),es(14,"span",46),Gs(15,"Data da cria\xe7\xe3o do ponto: "),ts(),es(16,"span",10),Gs(17),ts(),ts()),2&e){var n=fs(3);Bo(9),$s(n.pointData.manager_name),Bo(4),$s(n.pointData.manager_justification),Bo(4),$s(n.getDateTimeBR(n.pointData.created_at))}}function ZK(e,t){if(1&e&&(es(0,"div"),Jr(1,QK,2,0,"div",42),Jr(2,KK,18,3,"div",43),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf","web"==n.pointData.type),Bo(1),Zr("ngIf","manager"==n.pointData.type)}}function XK(e,t){if(1&e){var n=as();es(0,"div",47),es(1,"io-btn",37),ls("btnClick",(function(){return mn(n),fs(2).emitShowModalDisregardPoint()})),ts(),es(2,"io-btn",48),ls("btnClick",(function(){return mn(n),fs(2).emitApprovePoint()})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","point")("action","update")("btnClassList","btnSmall")("btnColor","btn-red-bg")("btnText","Desconsiderar")("btnTitle","Desconsiderar"),Bo(1),Zr("moduleName","point")("action","update")("btnClassList","btnSmall")("btnColor","btn-blue-bg")("btnText","Aprovar")("btnTitle","Aprovar"))}function eZ(e,t){if(1&e&&(es(0,"div"),es(1,"div",4),es(2,"div",7),es(3,"div",8),es(4,"h2",5),Gs(5,"Controle de ponto"),ts(),es(6,"p",9),Gs(7),ts(),es(8,"p",10),Gs(9),_c(10,"dateExt"),ts(),ts(),es(11,"div",11),ns(12,"io-point-component-icon",12),ts(),ts(),es(13,"div",13),es(14,"div",14),es(15,"h3",15),Gs(16,"Dados do ponto"),ts(),es(17,"div",16),Jr(18,EK,3,2,"div",17),Jr(19,BK,8,5,"div",17),Jr(20,NK,3,2,"div",17),es(21,"div",18),es(22,"span",19),Gs(23,"Status: "),es(24,"span",10),Gs(25),Jr(26,RK,2,0,"span",2),Jr(27,jK,2,0,"span",2),ts(),ts(),ts(),Jr(28,zK,5,1,"div",20),es(29,"div",18),Jr(30,VK,4,1,"span",21),ts(),es(31,"div",18),es(32,"span",19),Gs(33,"NSR: "),es(34,"span",10),Gs(35),ts(),ts(),ts(),Jr(36,HK,5,1,"div",20),Jr(37,YK,2,1,"span",22),ts(),Jr(38,qK,4,6,"div",2),ts(),es(39,"div",23),es(40,"h3",24),Jr(41,UK,2,0,"span",25),Jr(42,WK,2,0,"ng-template",null,26,Jc),Jr(44,JK,2,0,"span",27),ts(),es(45,"div",28),Jr(46,GK,1,1,"iframe",29),Jr(47,$K,2,6,"div",30),Jr(48,ZK,3,2,"div",2),ts(),ts(),ts(),ts(),Jr(49,XK,3,12,"div",31),ts()),2&e){var n=Gr(43),i=fs();Bo(7),$s(i.pointData.name),Bo(2),$s(kc(10,25,i.pointData.punch_date)),Bo(3),Zr("pointCreatedAt",i.pointData.created_at)("integrationSync",i.pointData.created_at)("pointOnline",i.pointData.online)("pointType",i.pointData.type),Bo(6),Zr("ngIf","5"!=i.pointData.status),Bo(1),Zr("ngIf","3"==i.pointData.status),Bo(1),Zr("ngIf","5"==i.pointData.status),Bo(5),Qs("",i.pointTitle[i.pointData.status]," "),Bo(1),Zr("ngIf",0==i.pointData.barrier),Bo(1),Zr("ngIf","preAssigned"==i.pointData.type),Bo(1),Zr("ngIf",i.liveness),Bo(2),Zr("ngIf",i.pointData.accuracy),Bo(5),$s(i.pointData.nsr),Bo(1),Zr("ngIf",null!=i.pointData.device&&""!=i.pointData.device),Bo(1),Zr("ngIf",i.isDev),Bo(1),Zr("ngIf",i.canRequestAdjustment()&&0==i.mapPoint),Bo(3),Zr("ngIf",i.pointHasCoordinates())("ngIfElse",n),Bo(3),Zr("ngIf",i.pointData.mocked),Bo(2),Zr("ngIf",i.pointHasCoordinates()),Bo(1),Zr("ngIf",i.pointHasCoordinates()),Bo(1),Zr("ngIf",!i.pointHasCoordinates()),Bo(1),Zr("ngIf",i.canUpdatePointData)}}var tZ,nZ=((tZ=function(){return d((function e(t,n,i,o,a){c(this,e),this.sanitizer=t,this.router=n,this.functionsService=i,this.pointDatabase=o,this.storageService=a,this.canUpdatePointData=!1,this.pointId=null,this.showModal=!0,this.mapPoint=!1,this.hideModal=new Mc,this.pointApproved=new Mc,this.showModalDisregard=new Mc,this.showModalNotification=new Mc,this.closure="",this.googleMapUrl=null,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isDev="4"==this.userId,this.pointData={loading:!0},this.liveness=[],this.pointTitle={0:"V\xe1lido",3:"Ajustado",4:"Desconsidera\xe7\xe3o reprovada pelo funcion\xe1rio",5:"Adicionado pelo funcion\xe1rio",21:"Ajuste aguardando aprova\xe7\xe3o",22:"Ajuste aguardando aprova\xe7\xe3o",23:"Adicionado pelo funcion\xe1rio reprovado",24:"Aguardando desconsidera\xe7\xe3o do funcion\xe1rio",25:"Aguardando aprova\xe7\xe3o do gestor",26:"Aguardando ajuste do funcion\xe1rio",404:"Desconsiderado"},this.modalBarrier=!1}),[{key:"ngOnChanges",value:function(){var e=this;this.pointData={loading:!0},this.showModal&&null!=this.pointId&&this.pointDatabase.getPointManagePoint(this.pointId,(function(t){t.error||(e.pointData=t.data.pointData,e.liveness=t.data.liveness,e.closure=null==t.data.closure?null:t.data.closure.end_date,e.pointHasCoordinates()&&(e.googleMapUrl=e.getGoogleMapsUrl("https://maps.google.com/maps?hl=pt-br;z=10&output=embed&q=",e.pointData.longitude,e.pointData.latitude)))}))}},{key:"pointHasCoordinates",value:function(){return!(!this.pointData||null==this.pointData.latitude||null==this.pointData.longitude||"0"==this.pointData.latitude&&"0"==this.pointData.longitude)}},{key:"getGoogleMapsUrl",value:function(e,t,n){return this.sanitizer.bypassSecurityTrustResourceUrl(e+n+","+t)}},{key:"canRequestAdjustment",value:function(){return!!this.pointData&&!this.pointData.approved&&"preAssigned"!=this.pointData.type&&"exception"!=this.pointData.type&&this.punchDateGreaterThanClosure()}},{key:"isFaceRecognition",value:function(){return!!this.pointData&&this.pointData.type.includes("FaceRecognition")}},{key:"punchDateGreaterThanClosure",value:function(){return!this.closure||this.functionsService.getDateAsInt(this.pointData.punch_date)>this.functionsService.getDateAsInt(this.closure)}},{key:"emitApprovePoint",value:function(){this.pointApproved.emit()}},{key:"emitShowModalDisregardPoint",value:function(){this.showModalDisregard.emit({date:this.pointData.punch_date,pointId:this.pointId})}},{key:"emitShowModalNotification",value:function(){this.showModalNotification.emit({date:this.pointData.punch_date,pointId:this.pointId})}},{key:"showModalBarrier",value:function(){this.modalBarrier=!0,console.log(this.pointData)}},{key:"hideModalBarrier",value:function(){this.modalBarrier=!1}},{key:"closeModal",value:function(){this.hideModal.emit()}},{key:"getDateTimeBR",value:function(e){return this.functionsService.getDateTimeBRFRomDateTimeDB(e)}}])}()).\u0275fac=function(e){return new(e||tZ)($r(ff),$r(yM),$r(zP),$r(SK),$r(YP))},tZ.\u0275cmp=Ot({type:tZ,selectors:[["io-point-modal-point"]],inputs:{canUpdatePointData:"canUpdatePointData",pointId:"pointId",showModal:"showModal",mapPoint:"mapPoint"},outputs:{hideModal:"hideModal",pointApproved:"pointApproved",showModalDisregard:"showModalDisregard",showModalNotification:"showModalNotification"},features:[dl],decls:4,vars:6,consts:[[3,"showModal","hideModal"],["class","minHeightBox",4,"ngIf"],[4,"ngIf"],[3,"showModal","pointLat","pointLng","hideModal","barrierPosted"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[1,"pdgT2","mrgT2","center"],[1,"flexDesk","top","mrgB2"],[1,"block"],[1,"sizeB","fontBold","mrgB1"],[1,"sizeC"],[1,"appIcon"],[3,"pointCreatedAt","integrationSync","pointOnline","pointType"],[1,"flexDesk","top"],[1,"pointData"],[1,"sizeB","fontBold","borderBottom","mrgB2"],[1,"pointDataBox"],["class","pointBox mrgB2",4,"ngIf"],[1,"statusBox","mrgB2"],[1,"pointTitle","sizeC","fontBold"],["class","statusBox mrgB2",4,"ngIf"],["class","pointTitle sizeC fontBold",4,"ngIf"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"pointMap"],[1,"borderBottom","mrgB2"],["class","sizeB fontBold",4,"ngIf","ngIfElse"],["emptySpan",""],["class","sizeD cl-red fontBold",4,"ngIf"],[1,"pointMapBox"],["height","300","width","300","frameborder","0","scrolling","no","marginheight","0","marginwidth","0",3,"src",4,"ngIf"],["class","mrgT2",4,"ngIf"],["class","flex mrgT2",4,"ngIf"],[1,"pointBox","mrgB2"],[1,"pointTitle","sizeB","fontBold"],[1,"sizeB"],[1,"sizeB","internal","mrgR1"],[1,"flex","sizeC","fontItalic","mrgB1"],[1,"btnSmall",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[1,"sizeB","fontBold"],[1,"sizeD","cl-red","fontBold"],["height","300","width","300","frameborder","0","scrolling","no","marginheight","0","marginwidth","0",3,"src"],[1,"mrgT2"],["class","sizeC",4,"ngIf"],["class","",4,"ngIf"],[1,""],[1,"fontBold"],[1,"pointTitle","fontBold","sizeC"],[1,"flex","mrgT2"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),Jr(1,AK,5,0,"div",1),Jr(2,eZ,50,27,"div",2),ts(),es(3,"io-barrier-modal-form",3),ls("hideModal",(function(){return t.hideModalBarrier()}))("barrierPosted",(function(){return t.hideModalBarrier()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("ngIf",t.pointData.loading),Bo(1),Zr("ngIf",!t.pointData.loading),Bo(1),Zr("showModal",t.modalBarrier)("pointLat",t.pointData.latitude)("pointLng",t.pointData.longitude))},directives:[CE,sh,cz,LK,jD],pipes:[FK,Sh],styles:[".point-data[_ngcontent-%COMP%], .point-map[_ngcontent-%COMP%]{width:50%;float:left}.spacer[_ngcontent-%COMP%]{min-height:175px;margin:0 0 20px}h3.borderBottom[_ngcontent-%COMP%]{line-height:20px}.pointData[_ngcontent-%COMP%]{width:100%;max-width:50%}.pointData[_ngcontent-%COMP%]   .pointDataBox[_ngcontent-%COMP%]{min-height:230px;padding-right:20px}.pointData[_ngcontent-%COMP%]   .pointTitle[_ngcontent-%COMP%]{display:block;margin:0 0 5px}.pointMap[_ngcontent-%COMP%]{width:100%;max-width:50%}.pointMap[_ngcontent-%COMP%]   agm-map[_ngcontent-%COMP%]{width:300px;height:300px}.pointMap[_ngcontent-%COMP%]   .mrgHere[_ngcontent-%COMP%]{margin-bottom:5px}.pointMap[_ngcontent-%COMP%]   .pointTitle[_ngcontent-%COMP%]{display:block;margin:20px 0 5px}.subline[_ngcontent-%COMP%]{text-decoration:underline}@media (max-width:800px){.pointData[_ngcontent-%COMP%], .pointMap[_ngcontent-%COMP%]{width:100%;max-width:50%}}"]}),tZ);function iZ(e,t){if(1&e&&(es(0,"li",35),es(1,"span",36),Gs(2),ts(),es(3,"span",36),Gs(4),ts(),es(5,"span",36),Gs(6),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),$s(i.getDateBr(n.date)),Bo(2),Qs("",i.getDebitCreditMsgDateBr(n.balance)," "),Bo(2),$s(n.details)}}function oZ(e,t){1&e&&(es(0,"li"),es(1,"p"),Gs(2,"Carregando..."),ts(),ts())}function aZ(e,t){1&e&&(es(0,"li"),es(1,"p"),Gs(2,"N\xe3o h\xe1 registros de pagamento."),ts(),ts())}var rZ,sZ=function(e){return[e]},lZ=((rZ=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.compTimeDatabase=n,this.functionsService=i,this.iconRegularService=o,this.validService=a,this.collaboratorId=null,this.date="",this.showModal=!1,this.hideModal=new Mc,this.paymentCreated=new Mc,this.currentDate=this.functionsService.currentDateEN(""),this.minDate=this.functionsService.getFirstLastDay()[0],this.compTimePaymentList=null,this.compTimeTotal={loading:!0},this.currentBalance="00:00",this.compTimePaymentForm=this.formBuilder.group({balance:new Wm("000000",[Jf.required]),bankTime:new Wm("000000",[Jf.required]),collaborator_id:new Wm(null,[Jf.required]),negativeBalance:new Wm(!1,[Jf.required]),negativeBankTime:new Wm(!1,[Jf.required]),details:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){this.date||(this.date=null),this.showModal&&null!=this.collaboratorId&&(this.resetForm(),this.getPaymentList())}},{key:"getPaymentList",value:function(){var e=this;this.collaboratorId&&this.date&&this.compTimeDatabase.getCompTimePaymentList({collaboratorId:this.collaboratorId},(function(t){t.error||(e.compTimePaymentList=t.data.compTimePaymentList)}))}},{key:"setDate",value:function(e){this.date=e,this.resetForm(),this.getCompTimeTotal(),this.getPaymentList()}},{key:"getCompTimeTotal",value:function(){var e=this;this.paramsAreValid()&&this.compTimeDatabase.getCompTimeHourTotal({date:this.date,collaboratorId:this.collaboratorId},(function(t){t.error||(e.currentBalance=t.data.compTimeHourTotal.total_balance||"00:00")}))}},{key:"paramsAreValid",value:function(){return null!=this.collaboratorId&&null!=this.date}},{key:"resetForm",value:function(){this.currentBalance="00:00",this.compTimeTotal=[],this.compTimePaymentForm.get("balance").setValue("000:00"),this.compTimePaymentForm.get("bankTime").setValue("000:00"),this.compTimePaymentForm.get("negativeBalance").setValue(!1),this.compTimePaymentForm.get("negativeBankTime").setValue(!1),this.compTimePaymentForm.get("details").setValue(""),this.compTimePaymentList=[]}},{key:"switchNegativePositiveTime",value:function(e){var t="";"negativeBalance"==e&&(t="balance"),"negativeBankTime"==e&&(t="bankTime"),this.compTimePaymentForm.get(t).value||this.compTimePaymentForm.get(t).setValue("");var n=this.compTimePaymentForm.get(t).value.toString();0==parseInt(this.functionsService.removeSings(n))&&(this.compTimePaymentForm.get(e).setValue(!1),this.functionsService.openSnackBar('o valor "000:00" n\xe3o pode ser negativo.'));var i=this.compTimePaymentForm.get(e).value?"-":"";this.compTimePaymentForm.get(t).setValue(i+(n.includes("-")?n.slice(1):n)),this.calcBalance(t)}},{key:"calcBalance",value:function(e){var t={balance:"negativeBalance",bankTime:"negativeBankTime"},n={balance:"negativeBankTime",bankTime:"negativeBalance"},i=this.compTimePaymentForm.get(e).value.toString(),o=(this.compTimePaymentForm.get(t[e]).value?"-":"")+(i.includes("-")?i.slice(1):i),a="balance"==e?this.functionsService.sumTimeNegative(this.currentBalance,o):this.functionsService.subtractTimeNegative(o,this.currentBalance);this.compTimePaymentForm.get(n[e]).setValue(!1),a.includes("-")&&(a=a.slice(1),this.compTimePaymentForm.get(n[e]).setValue(!0)),this.compTimePaymentForm.get({balance:"bankTime",bankTime:"balance"}[e]).setValue(5==a.length?"0"+a:a),0==parseInt(this.functionsService.removeSings(this.compTimePaymentForm.get(e).value))&&this.compTimePaymentForm.get(t[e]).setValue(!1)}},{key:"postCompTimePayment",value:function(){var e=this;if(null!=this.date)if(0!=parseInt(this.functionsService.removeSings(this.compTimePaymentForm.get("balance").value))){var t={date:this.date,collaboratorId:this.collaboratorId,balance:this.compTimePaymentForm.get("balance").value,details:this.compTimePaymentForm.get("details").value};this.compTimeDatabase.postCompTimePayment(t,(function(t){t.error||(e.paymentCreated.emit(),e.closeModal())}))}else this.functionsService.openSnackBar('O saldo acrescido n\xe3o pode ser "000:00"');else this.functionsService.openSnackBar("Selecione um data para o pagamento")}},{key:"validNumber",value:function(e){this.compTimePaymentForm.get(e).setValue(this.functionsService.removeLetter(this.compTimePaymentForm.get(e).value))}},{key:"validHour",value:function(e){this.compTimePaymentForm.controls[e].setValue(this.validService.validHourNegativeGreaterThan24(this.compTimePaymentForm.controls[e].value))}},{key:"validMaxLength",value:function(e){this.compTimePaymentForm.get(e).value.length>50&&this.compTimePaymentForm.get(e).setValue(this.compTimePaymentForm.get(e).value.toString().slice(0,50))}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e):""}},{key:"getDebitCreditMsgDateBr",value:function(e){var t="creditado";return e.includes("-")&&(e=e.slice(1),t="debitado"),"Saldo "+t+": "+e+" horas"}},{key:"closeModal",value:function(){this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||rZ)($r(wp),$r(xz),$r(zP),$r(WO),$r(TN))},rZ.\u0275cmp=Ot({type:rZ,selectors:[["io-bank-time-modal-form-payment"]],inputs:{collaboratorId:"collaboratorId",date:"date",showModal:"showModal"},outputs:{hideModal:"hideModal",paymentCreated:"paymentCreated"},features:[dl],decls:65,vars:34,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2",3,"formGroup"],[1,"flex"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"dateText"],[1,"sizeC"],[1,"fontBold"],[1,"sizeC","pdgT1"],[1,"compTimePaymentList","mrgB2","round2"],[1,"listBox"],["class","flex listAlign bg-white",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","mrgB1"],[3,"labelText","currentDate","validMinDateClosure","collaboratorListId","dateSelectedEN"],[1,"flexPad","compTimeLine","first"],[1,"item"],[1,"swicthTimeBox","flex"],[1,"sizeD"],[1,"switchBox","switchOnOff","invert","switchSmall"],["type","checkbox",1,"switchInput",3,"formControlName","change"],[1,"switch"],[1,"flexPad","compTimeLine","mrgB2"],[1,"item","borderBottom"],[1,"form-group","inputAnimated"],["onClick","this.select();","autocomplete","off","id","balance","placeholder","","type","text","required","",1,"",3,"formControlName","mask","dropSpecialCharacters","change"],["for","balance",1,"form-label"],["onClick","this.select();","autocomplete","off","id","bankTime","placeholder","","type","text","required","",1,"",3,"formControlName","mask","dropSpecialCharacters","change"],["for","bankTime",1,"form-label"],[1,"flexDesk"],[1,"form-group","wdFull","inputAnimated"],["placeholder","Observa\xe7\xe3o do pagamento (opcional)...","required","",1,"sizeC","round2",3,"formControlName","keyup"],[1,"flex","end"],[1,"sizeE"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"flex","listAlign","bg-white"],[1,"item","sizeC"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Pagar banco de horas"),ts(),es(5,"div",4),es(6,"span",5),Gs(7,"O pagamento ser\xe1 adicionado "),es(8,"span",6),Gs(9,"ap\xf3s o fim da jornada do dia selecionado"),ts(),Gs(10,". O saldo ter\xe1 efeito no pr\xf3ximo dia."),ts(),ts(),ts(),es(11,"h3",7),Gs(12,"Hist\xf3rico:"),ts(),es(13,"div",8),es(14,"ul",9),Jr(15,iZ,7,3,"li",10),Jr(16,oZ,3,0,"li",11),Jr(17,aZ,3,0,"li",11),ts(),ts(),es(18,"div",12),es(19,"io-datepicker",13),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),ts(),es(20,"div",14),ns(21,"div",15),es(22,"div",15),es(23,"div",16),es(24,"span",17),Gs(25,"Adicionar"),ts(),es(26,"label",18),es(27,"input",19),ls("change",(function(){return t.switchNegativePositiveTime("negativeBalance")})),ts(),ns(28,"span",20),ts(),es(29,"span",17),Gs(30,"Remover"),ts(),ts(),ts(),es(31,"div",15),es(32,"div",16),es(33,"span",17),Gs(34,"Positivo"),ts(),es(35,"label",18),es(36,"input",19),ls("change",(function(){return t.switchNegativePositiveTime("negativeBankTime")})),ts(),ns(37,"span",20),ts(),es(38,"span",17),Gs(39,"Negativo"),ts(),ts(),ts(),ts(),es(40,"div",21),es(41,"div",22),es(42,"h3",5),Gs(43,"Saldo atual:"),ts(),es(44,"span",5),Gs(45),ts(),ts(),es(46,"div",15),es(47,"div",23),es(48,"input",24),ls("change",(function(){return t.validHour("balance"),t.calcBalance("balance")})),ts(),es(49,"label",25),Gs(50),ts(),ts(),ts(),es(51,"div",15),es(52,"div",23),es(53,"input",26),ls("change",(function(){return t.validHour("bankTime"),t.calcBalance("bankTime")})),ts(),es(54,"label",27),Gs(55,"Saldo final:"),ts(),ts(),ts(),ts(),es(56,"div",28),es(57,"div",29),es(58,"textarea",30),ls("keyup",(function(){return t.validMaxLength("details")})),ts(),es(59,"div",31),es(60,"span",32),Gs(61),ts(),ts(),ts(),ts(),ts(),es(62,"div",2),es(63,"io-btn",33),ls("btnClick",(function(){return t.closeModal()})),ts(),es(64,"io-btn",34),ls("btnClick",(function(){return t.postCompTimePayment()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.compTimePaymentForm),Bo(14),Zr("ngForOf",t.compTimePaymentList),Bo(1),Zr("ngIf",null==t.compTimePaymentList),Bo(1),Zr("ngIf",t.compTimePaymentList&&0==t.compTimePaymentList.length),Bo(2),Zr("labelText","Data de refer\xeancia:")("currentDate",t.date)("validMinDateClosure",!0)("collaboratorListId",pc(32,sZ,t.collaboratorId)),Bo(8),Zr("formControlName","negativeBalance"),Bo(9),Zr("formControlName","negativeBankTime"),Bo(9),$s(t.currentBalance),Bo(3),Zr("formControlName","balance")("mask",t.compTimePaymentForm.get("negativeBalance").value?"-000:00":"000:00")("dropSpecialCharacters",!1),Bo(2),Qs("Horas para ",t.compTimePaymentForm.get("negativeBalance").value?"remover":"adicionar",":"),Bo(3),Zr("formControlName","bankTime")("mask",t.compTimePaymentForm.get("negativeBankTime").value?"-000:00":"000:00")("dropSpecialCharacters",!1),Bo(5),Zr("formControlName","details"),Bo(3),Qs("",50-t.compTimePaymentForm.get("details").value.length," restantes"),Bo(2),Zr("moduleName","comp-time")("action","update")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar"))},directives:[CE,Hf,ip,ah,sh,UA,Of,Vf,vp,If,bp,DE,jD],styles:[".spacer[_ngcontent-%COMP%]{height:20px}.dateText[_ngcontent-%COMP%]{max-width:255px;background:var(--cl-yellow-light);padding:5px}.compTimePaymentList[_ngcontent-%COMP%]{border:1px solid var(--cl-gray-dark)}.compTimePaymentList[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]{position:relative;max-height:100px;padding-top:0}.compTimePaymentList[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}.compTimePaymentList[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:80px}.compTimePaymentList[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .compTimePaymentList[_ngcontent-%COMP%]   .listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:250px}.compTimeLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:30%;width:100%;height:35px;text-align:center}.compTimeLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{text-align:right}.compTimeLine.first[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{height:25px}textarea[_ngcontent-%COMP%]{height:50px}.inputAnimated[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{position:absolute;top:0;right:0}"]}),rZ),cZ=["pointOptionBox"];function uZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Horas extras 1"),ts())}function dZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Horas extras 2"),ts())}function hZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Horas extras 3"),ts())}function fZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Banco de horas"),ts())}function mZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Saldo anterior"),ts())}function pZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Saldo total"),ts())}function gZ(e,t){if(1&e&&(es(0,"div",35),es(1,"span",36),Gs(2),ts(),ts()),2&e){var n=fs();Bo(2),Qs(" O banco de horas teve sua vig\xeancia encerrada em ",n.shiftRegimeEndDate,". Ser\xe3o apresentadas informa\xe7\xf5es at\xe9 essa data para os funcion\xe1rios do banco de horas. ")}}function vZ(e,t){if(1&e&&(es(0,"span",45),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Xs("sizeD iconBox cl-white ",i.regimeArray[n.regimeType].bgColor,""),Zr("title",i.regimeArray[n.regimeType].title),Bo(1),$s(i.regimeArray[n.regimeType].acronym)}}function yZ(e,t){if(1&e&&(es(0,"span",45),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Xs("sizeD iconBox cl-white ",i.regimeArray[n.regimeType].bgColor,""),Zr("title",i.regimeArray[n.regimeType].title+" - saldo inicial: "+n.initial_balance),Bo(1),$s(i.regimeArray[n.regimeType].acronym)}}function bZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.total_over_time_1)}}function _Z(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.total_over_time_2)}}function kZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.total_over_time_3)}}function CZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.total_bank_time_factored)}}function wZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.balanceBefore)}}function xZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.total_balance)}}function MZ(e,t){if(1&e){var n=as();es(0,"io-icon",46),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalCompTimePayment(e.id)})),ts()}2&e&&Zr("moduleName","comp-time")("action","updatePayment")("iconTitle","Pagar banco de horas")}function SZ(e,t){if(1&e){var n=as();es(0,"li",37),es(1,"span",38),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectCollaborator(e.id,e.name,e.dismissal_date)})),Jr(2,vZ,2,5,"span",39),Jr(3,yZ,2,5,"span",39),Gs(4),ts(),Jr(5,bZ,2,1,"span",40),Jr(6,_Z,2,1,"span",40),Jr(7,kZ,2,1,"span",40),Jr(8,CZ,2,1,"span",40),es(9,"span",41),Gs(10),ts(),Jr(11,wZ,2,1,"span",40),Jr(12,xZ,2,1,"span",40),es(13,"span",42),Jr(14,MZ,1,3,"io-icon",43),es(15,"io-icon",44),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().selectCollaborator(e.id,e.name,e.dismissal_date)})),ts(),es(16,"io-icon",44),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCompTimeSwap(e)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(1),Xs("item sizeC clickPlace ",null!=i.dismissalDate?"cl-gray":"",""),Bo(1),Zr("ngIf","Horas extras"==o.regimeArray[i.regimeType].title),Bo(1),Zr("ngIf","Banco de horas"==o.regimeArray[i.regimeType].title||"H\xedbrido (BH)"==o.regimeArray[i.regimeType].title||"H\xedbrido (HE)"==o.regimeArray[i.regimeType].title),Bo(1),Qs(" ",i.name," "),Bo(1),Zr("ngIf",o.hasOverTime),Bo(1),Zr("ngIf",o.hasOverTime),Bo(1),Zr("ngIf",o.hasOverTime),Bo(1),Zr("ngIf",o.hasBankTime),Bo(2),$s(1==i.regimeType?i.total_negative_over_time:i.total_negative_bank_time),Bo(1),Zr("ngIf",o.hasBankTime),Bo(1),Zr("ngIf",o.hasBankTime),Bo(2),Zr("ngIf",1!=i.regimeType),Bo(1),Zr("moduleName","comp-time")("action","show")("iconTitle","Visualizar")("iconClassList","mrgL1"),Bo(1),Zr("moduleName","comp-time")("action","change")("iconTitle","Alterar regime")("iconClassList","mrgL1")}}function PZ(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function TZ(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum funcion\xe1rio encontrado."),ts())}function OZ(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function LZ(e,t){if(1&e&&(es(0,"li"),Jr(1,PZ,2,0,"p",25),Jr(2,TZ,2,0,"p",25),Jr(3,OZ,2,0,"p",25),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function DZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Horas extras"),ts())}function IZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Banco de horas"),ts())}function FZ(e,t){1&e&&(es(0,"h3",20),Gs(1,"Saldo"),ts())}function AZ(e,t){1&e&&ns(0,"fa-icon",54),2&e&&Zr("icon",fs(4).iconSolidService.faExclamation)}function EZ(e,t){if(1&e&&(es(0,"span",45),Jr(1,AZ,1,1,"fa-icon",53),ts()),2&e){var n=fs(2).$implicit;ys("title","Feriado: ",n.holiday,""),Bo(1),Zr("ngIf",null!=n.holiday)}}function BZ(e,t){if(1&e&&(es(0,"span",62),ns(1,"fa-icon",63),ts()),2&e){var n=fs(4);Bo(1),Zr("icon",n.iconSolidService.faMoon)}}function NZ(e,t){1&e&&ns(0,"fa-icon",64),2&e&&Zr("icon",fs(4).iconSolidService.faArrowUp)}function RZ(e,t){1&e&&ns(0,"fa-icon",65),2&e&&Zr("icon",fs(4).iconSolidService.faArrowDown)}function jZ(e,t){if(1&e){var n=as();es(0,"span",55),ls("click",(function(){mn(n);var e=t.$implicit;return fs(3).showModalPoint(e.id)})),Gs(1),es(2,"span",56),ns(3,"io-point-component-icon",57),ts(),Jr(4,BZ,2,1,"span",58),es(5,"span",59),Jr(6,NZ,1,1,"fa-icon",60),Jr(7,RZ,1,1,"fa-icon",61),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2).$implicit,a=fs();el("pointItem relativePlace clickPlace ","pointColor"+i.status," ","pointColorBarrier"+i.barrier,""),bs("title","",a.pointTitle[i.status]," ",1==i.barrier?"":"- Registrado fora da cerca digital",""),Bo(1),Qs(" ",i.hour," "),Bo(2),Zr("pointCreatedAt",i.created_at)("pointOnline",i.online)("pointType",i.type),Bo(1),Zr("ngIf",o.date!=i.punch_date_time.split(" ")[0]),Bo(2),Zr("ngIf",!i.in_out),Bo(1),Zr("ngIf",i.in_out)}}function zZ(e,t){if(1&e&&(es(0,"span",66),Gs(1),ts()),2&e){var n=fs(2).$implicit,i=fs();Bo(1),Qs(" ",i.removeBrackets(n.description)," ")}}function VZ(e,t){1&e&&(es(0,"span",41),Gs(1," Faltante"),ts())}function HZ(e,t){1&e&&(es(0,"span",41),Gs(1," DSR"),ts())}function YZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs(2).$implicit;Bo(1),Qs(" ",n.holiday,"")}}function qZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs(2).$implicit;Bo(1),$s(n.overTimeSum)}}function UZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs(2).$implicit;Bo(1),$s(n.bank_time_factored)}}function WZ(e,t){if(1&e&&(es(0,"span",41),Gs(1),ts()),2&e){var n=fs(2).$implicit;Bo(1),$s(n.dayBalance)}}function JZ(e,t){if(1&e){var n=as();es(0,"io-icon",67),ls("click",(function(){mn(n);var e=fs(2).$implicit,t=fs();return t.showModalCompTimePayment(t.collaboratorSelectedId,e.date)})),ts()}2&e&&Zr("moduleName","comp-time")("action","updatePayment")("iconBox",!0)("iconBoxColor","bg-blue")("iconColor","cl-white")("iconTitle","Gerenciar pagamento de horas")}function GZ(e,t){if(1&e){var n=as();es(0,"io-icon",67),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs().showModalCompTimeControl(e.date)})),ts()}2&e&&Zr("moduleName","comp-time")("action","update")("iconBox",!0)("iconBoxColor","bg-blue")("iconColor","cl-white")("iconTitle","Gerenciar horas")}function $Z(e,t){if(1&e&&(is(0),es(1,"span",41),Gs(2),es(3,"span",47),Gs(4),ts(),Jr(5,EZ,2,2,"span",48),ts(),es(6,"span",42),es(7,"span",49),Jr(8,jZ,8,13,"span",50),Jr(9,zZ,2,1,"span",51),Jr(10,VZ,2,0,"span",40),Jr(11,HZ,2,0,"span",40),Jr(12,YZ,2,1,"span",40),ts(),ts(),es(13,"span",41),Gs(14),ts(),es(15,"span",41),Gs(16),ts(),es(17,"span",41),Gs(18),ts(),Jr(19,qZ,2,1,"span",40),Jr(20,UZ,2,1,"span",40),Jr(21,WZ,2,1,"span",40),es(22,"span",42),Jr(23,JZ,1,6,"io-icon",52),Jr(24,GZ,1,6,"io-icon",52),ts(),os()),2&e){var n=fs().$implicit,i=fs();Bo(2),Qs("",i.getDateBR(n.date)," "),Bo(2),$s(i.getDay(n.date)),Bo(1),Zr("ngIf",null!=n.holiday),Bo(3),Zr("ngForOf",n.pointList),Bo(1),Zr("ngIf",n.date!=i.dateFormatted&&""!==n.description&&!n.description.startsWith("(")),Bo(1),Zr("ngIf",null==n.dsr_time&&"-"!=n.work_day&&"-"==n.worked_time&&n.pointList.length<=0&&null==n.holiday&&n.date!=i.dateFormatted&&""==n.description),Bo(1),Zr("ngIf",null!=n.dsr_time&&"-"==n.work_day&&"-"==n.worked_time&&""==n.description),Bo(1),Zr("ngIf",null==n.dsr_time&&"-"!=n.work_day&&"-"==n.worked_time&&null!=n.holiday),Bo(2),$s(n.worked_time),Bo(2),$s(n.work_day),Bo(2),$s(n.over_time_reference),Bo(1),Zr("ngIf",i.hasOverTime),Bo(1),Zr("ngIf",i.hasBankTime),Bo(1),Zr("ngIf",i.hasBankTime),Bo(2),Zr("ngIf",!i.hasClosureAfter(n.date)&&i.validCurrentDate(n.date)&&1!=i.collaboratorSelectedRegimeType),Bo(1),Zr("ngIf",!i.hasClosureAfter(n.date)&&i.validCurrentDate(n.date))}}function QZ(e,t){if(1&e&&(is(0),es(1,"span",42),es(2,"span",68),Gs(3,"Troca de regime de horas"),ts(),ts(),es(4,"span",42),Gs(5,"Regime "),es(6,"span",68),Gs(7),ts(),Gs(8,", utilizado a partir do dia: "),es(9,"span",68),Gs(10),_c(11,"date"),ts(),ts(),ns(12,"span",42),os()),2&e){var n=fs().$implicit,i=fs();Bo(7),$s(i.regimeArray[n.type].title),Bo(3),$s(Cc(11,2,i.dateHistoric,"dd/MM/yyyy"))}}function KZ(e,t){1&e&&ns(0,"io-icon",70),2&e&&Zr("moduleName","comp-time")("action","info")("iconTitle","Este pagamento n\xe3o pode ser removido")("useValidation",!1)}function ZZ(e,t){if(1&e){var n=as();es(0,"io-icon",46),ls("iconClick",(function(){mn(n);var e=fs(2).$implicit;return fs().showModalCompTimePaymentDelete(e.id)})),ts()}2&e&&Zr("moduleName","comp-time")("action","delete")("iconTitle","Excluir pagamento")}function XZ(e,t){if(1&e&&(is(0),es(1,"span",41),Gs(2),es(3,"span",47),Gs(4),ts(),ts(),es(5,"span",42),es(6,"span",68),Gs(7,"Banco de horas: "),ts(),Gs(8),ts(),es(9,"span",42),Gs(10),ts(),es(11,"span",42),Jr(12,KZ,1,4,"io-icon",69),Jr(13,ZZ,1,3,"io-icon",43),ts(),os()),2&e){var n=fs().$implicit,i=fs();Bo(2),Qs("",i.getDateBR(n.date)," "),Bo(2),$s(i.getDay(n.date)),Bo(4),Qs(" ",i.getDebitCreditMsgDateBr(n.balance),""),Bo(2),Qs("Detalhes: ",n.details,""),Bo(2),Zr("ngIf",1==n.is_scheduled),Bo(1),Zr("ngIf",1!=n.is_scheduled)}}function eX(e,t){1&e&&(is(0),es(1,"span",42),es(2,"span",36),Gs(3,"In\xedcio de nova vig\xeancia de banco de horas"),ts(),ts(),ns(4,"span",42),os())}function tX(e,t){if(1&e&&(es(0,"li"),Jr(1,$Z,25,16,"ng-container",25),Jr(2,QZ,13,5,"ng-container",25),Jr(3,XZ,14,6,"ng-container",25),Jr(4,eX,5,0,"ng-container",25),ts()),2&e){var n=t.$implicit;"flex listAlign ",i=n.holiday?"holidayLine":"bg-white"," ",o=n.payment?"payment":""," ",a=n.regimeChange?"regimeChange":""," ",r=n.bankTimeRange?"bankTimeRange":""," ","","",Rs(kt,Bs,function(e,t,n,i,o,a,r,s,l,c,u,d){var h=Cn(),f=Hr(e,h,n,o,r,l);return f=jr(e,h+4,"")||f,xn(5),f?"flex listAlign "+ni(n)+" "+ni(o)+" "+ni(r)+" "+ni(l)+" "+ni(""):Do}(hn(),0,i,0,o,0,a,0,r),!0),Bo(1),Zr("ngIf",!n.regimeChange&&!n.payment&&!n.bankTimeRange),Bo(1),Zr("ngIf",n.regimeChange),Bo(1),Zr("ngIf",n.payment),Bo(1),Zr("ngIf",n.bankTimeRange)}var i,o,a,r}function nX(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o foi possivel carregar os dados."),ts())}function iX(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function oX(e,t){1&e&&(es(0,"p"),Gs(1,"Selecione as datas de in\xedcio e fim."),ts())}function aX(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function rX(e,t){if(1&e&&(es(0,"li"),Jr(1,nX,2,0,"p",25),Jr(2,iX,2,0,"p",25),Jr(3,oX,2,0,"p",25),Jr(4,aX,2,0,"p",25),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].error),Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].loading),Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].notSelected),Bo(1),Zr("ngIf",0==n.pointList.length)}}function sX(e,t){if(1&e){var n=as();es(0,"io-bank-time-modal-form-payment",71),ls("hideModal",(function(){return mn(n),fs().hideModalCompTimePayment()}))("paymentCreated",(function(){return mn(n),fs().getList()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalCompTimePayment)("collaboratorId",i.collaboratorSelectedId)("date",i.dateSelected)}}var lX,cX=((lX=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h,f){c(this,e),this.formBuilder=t,this.router=n,this.absenceDatabase=i,this.companyDatabase=o,this.compTimeDatabase=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.mirrorDatabase=u,this.storageService=d,this.titleService=h,this.validService=f,this.currentPage=1,this.inputText="",this.dateHistoric="",this.bankTimeRangeList=[],this.beginDate="",this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorSearch=!0,this.collaboratorSelected=!1,this.collaboratorSelectedDismissalDate=null,this.collaboratorSelectedId=null,this.collaboratorSelectedName="",this.collaboratorSelectedRegimeType=1,this.collaboratorSkipData=null,this.compTimePaymentSelectedId=null,this.dateSelected=null,this.endDate="",this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterContractSelected=[],this.collaboratorStatusList=[1],this.hasBankTime=!0,this.hasOverTime=!0,this.shiftRegimeEndDate="",this.hasShift=!1,this.lastClosureDate=null,this.modalCompTimeControl=!1,this.modalCompTimePayment=!1,this.modalCompTimePaymentDelete=!1,this.modalCompTimeSwap=!1,this.modalFilter=!1,this.modalNotification=!1,this.modalPoint=!1,this.today=new Date,this.year=this.today.getFullYear(),this.month=this.today.getMonth()+1,this.day=this.today.getDate(),this.monthFormatted=this.month<10?"0"+this.month:""+this.month,this.dayFormatted=this.day<10?"0"+this.day:""+this.day,this.dateFormatted="".concat(this.year,"-").concat(this.monthFormatted,"-").concat(this.dayFormatted),this.paginationData=null,this.pointList=[{notSelected:!0}],this.pointListShow=[],this.pointSelectedId=null,this.pointTitle={0:"V\xe1lido",3:"Ajustado",4:"Desconsidera\xe7\xe3o reprovada pelo funcion\xe1rio",5:"Adicionado pelo funcion\xe1rio",15:"Aguardando aprova\xe7\xe3o do Gestor",16:"Aguardando ajuste do funcion\xe1rio",21:"Ajuste aguardando aprova\xe7\xe3o",22:"Ponto adicionado pelo funcion\xe1rio",23:"Adicionado pelo funcion\xe1rio reprovado",24:"Aguardando desconsidera\xe7\xe3o do funcion\xe1rio",404:"Desconsiderado"},this.regimeArray=[{acronym:"BH",bgColor:"bg-green",title:"Banco de horas"},{acronym:"HE",bgColor:"bg-blue",title:"Horas extras"},{acronym:"HB",bgColor:"bg-black",title:"H\xedbrido (BH)"},{acronym:"HB",bgColor:"bg-black",title:"H\xedbrido (HE)"}],this.titleService.setTitle("Controle de Horas"),this.compTimeForm=this.formBuilder.group({detailed:new Wm("0",[Jf.required]),initial_balance:new Wm("000:00",[Jf.required]),negativeHour:new Wm(!1,[Jf.required])}),this.searchFormCollaborator=this.formBuilder.group({search:new Wm("",[Jf.required])}),this.searchFormPoint=this.formBuilder.group({status:new Wm(1,[Jf.required])})}),[{key:"setBeginDate",value:function(e){this.beginDate=e,this.hasShift=!1,this.getList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.hasShift=!1,this.getList()}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilterData",value:function(e){this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterContractSelected=e.contractIdList,this.collaboratorStatusList=e.collaboratorStatusList,this.getList()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getList(!0)}},{key:"getList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearTimeout(this.interval),this.interval=setTimeout((function(){!e.collaboratorSelected||t?e.getCollaboratorList():e.getHourList()}),200)}},{key:"getCollaboratorList",value:function(){var e=this;this.validGetList&&(this.resetData(),this.compTimeDatabase.getCompTimeCollaboratorList(this.getRequestParams(),(function(t){t.error||(e.collaboratorList=t.data.collaboratorList.data||[],e.paginationData=t.data.collaboratorListPaginate||[],e.hasBankTime=e.hasOverTime=!1,e.collaboratorList=e.collaboratorList.filter((function(t){return 1!=t.regimeType&&(e.hasBankTime=!0),0!=t.regimeType&&(e.hasOverTime=!0),t.hasShiftRegime&&(e.shiftRegimeEndDate=t.endRegime,e.shiftRegimeEndDate>e.beginDate&&e.shiftRegimeEndDate<e.endDate&&(e.hasShift=!0,e.shiftRegimeEndDate=e.functionsService.dateENtoBR(e.shiftRegimeEndDate))),!!e.validDismissalDate(t.dismissal_date)&&t})),e.collaboratorListFilteredSearch=e.collaboratorList)})))}},{key:"validGetList",value:function(){return!(""==this.beginDate||""==this.endDate)}},{key:"resetData",value:function(){this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorSelected=!1,this.collaboratorSelectedName="",this.collaboratorSkipData=null,this.pointList=[{loading:!0}],this.pointListShow=[]}},{key:"getRequestParams",value:function(){return{departmentIdList:JSON.stringify(this.filterDepartmentSelected)||[],unitIdList:JSON.stringify(this.filterUnitSelected)||[],regimeIdList:JSON.stringify(this.filterRegimeSelected)||[],contractIdList:JSON.stringify(this.filterContractSelected)||[],collaboratorStatusList:JSON.stringify(this.collaboratorStatusList)||[],beginDate:this.beginDate,detailed:this.compTimeForm.get("detailed").value,endDate:this.endDate,filterText:this.inputText,page:this.currentPage.toString()}}},{key:"validDismissalDate",value:function(e){if(null==e)return!0;var t=parseInt(this.functionsService.removeSings(this.beginDate)),n=parseInt(this.functionsService.removeSings(this.endDate)),i=parseInt(this.functionsService.removeSings(e));return t<=i&&i<=n}},{key:"filterCollaboratorSearch",value:function(e){this.searchFormCollaborator.get("search").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name"),this.collaboratorSelected=!1,this.collaboratorSelectedName=""}},{key:"setCollaboratorSelected",value:function(e){this.selectCollaborator(e.id,e.name,e.dismissalDate)}},{key:"selectCollaborator",value:function(e,t,n){this.collaboratorSelectedDismissalDate=n,this.collaboratorSelectedName=t,this.collaboratorSelectedId=e,this.collaboratorSearch=!1,this.collaboratorSelected=!0,this.getList()}},{key:"getHourList",value:function(){var e=this;""!=this.collaboratorSelectedId&&this.validGetList&&(this.lastClosureDate=null,this.collaboratorSelectedRegimeType=null,this.compTimeDatabase.getCompTimeHourList(Object.assign(Object.assign({},this.getRequestParams()),{collaboratorId:this.collaboratorSelectedId}),(function(t){if(t.error)e.pointList=[{error:!0}];else{e.collaboratorSkipData=t.data.collaboratorSkipData||[];var n=t.data.compTimeHourData;e.collaboratorSelectedRegimeType=n.regimeType,e.lastClosureDate=n.lastClosureDate,e.hasBankTime=e.hasOverTime=!1;var i=n.regimeList;i.forEach((function(t){1!=t.type&&(e.hasBankTime=!0),0!=t.type&&(e.hasOverTime=!0)})),e.setPointListShow(n.compTimeDetailed,i,n.compTimePaymentList,n.bankTimeRangeList)}})))}},{key:"setPointListShow",value:function(e,t,n,i){var o=this;this.pointList=[],e.forEach((function(e){t.forEach((function(t){e.date==t.dateList[0]&&o.pointList.push(Object.assign(Object.assign({},t),{regimeChange:!0,date:e.date}))})),i.forEach((function(t){e.date==t.begin_date&&o.pointList.push({bankTimeRange:!0,regimeChange:!1,date:e.date})})),o.pointList.push(Object.assign(Object.assign({},e),{regimeChange:!1,payment:!1})),n.filter((function(t){return t.date==e.date})).forEach((function(e){o.pointList.push(Object.assign(Object.assign({},e),{regimeChange:!1,payment:!0}))}))})),this.pointList[0]&&1!=this.pointList[0].regimeChange&&this.pointList.splice(0,0,Object.assign({regimeChange:!0},t[0])),this.pointListShow=this.pointList,this.dateHistoric=this.pointListShow[0].historicDate}},{key:"getCompTimeFile",value:function(){var e=this,t=[];if(this.collaboratorSelected?t.push(this.collaboratorSelectedId):this.collaboratorListFilteredSearch.forEach((function(e){t.push(e.id)})),this.validGetList()){var n=Object.assign(Object.assign({},this.getRequestParams()),{collaboratorListId:JSON.stringify(t)});this.compTimeDatabase.getCompTimeReport(n,(function(t){t.error||e.functionsService.downloadFile(t.data,"pdf","banco de horas")}))}}},{key:"showModalCompTimeSwap",value:function(e){this.collaboratorSelectedId=e.id,this.modalCompTimeSwap=!0}},{key:"hideModalCompTimeSwap",value:function(){this.modalCompTimeSwap=!1,this.collaboratorSelectedId=null}},{key:"showModalCompTimeControl",value:function(e){this.dateSelected=e,this.modalCompTimeControl=!0}},{key:"hideModalCompTimeControl",value:function(){this.modalCompTimeControl=!1,this.dateSelected=null}},{key:"showModalCompTimePayment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.collaboratorSelectedId=e,this.dateSelected=t,this.modalCompTimePayment=!0}},{key:"hideModalCompTimePayment",value:function(){this.modalCompTimePayment=!1,this.dateSelected=null,0==this.collaboratorSelected&&(this.collaboratorSelectedId=null)}},{key:"showModalCompTimePaymentDelete",value:function(e){this.compTimePaymentSelectedId=e,this.modalCompTimePaymentDelete=!0}},{key:"deleteCompTimePayment",value:function(){var e=this,t={compTimeListId:JSON.stringify([this.compTimePaymentSelectedId])};this.compTimeDatabase.deleteCompTimePayment(t,(function(t){t.error||(e.getList(),e.hideModalCompTimePaymentDelete())}))}},{key:"hideModalCompTimePaymentDelete",value:function(){this.modalCompTimePaymentDelete=!1,this.compTimePaymentSelectedId=null}},{key:"showModalNotification",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.dateSelected=e,this.modalNotification=!0,this.modalPoint=!1}},{key:"hideModalNotification",value:function(){this.modalNotification=!1,this.pointSelectedId=null}},{key:"showModalPoint",value:function(e){this.pointSelectedId=e,this.modalPoint=!0}},{key:"hideModalPoint",value:function(){this.modalPoint=!1,this.pointSelectedId=null}},{key:"getDateBR",value:function(e){return this.functionsService.dateENtoBR(e).slice(0,5)}},{key:"getDay",value:function(e){return this.functionsService.getDayName(e).slice(0,3)}},{key:"validCurrentDate",value:function(e){var t=this.functionsService.currentDateEN("0000-00-00","min"),n=parseInt(this.functionsService.removeSings(t));return parseInt(this.functionsService.removeSings(e))<=n}},{key:"hasClosureAfter",value:function(e){if(null==this.lastClosureDate)return!1;var t=parseInt(this.functionsService.removeSings(this.lastClosureDate));return parseInt(this.functionsService.removeSings(e))<=t}},{key:"verifyHour",value:function(e){this.compTimeForm.get(e).setValue(this.validService.validHourNegativeGreaterThan24(this.compTimeForm.get(e).value))}},{key:"getDebitCreditMsgDateBr",value:function(e){var t="creditado";return e.includes("-")&&(e=e.slice(1),t="debitado"),"Saldo "+t+": "+e+" horas"}},{key:"removeBrackets",value:function(e){return e.replace(/\[|\]/g,"")}}])}()).\u0275fac=function(e){return new(e||lX)($r(wp),$r(yM),$r(aT),$r(Mz),$r(xz),$r(zP),$r(WO),$r(JO),$r(dQ),$r(YP),$r(hL),$r(TN))},lX.\u0275cmp=Ot({type:lX,selectors:[["io-comp-time-page-control"]],viewQuery:function(e,t){var n;1&e&&Rc(cZ,!0),2&e&&Bc(n=Yc())&&(t.pointOptionBox=n)},decls:69,vars:52,consts:[[1,"container"],[1,"main"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[3,"showCollaboratorStatusList","selectedFilters"],[1,"pointTop"],[1,"flexPad","top"],[1,"sizeC","mrgB1"],[1,"downloadCompTimeBox","flex","end"],[1,"form-group","inputAnimated","clickPlace",3,"formGroup"],["id","mirrorType","required","",1,"fontBold","clickPlace",3,"formControlName"],[3,"value"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["size","3x","title","Gerar relat\xf3rio de banco de horas",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],[1,"flexDesk"],[1,"wdFull","wdMaxHere","mrgT1","mrgB1"],[3,"selectFull","searchValue","collaboratorSkipData","collaboratorSelectedData","resetText","onKeyPress"],[3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],["class","item sizeC fontBold",4,"ngIf"],["class","bg-yellow-light mrgB2 pdg1",4,"ngIf"],[1,"listBox"],["class","flex listAlign bg-white",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[1,"flex","listHeader","listAlign"],[3,"class",4,"ngFor","ngForOf"],[3,"showModal","collaboratorId","date","hideModal","paymentCreated",4,"ngIf"],[3,"collaboratorId","date","showModal","compTimeEdited","hideModal"],[3,"showModal","collaboratorId","hideModal","compTimeEdited"],[3,"showModal","collaboratorId","collaboratorName","dateNotification","pointId","hideModal"],[3,"showModal","pointId","showModalNotification","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"bg-yellow-light","mrgB2","pdg1"],[1,"sizeC","fontBold"],[1,"flex","listAlign","bg-white"],[3,"click"],[3,"class","title",4,"ngIf"],["class","item sizeC",4,"ngIf"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[3,"title"],[3,"moduleName","action","iconTitle","iconClick"],[1,"sizeD"],[3,"title",4,"ngIf"],[1,"pointBox"],[3,"class","title","click",4,"ngFor","ngForOf"],["class","sizeC pointItem","title","Aus\xeancia",4,"ngIf"],[3,"moduleName","action","iconBox","iconBoxColor","iconColor","iconTitle","click",4,"ngIf"],["size","3x","class","iconItem iconSizeH cl-red",3,"icon",4,"ngIf"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon"],[3,"title","click"],[1,"appIcon"],[3,"pointCreatedAt","pointOnline","pointType"],["class","dayShiftIcon",4,"ngIf"],[1,"inOutIcon"],["size","3x","class","iconItem iconSizeI cl-blue clickPlace","title","Entrada",3,"icon",4,"ngIf"],["size","3x","class","iconItem iconSizeI cl-red clickPlace","title","Sa\xedda",3,"icon",4,"ngIf"],[1,"dayShiftIcon"],["size","3x","title","Troca de dia",1,"iconItem","iconSizeI","cl-blue","clickPlace",3,"icon"],["size","3x","title","Entrada",1,"iconItem","iconSizeI","cl-blue","clickPlace",3,"icon"],["size","3x","title","Sa\xedda",1,"iconItem","iconSizeI","cl-red","clickPlace",3,"icon"],["title","Aus\xeancia",1,"sizeC","pointItem"],[3,"moduleName","action","iconBox","iconBoxColor","iconColor","iconTitle","click"],[1,"fontBold"],[3,"moduleName","action","iconTitle","useValidation",4,"ngIf"],[3,"moduleName","action","iconTitle","useValidation"],[3,"showModal","collaboratorId","date","hideModal","paymentCreated"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilterData(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"p",7),Gs(8,"Selecione um funcion\xe1rio, a data inicial e a data final."),ts(),es(9,"div",8),es(10,"div",9),es(11,"select",10),es(12,"option",11),Gs(13,"Relat\xf3rio sint\xe9tico"),ts(),es(14,"option",11),Gs(15,"Relat\xf3rio anal\xedtico"),ts(),ts(),ns(16,"fa-icon",12),ts(),es(17,"fa-icon",13),ls("click",(function(){return t.getCompTimeFile()})),ts(),ts(),ts(),es(18,"div",14),es(19,"div",15),es(20,"io-search-line",16),ls("collaboratorSelectedData",(function(e){return t.setCollaboratorSelected(e)}))("resetText",(function(){return t.getList(!0)}))("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(21,"io-interval-selector",17),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),ts(),es(22,"div"),es(23,"div",18),es(24,"div",19),es(25,"h3",20),Gs(26,"Funcion\xe1rio"),ts(),Jr(27,uZ,2,0,"h3",21),Jr(28,dZ,2,0,"h3",21),Jr(29,hZ,2,0,"h3",21),Jr(30,fZ,2,0,"h3",21),es(31,"h3",20),Gs(32,"Horas faltantes"),ts(),Jr(33,mZ,2,0,"h3",21),Jr(34,pZ,2,0,"h3",21),es(35,"h3",20),Gs(36,"A\xe7\xe3o"),ts(),ts(),Jr(37,gZ,3,1,"div",22),es(38,"ul",23),Jr(39,SZ,17,22,"li",24),Jr(40,LZ,4,3,"li",25),ts(),es(41,"io-pagination",26),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),es(42,"div"),es(43,"div",18),es(44,"div",27),es(45,"h3",20),Gs(46,"Data"),ts(),es(47,"h3",20),Gs(48,"Pontos"),ts(),es(49,"h3",20),Gs(50,"Trabalhado"),ts(),es(51,"h3",20),Gs(52,"Carga hor\xe1ria"),ts(),es(53,"h3",20),Gs(54,"Extra do dia"),ts(),Jr(55,DZ,2,0,"h3",21),Jr(56,IZ,2,0,"h3",21),Jr(57,FZ,2,0,"h3",21),es(58,"h3",20),Gs(59,"A\xe7\xe3o"),ts(),ts(),es(60,"ul",23),Jr(61,tX,5,11,"li",28),Jr(62,rX,5,4,"li",25),ts(),ts(),ts(),ts(),ts(),Jr(63,sX,1,3,"io-bank-time-modal-form-payment",29),es(64,"io-comp-time-modal-control",30),ls("compTimeEdited",(function(){return t.getList()}))("hideModal",(function(){return t.hideModalCompTimeControl()})),ts(),es(65,"io-comp-time-modal-regime-change",31),ls("hideModal",(function(){return t.hideModalCompTimeSwap()}))("compTimeEdited",(function(){return t.getList(!0)})),ts(),es(66,"io-point-modal-notification",32),ls("hideModal",(function(){return t.hideModalNotification()})),ts(),es(67,"io-point-modal-point",33),ls("showModalNotification",(function(e){return t.showModalNotification(e.date,e.pointId)}))("hideModal",(function(){return t.hideModalPoint()})),ts(),es(68,"io-modal-confirm",34),ls("hideModal",(function(){return t.hideModalCompTimePaymentDelete()}))("confirmClick",(function(){return t.deleteCompTimePayment()})),ts()),2&e&&(Bo(3),Zr("moduleName","comp-time")("titleTop","Controle de Horas"),Bo(1),Zr("showCollaboratorStatusList",!0),Bo(6),Zr("formGroup",t.compTimeForm),Bo(1),Zr("formControlName","detailed"),Bo(1),Zr("value","0"),Bo(2),Zr("value","1"),Bo(2),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("icon",t.iconRegularService.faFilePdf),Bo(3),Zr("selectFull",!0)("searchValue",t.collaboratorSelectedName)("collaboratorSkipData",t.collaboratorSkipData),Bo(1),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(1),Xs("collaboratorListBox anmtd4 relativePlace ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(2),Zr("formGroup",t.searchFormCollaborator),Bo(3),Zr("ngIf",t.hasOverTime),Bo(1),Zr("ngIf",t.hasOverTime),Bo(1),Zr("ngIf",t.hasOverTime),Bo(1),Zr("ngIf",t.hasBankTime),Bo(3),Zr("ngIf",t.hasBankTime),Bo(1),Zr("ngIf",t.hasBankTime),Bo(3),Zr("ngIf",t.hasShift),Bo(2),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Xs("pointListBox anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(13),Zr("ngIf",t.hasOverTime),Bo(1),Zr("ngIf",t.hasBankTime),Bo(1),Zr("ngIf",t.hasBankTime),Bo(4),Zr("ngForOf",t.pointListShow),Bo(1),Zr("ngIf",0==t.pointListShow.length),Bo(1),Zr("ngIf",t.modalCompTimePayment),Bo(1),Zr("collaboratorId",t.collaboratorSelectedId)("date",t.dateSelected)("showModal",t.modalCompTimeControl),Bo(1),Zr("showModal",t.modalCompTimeSwap)("collaboratorId",t.collaboratorSelectedId),Bo(1),Zr("showModal",t.modalNotification)("collaboratorId",t.collaboratorSelectedId)("collaboratorName",t.collaboratorSelectedName)("dateNotification",t.dateSelected)("pointId",t.pointSelectedId),Bo(1),Zr("showModal",t.modalPoint)("pointId",t.pointSelectedId),Bo(1),Zr("title","Excluir pagamento?")("btnTextConfirm","Excluir")("showModal",t.modalCompTimePaymentDelete))},directives:[eI,qV,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,oE,ZA,sh,ah,hE,cK,_K,MK,nZ,UB,BB,LK,lZ],pipes:[xh],styles:['.wdMaxHere[_ngcontent-%COMP%]{max-width:50%}io-interval-selector[_ngcontent-%COMP%]{padding-top:7px}.downloadCompTimeBox[_ngcontent-%COMP%]{width:auto}.downloadCompTimeBox[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{min-width:170px;padding:1px 0 2px;margin:0}.downloadCompTimeBox[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{top:0}.collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:570px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;max-width:65px;text-align:center}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%;text-align:left}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   .headerSelect[_ngcontent-%COMP%]{max-width:150px;text-align:left}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:80px;text-align:right}.pointListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:0}.pointListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:530px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]{min-height:48px;height:auto}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;max-width:70px;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:8%;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100%;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   .pointBox[_ngcontent-%COMP%]{width:330px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:6%;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:6%;text-align:right;overflow:visible}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   io-icon[_ngcontent-%COMP%]{margin-left:3px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   io-icon[_ngcontent-%COMP%]:first-child{margin-left:0}.pointListBox[_ngcontent-%COMP%]   .listAlign.payment[_ngcontent-%COMP%]{background-color:var(--background-color)}.pointListBox[_ngcontent-%COMP%]   .listAlign.payment[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:85px}.pointListBox[_ngcontent-%COMP%]   .listAlign.payment[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:350px}.pointListBox[_ngcontent-%COMP%]   .listAlign.payment[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100%;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listAlign.regimeChange[_ngcontent-%COMP%]{background-color:var(--background-color)}.pointListBox[_ngcontent-%COMP%]   .listAlign.regimeChange[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:20%}.pointListBox[_ngcontent-%COMP%]   .listAlign.regimeChange[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:50%}.pointListBox[_ngcontent-%COMP%]   .listAlign.regimeChange[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100%;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listAlign.bankTimeRange[_ngcontent-%COMP%]{background-color:var(--background-color)}.pointListBox[_ngcontent-%COMP%]   .listAlign.bankTimeRange[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:100%}.pointListBox[_ngcontent-%COMP%]   .listAlign.bankTimeRange[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.pointListBox[_ngcontent-%COMP%]   .listAlign.journeyLine[_ngcontent-%COMP%]{background-color:var(--background-color)}.pointListBox[_ngcontent-%COMP%]   .listAlign.journeyLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.pointListBox[_ngcontent-%COMP%]   .listAlign.journeyLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]{position:relative}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]{height:0}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]{position:absolute;top:-5px;right:100%;display:none;width:150px;height:auto;padding:10px 0 10px 10px;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;height:20px;padding:5px 0;margin:0 0 5px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{color:var(--primary-color);text-decoration:underline}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]:before{top:7px;left:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-left-color:var(--secondary-color);border-width:8px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]:hover   .optionPop[_ngcontent-%COMP%]{display:block}.pointListBox[_ngcontent-%COMP%]   .pointBox[_ngcontent-%COMP%]   .pointItem[_ngcontent-%COMP%]:nth-child(4n){border-right:1px solid var(--cl-gray)}']}),lX);function uX(e,t){if(1&e){var n=as();es(0,"li",22),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectCollaborator(e.id,e.name,e.dismissal_date)})),es(1,"span",23),Gs(2),ts(),es(3,"span",23),Gs(4),ts(),es(5,"span",24),ns(6,"io-icon",25),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.name),Bo(2),$s(null==i.dismissal_date?"Ativo":"Inativo"),Bo(2),Zr("moduleName","comp-time")("action","show")("iconTitle","Visualizar mudan\xe7as de regime de horas")}}function dX(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function hX(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum registro encontrado."),ts())}function fX(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 nada registrado no per\xedodo."),ts())}function mX(e,t){if(1&e&&(es(0,"li"),Jr(1,dX,2,0,"p",16),Jr(2,hX,2,0,"p",16),Jr(3,fX,2,0,"p",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function pX(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalChangeRegime(e.type)})),ts()}2&e&&Zr("moduleName","comp-time")("action","update")("iconTitle","Editar regime inicial")}function gX(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDeleteHistoric(e.id)})),ts()}2&e&&Zr("moduleName","comp-time")("action","delete")("iconTitle","Remover mudan\xe7a de regime")}function vX(e,t){if(1&e&&(es(0,"li",26),es(1,"span",24),Gs(2),ts(),es(3,"span",24),Gs(4),ts(),es(5,"span",24),Gs(6),ts(),es(7,"span",24),Jr(8,pX,1,3,"io-icon",27),Jr(9,gX,1,3,"io-icon",27),ts(),ts()),2&e){var n=t.$implicit,i=t.index,o=fs();Bo(2),$s(o.getDateBR(n.begin_date)),Bo(2),$s(n.end_date?o.getDateBR(n.end_date):"Regime atual"),Bo(2),$s(o.regimeArray[n.type]),Bo(2),Zr("ngIf",1==o.historicListFilteredSearch.length&&0==i&&null==o.dismissalDate),Bo(1),Zr("ngIf",i==o.historicListFilteredSearch.length-1&&i>0)}}function yX(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o foi possivel carregar os dados."),ts())}function bX(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function _X(e,t){if(1&e&&(es(0,"li"),Jr(1,yX,2,0,"p",16),Jr(2,bX,2,0,"p",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.historicList.length>0&&n.historicList[0].error),Bo(1),Zr("ngIf",n.historicList.length>0&&n.historicList[0].loading)}}var kX,CX,wX,xX=((wX=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.compTimeDatabase=n,this.collaboratorDatabase=i,this.functionsService=o,this.iconSolidService=a,this.titleService=r,this.currentPage=1,this.inputText="",this.filterData={collaboratorStatusList:JSON.stringify(["1"])},this.collaboratorSelected=!1,this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorSelectedName="",this.collaboratorSelectedId="",this.collaboratorSkipData=null,this.collaboratorSelectedRegimeType=null,this.historicList=[{loading:!0}],this.collaboratorListFilteredStatus=[],this.historicListFilteredSearch=[],this.historicSelectedId=null,this.dismissalDate=null,this.modalChangeRegime=!1,this.modalDeleteHistoric=!1,this.regimeArray={0:"Banco de Horas",1:"Hora Extra",2:"H\xedbrido (BH)",3:"H\xedbrido (HE)"},this.paginationData=null,this.titleService.setTitle("Controle de Horas - Hist\xf3rico"),this.searchFormCollaborator=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm("1",[])}),this.getCollaboratorList()}),[{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getCollaboratorList()}},{key:"getCollaboratorList",value:function(){var e=this;this.collaboratorSkipData=null,this.collaboratorList=[{loading:!0}];var t=Object.assign(Object.assign({},this.filterData),{page:this.currentPage.toString(),filterText:this.inputText});this.collaboratorDatabase.getCollaboratorList(t,(function(t){t.error||(e.collaboratorList=t.data.collaborator_list.data,e.paginationData=t.data.collaborator_list||[]),e.filterCollaboratorStatus()}))}},{key:"filterCollaboratorStatus",value:function(){var e=this.searchFormCollaborator.get("status").value;1==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null==e.dismissal_date}))),0==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null!=e.dismissal_date}))),"all"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList),this.filterCollaboratorSearch("")}},{key:"filterCollaboratorSearch",value:function(e){this.searchFormCollaborator.get("search").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredStatus,e,"name"),this.collaboratorSelected=!1,this.collaboratorSelectedName="",this.dismissalDate=null}},{key:"selectCollaborator",value:function(e,t,n){this.collaboratorSelectedId=e,this.collaboratorSelectedName=t,this.dismissalDate=n,this.collaboratorSelected=!0,this.getHistoricList()}},{key:"getHistoricList",value:function(){var e=this;this.historicList=[{loading:!0}],this.historicListFilteredSearch=[],this.compTimeDatabase.getHistoricList(this.collaboratorSelectedId,(function(t){t.error?e.historicList=[{error:!0}]:(e.collaboratorSkipData=t.data.collaboratorSkipData||[],e.historicList=t.data.compTimeHistoricList,e.historicListFilteredSearch=e.historicList)}))}},{key:"setCollaboratorSelected",value:function(e){this.selectCollaborator(e.id,e.name,e.dismissalDate)}},{key:"showModalChangeRegime",value:function(e){this.collaboratorSelectedRegimeType=e,this.modalChangeRegime=!0}},{key:"hideModalChangeRegime",value:function(){this.modalChangeRegime=!1,this.collaboratorSelectedRegimeType=null}},{key:"showModalDeleteHistoric",value:function(e){this.historicSelectedId=e,this.modalDeleteHistoric=!0}},{key:"deleteHistoric",value:function(){var e=this;this.compTimeDatabase.deleteHistoric(this.historicSelectedId,(function(t){t.error?"not_last_regime"==t.error.error.error&&(e.functionsService.openSnackBar("S\xf3 \xe9 poss\xedvel excluir o regime atual.","error"),e.getHistoricList(),e.hideModalDeleteHistoric()):(e.getHistoricList(),e.hideModalDeleteHistoric())}))}},{key:"hideModalDeleteHistoric",value:function(){this.modalDeleteHistoric=!1,this.historicSelectedId=null}},{key:"getDateBR",value:function(e){if(this.collaboratorSelected&&null!=e)return this.functionsService.dateENtoBR(e.slice(0,10))}}])}()).\u0275fac=function(e){return new(e||wX)($r(wp),$r(xz),$r(LN),$r(zP),$r(JO),$r(hL))},wX.\u0275cmp=Ot({type:wX,selectors:[["io-historic"]],decls:42,vars:27,consts:[[1,"container"],[1,"main"],[1,"topBox","flex","top"],[3,"titleTop"],[1,"wdMax50"],[3,"selectFull","searchValue","collaboratorSkipData","collaboratorSelectedData","resetText","onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","statusFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex listAlign bg-white clickPlace",3,"click",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mrgT2",3,"paginationData","setCurrentPage"],[1,"flex","listHeader","listAlign"],["class","flex listAlign bg-white",4,"ngFor","ngForOf"],[3,"showModal","collaboratorId","updateFirstRegime","compTimeEdited","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","listAlign","bg-white","clickPlace",3,"click"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconTitle"],[1,"flex","listAlign","bg-white"],[3,"moduleName","action","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),ts(),es(4,"div",4),es(5,"io-search-line",5),ls("collaboratorSelectedData",(function(e){return t.setCollaboratorSelected(e)}))("resetText",(function(){return t.getCollaboratorList()}))("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(6,"div"),es(7,"div",6),es(8,"div",7),es(9,"h3",8),Gs(10,"Funcion\xe1rio"),ts(),es(11,"div",9),es(12,"select",10),ls("change",(function(){return t.filterCollaboratorStatus()})),es(13,"option",11),Gs(14,"Todos"),ts(),es(15,"option",11),Gs(16,"Inativo"),ts(),es(17,"option",12),Gs(18,"Ativo"),ts(),ts(),ns(19,"fa-icon",13),ts(),es(20,"h3",8),Gs(21,"A\xe7\xe3o"),ts(),ts(),es(22,"ul",14),Jr(23,uX,7,5,"li",15),Jr(24,mX,4,3,"li",16),ts(),es(25,"io-pagination",17),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),es(26,"div"),es(27,"div",6),es(28,"div",18),es(29,"h3",8),Gs(30,"Data Inicial"),ts(),es(31,"h3",8),Gs(32,"Data Final"),ts(),es(33,"h3",8),Gs(34,"Tipo"),ts(),es(35,"h3",8),Gs(36,"A\xe7\xe3o"),ts(),ts(),es(37,"ul",14),Jr(38,vX,10,5,"li",19),Jr(39,_X,3,2,"li",16),ts(),ts(),ts(),ts(),ts(),es(40,"io-comp-time-modal-regime-change",20),ls("compTimeEdited",(function(){return t.getHistoricList()}))("hideModal",(function(){return t.hideModalChangeRegime()})),ts(),es(41,"io-modal-confirm",21),ls("hideModal",(function(){return t.hideModalDeleteHistoric()}))("confirmClick",(function(){return t.deleteHistoric()})),ts()),2&e&&(Bo(3),Zr("titleTop","Regime de horas - Hist\xf3rico"),Bo(2),Zr("selectFull",!0)("searchValue",t.collaboratorSelectedName)("collaboratorSkipData",t.collaboratorSkipData),Bo(1),Xs("collaboratorListBox anmtd4 relativePlace ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(2),Zr("formGroup",t.searchFormCollaborator),Bo(4),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",0),Bo(2),Zr("value",1),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Xs("pointListBox anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(12),Zr("ngForOf",t.historicListFilteredSearch),Bo(1),Zr("ngIf",0==t.historicListFilteredSearch.length),Bo(1),Zr("showModal",t.modalChangeRegime)("collaboratorId",t.collaboratorSelectedId)("updateFirstRegime",!0),Bo(1),Zr("title","Remover mudan\xe7a de regime?")("btnTextConfirm","Remover")("showModal",t.modalDeleteHistoric))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,hE,_K,UB,BB],styles:[".collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:530px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:60%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:20%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%;text-align:right}.collaboratorListBox[_ngcontent-%COMP%]{max-height:600px}.pointListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:0}.pointListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:530px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]{min-height:48px;height:auto}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;max-width:70px;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:25%;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;text-align:right;overflow:visible}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   io-icon[_ngcontent-%COMP%]{margin-left:3px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   io-icon[_ngcontent-%COMP%]:first-child{margin-left:0}"]}),wX),MX=((CX=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.iconRegularService=a,this.functionsService=r,this.storageService=s,this.validService=l,this.showModal=!0,this.hideModal=new Mc,this.reloadData=new Mc,this.resetDate=new Mc,this.collaborator_id="",this.currentDate=this.functionsService.currentDateEN(""),this.questionCard=!1,this.questionCardType=0,this.questionCardData=[{title:"Vig\xeancia do banco de horas",text:"O banco de horas pode ser feito em acordo individual e precisa ser compensado at\xe9 o fim da vig\xeancia definida."},{title:"Fim da vig\xeancia atual",text:"Esta data define qual ser\xe1 o fim a vig\xeancia atual. Ap\xf3s definida esta data, ela n\xe3o poder\xe1 ser editada."}],this.bankTimeRangeForm=this.formBuilder.group({bank_time_range:new Wm("",[Jf.required]),end_date:new Wm("",[Jf.required]),awareUpdate:new Wm(!1,[Jf.required])})}),[{key:"ngOnChanges",value:function(){}},{key:"verifyDate",value:function(e){this.bankTimeRangeForm.controls[e].value.length>2&&this.bankTimeRangeForm.controls[e].setValue(this.validService.validDate(this.bankTimeRangeForm.controls[e].value))}},{key:"setBankTimeEndDate",value:function(e){this.bankTimeRangeForm.get("end_date").setValue(e)}},{key:"showQuestionCard",value:function(e){this.questionCardType=e,this.questionCard=!0}},{key:"hideQuestionCard",value:function(){this.questionCard=!1,this.questionCardType=null}},{key:"validMaxEndDate",value:function(){var e=parseInt(this.bankTimeRangeForm.get("bank_time_range").value);e<1&&(this.functionsService.openSnackBar("N\xe3o \xe9 permitido ter uma vig\xeancia menor que 1(um) m\xeas"),e++,this.bankTimeRangeForm.get("bank_time_range").setValue(e)),this.maxEndDate=this.functionsService.getMonthAfterEN(this.currentDate,e),this.resetDate.emit()}},{key:"sendBankTimeEnd",value:function(){var e=this;this.bankTimeFormIsValid()&&this.companyDatabase.postBankTimeRange(this.bankTimeRangeForm.value,(function(t){t.error||(e.reloadData.emit(),e.closeModal())}))}},{key:"bankTimeFormIsValid",value:function(){return""==this.bankTimeRangeForm.get("bank_time_range").value?(this.functionsService.openSnackBar("\xc9 necess\xe1rio definir a vig\xeancia do banco de horas."),!1):parseInt(this.bankTimeRangeForm.get("bank_time_range").value)<1?(this.functionsService.openSnackBar("N\xe3o \xe9 permitido ter uma vig\xeancia menor que 1(um) m\xeas"),!1):""==this.bankTimeRangeForm.get("end_date").value?(this.functionsService.openSnackBar("\xc9 necess\xe1rio definir a data do fim da vig\xeancia atual."),!1):1==this.bankTimeRangeForm.get("awareUpdate").value||(this.functionsService.openSnackBar("\xc9 necess\xe1rio declarar ci\xeancia sobre a n\xe3o altera\xe7\xe3o da data ap\xf3s definida."),!1)}},{key:"closeModal",value:function(){this.hideModal.emit(),this.bankTimeRangeForm.reset(),this.resetDate.emit()}}])}()).\u0275fac=function(e){return new(e||CX)($r(wp),$r(yM),$r(LN),$r(Mz),$r(WO),$r(zP),$r(YP),$r(TN))},CX.\u0275cmp=Ot({type:CX,selectors:[["io-company-modal-bank-time-end-date"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",reloadData:"reloadData",resetDate:"resetDate"},features:[dl],decls:32,vars:24,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB2"],[1,"sizeC"],[1,"pdgB2","mrgB2"],[1,"flexDesk","top"],[1,"flex","start"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],[1,"flex","relativePlace","align-block"],["autocomplete","off","id","comp_time","mask","00","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName","change"],[1,"textAux","sizeB"],[3,"resetDate","minDate","maxDate","dateSelectedEN"],[1,"pdgT1","pdgB2","mrgT2","mrgB2"],[1,"radioBox","danger","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark","danger"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showCard","title","text","hideCard"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Vig\xeancia do Banco de horas"),ts(),es(4,"p",3),Gs(5,"Para melhor controle do banco de horas, precisamos de algumas informa\xe7\xf5es:"),ts(),ns(6,"div",4),es(7,"div",5),es(8,"div"),es(9,"div",6),es(10,"p",3),Gs(11,"Vig\xeancia do banco de horas"),ts(),es(12,"fa-icon",7),ls("click",(function(){return t.showQuestionCard(0)})),ts(),ts(),es(13,"div",8),es(14,"input",9),ls("change",(function(){return t.validMaxEndDate()})),ts(),es(15,"span",10),Gs(16,"Meses"),ts(),ts(),ts(),es(17,"div"),es(18,"div",6),es(19,"p",3),Gs(20,"Data do fim da vig\xeancia atual"),ts(),es(21,"fa-icon",7),ls("click",(function(){return t.showQuestionCard(1)})),ts(),ts(),es(22,"io-datepicker",11),ls("dateSelectedEN",(function(e){return t.setBankTimeEndDate(e)})),ts(),ts(),ts(),es(23,"div",12),es(24,"label",13),Gs(25,"Estou ciente que, ap\xf3s a salva, a data do fim da vig\xeancia N\xc3O poder\xe1 ser alterada. "),ns(26,"input",14),ns(27,"span",15),ts(),ts(),ts(),es(28,"div",16),es(29,"io-btn",17),ls("btnClick",(function(){return t.closeModal()})),ts(),es(30,"io-btn",18),ls("btnClick",(function(){return t.sendBankTimeEnd()})),ts(),ts(),ts(),es(31,"io-modal-question-card",19),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.bankTimeRangeForm),Bo(11),Zr("icon",t.iconRegularService.faQuestionCircle),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","bank_time_range"),Bo(7),Zr("icon",t.iconRegularService.faQuestionCircle),Bo(1),Zr("resetDate",t.resetDate)("minDate",t.currentDate)("maxDate",t.maxEndDate),Bo(4),Zr("formControlName","awareUpdate"),Bo(3),Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","company")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar"),Bo(1),Zr("showCard",t.questionCard)("title",null!=t.questionCardType?t.questionCardData[t.questionCardType].title:"")("text",null!=t.questionCardType?t.questionCardData[t.questionCardType].text:""))},directives:[CE,Hf,ip,FD,If,DE,bp,Vf,vp,UA,Of,jD,W$],styles:[".align-block[_ngcontent-%COMP%]{padding-top:8px}"]}),CX),SX=((kX=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.functionsService=n,this.companyDatabase=i,this.storageService=o,this.showModal=!0,this.hideModal=new Mc,this.reloadData=new Mc,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.bankTimeForm=this.formBuilder.group({awareUpdate:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(e){}},{key:"deleteInactiveBankTime",value:function(){var e=this;this.bankTimeFormIsValid()&&(this.reloadData.emit(),this.closeModal(),this.companyDatabase.deleteBankTimeRange((function(t){t.error||(e.reloadData.emit(),e.closeModal())})))}},{key:"closeModal",value:function(){this.hideModal.emit(),this.bankTimeForm.reset()}},{key:"bankTimeFormIsValid",value:function(){return 1==this.bankTimeForm.get("awareUpdate").value||(this.functionsService.openSnackBar("\xc9 necess\xe1rio declarar ci\xeancia sobre a exclus\xe3o do banco de horas."),!1)}}])}()).\u0275fac=function(e){return new(e||kX)($r(wp),$r(zP),$r(Mz),$r(YP))},kX.\u0275cmp=Ot({type:kX,selectors:[["io-company-modal-bank-time-delete-inactive"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",reloadData:"reloadData"},features:[dl],decls:15,vars:14,consts:[[3,"showModal","hideModal"],[1,"",3,"formGroup"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB2"],[1,"sizeC"],[1,"pdgB2","mrgB2"],[1,"pdgT1","pdgB2","mrgT2","mrgB2"],[1,"radioBox","danger","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark","danger"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Exclus\xe3o de Vig\xeancia do Banco de horas"),ts(),es(4,"p",3),Gs(5,"Precisamos da sua confirma\xe7\xe3o para excluir a vig\xeancia atual do banco de horas e inativar o banco de horas."),ts(),ns(6,"div",4),es(7,"div",5),es(8,"label",6),Gs(9,"Estou ciente da exclus\xe3o da vig\xeancia atual do banco de horas e inativa\xe7\xe3o do banco de horas. "),ns(10,"input",7),ns(11,"span",8),ts(),ts(),ts(),es(12,"div",9),es(13,"io-btn",10),ls("btnClick",(function(){return t.closeModal()})),ts(),es(14,"io-btn",11),ls("btnClick",(function(){return t.deleteInactiveBankTime()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.bankTimeForm),Bo(9),Zr("formControlName","awareUpdate"),Bo(3),Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","company")("action","delete")("btnColor","btn-blue-bg")("btnText","Excluir")("btnTitle","Excluir"))},directives:[CE,Hf,ip,Of,Vf,vp,jD],styles:[".modalFilter .modalBox{min-height:inherit}"]}),kX);function PX(e,t){if(1&e&&(es(0,"option",20),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}var TX,OX,LX,DX,IX=((DX=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.collaboratorDatabase=n,this.companyDatabase=i,this.functionsService=o,this.iconSolidService=a,this.showModal=!0,this.hideModal=new Mc,this.reloadData=new Mc,this.optionSelected="",this.collaboratorList=null,this.modalCollaboratorList=!1,this.selectFieldListExportSystem=null,this.exportForm=this.formBuilder.group({ex_system_id:new Wm("",Jf.required)})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&(this.collaboratorDatabase.getCollaboratorListCardId((function(t){t.error||(e.collaboratorList=t.data.collaboratorList)})),this.companyDatabase.getSelectList({listRequired:JSON.stringify(["export"])},(function(t){t.error||(e.selectFieldListExportSystem=t.data.export)})))}},{key:"setOptionExport",value:function(){this.optionSelected="export";var e=this.exportForm.get("ex_system_id").value;null!=e&&""!==e?this.showModalCollaboratorList():this.functionsService.openSnackBar("Informe o sistema de exporta\xe7\xe3o")}},{key:"setOptionPassword",value:function(){this.optionSelected="password",this.showModalCollaboratorList()}},{key:"sendCollaboratorIdList",value:function(e){var t=this;if(0!==e.length){var n={collaboratorIdList:JSON.stringify(e)};"export"===this.optionSelected&&(n=Object.assign(Object.assign({},n),this.exportForm.value),this.collaboratorDatabase.putCollaboratorExportCodeAsCardId(n,(function(e){e.error||t.closeAll()}))),"password"===this.optionSelected&&this.collaboratorDatabase.putCollaboratorPasswordAsCardId(n,(function(e){e.error||t.closeAll()}))}else this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio")}},{key:"closeAll",value:function(){this.reloadData.emit(),this.hideModalCollaboratorList(),this.closeModal()}},{key:"showModalCollaboratorList",value:function(){this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1}},{key:"closeModal",value:function(){this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||DX)($r(wp),$r(LN),$r(Mz),$r(zP),$r(JO))},DX.\u0275cmp=Ot({type:DX,selectors:[["io-company-modal-card-id-control"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",reloadData:"reloadData"},features:[dl],decls:31,vars:29,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB2"],[1,"sizeC"],[1,"spacer"],[1,"pdgT2","borderTop"],[1,"flex","bottom"],[1,"sizeC","mrgB2"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","btnClick"],[3,"formGroup"],[1,"sizeC","mrgB1"],[1,"form-group","inputAnimated"],["id","department_id","required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],["for","department_id",1,"form-label"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"btnSmall","btnShort","mrgB1",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","btnClick"],[1,"flex","center","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[3,"title","moduleName","listForSelection","closeOnSelectedEmission","getCollaboratorListFromDatabase","showModal","selectedId","hideModal"],[3,"value"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Configura\xe7\xe3o de crach\xe1s"),ts(),es(4,"p",3),Gs(5,"Para estas a\xe7\xf5es \xe9 necess\xe1rio que o funcion\xe1rio tenha o n\xfamero de crach\xe1."),ts(),es(6,"p",3),Gs(7,"Caso algum funcion\xe1rio n\xe3o tenha um n\xfamero de crach\xe1, n\xe3o ser\xe1 listado."),ts(),ns(8,"div",4),ns(9,"div",5),es(10,"div",6),es(11,"div"),es(12,"h3",7),Gs(13,"Definir n\xfamero do crach\xe1 como senha do aplicativo."),ts(),ts(),es(14,"io-btn",8),ls("btnClick",(function(){return t.setOptionPassword()})),ts(),ts(),ns(15,"div",4),ns(16,"div",5),es(17,"div",6),es(18,"div",9),es(19,"h3",10),Gs(20,"Definir n\xfamero do crach\xe1 como c\xf3digo de exporta\xe7\xe3o."),ts(),es(21,"div",11),es(22,"select",12),Jr(23,PX,2,2,"option",13),ts(),es(24,"label",14),Gs(25,"Sistema de exporta\xe7\xe3o"),ts(),ns(26,"fa-icon",15),ts(),ts(),es(27,"io-btn",16),ls("btnClick",(function(){return t.setOptionExport()})),ts(),ts(),ts(),es(28,"div",17),es(29,"io-btn",18),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts(),es(30,"io-modal-multi-select-id",19),ls("selectedId",(function(e){return t.sendCollaboratorIdList(e)}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(14),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Definir senha")("btnTitle","Definir senha"),Bo(4),Zr("formGroup",t.exportForm),Bo(4),Zr("formControlName","ex_system_id"),Bo(1),Zr("ngForOf",t.selectFieldListExportSystem),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Definir c\xf3digo")("btnTitle","Definir c\xf3digo"),Bo(2),Zr("moduleName","company")("action","")("btnColor","btn-blue")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1),Bo(1),Zr("title","Funcion\xe1rios com n\xfamero de crach\xe1")("moduleName","collaborator")("listForSelection",t.collaboratorList)("closeOnSelectedEmission",!1)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorList))},directives:[CE,jD,Hf,ip,vm,bp,Vf,vp,ah,FD,tR,ym,xm],styles:[".spacer[_ngcontent-%COMP%]{height:40px}"]}),DX),FX=((LX=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.storageService=o,this.functionsService=a,this.validService=r,this.showModal=!0,this.hideModal=new Mc,this.reloadData=new Mc,this.companyForm=this.formBuilder.group({begin_date:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.companyForm.controls.begin_date.setValue(this.functionsService.currentDateBR("00/00/0000","min"))}},{key:"beginSystemDate",value:function(){var e=this,t=this.companyForm.controls.begin_date.value;null!=t&&""!=t?this.companyDatabase.putCompanySetNewBeginDate({begin_date:t},(function(t){t.error||(e.closeModal(),e.functionsService.refresh())})):this.functionsService.openSnackBar("Selecione a data de in\xedcio de uso do sistema")}},{key:"closeModal",value:function(){this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||LX)($r(wp),$r(yM),$r(Mz),$r(YP),$r(zP),$r(TN))},LX.\u0275cmp=Ot({type:LX,selectors:[["io-modal-begin-date"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",reloadData:"reloadData"},decls:15,vars:14,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB2"],[1,"sizeC","mrgB2"],[1,"mrgB2",3,"formGroup"],[1,"datepicker",3,"labelText","dateSelectedEN"],[1,"sizeC","center"],[1,"sizeB","cl-red","fontBold"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Data de in\xedcio de utiliza\xe7\xe3o do sistema"),ts(),es(4,"p",3),Gs(5,"Por favor, selecione a data inicial para utiliza\xe7\xe3o do sistema."),ts(),es(6,"div",4),es(7,"io-datepicker",5),ls("dateSelectedEN",(function(e){return t.companyForm.controls.begin_date.setValue(e)})),ts(),ts(),es(8,"p",6),es(9,"span",7),Gs(10,"Aten\xe7\xe3o!"),ts(),Gs(11," A partir desta data os funcion\xe1rios come\xe7ar\xe3o a utilizar o sistema de forma definitiva."),ts(),ts(),es(12,"div",8),es(13,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),es(14,"io-btn",10),ls("btnClick",(function(){return t.beginSystemDate()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(6),Zr("formGroup",t.companyForm),Bo(1),Zr("labelText","*Data de in\xedcio de uso"),Bo(6),Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","company")("action","update")("btnColor","btn-blue-bg")("btnText","Continuar")("btnTitle","Continuar"))},directives:[CE,Hf,ip,UA,jD],styles:[""]}),LX),AX=((OX=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.storageService=o,this.functionsService=a,this.validService=r,this.showModal=!0,this.hideModal=new Mc,this.reloadData=new Mc,this.collaborator_id="",this.collaborator_name="",this.collaboratorForm=this.formBuilder.group({dismissal_date:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){this.collaboratorForm.controls.dismissal_date.setValue(this.functionsService.currentDateBR("00/00/0000","min"))}},{key:"blockCollaborator",value:function(){var e=this,t=this.functionsService.dateBRtoEN(this.collaboratorForm.controls.dismissal_date.value);!t||t.length<10?this.functionsService.openSnackBar("emptyField"):this.collaboratorDatabase.postCollaboratorDismissalAll({dismissal_date:t},(function(t){t.error||(e.reloadData.emit(),e.closeModal())}))}},{key:"verifyDate",value:function(e){this.collaboratorForm.controls[e].value.length>2&&this.collaboratorForm.controls[e].setValue(this.validService.validDate(this.collaboratorForm.controls[e].value))}},{key:"closeModal",value:function(){this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||OX)($r(wp),$r(yM),$r(LN),$r(YP),$r(zP),$r(TN))},OX.\u0275cmp=Ot({type:OX,selectors:[["io-company-modal-dismissal-collaborator"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",reloadData:"reloadData"},features:[dl],decls:20,vars:15,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","fontBold","cl-blue","fontUp","mrgB2"],[1,"sizeC"],[1,"sizeC","mrgB2"],[1,"mrgB2",3,"formGroup"],[1,"form-group","inputAnimated"],["autocomplete","off","autofocus","","id","dismissal_date","mask","00/00/0000","maxlength","10","placeholder","","required","","type","text",1,"",3,"dropSpecialCharacters","formControlName","change"],["for","dismissal_date",1,"form-label","required"],[1,"sizeC","center"],[1,"sizeB","cl-red","fontBold"],[1,"flex","mrgT2","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Demitir funcion\xe1rios"),ts(),es(4,"p",3),Gs(5,"Voc\xea tem certeza que deseja Demitir todos os funcion\xe1rios ?"),ts(),es(6,"p",4),Gs(7,"Por favor, digite a data final do registro de ponto."),ts(),es(8,"div",5),es(9,"div",6),es(10,"input",7),ls("change",(function(){return t.verifyDate("dismissal_date")})),ts(),es(11,"label",8),Gs(12,"Data"),ts(),ts(),ts(),es(13,"p",9),es(14,"span",10),Gs(15,"Aten\xe7\xe3o!"),ts(),Gs(16," A partir dessa data, os funcion\xe1rios n\xe3o ter\xe3o mais acesso ao aplicativo."),ts(),ts(),es(17,"div",11),es(18,"io-btn",12),ls("btnClick",(function(){return t.closeModal()})),ts(),es(19,"io-btn",13),ls("btnClick",(function(){return t.blockCollaborator()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(8),Zr("formGroup",t.collaboratorForm),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","dismissal_date"),Bo(8),Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","company")("action","update")("btnColor","btn-blue-bg")("btnText","Demitir")("btnTitle","Demitir"))},directives:[CE,Hf,ip,If,DE,kp,bp,Vf,vp,jD],styles:[".passwordBox[_ngcontent-%COMP%]{margin:60px 80px 0}.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0;display:flex;padding:15px 0}.passwordBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{border:none}.passwordBox[_ngcontent-%COMP%]   .downloadBox[_ngcontent-%COMP%]{margin:30px auto 0}.passwordBox[_ngcontent-%COMP%]   .downloadBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:40px;margin:0 auto}"]}),OX),EX=((TX=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.companyDatabase=n,this.databaseService=i,this.storageService=o,this.functionsService=a,this.router=r,this.showModal=!1,this.updateOn=!1,this.hideModal=new Mc,this.hideNotification=new Mc,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.multPointName="Carregando...",this.multPointCnpj="Carregando...",this.urlAppleMultiPoint=this.storageService.urlAppleMultiPoint,this.urlAndroidMultiPoint=this.storageService.urlAndroidMultiPoint,this.multPointForm=this.formBuilder.group({hash_helper:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;1==this.showModal&&this.companyDatabase.getCompanyDataForConfiguration((function(t){if(!t.error){var n=t.data.companyData;e.multPointName=n.trading_name,e.multPointCnpj=n.national_registry,e.multPointForm.controls.hash_helper.setValue(n.hash_helper)}}))}},{key:"sendForm",value:function(){var e=this;this.companyDatabase.putCompanyMultiPointPassword(this.multPointForm.value,this.companyId,(function(t){t.error||e.closeModal()}))}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.multPointForm.reset(),this.multPointName="Carregando...",this.multPointCnpj="Carregando..."}}])}()).\u0275fac=function(e){return new(e||TX)($r(wp),$r(Mz),$r(tT),$r(YP),$r(zP),$r(yM))},TX.\u0275cmp=Ot({type:TX,selectors:[["io-company-modal-multPoint-access"]],inputs:{showModal:"showModal",updateOn:"updateOn"},outputs:{hideModal:"hideModal",hideNotification:"hideNotification"},features:[dl],decls:27,vars:13,consts:[[3,"showModal","hideModal"],[1,"modalBody","modalMultPoint",3,"formGroup"],[1,"sizeA","fontUp","fontBold","cl-blue","center"],[1,"multiPointBox"],[1,"line","borderBottom"],[1,"siceC"],[1,"line","borderBottom","multiPointForm"],["onClick","this.select();","autocomplete","off","placeholder","","required","","type","text","mask","000000","maxlength","6",3,"formControlName"],[1,"btnShort","btnAuto",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[1,"line"],[1,"downloadBox"],[1,"flex","center","sizeC","fontBold","pdgB2"],[1,"flex","center"],["target","_blank",1,"clickPlace","mrgR2",3,"href"],["src","assets/img/icon-android.png","title","Google Play","alt",""],["target","_blank",1,"clickPlace","mrgL2",3,"href"],["src","assets/img/icon-ios.png","title","App Store","alt",""]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Login e Senha multiponto"),ts(),es(4,"div",3),es(5,"div",4),es(6,"span",5),Gs(7),ts(),ts(),es(8,"div",4),es(9,"span",5),Gs(10),ts(),ts(),es(11,"div",6),es(12,"span",5),Gs(13,"Senha:"),ts(),ns(14,"input",7),es(15,"io-btn",8),ls("btnClick",(function(){return t.sendForm()})),ts(),ts(),es(16,"div",9),es(17,"span",5),Gs(18,"D\xfavidas? Entre em contato com nosso suporte!"),ts(),ts(),es(19,"div",10),es(20,"span",11),Gs(21,"Links para download do app."),ts(),es(22,"div",12),es(23,"a",13),ns(24,"img",14),ts(),es(25,"a",15),ns(26,"img",16),ts(),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.multPointForm),Bo(6),$s(t.multPointName),Bo(3),Qs("Login: ",t.multPointCnpj,""),Bo(4),Zr("formControlName","hash_helper"),Bo(1),Zr("moduleName","company")("action","update")("btnClassList","btnShort btnAuto")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar"),Bo(8),vs("href",t.urlAndroidMultiPoint,mo),Bo(2),vs("href",t.urlAppleMultiPoint,mo))},directives:[CE,Hf,ip,If,bp,DE,kp,Vf,vp,jD],styles:[".multiPointBox[_ngcontent-%COMP%]{margin:60px 80px 0}.multiPointBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:15px 0;margin:0}.multiPointBox[_ngcontent-%COMP%]   .line.multiPointForm[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin:0}.multiPointBox[_ngcontent-%COMP%]   .line.multiPointForm[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:60px;margin:0 auto 0 5px;border-bottom:1px solid #000}.multiPointBox[_ngcontent-%COMP%]   .line.multiPointForm[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin:0 0 0 auto}"]}),TX);function BX(e,t){if(1&e&&(es(0,"span",22),Gs(1,"Senha do dia: "),es(2,"span",23),Gs(3),ts(),ts()),2&e){var n=fs();Bo(3),$s(n.dailyPassword)}}function NX(e,t){1&e&&(es(0,"div",24),es(1,"h3",25),Gs(2,"Dados da empresa:"),ts(),es(3,"span",26),Gs(4,"Carregando..."),ts(),ts())}function RX(e,t){if(1&e){var n=as();es(0,"img",53),ls("error",(function(){return mn(n),fs(2).companyLogoPreviewUrl="/assets/img/logo-empresa.png"})),ts()}2&e&&Zr("src",fs(2).companyLogoPreviewUrl,mo)}function jX(e,t){if(1&e&&(es(0,"div",54),ns(1,"fa-icon",55),ts()),2&e){var n=fs(2);Bo(1),Zr("icon",n.iconRegularService.faImage)}}function zX(e,t){if(1&e&&(es(0,"span",39),Gs(1),ts()),2&e){var n=fs(2);Bo(1),$s(n.companyData.hash_helper)}}function VX(e,t){if(1&e){var n=as();es(0,"fa-icon",56),ls("click",(function(){return mn(n),fs(2).multiPointHashEditing=!0})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEdit)}function HX(e,t){1&e&&ns(0,"input",57),2&e&&Zr("formControlName","hash_helper")}function YX(e,t){if(1&e){var n=as();es(0,"fa-icon",58),ls("click",(function(){return mn(n),fs(2).sendHash()})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faSave)}function qX(e,t){if(1&e){var n=as();es(0,"div",27),es(1,"div",28),es(2,"h3",25),Gs(3,"Dados da empresa:"),ts(),es(4,"label",29),Gs(5,"Logo da empresa"),ts(),es(6,"div",30),es(7,"input",31),ls("change",(function(e){return mn(n),fs().handleLogo(e.target.files[0])})),ts(),Jr(8,RX,1,1,"img",32),Jr(9,jX,2,1,"div",33),es(10,"span",34),Gs(11,"+"),ts(),ts(),es(12,"span",35),Gs(13,"Clique na imagem acima para adicionar/alterar."),ts(),ts(),es(14,"div",36),es(15,"h3",25),Gs(16,"Dados de acesso para o multiponto:"),ts(),es(17,"div",37),es(18,"div",38),es(19,"label",26),Gs(20,"Login"),ts(),es(21,"span",39),Gs(22),ts(),ts(),es(23,"div",38),es(24,"label",26),Gs(25,"Senha"),ts(),es(26,"div",40),Jr(27,zX,2,1,"span",41),Jr(28,VX,1,1,"fa-icon",42),Jr(29,HX,1,1,"input",43),Jr(30,YX,1,1,"fa-icon",44),ts(),ts(),ts(),es(31,"div",45),es(32,"label",26),Gs(33,"Aplicativos"),ts(),es(34,"div",46),es(35,"span",47),es(36,"a",48),ns(37,"img",49),ts(),es(38,"label",50),Gs(39,"(Android)"),ts(),ts(),ts(),es(40,"div",46),es(41,"span",47),es(42,"a",48),ns(43,"img",51),ts(),es(44,"label",50),Gs(45,"Android (Basic)"),ts(),ts(),ts(),es(46,"div",46),es(47,"span",47),es(48,"a",48),ns(49,"img",52),ts(),es(50,"label",50),Gs(51,"(Apple)"),ts(),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(8),Zr("ngIf",i.companyLogoPreviewUrl),Bo(1),Zr("ngIf",!i.companyLogoPreviewUrl),Bo(13),$s(i.companyData.national_registry),Bo(4),Zr("formGroup",i.multiPointForm),Bo(1),Zr("ngIf",!i.multiPointHashEditing),Bo(1),Zr("ngIf",!i.multiPointHashEditing),Bo(1),Zr("ngIf",i.multiPointHashEditing),Bo(1),Zr("ngIf",i.multiPointHashEditing),Bo(6),vs("href",i.urlAndroidMultiPoint,mo),Bo(6),vs("href",i.urlAndroidBasic,mo),Bo(6),vs("href",i.urlAppleMultiPoint,mo)}}function UX(e,t){1&e&&(es(0,"span",26),Gs(1,"Carregando..."),ts())}function WX(e,t){if(1&e){var n=as();es(0,"div",59),es(1,"div",60),es(2,"div",61),es(3,"div",62),es(4,"input",63),ls("change",(function(){return mn(n),fs().verifyCost("vr_daily_price")})),ts(),es(5,"label",64),Gs(6,"Valor di\xe1rio do vale-refei\xe7\xe3o (padr\xe3o)."),ts(),ts(),es(7,"div",62),es(8,"input",65),ls("change",(function(){return mn(n),fs().verifyCost("vr_daily_price_4")})),ts(),es(9,"label",66),Gs(10,"Valor di\xe1rio do vale-refei\xe7\xe3o para jornadas de 4h \xe0 6h."),ts(),ts(),es(11,"div",62),es(12,"input",67),ls("change",(function(){return mn(n),fs().verifyCost("vr_daily_price_6")})),ts(),es(13,"label",68),Gs(14,"Valor di\xe1rio do vale-refei\xe7\xe3o para jornadas de 6h \xe0 8h."),ts(),ts(),es(15,"div",62),es(16,"input",69),ls("change",(function(){return mn(n),fs().verifyCost("vr_daily_price_8")})),ts(),es(17,"label",70),Gs(18,"Valor di\xe1rio do vale-refei\xe7\xe3o para jornadas de 8h \xe0 10h."),ts(),ts(),es(19,"div",62),es(20,"input",71),ls("change",(function(){return mn(n),fs().verifyCost("vr_daily_price_12")})),ts(),es(21,"label",72),Gs(22,"Valor di\xe1rio do vale-refei\xe7\xe3o para jornadas acima de 11h."),ts(),ts(),ts(),ts(),es(23,"div",73),es(24,"io-btn",74),ls("btnClick",(function(){return mn(n),fs().sendVRForm()})),ts(),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("formGroup",i.VRDailyPriceDataForm),Bo(1),Zr("formControlName","vr_daily_price"),Bo(3),Zr("formGroup",i.VRDailyPriceDataForm),Bo(1),Zr("formControlName","vr_daily_price_4"),Bo(3),Zr("formGroup",i.VRDailyPriceDataForm),Bo(1),Zr("formControlName","vr_daily_price_6"),Bo(3),Zr("formGroup",i.VRDailyPriceDataForm),Bo(1),Zr("formControlName","vr_daily_price_8"),Bo(3),Zr("formGroup",i.VRDailyPriceDataForm),Bo(1),Zr("formControlName","vr_daily_price_12"),Bo(4),Zr("moduleName","invoice")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Salvar")("btnTitle","Salvar")("useValidation",!1)}}function JX(e,t){1&e&&(es(0,"span",26),Gs(1,"Carregando..."),ts())}function GX(e,t){if(1&e){var n=as();es(0,"div",59),es(1,"span",26),Gs(2,"Vig\xeancia n\xe3o configurada."),ts(),es(3,"io-btn",75),ls("btnClick",(function(){return mn(n),fs(2).showModalBankTimeEndDate()})),ts(),ts()}2&e&&(Bo(3),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Configurar")("btnTitle","Configurar"))}function $X(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",76),es(2,"div",77),es(3,"div",78),es(4,"label",79),Gs(5,"Vig\xeancia do banco de horas atual"),ts(),es(6,"fa-icon",80),ls("click",(function(){return mn(n),fs(2).showQuestionCard(0)})),ts(),ts(),es(7,"div",54),es(8,"span",26),Gs(9),ts(),ts(),ts(),es(10,"div",77),es(11,"div",78),es(12,"label",79),Gs(13,"Fim da vig\xeancia atual"),ts(),es(14,"fa-icon",80),ls("click",(function(){return mn(n),fs(2).showQuestionCard(1)})),ts(),ts(),es(15,"div",54),es(16,"span",26),Gs(17),ts(),ts(),ts(),es(18,"div",81),es(19,"div",78),es(20,"label",79),Gs(21,"Vig\xeancia do pr\xf3ximo banco de horas"),ts(),es(22,"fa-icon",80),ls("click",(function(){return mn(n),fs(2).showQuestionCard(2)})),ts(),ts(),es(23,"div",82),es(24,"input",83),ls("change",(function(){return mn(n),fs(2).setBankTimeRangeNextEndDate()})),ts(),es(25,"span",84),Gs(26,"Meses"),ts(),ts(),ts(),ts(),es(27,"div",85),es(28,"io-btn",75),ls("btnClick",(function(){return mn(n),fs(2).showModalBankTimeDeleteInactive()})),ts(),Gs(29," \xa0 "),es(30,"io-btn",75),ls("btnClick",(function(){return mn(n),fs(2).sendBankTimeRange()})),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(6),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(3),Qs("",i.bankTimeRangeCurrentMonth," Meses"),Bo(5),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(3),$s(i.getDateBr(i.bankTimeRangeCurrentEndDate)),Bo(1),Zr("formGroup",i.bankTimeRangeForm),Bo(4),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","bank_time_range"),Bo(4),Zr("moduleName","comp-time")("action","delete")("btnColor","btn-red-bg")("btnClassList","btnSmall btnShort")("btnText","Excluir")("btnTitle","Excluir"),Bo(2),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Salvar")("btnTitle","Salvar")}}function QX(e,t){if(1&e&&(es(0,"div"),Jr(1,GX,4,6,"div",10),Jr(2,$X,31,20,"div",12),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",!n.bankTimeRangeData||0==n.companyData.bank_time_range),Bo(1),Zr("ngIf",n.bankTimeRangeData&&0!=n.companyData.bank_time_range)}}function KX(e,t){1&e&&(es(0,"span",26),Gs(1,"Carregando..."),ts())}function ZX(e,t){if(1&e){var n=as();es(0,"div",59),es(1,"div"),es(2,"h3",26),Gs(3,"Exibir registro de ponto via senha."),ts(),ts(),es(4,"div",85),es(5,"io-btn",75),ls("btnClick",(function(){return mn(n),fs(2).toggleShowMultiPassword()})),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText",i.companyShowMultiPassword?"Sim":"N\xe3o")("btnTitle",i.companyShowMultiPassword?"Sim":"N\xe3o")}}function XX(e,t){if(1&e&&(es(0,"div",7),es(1,"h3",8),Gs(2,"Multiponto"),ts(),Jr(3,KX,2,0,"span",9),Jr(4,ZX,6,6,"div",10),ts()),2&e){var n=fs();Bo(3),Zr("ngIf",!n.companyData),Bo(1),Zr("ngIf",n.companyData)}}function e1(e,t){1&e&&(es(0,"span",26),Gs(1,"Carregando..."),ts())}function t1(e,t){if(1&e){var n=as();es(0,"div",59),es(1,"div"),es(2,"h3",26),Gs(3,"Definir n\xfamero do crach\xe1 como senha do aplicativo."),ts(),es(4,"h3",26),Gs(5,"Definir n\xfamero do crach\xe1 como c\xf3digo de exporta\xe7\xe3o."),ts(),ts(),es(6,"io-btn",75),ls("btnClick",(function(){return mn(n),fs().showModalCardIdControl()})),ts(),ts()}2&e&&(Bo(6),Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Configurar")("btnTitle","Configurar"))}function n1(e,t){1&e&&(es(0,"span",26),Gs(1,"Carregando..."),ts())}function i1(e,t){if(1&e){var n=as();es(0,"div",86),es(1,"div",87),ls("click",(function(){return mn(n),fs().copyTokenToClipboard()})),es(2,"span",88),Gs(3),ts(),ns(4,"io-icon",89),ts(),es(5,"io-btn",90),ls("click",(function(){return mn(n),fs().showModalToken()})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("title","Copiar token"),Bo(2),$s(""!=i.companyApiToken?i.companyApiToken:"N\xe3o h\xe1 token gerado"),Bo(1),Zr("moduleName","company")("action","copy")("iconBox",!0)("iconBoxColor","bg-blue")("iconColor","cl-white")("iconSize","iconSizeE")("iconTitle","Copiar token")("useValidation",!1),Bo(1),Zr("moduleName","user")("action","")("btnColor",i.companyHasApiToken?"btn-red-bg":"btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText",i.companyHasApiToken?"Excluir Token":"Gerar Novo Token")("useValidation",!1)}}function o1(e,t){if(1&e){var n=as();es(0,"div",91),es(1,"div",92),es(2,"span",93),Gs(3,"A\xe7\xf5es"),ts(),es(4,"div",94),es(5,"div",95),es(6,"div",38),es(7,"span",96),Gs(8,"Data de in\xedcio para utiliza\xe7\xe3o do sistema"),ts(),es(9,"span",97),ls("click",(function(){return mn(n),fs().modalBeginDate=!0})),Gs(10,"Selecionar data"),ts(),ts(),es(11,"div",38),es(12,"span",96),Gs(13,"Demitir todos os funcion\xe1rios"),ts(),es(14,"span",97),ls("click",(function(){return mn(n),fs().modalDismissalAll=!0})),Gs(15,"Demitir"),ts(),ts(),es(16,"div",38),es(17,"span",96),Gs(18,"Readmitir todos os funcion\xe1rios"),ts(),es(19,"span",97),ls("click",(function(){return mn(n),fs().modalReadmitAll=!0})),Gs(20,"Readmitir"),ts(),ts(),ts(),ts(),ts(),ns(21,"div",92),ts()}}function a1(e,t){if(1&e){var n=as();es(0,"io-company-modal-multPoint-access",17),ls("hideModal",(function(){return mn(n),fs().modalMultiPoint=!1})),ts()}2&e&&Zr("showModal",fs().modalMultiPoint)}var r1,s1,l1=((s1=function(){return d((function e(t,n,o,a,r,s,l,u,d){if(c(this,e),this.formBuilder=t,this.collaboratorDatabase=n,this.companyDatabase=o,this.databaseService=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.storageService=u,this.titleService=d,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.userId=this.storageService.decodeFromLocalStorage("userId"),this.bankTimeRangeData=null,this.bankTimeRangeCurrentEndDate="",this.bankTimeRangeCurrentMonth="",this.bankTimeRangeNextEndDate="",this.companyApiToken="",this.companyData=null,this.companyHasApiToken=!1,this.companyHasFaceRecognition=!1,this.companyShowMultiPassword=!0,this.companyLogo=null,this.companyLogoPreviewUrl=null,this.dailyPassword=null,this.modalBankTimeEndDate=!1,this.modalBankTimeDeleteInactive=!1,this.modalBeginDate=!1,this.modalCardIdControl=!1,this.modalDismissalAll=!1,this.modalFaceRecognition=!1,this.modalMultiPoint=!1,this.modalReadmitAll=!1,this.modalToken=!1,this.multiPointHashEditing=!1,this.questionCard=!1,this.questionCardType=0,this.questionCardData=[{title:"Vig\xeancia do banco de horas",text:"O banco de horas pode ser feito em acordo individual e precisa ser compensado at\xe9 o fim da vig\xeancia definida."},{title:"Fim da vig\xeancia atual",text:"Esta data define qual ser\xe1 o fim a vig\xeancia atual."},{title:"Vig\xeancia do pr\xf3ximo banco de horas",text:'Este valor define o tempo da pr\xf3xima vig\xeancia do banco de horas. Este valor s\xf3 ter\xe1 efeito ap\xf3s a data do fim da vig\xeancia atual. Para inativar o banco de horas ap\xf3s a vig\xeancia atual, informe "0" (zero) neste campo.'},{title:"Fim da vig\xeancia do pr\xf3ximo banco de horas",text:"Esta data \xe9 definida pela vig\xeancia do pr\xf3ximo banco. Esta data representa o fim a vig\xeancia do pr\xf3ximo per\xedodo."}],this.userIsDevOrSupport=!1,this.urlAppleMultiPoint=this.storageService.urlAppleMultiPoint,this.urlAndroidMultiPoint=this.storageService.urlAndroidMultiPoint,this.urlAndroidBasic=this.storageService.urlAndroidBasic,this.titleService.setTitle("Configura\xe7\xf5es da empresa"),this.multiPointForm=this.formBuilder.group({hash_helper:new Wm("",[Jf.required])}),this.bankTimeRangeForm=this.formBuilder.group({bank_time_range:new Wm("6",[])}),this.VRDailyPriceDataForm=this.formBuilder.group({vr_daily_price:new Wm("",Jf.required),vr_daily_price_4:new Wm("",Jf.required),vr_daily_price_6:new Wm("",Jf.required),vr_daily_price_8:new Wm("",Jf.required),vr_daily_price_12:new Wm("",Jf.required)}),"4"==this.userId||"31"==this.userId){var h=i(this.functionsService.currentDateEN("0000-00-00","min").split("-").map((function(e){return parseInt(e)})),3),f=h[0],m=h[1],p=h[2];this.dailyPassword=f*(m+p)-f*(m-p),this.userIsDevOrSupport=!0}this.getCompanyData()}),[{key:"getCompanyData",value:function(){var e=this;this.bankTimeRangeData=null,this.companyData=null,this.multiPointForm.reset(),this.bankTimeRangeForm.reset(),this.VRDailyPriceDataForm.reset(),this.companyDatabase.getCompanyDataForConfiguration((function(t){t.error||(e.companyData=t.data.companyData,e.companyData.company_logo&&e.setCompanyLogo(),e.bankTimeRangeForm.get("bank_time_range").setValue(e.companyData.bank_time_range),e.setBankTimeData(t.data.bankTimeRangeData),e.setCompanyApiToken(e.companyData.api_token),e.setFaceRecognition(e.companyData.ioface_is_enabled),e.setShowMultiPassword(e.companyData.show_multi_password),e.multiPointForm.get("hash_helper").setValue(e.companyData.hash_helper),e.VRDailyPriceDataForm.get("vr_daily_price").setValue(e.companyData.vr_daily_price.toString().split(".").join(",")),e.VRDailyPriceDataForm.get("vr_daily_price_4").setValue(e.companyData.vr_daily_price_4.toString().split(".").join(",")),e.VRDailyPriceDataForm.get("vr_daily_price_6").setValue(e.companyData.vr_daily_price_6.toString().split(".").join(",")),e.VRDailyPriceDataForm.get("vr_daily_price_8").setValue(e.companyData.vr_daily_price_8.toString().split(".").join(",")),e.VRDailyPriceDataForm.get("vr_daily_price_12").setValue(e.companyData.vr_daily_price_12.toString().split(".").join(",")),["vr_daily_price","vr_daily_price_4","vr_daily_price_6","vr_daily_price_8","vr_daily_price_12"].forEach((function(t){e.VRDailyPriceDataForm.get(t).setValue(e.companyData[t].toString().split(".").join(",")),e.verifyCost(t)})))}))}},{key:"setCompanyLogo",value:function(){this.companyLogoPreviewUrl=this.databaseService.currentDatabaseUrl()+"/storage/company_"+this.companyData.id+"/logo/"+this.companyData.company_logo}},{key:"handleLogo",value:function(e){this.companyLogo=e,this.uploadPhoto()}},{key:"uploadPhoto",value:function(){var e=this,t=new FormData;t.append("companyLogo",this.companyLogo),this.companyDatabase.postCompanyLogo(t,(function(t){t.error||e.getCompanyData()}))}},{key:"setBankTimeData",value:function(e){null!=e&&(this.bankTimeRangeCurrentEndDate=e.end_date,this.bankTimeRangeCurrentMonth=e.month_range,this.bankTimeRangeData=e,this.setBankTimeRangeNextEndDate())}},{key:"setBankTimeRangeNextEndDate",value:function(){var e=parseInt(this.bankTimeRangeForm.get("bank_time_range").value),t=this.functionsService.getMonthAfterEN(this.bankTimeRangeCurrentEndDate,e);this.bankTimeRangeCurrentEndDate==this.functionsService.getFirstLastDay(this.bankTimeRangeCurrentEndDate)[1]&&(t=this.functionsService.getFirstLastDay(t)[1]),this.bankTimeRangeNextEndDate=t}},{key:"setCompanyApiToken",value:function(e){this.companyApiToken=null!=e?e:"",this.companyHasApiToken=""!=this.companyApiToken}},{key:"setFaceRecognition",value:function(e){this.companyHasFaceRecognition="1"==e}},{key:"setShowMultiPassword",value:function(e){this.companyShowMultiPassword="1"==e}},{key:"sendBankTimeRange",value:function(){var e=this;this.companyDatabase.putBankTime(this.bankTimeRangeForm.value,(function(t){t.error||e.getCompanyData()}))}},{key:"showModalBankTimeEndDate",value:function(){this.modalBankTimeEndDate=!0}},{key:"hideModalBankTimeEndDate",value:function(){this.modalBankTimeEndDate=!1}},{key:"showModalBankTimeDeleteInactive",value:function(){this.modalBankTimeDeleteInactive=!0}},{key:"hideModalBankTimeDeleteInactive",value:function(){this.modalBankTimeDeleteInactive=!1}},{key:"showModalCardIdControl",value:function(){this.modalCardIdControl=!0}},{key:"hideModalCardIdControl",value:function(){this.modalCardIdControl=!1}},{key:"showQuestionCard",value:function(e){this.questionCardType=e,this.questionCard=!0}},{key:"hideQuestionCard",value:function(){this.questionCard=!1,this.questionCardType=null}},{key:"readmitAll",value:function(){var e=this;this.collaboratorDatabase.postCollaboratorReadmitAll((function(t){t.error||(e.modalReadmitAll=!1)}))}},{key:"sendHash",value:function(){var e=this;this.companyDatabase.putCompanyMultiPointPassword(this.multiPointForm.value,this.companyId,(function(t){t.error||(e.companyData.hash_helper=e.multiPointForm.get("hash_helper").value,e.multiPointHashEditing=!1)}))}},{key:"showModalToken",value:function(){this.modalToken=!0}},{key:"updateApiToken",value:function(){var e=this;this.companyDatabase.putCompanyApiToken((function(t){t.error||(e.setCompanyApiToken(t.data.token),e.hideApiToken())}))}},{key:"hideApiToken",value:function(){this.modalToken=!1}},{key:"copyTokenToClipboard",value:function(){""!=this.companyApiToken&&this.functionsService.copyTextToClipboard(this.companyApiToken,"Token copiado!")}},{key:"verifyCost",value:function(e){var t=this.VRDailyPriceDataForm.get(e).value,n=this.functionsService.removeLetter(t.split(",")[0]||"")+","+this.functionsService.removeLetter(t.split(",")[1]||"00");n.includes(",")||(n+="00"),n.includes(",")&&1===n.split(",")[1].length&&(n=n.split(",")[0]+n.split(",")[1]+"0"),n.includes(",")&&2===n.split(",")[1].length&&(n=n.split(",")[0]+n.split(",")[1]),this.VRDailyPriceDataForm.get(e).setValue(this.functionsService.toMoney(n))}},{key:"sendVRForm",value:function(){this.companyDatabase.putVRDailyPriceData(this.VRDailyPriceDataForm.value,(function(e){}))}},{key:"getDateBr",value:function(e){return this.functionsService.dateENtoBR(e)}},{key:"toggleShowMultiPassword",value:function(){var e=this;this.companyDatabase.putCompanyToggleShowMultiPassword("",(function(t){t.error||e.getCompanyData()}))}}])}()).\u0275fac=function(e){return new(e||s1)($r(wp),$r(LN),$r(Mz),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},s1.\u0275cmp=Ot({type:s1,selectors:[["io-company-page-config"]],decls:38,vars:32,consts:[[1,"container"],[1,"main"],[1,"relativePlace"],["class","sizeB cl-magenta dailyPassword",4,"ngIf"],[3,"moduleName","titleTop","textTop"],["class","top borderTop",4,"ngIf"],["class","flex top borderTop mrgB2",4,"ngIf"],[1,"card-id","mrgB2"],[1,"sizeB","fontBold","borderTop"],["class","sizeC",4,"ngIf"],["class","configLine flex",4,"ngIf"],[1,"mrgB2"],[4,"ngIf"],["class","card-id mrgB2",4,"ngIf"],["class","configLine flexPad top",4,"ngIf"],["class","flexPad top actionBox",4,"ngIf"],[3,"showModal","reloadData","hideModal"],[3,"showModal","hideModal"],[3,"showCard","title","text","hideCard"],[3,"showModal","hideModal",4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"showModal","title","text","btnTextConfirm","confirmClick","hideModal"],[1,"sizeB","cl-magenta","dailyPassword"],[1,"fontBold"],[1,"top","borderTop"],[1,"sizeB","fontBold","mrgB2"],[1,"sizeC"],[1,"flex","top","borderTop","mrgB2"],[1,"company-box"],[1,"sizeC","mrgB1"],[1,"uploadImgBox","mrgB2"],["type","file","accept","image/*",3,"change"],["alt","collaboratorImg","class","",3,"src","error",4,"ngIf"],["class","flex",4,"ngIf"],[1,"detailHover","anmtd2","round2"],[1,"detailHover","anmtd2","sizeE"],[1,"app-box"],[1,"configLine","itemBox","flex","mrgB2"],[1,"block","item"],[1,"sizeB","fontBold"],[1,"flex","center","top","multiPointForm",3,"formGroup"],["class","sizeB fontBold",4,"ngIf"],["size","2x","class","iconItem iconSizeG cl-blue clickPlace mrgL1","title","Editar senha de acesso",3,"icon","click",4,"ngIf"],["onClick","this.select();","class","sizeB fontBold","autocomplete","off","placeholder","","required","","type","text","mask","000000","maxlength","6",3,"formControlName",4,"ngIf"],["size","2x","class","iconItem iconSizeG cl-blue clickPlace mrgL1","title","Salvar senha de acesso",3,"icon","click",4,"ngIf"],[1,"configLine","itemBox","flex"],[1,"item","center"],[1,"flex","center"],["target","_blank",1,"clickPlace","linkBlock",3,"href"],["src","assets/img/icon-app.png","title","Google Play - Android - Ponto e Multiponto","alt",""],[1,"sizeE"],["src","assets/img/icon-basic.png","title","App Google Play - Android - Ponto e Multiponto Basic","alt",""],["src","assets/img/icon-apple.png","title","App Store - Apple - Ponto e Multiponto","alt",""],["alt","collaboratorImg",1,"",3,"src","error"],[1,"flex"],["size","3x",1,"iconItem","iconSizeA","cl-blue",3,"icon"],["size","2x","title","Editar senha de acesso",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],["onClick","this.select();","autocomplete","off","placeholder","","required","","type","text","mask","000000","maxlength","6",1,"sizeB","fontBold",3,"formControlName"],["size","2x","title","Salvar senha de acesso",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],[1,"configLine","flex"],[1,"wdFull"],[1,"wdMax50"],[1,"form-group","inputAnimated",3,"formGroup"],["autocomplete","off","id","vr_daily_price","type","text","required","",1,"wdMax25",3,"formControlName","change"],["for","vr_daily_price",1,"form-label","required"],["autocomplete","off","id","vr_daily_price_4","type","text","required","",1,"wdMax25",3,"formControlName","change"],["for","vr_daily_price_4",1,"form-label","required"],["autocomplete","off","id","vr_daily_price_6","type","text","required","",1,"wdMax25",3,"formControlName","change"],["for","vr_daily_price_6",1,"form-label","required"],["autocomplete","off","id","vr_daily_price_8","type","text","required","",1,"wdMax25",3,"formControlName","change"],["for","vr_daily_price_8",1,"form-label","required"],["autocomplete","off","id","vr_daily_price_12","type","text","required","",1,"wdMax25",3,"formControlName","change"],["for","vr_daily_price_12",1,"form-label","required"],[1,"end"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","btnClick"],[1,"configLine","flex","bank-time-range-box"],[1,"bank-time-range-item"],[1,"flex","start"],[1,"form-label"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],[1,"bank-time-range-item",3,"formGroup"],[1,"flex","relativePlace","borderBottom"],["autocomplete","off","id","comp_time","mask","00","placeholder","","type","text","required","",1,"wdFull",3,"dropSpecialCharacters","formControlName","change"],[1,"textAux","sizeB"],[1,"flex","end"],[1,"configLine","flexPad","top"],[1,"flex","api-token-box","bg-primary-light","clickPlace","round2",3,"title","click"],[1,"token-text","sizeB"],[3,"moduleName","action","iconBox","iconBoxColor","iconColor","iconSize","iconTitle","useValidation"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","useValidation","click"],[1,"flexPad","top","actionBox"],[1,"actionItem","mrgB2"],[1,"sizeB","internal","borderTop","mrgB1"],[1,"configLine"],[1,"actionList"],[1,"sizeC","flex"],[1,"sizeB","internal","clickPlace",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),Jr(3,BX,4,1,"span",3),ts(),ns(4,"io-main-top",4),Jr(5,NX,5,0,"div",5),Jr(6,qX,52,11,"div",6),es(7,"div",7),es(8,"h3",8),Gs(9,"Vale-refei\xe7\xe3o"),ts(),Jr(10,UX,2,0,"span",9),Jr(11,WX,25,17,"div",10),ts(),es(12,"div",11),es(13,"h3",8),Gs(14,"Vig\xeancia do Banco de horas"),ts(),Jr(15,JX,2,0,"span",9),Jr(16,QX,3,2,"div",12),ts(),Jr(17,XX,5,2,"div",13),es(18,"div",7),es(19,"h3",8),Gs(20,"Crach\xe1s"),ts(),Jr(21,e1,2,0,"span",9),Jr(22,t1,7,6,"div",10),ts(),es(23,"div",11),es(24,"h3",8),Gs(25,"Token API"),ts(),Jr(26,n1,2,0,"span",9),Jr(27,i1,6,16,"div",14),ts(),Jr(28,o1,22,0,"div",15),ts(),ts(),es(29,"io-company-modal-bank-time-end-date",16),ls("reloadData",(function(){return t.getCompanyData()}))("hideModal",(function(){return t.hideModalBankTimeEndDate()})),ts(),es(30,"io-company-modal-bank-time-delete-inactive",16),ls("reloadData",(function(){return t.getCompanyData()}))("hideModal",(function(){return t.hideModalBankTimeDeleteInactive()})),ts(),es(31,"io-company-modal-card-id-control",17),ls("hideModal",(function(){return t.hideModalCardIdControl()})),ts(),es(32,"io-modal-question-card",18),ls("hideCard",(function(){return t.hideQuestionCard()})),ts(),es(33,"io-modal-begin-date",17),ls("hideModal",(function(){return t.modalBeginDate=!1})),ts(),es(34,"io-company-modal-dismissal-collaborator",17),ls("hideModal",(function(){return t.modalDismissalAll=!1})),ts(),Jr(35,a1,1,1,"io-company-modal-multPoint-access",19),es(36,"io-modal-confirm",20),ls("confirmClick",(function(){return t.readmitAll()}))("hideModal",(function(){return t.modalReadmitAll=!1})),ts(),es(37,"io-modal-confirm",21),ls("confirmClick",(function(){return t.updateApiToken()}))("hideModal",(function(){return t.hideApiToken()})),ts()),2&e&&(Bo(3),Zr("ngIf",t.userIsDevOrSupport),Bo(1),Zr("moduleName","company")("titleTop","Configura\xe7\xf5es da empresa")("textTop","Configura\xe7\xe3o do sistema para a empresa."),Bo(1),Zr("ngIf",!t.companyData),Bo(1),Zr("ngIf",t.companyData),Bo(4),Zr("ngIf",!t.companyData),Bo(1),Zr("ngIf",t.companyData),Bo(4),Zr("ngIf",!t.companyData),Bo(1),Zr("ngIf",t.companyData),Bo(1),Zr("ngIf",t.companyHasFaceRecognition),Bo(4),Zr("ngIf",!t.companyData),Bo(1),Zr("ngIf",t.companyData),Bo(4),Zr("ngIf",!t.companyData),Bo(1),Zr("ngIf",t.companyData),Bo(1),Zr("ngIf",t.userIsDevOrSupport),Bo(1),Zr("showModal",t.modalBankTimeEndDate),Bo(1),Zr("showModal",t.modalBankTimeDeleteInactive),Bo(1),Zr("showModal",t.modalCardIdControl),Bo(1),Zr("showCard",t.questionCard)("title",null!=t.questionCardType?t.questionCardData[t.questionCardType].title:"")("text",null!=t.questionCardType?t.questionCardData[t.questionCardType].text:""),Bo(1),Zr("showModal",t.modalBeginDate),Bo(1),Zr("showModal",t.modalDismissalAll),Bo(1),Zr("ngIf",t.modalMultiPoint),Bo(1),Zr("showModal",t.modalReadmitAll)("title","Deseja readmitir todos os funcion\xe1rios?")("btnTextConfirm","Readmitir"),Bo(1),Zr("showModal",t.modalToken)("title",t.companyHasApiToken?"Deseja excluir o TOKEN?":"Deseja gerar um novo TOKEN?")("text",t.companyHasApiToken?"Ao excluir o Token, os dispositivos conectados perder\xe3o o acesso.":"")("btnTextConfirm",t.companyHasApiToken?"Excluir":"Gerar"))},directives:[sh,eI,MX,SX,IX,W$,FX,AX,UB,Hf,ip,FD,If,bp,DE,kp,Vf,vp,jD,BB,EX],styles:[".borderTop[_ngcontent-%COMP%]{padding:10px 0 0}.company-box[_ngcontent-%COMP%]{width:100%;max-width:400px}.company-box[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]{width:180px;height:90px;margin:0 0 5px;border-radius:0}.company-box[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]   .detailHover[_ngcontent-%COMP%]{border-radius:0}.company-box[_ngcontent-%COMP%]   .vr-form-box[_ngcontent-%COMP%]{width:100%;max-width:200px}.app-box[_ngcontent-%COMP%]{width:100%;max-width:400px}.app-box[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;text-align:center}.app-box[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{height:25px}.app-box[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]   .multiPointForm[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:62px;margin:0;padding:0;border-bottom:1px solid}.vr-form-box[_ngcontent-%COMP%]{width:100%;max-width:300px}.configLine[_ngcontent-%COMP%]{margin:10px 0 20px}.dailyPassword[_ngcontent-%COMP%]{position:absolute;top:45px;right:0}.bank-time-range-box[_ngcontent-%COMP%]   .bank-time-range-item[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]:nth-child(2){height:30px;padding:10px 0}.api-token-box[_ngcontent-%COMP%]{width:100%;max-width:350px;height:34px;overflow:hidden;padding-left:10px}.api-token-box[_ngcontent-%COMP%]   .token-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.api-token-box[_ngcontent-%COMP%]   io-icon[_ngcontent-%COMP%]{margin:0 2px}.actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]{width:100%;max-width:50%}.actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]   .sizeB.borderTop[_ngcontent-%COMP%]{display:block;width:100%}.actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]   .actionList[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{margin:0 0 10px}.actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]   .actionList[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;height:20px}.actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]   .partnerImg[_ngcontent-%COMP%]{width:180px}@media (max-width:1030px){.item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-bottom:5px}}@media (max-width:600px){.actionBox[_ngcontent-%COMP%]{display:block}.actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]:first-child, .actionBox[_ngcontent-%COMP%]   .actionItem[_ngcontent-%COMP%]:last-child{max-width:100%}.btn-token[_ngcontent-%COMP%]{display:block;margin:10px 0 0}.btn-token[_ngcontent-%COMP%], .btn-token[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{max-width:350px}}@media (max-width:520px){.itemBox[_ngcontent-%COMP%]{display:block}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{display:inline-block;width:40%;height:50px}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-align:left}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{margin-bottom:5px}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{margin-bottom:40px}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2n){float:right;margin-bottom:20px}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2n)   span[_ngcontent-%COMP%]{text-align:right}.itemBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2n)   div[_ngcontent-%COMP%]{justify-content:flex-end}.itemBoxMulti[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}}.textAux[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;padding-top:10px;color:var(--cl-gray)}.month[_ngcontent-%COMP%]{margin-top:8px}.inline-block[_ngcontent-%COMP%]{display:inline-block;width:45%;vertical-align:top;margin:5px}"]}),s1),c1=((r1=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getDocument",value:function(e,t,n){this.databaseService.getFile("/document/getDocument/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getDocumentRegister",value:function(e,t,n){this.databaseService.get("/document/getDocument/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getDocumentRegisterContract",value:function(e,t,n){this.databaseService.getHtmlText("/document/getDocument/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getListActive",value:function(e){this.databaseService.get("/collaborator/listActive",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getTechnicalTerms",value:function(e){this.databaseService.getFile("/document/technicalTerms",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getInsurance",value:function(e){this.databaseService.get("/document/hasInsurance",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}}])}()).\u0275fac=function(e){return new(e||r1)(ut(tT))},r1.\u0275prov=Se({token:r1,factory:r1.\u0275fac,providedIn:"root"}),r1);function u1(e,t){1&e&&ns(0,"span"),2&e&&Xs("iten ",t.index+1==fs().actualStep?"active":"","")}var d1,h1=((d1=function(){return d((function e(){c(this,e),this.actualStep=1,this.stepNumber=4,this.stepArray=[],this.stepArray=new Array(this.stepNumber)}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||d1)},d1.\u0275cmp=Ot({type:d1,selectors:[["io-step-bar"]],inputs:{actualStep:"actualStep",stepNumber:"stepNumber"},decls:2,vars:1,consts:[[1,"topProgress"],[3,"class",4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(es(0,"div",0),Jr(1,u1,1,3,"span",1),ts()),2&e&&(Bo(1),Zr("ngForOf",t.stepArray))},directives:[ah],styles:[""]}),d1);function f1(e,t){1&e&&(es(0,"div",19),es(1,"label",20),Gs(2,"Declaro que li e concordo com o Contrato de uso. "),ns(3,"input",21),ns(4,"span",22),ts(),ts()),2&e&&(Zr("formGroup",fs().contractForm),Bo(3),Zr("formControlName","contractRead"))}function m1(e,t){if(1&e){var n=as();es(0,"io-btn",23),ls("btnClick",(function(){return mn(n),fs().singContract()})),ts()}2&e&&Zr("moduleName","company")("action","update")("btnColor","btn-blue-bg")("btnText","Concordar e assinar")("btnTitle","Concordar e assinar")}function p1(e,t){1&e&&(es(0,"div"),es(1,"p",24),Gs(2,"Carregando o contrato..."),ts(),ts())}var g1,v1,y1,b1=((y1=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.databaseService=o,this.functionsService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.documentDatabase=u,this.companyData=null,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.modalSwap=!1,this.checkboxValidation=!1,this.titleService.setTitle("Contrato"),this.contractForm=this.formBuilder.group({contractRead:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.companyDatabase.getCompany(this.companyId,(function(t){t.error||(e.companyData=t.data.company[0],1==e.companyData.agree_terms&&e.router.navigate(["/home"]).then((function(){return!1})))})),this.downloadDocument()}},{key:"singContract",value:function(){var e=this;if(0!=this.contractForm.controls.contractRead.value){var t=this.storageService.decodeFromLocalStorage("userId");this.companyDatabase.putCompany(this.companyId,{agree_terms:1,user_id:t},(function(t){t.error||(e.storageService.removeLocalStorage("userProposalHash"),e.storageService.removeLocalStorage("userSellerCode"),e.router.navigate(["/home"],{state:{showModalWelcome:!0}}).then((function(){return!1})))}))}else this.functionsService.openSnackBar("\xc9 necess\xe1rio marcar a declara\xe7\xe3o de leitura e aceite.")}},{key:"downloadDocument",value:function(){var e=this;this.documentDatabase.getDocumentRegisterContract(0,{companyRegister:!0},(function(t){t.error||(e.document=t.data)}))}},{key:"showModalSwap",value:function(){this.modalSwap=!0}},{key:"hideModalSwap",value:function(){this.modalSwap=!1}},{key:"logout",value:function(){this.databaseService.logout()}}])}()).\u0275fac=function(e){return new(e||y1)($r(wp),$r(yM),$r(Mz),$r(tT),$r(zP),$r(JO),$r(YP),$r(hL),$r(c1))},y1.\u0275cmp=Ot({type:y1,selectors:[["io-company-page-free-test"]],decls:23,vars:8,consts:[[1,"container"],[1,"main","firstAccess"],[1,"flex","top"],[1,"logoBox"],["src","assets/img/logo-azul.png","alt","logo-Iopoint",1,"img-logo"],["title","Sair",1,"menuUserItem","clickPlace",3,"click"],["size","3x","title","Sair",1,"iconItem","iconSizeD","cl-blue","clickPlace","mrgR1",3,"icon"],[1,"sizeC","cl-blue"],[1,"constractBox"],[3,"actualStep"],[1,"sizeA","fontBold","center"],[1,"contractScrollBox","scrollbarEnable"],[3,"innerHTML"],["class","start mrgB2 mrgT2",3,"formGroup",4,"ngIf"],[1,"flex","end"],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick",4,"ngIf"],[4,"ngIf"],[1,"flex","end","cl-blue","clickPlace","pdgT2","mrgT2",3,"click"],[3,"showModal","goHome","hideModal"],[1,"start","mrgB2","mrgT2",3,"formGroup"],[1,"radioBox","sizeC","danger"],["type","checkbox",3,"formControlName"],[1,"checkmark","danger"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"sizeB"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),es(3,"div",3),ns(4,"img",4),ts(),es(5,"div",5),ls("click",(function(){return t.logout()})),ns(6,"fa-icon",6),es(7,"span",7),Gs(8,"Sair"),ts(),ts(),ts(),ts(),ts(),es(9,"div",0),es(10,"div",8),ns(11,"io-step-bar",9),es(12,"h2",10),Gs(13,"Contrato de uso"),ts(),es(14,"div",11),ns(15,"div",12),Jr(16,f1,5,2,"div",13),es(17,"div",14),Jr(18,m1,1,5,"io-btn",15),ts(),Jr(19,p1,3,0,"div",16),ts(),ts(),es(20,"span",17),ls("click",(function(){return t.showModalSwap()})),Gs(21,"Trocar de empresa"),ts(),ts(),es(22,"io-company-modal-swap",18),ls("hideModal",(function(){return t.hideModalSwap()})),ts()),2&e&&(Bo(6),Zr("icon",t.iconSolidService.faSignOutAlt),Bo(5),Zr("actualStep",3),Bo(4),Zr("innerHTML",t.document,fo),Bo(1),Zr("ngIf",null!=t.document),Bo(2),Zr("ngIf",null!=t.document),Bo(1),Zr("ngIf",null==t.document),Bo(3),Zr("showModal",t.modalSwap)("goHome",!0))},directives:[FD,h1,sh,KH,Hf,ip,Of,Vf,vp,jD],styles:[".main[_ngcontent-%COMP%]{margin:0}.logoBox[_ngcontent-%COMP%]{display:block;max-width:180px;margin:0 auto 0 50px}.menuUserItem[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}.menuUserItem[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:30px;margin-right:10px}.constractBox[_ngcontent-%COMP%]{max-width:80%;background-color:var(--secondary-color);padding:40px 70px;border-radius:3px}.constractBox[_ngcontent-%COMP%], .constractBox[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:10px auto 50px}.constractBox[_ngcontent-%COMP%]   .contractScrollBox[_ngcontent-%COMP%]{max-height:300px;overflow:auto;padding:0 5px 0 0;margin:0 0 30px;text-align:justify}.constractBox[_ngcontent-%COMP%]   .contractScrollBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0 0 10px}"]}),y1),_1=((v1=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.companyDatabase=n,this.functionsService=i,this.iconSolidService=o,this.storageService=a,this.showModal=!1,this.optionFree=!0,this.hideModal=new Mc,this.planSelected=new Mc,this.companyData=null,this.nextPaymentDate="",this.totalCost="00,00",this.companyFormPost=this.formBuilder.group({minimal_license:new Wm(10,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&this.companyDatabase.getCompanyConfiguration((function(t){if(!t.error){e.companyData=t.data.companyConfiguration;var n=e.functionsService.currentDateEN("0000-00-00","min"),i=n.slice(0,8)+e.companyData.due_date;parseInt(n.split("-")[2])>parseInt(e.companyData.due_date)&&(i=e.functionsService.getMonthAfterEN(i)),e.nextPaymentDate=e.functionsService.getFullDateBR(i),e.companyFormPost.get("minimal_license").setValue(e.companyData.minimal_license),e.calcTotal()}}))}},{key:"decreaseAmountCollaborator",value:function(){var e=this.companyFormPost.get("minimal_license").value;this.companyFormPost.get("minimal_license").setValue(e-1),this.validMinimalLicense()}},{key:"increaseAmountCollaborator",value:function(){var e=this.companyFormPost.get("minimal_license").value;this.companyFormPost.get("minimal_license").setValue(e+1),this.validMinimalLicense()}},{key:"validMinimalLicense",value:function(){var e=this.companyFormPost.get("minimal_license").value,t=this.companyData.active_license;e<1&&(this.companyFormPost.get("minimal_license").setValue("1"),this.functionsService.openSnackBar("N\xfamero m\xednimo de funcion\xe1rios!")),e<t&&(this.companyFormPost.get("minimal_license").setValue(t),this.functionsService.openSnackBar("Funcion\xe1rios ativos atualmente: "+t.toString())),this.calcTotal()}},{key:"calcTotal",value:function(){var e=this.companyFormPost.get("minimal_license").value||"0";this.totalCost=this.functionsService.toMoney(Math.round(1500*parseFloat(e))).toString()}},{key:"updatePlan",value:function(){this.companyDatabase.putCompanyConfiguration(this.companyData.id,{price:"15,00",free_days:"0"},(function(e){e.error||window.location.reload()})),this.closeModal()}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||v1)($r(wp),$r(Mz),$r(zP),$r(JO),$r(YP))},v1.\u0275cmp=Ot({type:v1,selectors:[["io-modal-hire"]],inputs:{showModal:"showModal",optionFree:"optionFree"},outputs:{hideModal:"hideModal",planSelected:"planSelected"},features:[dl],decls:33,vars:21,consts:[[3,"showModal","hideModal"],[1,"card","pdg2","mrgB2"],[1,"sizeA","fontUp","fontBold","cl-blue"],[1,"pdg2"],[1,"flex","top","mrgB2"],[1,"block"],[1,"sizeC"],[1,"plan","mrgT1","mrgB2"],[1,"sizeA","fontBold"],[1,"fontBold"],[1,"block",3,"formGroup"],[1,"flex","sizeC","mrgB1"],[1,"flex","mrgB2","center"],["size","3x","title","Reduzir n\xfamero de funcion\xe1rios",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],["mask","00000","autocomplete","off","id","minimal_license","required","","type","text",1,"inputPlan","collaboratorNumberBox",3,"formControlName","change"],["size","3x","title","Aumentar n\xfamero de funcion\xe1rios",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","fa-rotate-45",3,"icon","click"],[1,"sizeC","fontBold","mrgB2"],[1,"spacer"],[1,"flex"],[1,"btnSmall",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Assinar o sistema"),ts(),ns(4,"div",3),es(5,"div",4),es(6,"div",5),es(7,"span",6),Gs(8,"Plano Selecionado:"),ts(),es(9,"div",7),es(10,"span",8),es(11,"span",9),Gs(12,"R$ 15,00"),ts(),Gs(13," por funcion\xe1rio"),ts(),ts(),ts(),es(14,"div",10),es(15,"span",11),Gs(16,"N\xfamero de funcion\xe1rios:"),ts(),es(17,"div",12),es(18,"fa-icon",13),ls("click",(function(){return t.decreaseAmountCollaborator()})),ts(),es(19,"input",14),ls("change",(function(){return t.validMinimalLicense()})),ts(),es(20,"fa-icon",15),ls("click",(function(){return t.increaseAmountCollaborator()})),ts(),ts(),ts(),ts(),es(21,"h3",16),Gs(22,"Valor mensal "),es(23,"span",9),Gs(24),ts(),ts(),es(25,"h4",6),Gs(26,"Pr\xf3ximo pagamento:"),ts(),es(27,"span",6),Gs(28),ts(),ts(),ns(29,"div",17),es(30,"div",18),es(31,"io-btn",19),ls("btnClick",(function(){return t.closeModal()})),ts(),es(32,"io-btn",20),ls("btnClick",(function(){return t.updatePlan()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(14),Zr("formGroup",t.companyFormPost),Bo(4),Zr("icon",t.iconSolidService.faMinus),Bo(1),Zr("formControlName","minimal_license"),Bo(1),Zr("icon",t.iconSolidService.faTimes),Bo(4),Qs("R$",t.totalCost,""),Bo(4),$s(t.nextPaymentDate),Bo(3),Zr("moduleName","company")("action","")("btnClassList","btnSmall")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","company")("action","")("btnClassList","btnSmall")("btnColor","btn-blue-bg")("btnText","Assinar")("btnTitle","Assinar")("useValidation",!1))},directives:[CE,Hf,ip,FD,If,DE,bp,Vf,vp,jD],styles:[".spacer[_ngcontent-%COMP%]{height:50px}.flex[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:90px;margin-left:10px;text-align:center}.flex[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .collaboratorNumberBox[_ngcontent-%COMP%]{width:auto;min-width:30px;text-align:center;padding:1px 5px;border:1px solid var(--terceary-color);margin:0}"]}),v1),k1=((g1=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.databaseService=o,this.functionsService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.modalPlan=!1,this.modalSwap=!1,this.planSelected=[["free","0"],["starter","5,00"],["basic","15,00"],["pro","30,00"]],this.titleService.setTitle("Per\xedodo de teste expirado"),this.companyForm=this.formBuilder.group({plan:new Wm("",[Jf.required]),price:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.companyDatabase.getCompanyConfiguration((function(t){t.error||0==(t=t.data.companyConfiguration).final_countdown&&0!=t.free_days||e.router.navigate(["/home"]).then((function(){return!1}))}))}},{key:"showModalPlan",value:function(){this.modalPlan=!0}},{key:"selectPlan",value:function(e){for(var t=0;t<this.planSelected.length;t++)this.planSelected[t][0].toString().toLowerCase()==e.toString().toLowerCase()&&(this.companyForm.controls.plan.setValue(this.planSelected[t][0]),this.companyForm.controls.price.setValue(this.planSelected[t][1].split(",").join(".")),this.putCompanyConfig())}},{key:"putCompanyConfig",value:function(){var e=this;this.companyDatabase.putCompany(this.companyId,this.companyForm.value,(function(t){t.error||e.router.navigate(["/home"]).then((function(){return!1}))}))}},{key:"hideModalPlan",value:function(){this.modalPlan=!1}},{key:"showModalSwap",value:function(){this.modalSwap=!0}},{key:"hideModalSwap",value:function(){this.modalSwap=!1}},{key:"logout",value:function(){this.databaseService.logout()}}])}()).\u0275fac=function(e){return new(e||g1)($r(wp),$r(yM),$r(Mz),$r(tT),$r(zP),$r(JO),$r(YP),$r(hL))},g1.\u0275cmp=Ot({type:g1,selectors:[["io-company-page-free-test"]],decls:25,vars:11,consts:[[1,"container"],[1,"flex","end"],["title","Sair",1,"menuUserItem","clickPlace",3,"click"],["size","3x","title","Sair",1,"iconItem","iconSizeD","cl-blue","clickPlace","mrgR1",3,"icon"],[1,"sizeC","cl-blue"],[1,"main"],[1,"espiredBox"],["size","7x",1,"iconItem","cl-red",3,"icon"],[1,"sizeS"],[1,"sizeC"],[1,"btnBox"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"flex","end","cl-blue","clickPlace","pdgT2","mrgT2",3,"click"],[3,"showModal","goHome","hideModal"],[3,"showModal","optionFree","planSelected","hideModal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ls("click",(function(){return t.logout()})),ns(3,"fa-icon",3),es(4,"span",4),Gs(5,"Sair"),ts(),ts(),ts(),ts(),es(6,"div",0),es(7,"div",5),es(8,"div",6),ns(9,"fa-icon",7),es(10,"h2",8),Gs(11,"Seu teste gr\xe1tis expirou!"),ts(),es(12,"p",9),Gs(13,"A assinatura do seu "),es(14,"b"),Gs(15,"plano de teste"),ts(),Gs(16," expirou."),ts(),es(17,"p"),Gs(18,"Para continuar utilizando a iopoint escolha um dos nossos planos."),ts(),es(19,"div",10),es(20,"io-btn",11),ls("btnClick",(function(){return t.showModalPlan()})),ts(),ts(),ts(),es(21,"span",12),ls("click",(function(){return t.showModalSwap()})),Gs(22,"Trocar de empresa"),ts(),ts(),ts(),es(23,"io-company-modal-swap",13),ls("hideModal",(function(){return t.hideModalSwap()})),ts(),es(24,"io-modal-hire",14),ls("planSelected",(function(e){return t.selectPlan(e)}))("hideModal",(function(){return t.hideModalPlan()})),ts()),2&e&&(Bo(3),Zr("icon",t.iconSolidService.faSignOutAlt),Bo(6),Zr("icon",t.iconSolidService.faExclamationTriangle),Bo(11),Zr("moduleName","company")("action","update")("btnColor","btn-blue-bg")("btnText","Assinar agora")("btnTitle","Assinar agora"),Bo(3),Zr("showModal",t.modalSwap)("goHome",!0),Bo(1),Zr("showModal",t.modalPlan)("optionFree",!1))},directives:[FD,jD,KH,_1],styles:[".menuUserItem[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin:20px 0 10px}.menuUserItem[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:30px;margin-right:10px}.espiredBox[_ngcontent-%COMP%]{text-align:center;margin:150px 0 0}.espiredBox[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:10px auto 50px}.espiredBox[_ngcontent-%COMP%]   .btnBox[_ngcontent-%COMP%]{margin:40px auto 20px}.espiredBox[_ngcontent-%COMP%]   .btnBox[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:10px auto 0}"]}),g1);function C1(e,t){if(1&e){var n=as();es(0,"div",21),es(1,"io-interval-selector",22),ls("firstDateSelected",(function(e){return mn(n),fs().setBeginDate(e)}))("secondDateSelected",(function(e){return mn(n),fs().setEndDate(e)})),ts(),ts()}2&e&&(Bo(1),Zr("minDate","2020-01-01")("firstDateLabel","Data inicial")("secondDateLabel","Data final"))}function w1(e,t){1&e&&(es(0,"h3",23),Gs(1,"Data Cadastro"),ts())}function x1(e,t){1&e&&(es(0,"h3",23),Gs(1,"Data Inativa\xe7\xe3o"),ts())}function M1(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.id)}}function S1(e,t){if(1&e&&(es(0,"span",32),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.created_at.split(" ")[0].split("-").reverse().join("/"))}}function P1(e,t){if(1&e&&(es(0,"span",32),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(null!=n.end_date?n.end_date.split(" ")[0].split("-").reverse().join("/"):"-")}}function T1(e,t){if(1&e&&(es(0,"li",24),es(1,"span",25),Jr(2,M1,2,1,"span",26),Gs(3),ts(),es(4,"span",25),Gs(5),_c(6,"mask"),ts(),es(7,"span",27),Gs(8),ts(),Jr(9,S1,2,1,"span",28),Jr(10,P1,2,1,"span",28),es(11,"span",29),ns(12,"io-icon",30),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),Qs(" ",n.trading_name,""),Bo(2),$s(Cc(6,11,n.national_registry,i.getItemMask(n.national_registry))),Bo(3),$s(0==n.status?"Inativa":"Ativa"),Bo(1),Zr("ngIf",i.isSupport||i.isDev),Bo(1),Zr("ngIf",i.isSupport||i.isDev),Bo(2),Zr("moduleName","company")("action","update")("iconTitle","Editar empresa")("urlNavigation","company-update/"+n.id)("useValidation",!1)}}function O1(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function L1(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 outra empresa cadastrada."),ts())}function D1(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma empresa encontrada."),ts())}function I1(e,t){if(1&e&&(es(0,"li"),Jr(1,O1,2,0,"p",18),Jr(2,L1,2,0,"p",18),Jr(3,D1,2,0,"p",18),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.companyListFilteredSearch.length>0&&n.companyList[0].loading),Bo(1),Zr("ngIf",n.companyListFilteredSearch.length>0&&!n.companyList[0].loading&&n.inputText.length>0),Bo(1),Zr("ngIf",0==n.companyListFilteredSearch.length)}}function F1(e,t){if(1&e&&(es(0,"span",33),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs("",n.companyListFilteredSearch.length," empresa(s) encontrada(s).")}}var A1,E1=((A1=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.databaseService=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.titleService=u,this.companyList=[{loading:!0}],this.companyListFilteredStatus=[],this.companyListFilteredSearch=[],this.paginationData=null,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.companyStatus=1,this.resetFilter=new Mc,this.inputText="",this.beginDateSelected="",this.endDateSelected="",this.currentPage=1,this.titleService.setTitle("Empresas"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm(1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getCompanyList(),this.resetFilter.emit()}},{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getCompanyList()}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e,this.getCompanyList()}},{key:"setEndDate",value:function(e){this.endDateSelected=e,this.getCompanyList()}},{key:"validGetList",value:function(){return!(""==this.beginDateSelected||""==this.endDateSelected)}},{key:"getCompanyList",value:function(){(!this.isDev&&!this.isSupport||this.validGetList())&&(this.validGetList(),(this.isDev||this.isSupport)&&this.validGetList()?new Date(this.beginDateSelected)<new Date(this.endDateSelected)&&this.requestCompanyList():this.requestCompanyList())}},{key:"requestCompanyList",value:function(){var e=this;this.companyDatabase.getCompanyList({filterText:this.inputText,page:this.currentPage.toString(),status:this.companyStatus,beginDate:this.beginDateSelected,endDate:this.endDateSelected},(function(t){t.error||(e.companyListFilteredSearch=t.data.companyList.data||[],e.paginationData=t.data.companyList||[],e.companyListFilteredStatus=e.companyListFilteredSearch,e.resetFilter.emit())}))}},{key:"filterCompanyStatus",value:function(){var e=this.searchForm.controls.status.value;1==e&&(this.companyStatus=1,this.getCompanyList()),0==e&&(this.companyStatus=0,this.getCompanyList()),"all"==e&&(this.companyStatus=3,this.getCompanyList(),this.companyListFilteredStatus=this.companyList)}},{key:"getItemMask",value:function(e){return 11==(e=this.functionsService.removeSings(e)).length?"000.000.000-00":12==e.length?"00.000.00000/00":"00.000.000/0000-00"}},{key:"orderBy",value:function(e){this.companyList=this.functionsService.arrayReOder(this.companyList,e),this.filterCompanyStatus()}}])}()).\u0275fac=function(e){return new(e||A1)($r(wp),$r(yM),$r(Mz),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},A1.\u0275cmp=Ot({type:A1,selectors:[["io-company-page-list"]],decls:30,vars:18,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],["class","wdMax25 mrgB2",4,"ngIf"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"ngClass"],[1,"flex","spcDesk","listAlign","listHeader"],[1,"item","sizeC","fontBold",3,"click"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],["class","item sizeC internal fontBold center",4,"ngIf"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],["class","flex start sizeC pdgT1 internal",4,"ngIf"],[1,"wdMax25","mrgB2"],[1,"flex","mrgL2","internal",3,"minDate","firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"item","sizeC","internal","fontBold","center"],[1,"flex","bg-white","listAlign"],[1,"item","sizeC"],["class","item sizeC internal",4,"ngIf"],[1,"item","sizeC","pdgL1"],["class","item sizeC internal center",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconTitle","urlNavigation","useValidation"],[1,"item","sizeC","internal"],[1,"item","sizeC","internal","center"],[1,"flex","start","sizeC","pdgT1","internal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),Jr(3,C1,2,3,"div",3),es(4,"div",4),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(6,"div",6),es(7,"div",7),es(8,"h3",8),ls("click",(function(){return t.orderBy("trading_name")})),Gs(9,"Empresa"),ts(),es(10,"h3",9),Gs(11,"CNPJ/CPF"),ts(),es(12,"div",10),es(13,"select",11),ls("change",(function(){return t.filterCompanyStatus()})),es(14,"option",12),Gs(15,"Todas"),ts(),es(16,"option",12),Gs(17,"Inativa"),ts(),es(18,"option",13),Gs(19,"Ativa"),ts(),ts(),ns(20,"fa-icon",14),ts(),Jr(21,w1,2,0,"h3",15),Jr(22,x1,2,0,"h3",15),es(23,"h3",9),Gs(24,"A\xe7\xe3o"),ts(),ts(),es(25,"ul",16),Jr(26,T1,13,14,"li",17),Jr(27,I1,4,3,"li",18),ts(),es(28,"io-pagination",19),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),Jr(29,F1,2,1,"span",20),ts(),ts(),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchForm),Bo(1),Zr("moduleName","company")("titleTop","Empresa")("showBtn",!0)("btnDataUrl","company-register"),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(3),Zr("ngClass",t.isSupport||t.isDev?"isSupport":""),Bo(7),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",0),Bo(2),Zr("value",1),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(1),Zr("ngIf",t.isSupport||t.isDev),Bo(4),Zr("ngForOf",t.companyListFilteredSearch),Bo(1),Zr("ngIf",0==t.companyListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("ngIf",t.isSupport||t.isDev))},directives:[Hf,ip,eI,sh,oE,ih,vm,bp,Vf,vp,ym,xm,FD,ah,hE,ZA,BB],pipes:[IE],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:25%;margin:0;text-align:right}.isSupport[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:40%}.isSupport[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:20%}.isSupport[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .isSupport[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%}.isSupport[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:15%}.isSupport[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:5%;margin:0;text-align:right}"]}),A1);function B1(e,t){1&e&&ns(0,"io-step-bar",4),2&e&&Zr("actualStep",fs().step+1)}function N1(e,t){1&e&&(es(0,"div",5),ns(1,"img",6),ts())}function R1(e,t){if(1&e){var n=as();es(0,"div",7),es(1,"label"),Gs(2,"Digite o CNPJ"),ts(),es(3,"div",8),es(4,"div",9),es(5,"input",10,11),ls("change",(function(){mn(n);var e=Gr(6);return fs().validMask(e.value)})),ts(),es(7,"label",12),Gs(8),ts(),ts(),ts(),es(9,"div",13),es(10,"io-btn",14),ls("btnClick",(function(){return mn(n),fs().btnBack()})),ts(),es(11,"io-btn",15),ls("btnClick",(function(){return mn(n),fs().verifyCnpjCpf()})),ts(),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("ngClass",0==i.firstCompany?"minHeightBox":""),Bo(2),Es(i.stateFields.national_registry.class),Zr("formControlName","national_registry")("mask",i.nationalRegistryMask),Bo(3),$s(i.nationalRegistryText),Bo(2),Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText",i.companyIdStorage?"Cancelar":"Sair")("btnTitle",i.companyIdStorage?"Cancelar":"Sair")("useValidation",!1),Bo(1),Zr("moduleName","company")("action","create")("btnColor","btn-blue-bg")("btnText","Continuar")("btnTitle","Continuar")}}function j1(e,t){if(1&e&&(es(0,"span",87),Gs(1),ts()),2&e){var n=fs(3);Bo(1),Qs("R$ ",null!=n.planProposal?n.planProposal:"15,00","")}}function z1(e,t){1&e&&(es(0,"span",98),Gs(1," Por funcion\xe1rio."),ts())}function V1(e,t){if(1&e){var n=as();es(0,"fa-icon",99),ls("click",(function(){return mn(n),fs(3).decreaseAmountCollaborator()})),ts()}2&e&&Zr("icon",fs(3).iconSolidService.faMinus)}function H1(e,t){if(1&e){var n=as();es(0,"input",100),ls("change",(function(){return mn(n),fs(3).validMinimalLicense()})),ts()}2&e&&Zr("formControlName","minimal_license")}function Y1(e,t){if(1&e&&(es(0,"span",101),Gs(1),ts()),2&e){var n=fs(3);Bo(1),$s(n.companyFormPost.get("minimal_license").value)}}function q1(e,t){if(1&e){var n=as();es(0,"fa-icon",102),ls("click",(function(){return mn(n),fs(3).increaseAmountCollaborator()})),ts()}2&e&&Zr("icon",fs(3).iconSolidService.faTimes)}function U1(e,t){1&e&&(es(0,"span",85),Gs(1,"N\xe3o solicitamos cart\xe3o de cr\xe9dito."),ts())}function W1(e,t){if(1&e&&(es(0,"span",85),Gs(1,"Valor mensal "),es(2,"span",103),Gs(3),ts(),ts()),2&e){var n=fs(3);Bo(3),Qs("R$ ",n.totalCost,"")}}function J1(e,t){if(1&e){var n=as();es(0,"span",106),ls("click",(function(){return mn(n),fs(4).selectPlan("")})),Gs(1,"Assinar agora"),ts()}}function G1(e,t){if(1&e){var n=as();es(0,"span",106),ls("click",(function(){return mn(n),fs(4).selectPlan("free")})),Gs(1,"Teste por 7 dias"),ts()}}function $1(e,t){if(1&e&&(es(0,"span",104),Jr(1,J1,2,0,"span",105),Jr(2,G1,2,0,"span",105),ts()),2&e){var n=fs(3);Bo(1),Zr("ngIf",n.planFree),Bo(1),Zr("ngIf",!n.planFree)}}function Q1(e,t){if(1&e&&(es(0,"div",82),es(1,"div",83),es(2,"div",84),es(3,"span",85),Gs(4,"Plano Selecionado:"),ts(),es(5,"div",86),es(6,"span",87),Gs(7),ts(),Jr(8,j1,2,1,"span",88),Jr(9,z1,2,0,"span",89),ts(),ts(),es(10,"div",90),es(11,"span",91),Gs(12,"N\xfamero de funcion\xe1rios:"),ts(),es(13,"div"),Jr(14,V1,1,1,"fa-icon",92),Jr(15,H1,1,1,"input",93),Jr(16,Y1,2,1,"span",94),Jr(17,q1,1,1,"fa-icon",95),ts(),ts(),ts(),Jr(18,U1,2,0,"span",96),Jr(19,W1,4,1,"span",96),Jr(20,$1,3,2,"span",97),ts()),2&e){var n=fs(2);Bo(7),Qs("",n.planFree?"Teste Gr\xe1tis":""," "),Bo(1),Zr("ngIf",!n.planFree),Bo(1),Zr("ngIf",!n.planFree),Bo(1),Zr("formGroup",n.companyFormPost),Bo(3),Xs("flex mrgB2 ",n.planProposal?"center":"",""),Bo(1),Zr("ngIf",!n.planProposal),Bo(1),Zr("ngIf",!n.planProposal),Bo(1),Zr("ngIf",n.planProposal),Bo(1),Zr("ngIf",!n.planProposal),Bo(1),Zr("ngIf",n.planFree),Bo(1),Zr("ngIf",!n.planFree),Bo(1),Zr("ngIf",null==n.planProposal&&n.firstCompany)}}function K1(e,t){1&e&&(es(0,"label"),Gs(1,"Complete seu cadastro"),ts())}function Z1(e,t){1&e&&(es(0,"label",107),Gs(1,"Edi\xe7\xe3o do cadastro da empresa"),ts())}function X1(e,t){if(1&e){var n=as();es(0,"div",13),es(1,"div",9),es(2,"input",108),ls("keyup",(function(){return mn(n),fs(2).checkErrorField("name")})),ts(),es(3,"label",109),Gs(4,"Raz\xe3o social"),ts(),ts(),es(5,"div",9),es(6,"input",110),ls("keyup",(function(){return mn(n),fs(2).checkErrorField("trading_name")})),ts(),es(7,"label",111),Gs(8,"Nome Fantasia"),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(2),Es(i.stateFields.name.class),Zr("formControlName","name"),Bo(4),Es(i.stateFields.trading_name.class),Zr("formControlName","trading_name")}}function e0(e,t){if(1&e){var n=as();es(0,"div",13),es(1,"div",9),es(2,"input",112),ls("keyup",(function(){return mn(n),fs(2).checkErrorField("trading_name")})),ts(),es(3,"label",113),Gs(4,"Nome"),ts(),ts(),es(5,"div",9),ns(6,"input",114),es(7,"label",115),Gs(8,"CEI/CAEPF/CNO"),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(2),Es(i.stateFields.trading_name.class),Zr("formControlName","trading_name"),Bo(4),Zr("formControlName","cei")}}function t0(e,t){if(1&e&&(es(0,"div",13),es(1,"div",9),ns(2,"input",116),es(3,"label",117),Gs(4,"Inscri\xe7\xe3o Estadual"),ts(),ts(),ts()),2&e){var n=fs(2);Bo(2),Es(n.stateFields.state_id.class),Zr("formControlName","state_id")}}function n0(e,t){if(1&e){var n=as();es(0,"io-btn",14),ls("btnClick",(function(){mn(n);var e=fs(2);return e.step=e.step-1})),ts()}2&e&&Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText","Voltar")("btnTitle","Voltar")("useValidation",!1)}function i0(e,t){1&e&&ns(0,"io-btn",118),2&e&&Zr("moduleName","company")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1)("urlNavigation","company")}function o0(e,t){if(1&e){var n=as();es(0,"div",7),Jr(1,Q1,21,14,"div",16),Jr(2,K1,2,0,"label",17),Jr(3,Z1,2,0,"label",18),es(4,"div",19),Jr(5,X1,9,8,"div",20),Jr(6,e0,9,5,"div",20),es(7,"div",13),es(8,"div",9),es(9,"input",21),ls("keyup",(function(){return mn(n),fs().checkErrorField("phone")})),ts(),es(10,"label",22),Gs(11,"Telefone"),ts(),ts(),es(12,"div",9),es(13,"input",23),ls("keyup",(function(){return mn(n),fs().checkErrorField("email")})),ts(),es(14,"label",24),Gs(15,"E-mail"),ts(),ts(),ts(),es(16,"div",13),es(17,"div",9),es(18,"input",25),ls("keyup",(function(){return mn(n),fs().checkErrorField("zip_code")}))("change",(function(){return mn(n),fs().searchCep()})),ts(),es(19,"label",26),Gs(20,"CEP"),ts(),ts(),es(21,"div",9),es(22,"input",27),ls("keyup",(function(){return mn(n),fs().checkErrorField("state")})),ts(),es(23,"label",28),Gs(24,"Estado"),ts(),ts(),ts(),es(25,"div",13),es(26,"div",9),es(27,"input",29),ls("keyup",(function(){return mn(n),fs().checkErrorField("city")})),ts(),es(28,"label",30),Gs(29,"Cidade"),ts(),ts(),es(30,"div",9),es(31,"input",31),ls("keyup",(function(){return mn(n),fs().checkErrorField("neighborhood")})),ts(),es(32,"label",32),Gs(33,"Bairro"),ts(),ts(),ts(),es(34,"div",13),es(35,"div",9),es(36,"input",33),ls("keyup",(function(){return mn(n),fs().checkErrorField("address")})),ts(),es(37,"label",34),Gs(38,"Endere\xe7o"),ts(),ts(),es(39,"div",9),es(40,"input",35),ls("keyup",(function(){return mn(n),fs().checkErrorField("address_number")})),ts(),es(41,"label",36),Gs(42,"N\xfamero"),ts(),ts(),ts(),es(43,"div",13),es(44,"div",9),ns(45,"input",37),es(46,"label",38),Gs(47,"Complemento"),ts(),ts(),es(48,"div",9),es(49,"select",39),ls("keyup",(function(){return mn(n),fs().checkErrorField("timezone")})),es(50,"option",40),Gs(51,"GMT -12:00"),ts(),es(52,"option",41),Gs(53,"GMT -11:00"),ts(),es(54,"option",42),Gs(55,"GMT -10:00 (Hor\xe1rio Padr\xe3o do Hava\xed-Aleutas)"),ts(),es(56,"option",43),Gs(57,"GMT -09:30 (Hor\xe1rio das Ilhas Marquesas)"),ts(),es(58,"option",44),Gs(59,"GMT -09:00 (Hor\xe1rio Padr\xe3o do Alasca)"),ts(),es(60,"option",45),Gs(61,"GMT -08:00 (Hor\xe1rio Padr\xe3o do Pac\xedfico)"),ts(),es(62,"option",46),Gs(63,"GMT -07:00 (Hor\xe1rio Padr\xe3o da Montanha)"),ts(),es(64,"option",47),Gs(65,"GMT -06:00 (Hor\xe1rio Padr\xe3o Central)"),ts(),es(66,"option",48),Gs(67,"GMT -05:00 (Hor\xe1rio Padr\xe3o Oriental)"),ts(),es(68,"option",49),Gs(69,"GMT -04:00 (Hor\xe1rio Padr\xe3o do Atl\xe2ntico)"),ts(),es(70,"option",50),Gs(71,"GMT -03:30 (Hor\xe1rio Padr\xe3o de Terra Nova)"),ts(),es(72,"option",51),Gs(73,"GMT -03:00 (Hor\xe1rio de Bras\xedlia, Hor\xe1rio da Argentina)"),ts(),es(74,"option",52),Gs(75,"GMT -02:00 (Hor\xe1rio da Ge\xf3rgia do Sul e Ilhas Sandwich do Sul)"),ts(),es(76,"option",53),Gs(77,"GMT -01:00 (Hor\xe1rio Padr\xe3o dos A\xe7ores, Hor\xe1rio de Cabo Verde)"),ts(),es(78,"option",54),Gs(79,"GMT +00:00 (Hor\xe1rio do Meridiano de Greenwich, Hor\xe1rio da Europa Ocidental)"),ts(),es(80,"option",55),Gs(81,"GMT +01:00 (Hor\xe1rio da Europa Central)"),ts(),es(82,"option",56),Gs(83,"GMT +02:00 (Hor\xe1rio da Europa Oriental, Hor\xe1rio da \xc1frica Central)"),ts(),es(84,"option",57),Gs(85,"GMT +03:00 (Hor\xe1rio de Moscou, Hor\xe1rio da \xc1frica Oriental)"),ts(),es(86,"option",58),Gs(87,"GMT +03:30 (Hor\xe1rio Padr\xe3o do Ir\xe3)"),ts(),es(88,"option",59),Gs(89,"GMT +04:00 (Hor\xe1rio Padr\xe3o do Golfo, Hor\xe1rio de Samara)"),ts(),es(90,"option",60),Gs(91,"GMT +04:30 (Hor\xe1rio do Afeganist\xe3o)"),ts(),es(92,"option",61),Gs(93,"GMT +05:00 (Hor\xe1rio Padr\xe3o do Paquist\xe3o, Hor\xe1rio de Ecaterimburgo)"),ts(),es(94,"option",62),Gs(95,"GMT +05:30 (Hor\xe1rio Padr\xe3o da \xcdndia, Hor\xe1rio do Sri Lanka)"),ts(),es(96,"option",63),Gs(97,"GMT +05:45 (Hor\xe1rio do Nepal)"),ts(),es(98,"option",64),Gs(99,"GMT +06:00 (Hor\xe1rio Padr\xe3o de Bangladesh, Hor\xe1rio do But\xe3o, Hor\xe1rio de Omsk)"),ts(),es(100,"option",65),Gs(101,"GMT +06:30 (Hor\xe1rio das Ilhas Cocos, Hor\xe1rio de Mianmar)"),ts(),es(102,"option",66),Gs(103,"GMT +07:00 (Hor\xe1rio da Indochina, Hor\xe1rio de Krasnoyarsk)"),ts(),es(104,"option",67),Gs(105,"GMT +08:00 (Hor\xe1rio Padr\xe3o da China, Hor\xe1rio Padr\xe3o da Austr\xe1lia Ocidental, Hor\xe1rio de Irkutsk)"),ts(),es(106,"option",68),Gs(107,"GMT +08:45 (Hor\xe1rio Padr\xe3o da Austr\xe1lia Centro-Ocidental)"),ts(),es(108,"option",69),Gs(109,"GMT +09:00 (Hor\xe1rio Padr\xe3o do Jap\xe3o, Hor\xe1rio Padr\xe3o da Coreia, Hor\xe1rio de Chita)"),ts(),es(110,"option",70),Gs(111,"GMT +09:30 (Hor\xe1rio Padr\xe3o da Austr\xe1lia Central)"),ts(),es(112,"option",71),Gs(113,"GMT +10:00 (Hor\xe1rio Padr\xe3o da Austr\xe1lia Oriental, Hor\xe1rio de Vladivostok)"),ts(),es(114,"option",72),Gs(115,"GMT +10:30 (Hor\xe1rio Padr\xe3o da Ilha Lord Howe)"),ts(),es(116,"option",73),Gs(117,"GMT +11:00 (Hor\xe1rio das Ilhas Salom\xe3o, Hor\xe1rio de Srednekolymsk)"),ts(),es(118,"option",74),Gs(119,"GMT +12:00 (Hor\xe1rio de Fiji, Hor\xe1rio Padr\xe3o da Nova Zel\xe2ndia, Hor\xe1rio de Kamchatka)"),ts(),es(120,"option",75),Gs(121,"GMT +12:45 (Hor\xe1rio Padr\xe3o das Ilhas Chatham)"),ts(),es(122,"option",76),Gs(123,"GMT +13:00 (Hor\xe1rio de Tonga, Hor\xe1rio das Ilhas Phoenix, Hor\xe1rio Padr\xe3o de Samoa)"),ts(),es(124,"option",77),Gs(125,"GMT +14:00 (Hor\xe1rio das Ilhas da Linha)"),ts(),ts(),es(126,"label",78),Gs(127,"Fuso hor\xe1rio"),ts(),ns(128,"fa-icon",79),ts(),ts(),Jr(129,t0,5,4,"div",20),ts(),es(130,"div",13),Jr(131,n0,1,6,"io-btn",80),Jr(132,i0,1,7,"io-btn",81),es(133,"io-btn",15),ls("btnClick",(function(){return mn(n),fs().sendCompanyForm()})),ts(),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("ngIf",0==i.updateOn),Bo(1),Zr("ngIf",0==i.updateOn),Bo(1),Zr("ngIf",1==i.updateOn),Bo(2),Zr("ngIf",i.usingCNPJ),Bo(1),Zr("ngIf",!i.usingCNPJ),Bo(3),Es(i.stateFields.phone.class),Zr("formControlName","phone"),Bo(4),Es(i.stateFields.email.class),Zr("formControlName","email"),Bo(5),Es(i.stateFields.zip_code.class),Zr("formControlName","zip_code"),Bo(4),Es(i.stateFields.state.class),Zr("formControlName","state"),Bo(5),Es(i.stateFields.city.class),Zr("formControlName","city"),Bo(4),Es(i.stateFields.neighborhood.class),Zr("formControlName","neighborhood"),Bo(5),Es(i.stateFields.address.class),Zr("formControlName","address"),Bo(4),Es(i.stateFields.address_number.class),Zr("formControlName","address_number"),Bo(5),Es(i.stateFields.complement.class),Zr("formControlName","complement"),Bo(4),Es(i.stateFields.timezone.class),Zr("formControlName","timezone"),Bo(79),Zr("icon",i.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",i.usingCNPJ),Bo(2),Zr("ngIf",!i.updateOn),Bo(1),Zr("ngIf",i.updateOn),Bo(1),Zr("moduleName","company")("action",i.companyId?"update":"create")("btnColor","btn-blue-bg")("btnText",i.companyId?"Salvar":"Cadastrar")("btnTitle",i.companyId?"Salvar":"Cadastrar")}}var a0,r0=((a0=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.companyService=o,this.databaseService=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.storageService=u,this.systemService=d,this.validService=h,this.updateOn=!1,this.companyId="",this.proposalHash=this.storageService.decodeFromLocalStorage("userProposalHash"),this.proposalCode=this.storageService.decodeFromLocalStorage("userSellerCode"),this.companyIdStorage=this.storageService.decodeFromLocalStorage("companyId"),this.firstCompany=!1,this.nationalRegistryMask="00.000.000/0000-00",this.nationalRegistryText="CNPJ",this.planFree=!1,this.planProposal=null,this.registerVerify=0,this.stateFields={national_registry:{class:""},name:{class:""},trading_name:{class:""},state_id:{class:""},phone:{class:""},zip_code:{class:""},address_number:{class:""},address:{class:""},neighborhood:{class:""},city:{class:""},state:{class:""},timezone:{class:""},email:{class:""},company_id:{class:""},complement:{class:""}},this.step=1,this.totalCost="00,00",this.usingCNPJ=!0,this.companyForm=this.formBuilder.group({national_registry:new Wm("",[Jf.required]),name:new Wm("",[Jf.required]),trading_name:new Wm("",[Jf.required]),state_id:new Wm("",[Jf.required]),phone:new Wm("",[Jf.required]),zip_code:new Wm("",[Jf.required]),address:new Wm("",[Jf.required]),address_number:new Wm("",[Jf.required]),complement:new Wm("",[Jf.required]),neighborhood:new Wm("",[Jf.required]),city:new Wm("",[Jf.required]),state:new Wm("",[Jf.required]),timezone:new Wm("-03:00",[Jf.required]),email:new Wm("",[Jf.required]),company_id:new Wm(null,[Jf.required]),cei:new Wm("",[Jf.required]),company_data:new Wm("",[Jf.required])}),this.companyFormPost=this.formBuilder.group({management_system_id:new Wm(1,[Jf.required]),due_date:new Wm("07",[Jf.required]),minimal_license:new Wm(10,[Jf.required]),price:new Wm("15,00",[Jf.required]),partner_id:new Wm(null,[Jf.required]),pre_sale_id:new Wm(null,[Jf.required]),seller_id:new Wm(null,[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;1==this.updateOn&&(this.step=2,this.companyDatabase.getCompany(this.companyId,(function(t){t.error||(Object.keys(e.companyForm.controls).forEach((function(n){e.companyForm.controls[n].setValue(t.data.company[0][n])})),t.data.company[0].national_registry.length<13&&(e.usingCNPJ=!1))}))),null!=this.proposalCode&&this.getSellerData(this.proposalCode),null!=this.proposalHash&&this.databaseService.getProposalData(this.proposalHash,(function(t){t.error||(t=t.data,e.companyFormPost.get("management_system_id").setValue(t.proposal.management_system_id),e.companyFormPost.get("due_date").setValue(t.proposal.due_date||"10"),e.companyFormPost.get("minimal_license").setValue(t.proposal.minimal_license),e.companyFormPost.get("partner_id").setValue(t.proposal.partner_id),e.companyFormPost.get("pre_sale_id").setValue(t.proposal.pre_sale_id),e.companyFormPost.get("seller_id").setValue(t.proposal.seller_id),e.companyFormPost.get("price").setValue(t.proposal.price.toString()),e.planProposal=t.proposal.price.toString().split(".").join(","),e.planFree=!1,e.calcTotal())})),this.storageService.decodeFromLocalStorage("companyId")||(this.firstCompany=!0,this.selectPlan("free")),this.calcTotal()}},{key:"getSellerData",value:function(e){var t=this;e.includes("f")?this.databaseService.getFranchiseSellerData(e,(function(e){t.companyFormPost.get("management_system_id").setValue(2),t.handleSellerData(e)})):this.databaseService.getAdmSellerData(e,(function(e){t.companyFormPost.get("management_system_id").setValue(1),t.handleSellerData(e)}))}},{key:"handleSellerData",value:function(e){e.error||(this.companyFormPost.get("seller_id").setValue(e.data.seller.id),this.companyFormPost.get("seller_code").setValue(e.data.seller.code))}},{key:"validMask",value:function(e){11==(e=this.functionsService.removeSings(e)).length&&(this.nationalRegistryMask="000.000.000-00",this.nationalRegistryText="CPF"),e.length>11&&(this.nationalRegistryMask="00.000.000/0000-00",this.nationalRegistryText="CNPJ")}},{key:"verifyCnpjCpf",value:function(){this.checkErrorField("national_registry");var e=this.functionsService.removeSings(this.companyForm.get("national_registry").value);this.usingCNPJ=!1,11==e.length&&this.validCpf(e),(e.length<11||e.length>12)&&(this.usingCNPJ=!0,this.searchCnpj(e))}},{key:"searchCnpj",value:function(e){var t=this;this.validService.validCNPJ(e)?this.companyDatabase.getCnpj(e,(function(n){if(!n.error)if(null!=(n=n.data)){if(t.companyForm.controls.national_registry.setValue(e),t.companyForm.controls.name.setValue(n.nome),t.companyForm.controls.trading_name.setValue(n.fantasia),null!=n.telefone){var i=n.telefone.split("/")[0];t.companyForm.controls.phone.setValue(i)}t.companyForm.controls.zip_code.setValue(n.cep),t.companyForm.controls.email.setValue(n.email),t.companyForm.controls.address_number.setValue(n.numero),t.companyForm.controls.neighborhood.setValue(n.bairro),t.companyForm.controls.complement.setValue(n.complemento),t.companyForm.controls.address.setValue(n.logradouro),t.companyForm.controls.city.setValue(n.cidade),t.companyForm.controls.state.setValue(n.estado),t.companyForm.controls.company_data.setValue(n),t.step=2}else t.functionsService.openSnackBar("CNPJ n\xe3o autenticado")})):this.functionsService.openSnackBar("invalidCnpj","error")}},{key:"validCpf",value:function(e){var t=this;this.validService.validCPF(e)?this.companyDatabase.getCnpj(e,(function(e){e.error||(null!=(e=e.data)?t.step=2:t.functionsService.openSnackBar("CPF n\xe3o autenticado"))})):this.functionsService.openSnackBar("invalidCpf","error")}},{key:"decreaseAmountCollaborator",value:function(){var e=this.companyFormPost.get("minimal_license").value;this.companyFormPost.get("minimal_license").setValue(e-1),this.validMinimalLicense()}},{key:"increaseAmountCollaborator",value:function(){var e=this.companyFormPost.get("minimal_license").value;this.companyFormPost.get("minimal_license").setValue(e+1),this.validMinimalLicense()}},{key:"validMinimalLicense",value:function(){this.companyFormPost.get("minimal_license").value<1&&(this.companyFormPost.get("minimal_license").setValue("1"),this.functionsService.openSnackBar("N\xfamero m\xednimo de funcion\xe1rios!")),this.calcTotal()}},{key:"selectPlan",value:function(e){"free"==e?(this.companyFormPost.get("price").setValue("00,00"),this.planFree=!0):(this.companyFormPost.get("price").setValue("15,00"),this.planFree=!1),this.calcTotal()}},{key:"calcTotal",value:function(){var e=this.companyFormPost.get("minimal_license").value||"0",t=this.companyFormPost.get("price").value?this.companyFormPost.get("price").value.split(",").join("."):"0",n=parseFloat(e)*parseFloat(t);this.totalCost=this.functionsService.toMoney(Math.round(100*n)).toString()}},{key:"searchCep",value:function(){var e=this,t=this.functionsService.removeSings(this.companyForm.get("zip_code").value);8==t.length&&this.databaseService.getCep(t,(function(t){t.error||(e.functionsService.removeSpaces((t=t.data.data_city[0]).address)!==e.functionsService.removeSpaces(t.city)&&e.companyForm.get("address").setValue(t.address),e.companyForm.get("city").setValue(t.city),e.companyForm.get("state").setValue(t.state),t.neighborhood&&e.companyForm.controls.neighborhood.setValue(t.neighborhood))}))}},{key:"sendCompanyForm",value:function(){var e=this,t=["trading_name","phone","email","zip_code","address","address_number","neighborhood","city","state","timezone"];this.companyForm.get("national_registry").value.length>12&&t.push("name");var n=0;if(t.forEach((function(t){e.checkErrorField(t)||n++})),this.validService.validEmail(this.companyForm.get("email").value))if(n>0)this.functionsService.openSnackBar("emptyField");else if(null!=this.companyForm.get("cei").value&&this.companyForm.get("cei").value.length>0&&!this.validService.validCEI(this.companyForm.get("cei").value))this.functionsService.openSnackBar("invalidCei","error");else{this.companyForm.get("zip_code").setValue(this.functionsService.removeSings(this.companyForm.get("zip_code").value));var i=this.storageService.decodeFromLocalStorage("userId"),o=Object.assign(Object.assign(Object.assign({},this.companyForm.value),this.companyFormPost.value),{user_id:i});this.firstCompany&&(o=Object.assign(Object.assign({},o),{firstTime:!0})),0==this.registerVerify&&(this.registerVerify++,this.updateOn?this.putCompanyForm():this.postCompanyForm(o))}else this.functionsService.openSnackBar("invalidEmail")}},{key:"postCompanyForm",value:function(e){var t=this;this.companyDatabase.postCompany(e,(function(e){e.error?t.registerVerify=0:(t.companyService.setId(e.data.company_id),t.companyService.setTradingName(t.companyForm.controls.trading_name.value),t.systemService.getSystemData(),t.router.navigate(["/company-contract"]).then((function(){return!1})))}))}},{key:"putCompanyForm",value:function(){var e=this;this.companyDatabase.putCompany(this.companyId,this.companyForm.value,(function(t){t.error?e.registerVerify=0:e.router.navigate(["/company"]).then((function(){return!1}))}))}},{key:"btnBack",value:function(){this.companyIdStorage?this.cancelRegister():this.logout()}},{key:"logout",value:function(){this.databaseService.logout()}},{key:"cancelRegister",value:function(){this.router.navigate(["/company"]).then((function(){return!1}))}},{key:"checkErrorField",value:function(e){return this.companyForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}}])}()).\u0275fac=function(e){return new(e||a0)($r(wp),$r(yM),$r(Mz),$r(tI),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r(HH),$r(TN))},a0.\u0275cmp=Ot({type:a0,selectors:[["io-company-form"]],inputs:{updateOn:"updateOn",companyId:"companyId"},decls:5,vars:5,consts:[[3,"actualStep",4,"ngIf"],["class","logoBox",4,"ngIf"],[3,"formGroup"],["class","formBox",4,"ngIf"],[3,"actualStep"],[1,"logoBox"],["src","assets/img/logo-azul.png","alt","logo-Iopoint",1,"img-logo"],[1,"formBox"],[1,"pdgT2","pdgB2",3,"ngClass"],[1,"form-group","inputAnimated"],["autocomplete","off","id","national_registry","placeholder","","required","","type","text","autofocus","",3,"formControlName","mask","change"],["nationalRegistry",""],["for","national_registry",1,"form-label","required"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],["class","planBox",4,"ngIf"],[4,"ngIf"],["class","mrgB2 pdgT2 pdgB2 sizeA cl-blue fontUp fontBold flex",4,"ngIf"],[1,"pdgT2","pdgB2","split"],["class","flex",4,"ngIf"],["autocomplete","off","id","phone","mask","(00) 0000-00009","maxlength","15","placeholder","","required","","type","tel",3,"formControlName","keyup"],["for","phone",1,"form-label","required"],["autocomplete","off","id","email","placeholder","","required","","type","email",3,"formControlName","keyup"],["for","email",1,"form-label","required"],["autocomplete","off","id","zip_code","mask","00.000-000","maxlength","10","required","","type","text",3,"formControlName","keyup","change"],["for","zip_code",1,"form-label","required"],["autocomplete","off","id","state","required","","type","text",3,"formControlName","keyup"],["for","state",1,"form-label","required"],["autocomplete","off","id","city","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","city",1,"form-label","required"],["autocomplete","off","id","neighborhood","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","neighborhood",1,"form-label","required"],["autocomplete","off","id","address","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","address",1,"form-label","required"],["autocomplete","off","id","address_number","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","address_number",1,"form-label","required"],["autocomplete","off","id","complement","placeholder","","required","","type","text",3,"formControlName"],["for","complement",1,"form-label"],["autocomplete","off","id","timezone","required","","type","text",3,"formControlName","keyup"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:30"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:00"],["value","-03:30"],["value","-03:00","selected",""],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:30"],["value","+04:00"],["value","+04:30"],["value","+05:00"],["value","+05:30"],["value","+05:45"],["value","+06:00"],["value","+06:30"],["value","+07:00"],["value","+08:00"],["value","+08:45"],["value","+09:00"],["value","+09:30"],["value","+10:00"],["value","+10:30"],["value","+11:00"],["value","+12:00"],["value","+12:45"],["value","+13:00"],["value","+14:00"],["for","timezone",1,"form-label","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick",4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","urlNavigation",4,"ngIf"],[1,"planBox"],[1,"flex","top","topBox"],[1,"block"],[1,"sizeC"],[1,"plan","mrgT1","mrgB2"],[1,"sizeA","fontBold"],["class","sizeA fontBold",4,"ngIf"],["class","sizeA",4,"ngIf"],[1,"block",3,"formGroup"],[1,"flex","sizeC","mrgB1"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace","title","Reduzir n\xfamero de funcion\xe1rios",3,"icon","click",4,"ngIf"],["class","inputPlan collaboratorNumberBox","mask","00000","autocomplete","off","id","minimal_license","required","","type","text",3,"formControlName","change",4,"ngIf"],["class","sizeC fontBold collaboratorNumberBox",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace fa-rotate-45","title","Aumentar n\xfamero de funcion\xe1rios",3,"icon","click",4,"ngIf"],["class","sizeC",4,"ngIf"],["class","planSelector clickPlace",4,"ngIf"],[1,"sizeA"],["size","3x","title","Reduzir n\xfamero de funcion\xe1rios",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],["mask","00000","autocomplete","off","id","minimal_license","required","","type","text",1,"inputPlan","collaboratorNumberBox",3,"formControlName","change"],[1,"sizeC","fontBold","collaboratorNumberBox"],["size","3x","title","Aumentar n\xfamero de funcion\xe1rios",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","fa-rotate-45",3,"icon","click"],[1,"fontBold"],[1,"planSelector","clickPlace"],["class","sizeC cl-blue",3,"click",4,"ngIf"],[1,"sizeC","cl-blue",3,"click"],[1,"mrgB2","pdgT2","pdgB2","sizeA","cl-blue","fontUp","fontBold","flex"],["autocomplete","off","id","name","placeholder","","required","","type","text","autofocus","",3,"formControlName","keyup"],["for","name",1,"form-label","required","required"],["autocomplete","off","id","trading_name","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","trading_name",1,"form-label","required"],["autocomplete","off","id","trading_name2","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","trading_name2",1,"form-label","required"],["autocomplete","off","id","cei","placeholder","","required","","type","text","autofocus","",3,"formControlName"],["for","cei",1,"form-label"],["autocomplete","off","id","state_id","placeholder","","required","","type","text",3,"formControlName"],["for","state_id",1,"form-label"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","urlNavigation"]],template:function(e,t){1&e&&(Jr(0,B1,1,1,"io-step-bar",0),Jr(1,N1,2,0,"div",1),es(2,"div",2),Jr(3,R1,12,18,"div",3),Jr(4,o0,134,54,"div",3),ts()),2&e&&(Zr("ngIf",0==t.updateOn),Bo(1),Zr("ngIf",0==t.updateOn&&0==t.firstCompany),Bo(1),Zr("formGroup",t.companyForm),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step))},directives:[sh,Hf,ip,h1,ih,If,bp,Vf,vp,DE,jD,kp,vm,ym,xm,FD],styles:[".planBox[_ngcontent-%COMP%]{position:relative;padding:20px 20px 30px;margin:0 0 20px;border:2px solid var(--cl-gray)}.planBox[_ngcontent-%COMP%]   .topBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.planBox[_ngcontent-%COMP%]   .topBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2){max-width:90px;margin-left:10px;text-align:center}.planBox[_ngcontent-%COMP%]   .topBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2)   .collaboratorNumberBox[_ngcontent-%COMP%]{width:auto;min-width:30px;text-align:center;padding:1px 5px;border:1px solid var(--terceary-color);margin:0}.planBox[_ngcontent-%COMP%]   .planSelector[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:30px}.img-logo[_ngcontent-%COMP%]{margin:0 auto 20px}@media (max-width:420px){.planBox[_ngcontent-%COMP%]{text-align:center}.planBox[_ngcontent-%COMP%]   .topBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2){margin:0 auto}}"]}),a0);function s0(e,t){1&e&&(es(0,"div",2),es(1,"div",3),es(2,"div",4),ns(3,"io-company-form"),ts(),ts(),ts())}function l0(e,t){1&e&&(es(0,"div",5),es(1,"div",6),ns(2,"img",7),ts(),es(3,"div",2),es(4,"div",8),es(5,"div",9),ns(6,"img",10),ts(),ts(),es(7,"div",11),es(8,"div",12),ns(9,"io-company-form"),ts(),ts(),ts(),ts())}var c0,u0,d0,h0,f0=((h0=function(){return d((function e(t,n){c(this,e),this.databaseService=t,this.storageService=n,this.firstCompany=!1}),[{key:"ngOnInit",value:function(){this.storageService.decodeFromLocalStorage("companyId")||(this.firstCompany=!0)}}])}()).\u0275fac=function(e){return new(e||h0)($r(tT),$r(YP))},h0.\u0275cmp=Ot({type:h0,selectors:[["io-company-page-register"]],decls:2,vars:2,consts:[["class","container",4,"ngIf"],["class","main firstAccess",4,"ngIf"],[1,"container"],[1,"main","register"],[1,"centerBox"],[1,"main","firstAccess"],[1,"bg-firstAccess"],["src","assets/img/bg-login.jpg","alt","bg"],[1,"topBlock"],[1,"logoBox"],["src","assets/img/logo-branca.png","alt","logo-Iopoint",1,"img-logo"],[1,"middleBlock","shdw1"],[1,"contentBlock"]],template:function(e,t){1&e&&(Jr(0,s0,4,0,"div",0),Jr(1,l0,10,0,"div",1)),2&e&&(Zr("ngIf",!t.firstCompany),Bo(1),Zr("ngIf",t.firstCompany))},directives:[sh,r0],styles:[""]}),h0),m0=((d0=function(){return d((function e(t,n,i){var o=this;c(this,e),this.activatedRoute=t,this.storageService=n,this.databaseService=i,this.companyId="",this.activatedRoute.params.subscribe((function(e){o.companyId=e.company_id}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||d0)($r(lx),$r(YP),$r(tT))},d0.\u0275cmp=Ot({type:d0,selectors:[["io-update-company"]],decls:4,vars:2,consts:[[1,"container"],[1,"main","register"],[1,"centerBox"],[3,"companyId","updateOn"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-company-form",3),ts(),ts(),ts()),2&e&&(Bo(3),Zr("companyId",t.companyId)("updateOn",!0))},directives:[r0],styles:[""]}),d0),p0=((u0=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteDepartment",value:function(e,t){this.databaseService.delete("/department/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDepartment",value:function(e,t){this.databaseService.get("/department/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDepartmentCollaboratorList",value:function(e,t){this.databaseService.get("/department/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUnitCollaboratorListOut",value:function(e,t){this.databaseService.get("/department/"+e+"/collaboratorListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDepartmentList",value:function(e){this.databaseService.get("/department",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postDepartment",value:function(e,t){this.databaseService.post("/department",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postDepartmentCollaboratorList",value:function(e,t,n){this.databaseService.post("/department/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putDepartment",value:function(e,t,n){this.databaseService.put("/department/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||u0)(ut(tT))},u0.\u0275prov=Se({token:u0,factory:u0.\u0275fac,providedIn:"root"}),u0),g0=((c0=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.departmentDatabase=n,this.functionsService=i,this.storageService=o,this.departmentId=null,this.departmentDescription=null,this.showModal=!0,this.hideModal=new Mc,this.deparmentPosted=new Mc,this.deparmentUpdated=new Mc,this.stateFields={description:{class:""}},this.updateOn=!1,this.permissionType=this.storageService.decodeFromLocalStorage("permissionType"),this.permissionList=this.storageService.decodeFromLocalStorage("permissionListAllowed"),this.userId=this.storageService.decodeFromLocalStorage("userId"),this.departmentModuleId=null,this.departmentForm=this.formBuilder.group({description:new Wm("",[Jf.required]),moduleId:new Wm("",[Jf.required]),userId:new Wm("",[Jf.required]),permissionType:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){if(this.departmentId&&this.showModal&&this.departmentForm.controls.description.setValue(this.departmentDescription),"custom"==this.permissionType){var e,t=o(JSON.parse(this.permissionList));try{for(t.s();!(e=t.n()).done;){var n=e.value;if("department"===n.name){this.departmentModuleId=n.module_id;break}}}catch(i){t.e(i)}finally{t.f()}}this.departmentForm.controls.moduleId.setValue(this.departmentModuleId),this.departmentForm.controls.userId.setValue(this.userId),this.departmentForm.controls.permissionType.setValue(this.permissionType)}},{key:"sendDepartment",value:function(){this.checkErrorField("description")?this.departmentId?this.putDepartment(this.departmentForm.value,this.departmentId):this.postDepartment(this.departmentForm.value):this.functionsService.openSnackBar("emptyField")}},{key:"postDepartment",value:function(e){var t=this;this.departmentDatabase.postDepartment(e,(function(n){if(!n.error){var i=n.data.id;t.emitAddToList(Object.assign(Object.assign({},e),{id:i})),t.closeModal()}}))}},{key:"putDepartment",value:function(e,t){var n=this;this.departmentDatabase.putDepartment(t,e,(function(i){if(!i.error){var o=t;n.emitUpdateList(Object.assign(Object.assign({},e),{id:o})),n.closeModal()}}))}},{key:"emitAddToList",value:function(e){this.deparmentPosted.emit(e)}},{key:"emitUpdateList",value:function(e){this.deparmentUpdated.emit(e)}},{key:"checkErrorField",value:function(e){return this.departmentForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.departmentForm.reset()}}])}()).\u0275fac=function(e){return new(e||c0)($r(wp),$r(p0),$r(zP),$r(YP))},c0.\u0275cmp=Ot({type:c0,selectors:[["io-department-modal-form"]],inputs:{departmentId:"departmentId",departmentDescription:"departmentDescription",showModal:"showModal"},outputs:{hideModal:"hideModal",deparmentPosted:"deparmentPosted",deparmentUpdated:"deparmentUpdated"},features:[dl],decls:15,vars:21,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeB"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","description",1,"form-label","required"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","moduleId","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2),ts(),es(3,"p",2),Gs(4),ts(),es(5,"div",3),es(6,"div",4),es(7,"div",5),es(8,"div",6),es(9,"input",7),ls("keyup",(function(){return t.checkErrorField("description")})),ts(),es(10,"label",8),Gs(11,"Nome do departamento"),ts(),ts(),ts(),es(12,"div",9),es(13,"io-btn",10),ls("btnClick",(function(){return t.closeModal()})),ts(),es(14,"io-btn",11),ls("btnClick",(function(){return t.sendDepartment()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Qs("",t.updateOn?"Editar":"Novo"," Departamento"),Bo(2),Ks("Digite o ",t.updateOn?"novo":""," nome do ",t.updateOn?"":"novo"," departamento."),Bo(1),Zr("formGroup",t.departmentForm),Bo(4),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(4),Zr("moduleName","department")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","department")("action",t.departmentId?"update":"create")("moduleId",t.departmentId||null)("btnColor","btn-blue-bg")("btnText",t.departmentId?"Salvar":"Cadastrar")("btnTitle",t.departmentId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,jD],styles:[""]}),c0);function v0(e,t){if(1&e&&(es(0,"span",29),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function y0(e,t){if(1&e){var n=as();es(0,"io-icon",30),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalCollaboratorList(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados")}function b0(e,t){if(1&e){var n=as();es(0,"io-icon",31),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDepartment(e.id,e.description)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","department")("action","update")("moduleId",i.id)("iconTitle","Editar departamento")("iconClassList","mrgL1")}}function _0(e,t){if(1&e){var n=as();es(0,"io-icon",31),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","department")("action","delete")("moduleId",i.id)("iconTitle","Excluir departamento")("iconClassList","mrgL1")}}function k0(e,t){if(1&e){var n=as();es(0,"io-icon",32),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactive(e.id)})),ts()}2&e&&Zr("moduleName","department")("action","reactive")("iconTitle","Reativar departamento")("iconClassList","mrgL1")}function C0(e,t){if(1&e&&(es(0,"li",21),es(1,"span",22),Jr(2,v0,2,1,"span",23),Gs(3),ts(),es(4,"span",22),Gs(5),ts(),es(6,"span",24),Gs(7),ts(),es(8,"span",25),Jr(9,y0,1,4,"io-icon",26),Jr(10,b0,1,5,"io-icon",27),Jr(11,_0,1,5,"io-icon",27),Jr(12,k0,1,4,"io-icon",28),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),$s(n.description),Bo(2),$s(n.totalCollaborators),Bo(2),$s(1==n.active?"Ativo":"Inativo"),Bo(2),Zr("ngIf",n.active),Bo(1),Zr("ngIf",n.active),Bo(1),Zr("ngIf",n.active&&0==n.totalCollaborators),Bo(1),Zr("ngIf",!n.active)}}function w0(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function x0(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum departamento encontrado."),ts())}function M0(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 departamentos cadastrados."),ts())}function S0(e,t){if(1&e&&(es(0,"li"),Jr(1,w0,2,0,"p",15),Jr(2,x0,2,0,"p",15),Jr(3,M0,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.departmentList.length>0&&n.departmentList[0].loading),Bo(1),Zr("ngIf",n.departmentList.length>0&&!n.departmentList[0].loading&&0==n.departmentListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.departmentList.length)}}var P0,T0=((P0=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.departmentDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.collaboratorListIn=[],this.collaboratorListOut=[],this.departmentList=[{loading:!0}],this.departmentListFilteredActive=[],this.departmentListFilteredSearch=[],this.departmentSelectedId=null,this.departmentSelectedDescription=null,this.modalDelete=!1,this.modalDepartment=!1,this.modalReactive=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Departamentos"),this.searchForm=this.formBuilder.group({active:new Wm("1",[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getDepartmentList()}},{key:"getDepartmentList",value:function(){var e=this;this.departmentDatabase.getDepartmentList((function(t){t.error||(e.departmentList=t.data.departmentList,e.filterDepartmentSearch(e.searchForm.controls.search.value),e.filterDepartmentActive())}))}},{key:"filterDepartmentActive",value:function(){var e=this.searchForm.get("active").value;this.departmentListFilteredActive=this.departmentList.filter((function(t){return t.active==e})),"all"==e&&(this.departmentListFilteredActive=this.departmentList),this.filterDepartmentSearch(this.searchForm.controls.search.value)}},{key:"filterDepartmentSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.departmentListFilteredSearch=this.functionsService.arrayFilterWords(this.departmentListFilteredActive,e,"description")}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.departmentDatabase.getDepartmentCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.departmentSelectedId=e,this.modalCollaboratorList=!0}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.departmentDatabase.getUnitCollaboratorListOut(this.departmentSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.CollaboratorListOut||[])})),this.modalCollaboratorLink=!0,this.modalCollaboratorList=!1}},{key:"linkCollaboratorList",value:function(e){var t=this;this.departmentDatabase.postDepartmentCollaboratorList(this.departmentSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.getDepartmentList(),t.hideModalCollaboratorList())}))}},{key:"showModalDepartment",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.departmentSelectedId=e,this.departmentSelectedDescription=t,this.modalDepartment=!0}},{key:"postDepartmentList",value:function(e){this.departmentList.push(e),this.departmentList=this.functionsService.arrayReOder(this.departmentList,"description"),this.filterDepartmentSearch(this.searchForm.controls.search.value),this.getDepartmentList()}},{key:"updateDepartmentList",value:function(e){var t=this.departmentList.findIndex((function(t){return t.id==e.id}));this.departmentList[t].description=e.description,this.departmentList=this.functionsService.arrayReOder(this.departmentList,"description"),this.filterDepartmentSearch(this.searchForm.controls.search.value),this.getDepartmentList()}},{key:"hideModalDepartment",value:function(){this.modalDepartment=!1,this.departmentSelectedId=null}},{key:"hideModalCollaboratorList",value:function(){this.departmentSelectedId=null,this.modalCollaboratorList=!1}},{key:"showModalDelete",value:function(e){this.departmentSelectedId=e,this.modalDelete=!0}},{key:"deleteDepartment",value:function(){var e=this,t=this.departmentSelectedId;this.departmentDatabase.deleteDepartment(t,(function(n){n.error||(e.departmentList=e.departmentList.filter((function(e){return e.id!=t})),e.filterDepartmentSearch(e.searchForm.controls.search.value),e.getDepartmentList(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.departmentSelectedId=null}},{key:"showModalReactive",value:function(e){this.departmentSelectedId=e,this.modalReactive=!0}},{key:"reactive",value:function(e){var t=this;this.departmentDatabase.putDepartment(e,{active:1},(function(n){if(!n.error){var i=t.departmentList.findIndex((function(t){return t.id==e}));t.departmentList[i].active=1,t.filterDepartmentActive(),t.hideModalReactive()}}))}},{key:"hideModalCollaboratorLink",value:function(){this.departmentSelectedId=null,this.modalCollaboratorLink=!1}},{key:"hideModalReactive",value:function(){this.departmentSelectedId=null,this.modalReactive=!1}}])}()).\u0275fac=function(e){return new(e||P0)($r(wp),$r(yM),$r(p0),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},P0.\u0275cmp=Ot({type:P0,selectors:[["io-department-page-list"]],decls:30,vars:39,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","departmentId","departmentDescription","deparmentPosted","deparmentUpdated","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","departmentSelectedId","selectedId","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalDepartment()})),ts(),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterDepartmentSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Departamento"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rios"),ts(),es(11,"div",8),es(12,"select",9),ls("change",(function(){return t.filterDepartmentActive()})),es(13,"option",10),Gs(14,"Todos"),ts(),es(15,"option",11),Gs(16,"Ativos"),ts(),es(17,"option",10),Gs(18,"Inativos"),ts(),ts(),ns(19,"fa-icon",12),ts(),es(20,"h3",7),Gs(21,"A\xe7\xe3o"),ts(),ts(),es(22,"ul",13),Jr(23,C0,13,8,"li",14),Jr(24,S0,4,3,"li",15),ts(),ts(),ts(),ts(),es(25,"io-department-modal-form",16),ls("deparmentPosted",(function(e){return t.postDepartmentList(e)}))("deparmentUpdated",(function(e){return t.updateDepartmentList(e)}))("hideModal",(function(){return t.hideModalDepartment()})),ts(),es(26,"io-modal-confirm",17),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteDepartment()})),ts(),es(27,"io-modal-confirm",18),ls("confirmClick",(function(){return t.reactive(t.departmentSelectedId)}))("hideModal",(function(){return t.hideModalReactive()})),ts(),es(28,"io-modal-multi-select-id",19),ls("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(29,"io-modal-multi-select-id",20),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(2),Zr("moduleName","department")("titleTop","Departamentos")("showBtn",!0)("btnDataText","Cadastrar"),Bo(4),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","active"),Bo(1),Zr("value","all"),Bo(2),Zr("value","1"),Bo(2),Zr("value","0"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.departmentListFilteredSearch),Bo(1),Zr("ngIf",0==t.departmentListFilteredSearch.length),Bo(1),Zr("showModal",t.modalDepartment)("departmentId",t.departmentSelectedId)("departmentDescription",t.departmentSelectedDescription),Bo(1),Zr("title","Excluir Departamento?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("showModal",t.modalReactive)("title","Deseja Reativar este departamento?")("btnTextConfirm","Reativar"),Bo(1),Zr("title","Funcion\xe1rios vinculados a este departamento")("moduleName","unit")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a este departamento")("moduleName","unit")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink)("departmentSelectedId",t.departmentSelectedId))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,g0,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:25%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%;margin:0;text-align:right}"]}),P0);function O0(e,t){if(1&e){var n=as();es(0,"div",15),es(1,"div",16),es(2,"io-datepicker",17),ls("dateSelectedEN",(function(e){return mn(n),fs().setDate(e)})),ts(),ts(),es(3,"div",18),ns(4,"input",19),es(5,"label",20),Gs(6,"Motivo da advert\xeancia"),ts(),ts(),ts()}2&e&&(Bo(2),Zr("labelText","*Data da ocorr\xeancia:")("minDate","")("datepickerMonth",!1),Bo(2),Zr("formControlName","warningReason"))}function L0(e,t){if(1&e){var n=as();es(0,"div",21),es(1,"div",22),es(2,"io-interval-selector",23),ls("firstDateSelected",(function(e){return mn(n),fs().setBeginDate(e)}))("secondDateSelected",(function(e){return mn(n),fs().setEndDate(e)})),ts(),ts(),es(3,"div",18),ns(4,"input",24),es(5,"label",25),Gs(6,"Descri\xe7\xe3o da Jornada"),ts(),ts(),ts()}2&e&&(Bo(2),Zr("firstDateLabel","In\xedcio do per\xedodo")("secondDateLabel","Fim do per\xedodo"),Bo(2),Zr("formControlName","journeyDescription"))}function D0(e,t){if(1&e){var n=as();es(0,"div",26),es(1,"label",27),Gs(2,"Todos os funcion\xe1rios "),es(3,"input",28),ls("change",(function(){return mn(n),fs().verifyAll()})),ts(),ns(4,"span",29),ts(),ts()}2&e&&(Bo(3),Zr("formControlName","allSelected"))}function I0(e,t){if(1&e){var n=as();es(0,"li",30),es(1,"label",31),Gs(2),es(3,"input",32),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toCollaboratorList(e.id)})),ts(),ns(4,"span",29),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.name," "),Bo(1),Zr("checked",o.collaboratorListSelected.indexOf(i.id)>=0)}}function F0(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function A0(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function E0(e,t){if(1&e&&(es(0,"li"),Jr(1,F0,2,0,"p",10),Jr(2,A0,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length)}}var B0,N0=((B0=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.collaboratorDatabase=n,this.documentDatabase=i,this.functionsService=o,this.storageService=a,this.showModal=!0,this.documentId=-1,this.hideModal=new Mc,this.warningReason="",this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorListSelected=[],this.date="",this.beginDateSelected="",this.endDateSelected="",this.linkCollaboratorForm=this.formBuilder.group({all_collaborators:new Wm(null,[Jf.required]),allSelected:new Wm(!1,[Jf.required]),warningReason:new Wm("",[]),journeyDescription:new Wm("",[])})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&this.collaboratorDatabase.getCollaboratorListActive((function(t){t.error||(e.collaboratorList=t.data.collaboratorList.length>0?t.data.collaboratorList:[],e.collaboratorListFilteredSearch=e.collaboratorList)}))}},{key:"filterCollaborator",value:function(e){this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name")}},{key:"toCollaboratorList",value:function(e){this.collaboratorListSelected.find((function(t){return t==e}))?this.collaboratorListSelected=this.collaboratorListSelected.filter((function(t){return t!=e})):this.collaboratorListSelected.push(e),this.validAllSelected()}},{key:"verifyAll",value:function(){var e=this;this.linkCollaboratorForm.get("allSelected").value?(this.collaboratorListSelected=[],this.collaboratorList.forEach((function(t){e.collaboratorListSelected.push(t.id)}))):this.collaboratorListSelected=[]}},{key:"validAllSelected",value:function(){this.linkCollaboratorForm.get("allSelected").setValue(this.collaboratorListSelected.length==this.collaboratorList.length)}},{key:"validCollaboratorListSelected",value:function(){if(2==this.documentId){if(""==this.date)return this.functionsService.openSnackBar("\xc9 necess\xe1rio colocar uma data."),!1;if(""==this.linkCollaboratorForm.get("warningReason").value)return this.functionsService.openSnackBar("\xc9 necess\xe1rio colocar um motivo para a advert\xeancia."),!1}if(4==this.documentId){if(""==this.linkCollaboratorForm.get("journeyDescription").value)return this.functionsService.openSnackBar("\xc9 necess\xe1rio informar a escala da funcion\xe1ria."),!1;if(""==this.beginDateSelected||""==this.endDateSelected)return this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar um per\xedodo."),!1}return 0!=this.collaboratorListSelected.length||(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar ao menos um funcion\xe1rio."),!1)}},{key:"setDate",value:function(e){this.date=e}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e}},{key:"setEndDate",value:function(e){this.endDateSelected=e}},{key:"sendCollaborators",value:function(){var e=this;if(this.validCollaboratorListSelected()){var t=this.getParams();this.documentDatabase.getDocument(this.documentId,t,(function(t){t.error||(e.functionsService.downloadFile(t.data,"pdf","Contrato",!1),e.closeModal())}))}}},{key:"getParams",value:function(){var e={collaborators:JSON.stringify(this.collaboratorListSelected),documentId:this.documentId};return 2==this.documentId&&(e.dateWarning=this.date,e.warningReason=this.linkCollaboratorForm.get("warningReason").value),4==this.documentId&&(e.journeyBegin=this.beginDateSelected,e.journeyEnd=this.endDateSelected,e.journeyDescription=this.linkCollaboratorForm.get("journeyDescription").value),e}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.linkCollaboratorForm.reset(),this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorListSelected=[],this.documentId=-1,this.date="",this.beginDateSelected="",this.endDateSelected="",this.linkCollaboratorForm.get("warningReason").setValue("")}}])}()).\u0275fac=function(e){return new(e||B0)($r(wp),$r(LN),$r(c1),$r(zP),$r(YP))},B0.\u0275cmp=Ot({type:B0,selectors:[["io-document-modal-link-collaborator"]],inputs:{showModal:"showModal",documentId:"documentId"},outputs:{hideModal:"hideModal"},features:[dl],decls:18,vars:18,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2",3,"formGroup"],[1,"sizeA","cl-blue","fontBold","fontUp","mrgB2"],["class","flex start wdFull mrgB1",4,"ngIf"],["class","start wdFull mrgB1",4,"ngIf"],[3,"onKeyPress"],["class","flex start wdFull mrgT1",4,"ngIf"],[1,"relativePlace"],[1,"listBox"],["class","flex start pdg0",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","modalUser"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"warningMessage"],[1,"flex","start","wdFull","mrgB1"],[1,"inputAnimated","mrgB2","mrgR2"],[1,"datepicker",3,"labelText","minDate","datepickerMonth","dateSelectedEN"],[1,"form-group","inputAnimated","mrgB2"],["autocomplete","off","id","warningReason","required","","type","text",3,"formControlName"],["for","warningReason",1,"form-label","required"],[1,"start","wdFull","mrgB1"],[1,"inputAnimated","wdMax50"],[3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],["autocomplete","off","id","journeyDescription","required","","type","text",3,"formControlName"],["for","journeyDescription",1,"form-label","required"],[1,"flex","start","wdFull","mrgT1"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"flex","start","pdg0"],[1,"radioBox","hd1","mrgR1","sizeC"],["type","checkbox",3,"checked","change"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Selecionar funcion\xe1rios"),ts(),Jr(4,O0,7,4,"div",3),Jr(5,L0,7,3,"div",4),es(6,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterCollaborator(e)})),ts(),Jr(7,D0,5,1,"div",6),es(8,"div",7),es(9,"ul",8),Jr(10,I0,5,2,"li",9),Jr(11,E0,3,2,"li",10),ts(),ts(),ts(),es(12,"div",11),es(13,"io-btn",12),ls("btnClick",(function(){return t.closeModal()})),ts(),es(14,"io-btn",13),ls("btnClick",(function(){return t.sendCollaborators()})),ts(),ts(),es(15,"div",14),es(16,"h5"),Gs(17,"Aten\xe7\xe3o: O arquivo gerado n\xe3o ser\xe1 salvo no sistema. Caso necess\xe1rio, gere novamente."),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.linkCollaboratorForm),Bo(3),Zr("ngIf",2==t.documentId),Bo(1),Zr("ngIf",4==t.documentId),Bo(2),Zr("ngIf",t.collaboratorList.length>0),Bo(3),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(2),Zr("moduleName","document")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","document")("action","update")("btnColor","btn-blue-bg")("btnText","Gerar")("btnTitle","Gerar"))},directives:[CE,Hf,ip,sh,oE,ah,jD,UA,If,bp,Vf,vp,ZA,Of],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}.form-group[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:17px 0 2px}.warningMessage[_ngcontent-%COMP%]{position:absolute;bottom:5%;font-size:6px;color:var(--cl-red)}"]}),B0);function R0(e,t){if(1&e){var n=as();es(0,"div",7),ls("click",(function(){mn(n);var e=t.$implicit;return fs().getDocument(e)})),es(1,"h2",8),Gs(2),ts(),ns(3,"div",9),ns(4,"div",10),es(5,"h3",11),ns(6,"io-icon",12),es(7,"span",13),Gs(8,"Baixar documento"),ts(),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.description),Bo(4),Zr("moduleName","document")("action","download")("iconTitle","Baixar documento")("iconClassList","")("useValidation",!1)}}var j0,z0,V0,H0,Y0,q0,U0,W0,J0=((W0=function(){return d((function e(t,n,i){c(this,e),this.documentDatabase=t,this.functionsService=n,this.titleService=i,this.documentsListFiltered=[{type:"downloadById",id:0,description:"Contrato de uso da empresa"},{type:"downloadById",id:1,description:"Contrato de uso dos funcion\xe1rios"},{type:"technicalTerms",description:"Atestado T\xe9cnico"}],this.showModalCollaborator=!1,this.documentId=-1,this.titleService.setTitle("Documentos da empresa")}),[{key:"ngOnInit",value:function(){this.verifyInsurance()}},{key:"getDocument",value:function(e){"downloadById"==e.type&&this.downloadDocument(e.id),"technicalTerms"==e.type&&this.getTechnicalTerms()}},{key:"verifyInsurance",value:function(){var e=this;this.documentDatabase.getInsurance((function(t){t.error||t.data.length>0&&e.documentsListFiltered.push({type:"downloadById",id:6,description:"Seguro Pessoal"})}))}},{key:"downloadDocument",value:function(e){var t=this;if(e>0&&e<5)return this.documentId=e,void(this.showModalCollaborator=!0);this.documentDatabase.getDocument(e,{companyRegister:!1},(function(n){return n.error||t.functionsService.downloadFile(n.data,"pdf",6==e?"Seguro pessoal":"Contrato",!1),""}))}},{key:"getTechnicalTerms",value:function(){var e=this;this.documentDatabase.getTechnicalTerms((function(t){t.error||e.functionsService.downloadFile(t.data,"pdf","Atestado Tecnico iopoint")}))}},{key:"closeModal",value:function(){this.showModalCollaborator=!1,this.documentId=-1}}])}()).\u0275fac=function(e){return new(e||W0)($r(c1),$r(zP),$r(hL))},W0.\u0275cmp=Ot({type:W0,selectors:[["io-page-list"]],decls:8,vars:5,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"pdgB1","mrgB1","borderBottom","fontBold"],[1,"card-box"],["class","card bg-white pdg2 clickPlace",3,"click",4,"ngFor","ngForOf"],[3,"showModal","documentId","hideModal"],[1,"card","bg-white","pdg2","clickPlace",3,"click"],[1,"sizeB","mrgB1"],[1,"mrgB2"],[1,"detail","mrgB1"],[1,"sizeB","fontBold","clickPlace"],[3,"moduleName","action","iconTitle","iconClassList","useValidation"],[1,"sizeC","mrgL1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),Gs(4," Documentos para download. "),ts(),es(5,"div",4),Jr(6,R0,9,6,"div",5),ts(),ts(),ts(),es(7,"io-document-modal-link-collaborator",6),ls("hideModal",(function(){return t.closeModal()})),ts()),2&e&&(Bo(2),Zr("moduleName","document")("titleTop","Documentos"),Bo(4),Zr("ngForOf",t.documentsListFiltered),Bo(1),Zr("showModal",t.showModalCollaborator)("documentId",t.documentId))},directives:[eI,ah,N0,BB],styles:[".card-box[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:20px}.card[_ngcontent-%COMP%]{border:1px solid var(--cl-gray-light);border-radius:4px}.card[_ngcontent-%COMP%]:hover{border:1px solid var(--cl-gray)}.card[_ngcontent-%COMP%]   .cardBottom[_ngcontent-%COMP%]{margin-top:5px}.card[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:2px;background-color:var(--primary-color)}@media (max-width:600px){.card-box[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width:400px){.card-box[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}"]}),W0),G0=((U0=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.router=t,this.companyService=n,this.databaseService=i,this.storageService=o,this.systemService=a,this.userService=r,this.userSettingsService=s,this.permissionService=l}),[{key:"logIn",value:function(e){var t;this.companyService.setId(null),this.companyService.setTradingName("Carregando..."),this.userService.setId(null),this.userService.setName("Carregando..."),e.user.hash_helper&&this.storageService.encodeToLocalStorage(e.user.hash_helper.length>10?"userProposalHash":"userSellerCode",e.user.hash_helper);var n=e.userFirstCompany?e.userFirstCompany.id:null;if(e.userSettings&&(this.userSettingsService.setIntervalFirstDay(e.userSettings.interval_begin_day),this.userSettingsService.setIntervalSecondDay(e.userSettings.interval_end_day),n=null!==(t=e.userSettings.default_company)&&void 0!==t?t:n),this.userService.setId(e.user.id),this.userService.setToken(e.token),this.permissionService.setPermissionType(e.userPermissionData.type),this.permissionService.setPermissionListAllowed(e.userPermissionData.permissionList),this.permissionService.setPermissionListDepartmentAllowed(e.userPermissionData.permissionListDepartment),this.permissionService.setPermissionListUnitAllowed(e.userPermissionData.permissionListUnit),this.permissionService.setPermissionListCostCenterAllowed(e.userPermissionData.permissionListCostCenter),n)return this.companyService.setId(n),this.systemService.getSystemData(),void this.router.navigate(["/home"]).then((function(){return!1}));this.router.navigate(["/company-register"]).then((function(){return!1}))}}])}()).\u0275fac=function(e){return new(e||U0)(ut(yM),ut(tI),ut(tT),ut(YP),ut(HH),ut(VH),ut(nI),ut(iT))},U0.\u0275prov=Se({token:U0,factory:U0.\u0275fac,providedIn:"root"}),U0),$0=((q0=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getPasswordReset",value:function(e,t){this.databaseService.get("/passwordRecover",{email:e},!1).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postLogin",value:function(e,t,n){this.databaseService.post("/login",{email:e,password:t},!1).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postNewLogin",value:function(e,t){this.databaseService.post("/newLogin",e,!1).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putPasswordRecover",value:function(e,t){this.databaseService.put("/updateAuth",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||q0)(ut(tT))},q0.\u0275prov=Se({token:q0,factory:q0.\u0275fac,providedIn:"root"}),q0),Q0=((Y0=function(){return d((function e(){c(this,e)}),[{key:"nativeWindow",get:function(){return"undefined"!=typeof window?window:void 0}}])}()).\u0275fac=function(e){return new(e||Y0)},Y0.\u0275prov=Se({token:Y0,factory:Y0.\u0275fac}),Y0),K0=((H0=d((function e(){c(this,e),this.enabled=!0,this.whitelistPage=[],this.blacklistPage=[]}))).\u0275fac=function(e){return new(e||H0)},H0.\u0275prov=Se({token:H0,factory:H0.\u0275fac}),H0),Z0=((V0=function(){return d((function e(t,n){c(this,e),this.popupOpenSource=new V,this.popupCloseSource=new V,this.initializeSource=new V,this.statusChangeSource=new V,this.revokeChoiceSource=new V,this.noCookieLawSource=new V,this.popupOpen$=this.popupOpenSource.asObservable(),this.popupClose$=this.popupCloseSource.asObservable(),this.initialize$=this.initializeSource.asObservable(),this.statusChange$=this.statusChangeSource.asObservable(),this.revokeChoice$=this.revokeChoiceSource.asObservable(),this.noCookieLaw$=this.noCookieLawSource.asObservable(),this.window=t.nativeWindow,this.init(n)}),[{key:"checkPopupInstantiated",value:function(e){if(null==this.popupInstance)throw new Error("Cookie popup has not yet been instantiated. Cannot invoke ".concat(e,"()"))}},{key:"init",value:function(e){var t=this;this.window&&(this.cookieconsent=this.window.cookieconsent,this.config=e,this.config.onPopupOpen=function(){return t.popupOpenSource.next()},this.config.onPopupClose=function(){return t.popupCloseSource.next()},this.config.onInitialise=function(e){return t.initializeSource.next({status:e})},this.config.onStatusChange=function(e,n){t.statusChangeSource.next({status:e,chosenBefore:n})},this.config.onRevokeChoice=function(){return t.revokeChoiceSource.next()},this.config.onNoCookieLaw=function(e,n){t.noCookieLawSource.next({countryCode:e,country:n})},this.cookieconsent.initialise(this.config,(function(e){return t.popupInstance=e})))}},{key:"getConfig",value:function(){return this.config}},{key:"getStatus",value:function(){return this.cookieconsent.status}},{key:"getTransition",value:function(){return this.cookieconsent.hasTransition}},{key:"clearStatus",value:function(){return this.checkPopupInstantiated("clearStatus"),this.popupInstance.clearStatus()}},{key:"open",value:function(){return this.checkPopupInstantiated("open"),this.popupInstance.open()}},{key:"close",value:function(e){return this.checkPopupInstantiated("close"),this.popupInstance.close(e)}},{key:"destroy",value:function(){this.checkPopupInstantiated("destroy"),this.popupInstance.destroy()}},{key:"fadeIn",value:function(){this.checkPopupInstantiated("fadeIn"),this.popupInstance.fadeIn()}},{key:"fadeOut",value:function(){this.checkPopupInstantiated("fadeOut"),this.popupInstance.fadeOut()}},{key:"isOpen",value:function(){return this.checkPopupInstantiated("isOpen"),this.popupInstance.isOpen()}},{key:"toggleRevokeButton",value:function(e){this.checkPopupInstantiated("toggleRevokeButton"),this.popupInstance.toggleRevokeButton(e)}},{key:"hasAnswered",value:function(){return this.checkPopupInstantiated("hasAnswered"),this.popupInstance.hasAnswered()}},{key:"hasConsented",value:function(){return this.checkPopupInstantiated("hasConsented"),this.popupInstance.hasConsented()}}])}()).\u0275fac=function(e){return new(e||V0)(ut(Q0),ut(K0))},V0.\u0275prov=Se({token:V0,factory:V0.\u0275fac}),V0),X0=((z0=function(){function e(){c(this,e)}return d(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[Q0,{provide:K0,useValue:t},Z0]}}}])}()).\u0275mod=Ft({type:z0}),z0.\u0275inj=Pe({factory:function(e){return new(e||z0)},imports:[[Ph]]}),z0),e2=((j0=function(){return d((function e(){c(this,e),this.showModal=!0,this.hideModal=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||j0)},j0.\u0275cmp=Ot({type:j0,selectors:[["io-login-modal-cookie"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal"},decls:27,vars:7,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-red","fontBold","fontUp"],[1,"pdg2"],[1,"sizeC","mrgB1"],[1,"sizeC"],[1,"browserList"],["target","_blank","href","https://support.google.com/chrome/answer/95647?co=GENIE.Platform%3DDesktop&oco=1&hl=pt-BR",1,"browserLink","sizeC"],["target","_blank","href","https://support.microsoft.com/pt-br/windows/excluir-e-gerenciar-cookies-168dab11-0753-043d-7c16-ede5947fc64d",1,"browserLink","sizeC"],["target","_blank","href","https://support.mozilla.org/pt-BR/kb/gerencie-configuracoes-de-armazenamento-local-de-s",1,"browserLink","sizeC"],["target","_blank","href","https://help.opera.com/en/latest/web-preferences/#cookies",1,"browserLink","sizeC"],["target","_blank","href","https://support.apple.com/pt-br/guide/safari/sfri11471/mac",1,"browserLink","sizeC"],[1,"flex","center"],[1,"btnWide",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"O uso de cookies est\xe1 bloqueado"),ts(),ns(4,"div",3),es(5,"p",4),Gs(6,"Eles s\xe3o necess\xe1rios para o funcionamento do sistema."),ts(),es(7,"p",5),Gs(8,"Para mais informa\xe7\xf5es sobre como habilit\xe1-los acesse a p\xe1gina de configura\xe7\xf5es de cookies de acordo com o seu navegador:"),ts(),es(9,"ul",6),es(10,"li"),es(11,"a",7),Gs(12,"Google Chrome"),ts(),ts(),es(13,"li"),es(14,"a",8),Gs(15,"Microsoft Edge"),ts(),ts(),es(16,"li"),es(17,"a",9),Gs(18,"Mozilla Firefox"),ts(),ts(),es(19,"li"),es(20,"a",10),Gs(21,"Opera"),ts(),ts(),es(22,"li"),es(23,"a",11),Gs(24,"Safari"),ts(),ts(),ts(),ts(),es(25,"div",12),es(26,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(26),Zr("moduleName","login")("action","")("btnColor","btn-blue-bg")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1))},directives:[CE,jD],styles:[".browserList[_ngcontent-%COMP%]{padding:15px 0 0 15px;margin:0;list-style:circle}.browserList[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:0;margin:0 0 5px}.browserList[_ngcontent-%COMP%]   .browserLink[_ngcontent-%COMP%]{display:block;color:var(--primary-color);padding:0;margin:0}"]}),j0);function t2(e,t){if(1&e){var n=as();es(0,"div",29),es(1,"h3",30),Gs(2,"N\xe3o \xe9 possivel fazer o login."),ts(),es(3,"span",31),ls("click",(function(){return mn(n),fs().showModalCookie()})),Gs(4,"Para mais informa\xe7\xf5es "),es(5,"span",32),Gs(6,"clique aqui."),ts(),ts(),ts()}}var n2,i2,o2,a2=function(){return["/password-reset"]},r2=((o2=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h,f,m){c(this,e),this.formBuilder=t,this.router=n,this.cookieService=i,this.databaseService=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.loginDatabase=u,this.titleService=d,this.validService=h,this.cookieConsentService=f,this.injector=m,this.modalCookie=!1,this.passwordType=!0,this.showCookieMsg=!1,this.stateFields={email:{class:""},password:{class:""}},this.titleService.setTitle("Login"),this.loginForm=this.formBuilder.group({email:new Wm("",[Jf.required]),password:new Wm("",[Jf.required,Jf.minLength(3),Jf.maxLength(20)])}),navigator.cookieEnabled&&(this.authService=this.injector.get(G0))}),[{key:"ngOnInit",value:function(){var e=this;navigator.cookieEnabled&&this.storageService.decodeFromLocalStorage("userToken")&&this.router.navigate(["/home"]).then((function(){return!1})),this.modalAlertBrowserCompatibility=this.checkBrowser(),this.cookieConsentService.popupClose$.subscribe((function(){e.cookieService.set("cookieconsent_status","allow",90),navigator}))}},{key:"login",value:function(){var e=this;if(navigator.cookieEnabled){localStorage.clear(),sessionStorage.clear();var t=this.loginForm.get("email").value,n=this.loginForm.get("password").value;this.validService.validEmail(t)?this.loginDatabase.postLogin(t,n,(function(t){t.error?e.loginForm.controls.password.setValue(""):e.authService.logIn(t.data)})):this.functionsService.openSnackBar("invalidEmail")}else this.showCookieMsg=!0}},{key:"checkErrorField",value:function(e){return this.loginForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"changeType",value:function(){this.passwordType=!this.passwordType}},{key:"showModalAlertBrowserCompatibility",value:function(){this.modalAlertBrowserCompatibility=!0}},{key:"closeModalAlertBrowserCompatibility",value:function(){this.modalAlertBrowserCompatibility=!1}},{key:"checkBrowser",value:function(){return this.isFirefox=navigator.userAgent.toLowerCase().indexOf("firefox")>-1,this.isChrome=navigator.userAgent.toLowerCase().indexOf("chrome")>-1,!(this.isChrome||this.isFirefox)}},{key:"showModalCookie",value:function(){this.modalCookie=!0}},{key:"hideModalCookie",value:function(){this.modalCookie=!1}}])}()).\u0275fac=function(e){return new(e||o2)($r(wp),$r(yM),$r(kH),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r($0),$r(hL),$r(TN),$r(Z0),$r(Sr))},o2.\u0275cmp=Ot({type:o2,selectors:[["io-login-form"]],decls:54,vars:22,consts:[[1,"main","firstAccess"],[1,"bg-firstAccess"],["src","assets/img/bg-login.jpg","alt","bg"],[1,"container"],[1,"topBlock"],["href","https://iopoint.com.br/","title","iopoint - Ponto Eletr\xf4nico Inteligente",1,"logoBox","clickPlace"],["src","assets/img/iopoint-branca-ponto.png","alt","iopoint logo","title","iopoint - Ponto Eletr\xf4nico Inteligente",1,"img-logo"],[1,"middleBlock","login"],[1,"contentBlock","login"],[3,"formGroup"],[1,"inputBox"],[1,"form-group","inputAnimated"],["autocomplete","off","id","email","placeholder","","required","","type","text",3,"formControlName","keydown.enter"],["for","email",1,"form-label"],["autocomplete","off","id","password","placeholder","","required","",3,"formControlName","type","keydown.enter"],["for","password",1,"form-label"],["size","3x","title","Mostrar senha",1,"cl-gray-dark","iconItem","iconSizeG","clickPlace","iconPasswordField",3,"icon","click"],[1,"sizeD","linkDefault","clickPlace",3,"routerLink"],[1,"flex","mrgB2"],[1,"btnWide",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],["class","mrgT2 center",4,"ngIf"],[3,"showModal","hideModal"],[1,"modalBody"],[1,"bg-white","modalBoxPeriod"],[1,"sizeA","cl-red","mrgB2","fontBold","fontUp"],[1,"flex"],[1,"btnCloseModal","flex",3,"click"],[1,"sizeC","mrgR10"],[1,"block","centerText","pdgT2"],[1,"mrgT2","center"],[1,"sizeB","cl-red","fontBold","mrgB1"],[1,"sizeC","clickPlace",3,"click"],[1,"moreInfoHere","cl-primary"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"img",2),ts(),es(3,"div",3),es(4,"div",4),es(5,"a",5),ns(6,"img",6),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"form",9),es(10,"div",10),es(11,"div",11),es(12,"input",12),ls("keydown.enter",(function(){return t.login()})),ts(),es(13,"label",13),Gs(14,"E-mail"),ts(),ts(),es(15,"div",11),es(16,"input",14),ls("keydown.enter",(function(){return t.login()})),ts(),es(17,"label",15),Gs(18,"Senha"),ts(),es(19,"fa-icon",16),ls("click",(function(){return t.changeType()})),ts(),ts(),es(20,"a",17),Gs(21,"Esqueci a senha"),ts(),ts(),es(22,"div",18),es(23,"io-btn",19),ls("btnClick",(function(){return t.login()})),ts(),ts(),Jr(24,t2,7,0,"div",20),ts(),ts(),ts(),ts(),ts(),es(25,"io-modal-default",21),ls("hideModal",(function(){return t.closeModalAlertBrowserCompatibility()})),es(26,"div",22),es(27,"div",23),es(28,"h2",24),Gs(29,"Aviso importante!"),ts(),es(30,"div",25),es(31,"span",26),ls("click",(function(){return t.closeModalAlertBrowserCompatibility()})),es(32,"span",27),Gs(33,"Fechar"),ts(),Gs(34," X"),ts(),ts(),ts(),es(35,"div"),es(36,"p"),Gs(37,"Percebemos que voc\xea n\xe3o est\xe1 utilizando um navegador compat\xedvel."),ts(),ns(38,"br"),es(39,"p"),Gs(40,"Para melhorar sua experi\xeancia em nosso sistema, utilize o navegador "),es(41,"b"),Gs(42,"Google Chrome"),ts(),Gs(43," ou "),es(44,"b"),Gs(45,"Mozilla Firefox"),ts(),Gs(46,"."),ts(),ns(47,"br"),es(48,"p"),Gs(49,"Se estiver utilizando outro navegador, problemas poder\xe3o ocorrer e funcionalidades n\xe3o estar\xe3o dispon\xedveis."),ts(),ns(50,"br"),es(51,"div",28),es(52,"io-btn",19),ls("btnClick",(function(){return t.closeModalAlertBrowserCompatibility()})),ts(),ts(),ts(),ts(),ts(),es(53,"io-login-modal-cookie",21),ls("hideModal",(function(){return t.hideModalCookie()})),ts()),2&e&&(Bo(9),Zr("formGroup",t.loginForm),Bo(3),Zr("formControlName","email"),Bo(4),Zr("formControlName","password")("type",t.passwordType?"password":"text"),Bo(3),Zr("icon",t.passwordType?t.iconRegularService.faEye:t.iconRegularService.faEyeSlash),Bo(1),Zr("routerLink",mc(21,a2)),Bo(3),Zr("moduleName","")("action","")("btnColor","btn-blue-bg")("btnText","Entrar")("btnTitle","Entrar")("useValidation",!1),Bo(1),Zr("ngIf",t.showCookieMsg),Bo(1),Zr("showModal",t.modalAlertBrowserCompatibility),Bo(27),Zr("moduleName","")("action","")("btnColor","btn-blue-bg")("btnText","Entendi")("btnTitle","Entendi")("useValidation",!1),Bo(1),Zr("showModal",t.modalCookie))},directives:[ep,Hf,ip,If,bp,Vf,vp,FD,_M,jD,sh,CE,e2],styles:[".moreInfoHere[_ngcontent-%COMP%]{text-decoration:underline}"]}),o2),s2=((i2=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getExportFile",value:function(e,t,n){this.databaseService.getFile("/export/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getExportCollaboratorList",value:function(e,t){this.databaseService.get("/exportList/exportCollaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExportMTE671CollaboratorList",value:function(e,t){this.databaseService.get("/export/MTE671CollaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExportMTE671File",value:function(e,t){this.databaseService.getFile("/export/MTE671File",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExportSystem",value:function(e,t){this.databaseService.get("/exportSystem/getRubricsAndSystemConfigBySystem/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExportSystemCollaboratorList",value:function(e,t){this.databaseService.get("/exportSystem/getCollaborators/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExportSystemList",value:function(e){this.databaseService.get("/exportSystem/getExportSystems",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postExportSystem",value:function(e,t){this.databaseService.post("/exportSystem",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"updateExSystemCompany",value:function(e,t){this.databaseService.post("/exportSystem/updateExSystemCompany",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||i2)(ut(tT))},i2.\u0275prov=Se({token:i2,factory:i2.\u0275fac,providedIn:"root"}),i2),l2=((n2=function(){return d((function e(){c(this,e)}),[{key:"getRubricText",value:function(e){switch(e){case 1:return{title:"Horas extras 1",text:'Primeiro campo de porcentagem na op\xe7\xe3o "Horas Extras" encontrada em "Regra do Ponto".'};case 2:return{title:"Horas extras 2",text:'Segundo campo de porcentagem na op\xe7\xe3o "Horas Extras" encontrada em "Regra do Ponto".'};case 3:return{title:"Horas noturnas reduzidas",text:"Per\xedodo trabalhado durante a vig\xeancia da hora noturna reduzida."};case 4:return{title:"Horas negativas",text:'Per\xedodo em que o funcion\xe1rio n\xe3o trabalhou dentro de sua carga hor\xe1ria. Esta rubrica diminuir\xe1 seu valor em horas, caso dentro do per\xedodo selecionado, tenha sido cadastrada no sistema algum tipo de aus\xeancia com a op\xe7\xe3o "Descontar horas" marcada em "Cadastro de Aus\xeancias".'};case 5:return{title:"C\xf3digo da empresa no sistema",text:"C\xf3digo da empresa no sistema da Iopoint."};case 6:return{title:"Horas faltas DSR",text:"Horas faltas DSR."};case 7:return{title:"Horas justificadas",text:"Horas justificadas quando o funcion\xe1rio possui uma aus\xeancia aprovada."};case 8:return{title:"F\xe9rias",text:"Per\xedodo de f\xe9rias convertido em horas de um funcion\xe1rio."};case 9:return{title:"Horas normais",text:"Horas da carga hor\xe1ria do funcion\xe1rio."};case 10:return{title:"Horas trabalhadas",text:"Horas normais trabalhadas do funcion\xe1rio."};case 11:return{title:"Atestado m\xe9dico",text:'Horas totais da aus\xeancia "atestado m\xe9dico" do funcion\xe1rio.'};case 12:return{title:"Horas extras 3",text:"Funcion\xe1rio que faltou em toda a carga horaria diaria."};case 13:return{title:"Horas faltas integrais",text:"Funcion\xe1rio que faltou em toda a carga horaria diaria."};case 14:return{title:"Horas faltas parcial",text:"Funcion\xe1rio que faltou parcialmente a carga horaria diaria."};case 15:return{title:"Horas extras 1 diurnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a diurna.'};case 16:return{title:"Horas extras 1 noturnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna.'};case 17:return{title:"Horas extras 1 noturnas reduzidas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna reduzida.'};case 18:return{title:"Horas extras 2 diurnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a diurna.'};case 19:return{title:"Horas extras 2 noturnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna.'};case 20:return{title:"Horas extras 2 noturnas reduzidas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna reduzida.'};case 21:return{title:"Horas extras 3 diurnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a diurna.'};case 22:return{title:"Horas extras 3 noturnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna.'};case 23:return{title:"Horas extras 3 noturnas reduzidas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna reduzida.'};case 24:return{title:"Horas negativas (Horas extras)",text:'Corresponde as horas negativas dos funcion\xe1rioes que est\xe3o na regra "Hora extra".'};case 25:return{title:"Horas negativas (Banco de horas)",text:'Corresponde as horas negativas dos funcion\xe1rioes que est\xe3o na regra "Banco de horas".'};case 28:return{title:"Tempo de intrajornada",text:"Corresponde ao per\xedodo de intrajornada (geralmente ir\xe1 ser a pausa de almo\xe7o) em horas de um funcion\xe1rio."};case 29:return{title:"Tempo de interjornada",text:"Corresponde ao per\xedodo de interjornada (geralmente ir\xe1 ser o per\xedodo de descanso entre jornadas) em horas de um funcion\xe1rio."};case 30:return{title:"Tempo de sobreaviso",text:"Corresponde ao per\xedodo que o funcion\xe1rio ficou de sobreaviso."};case 31:return{title:"Tempo de prontid\xe3o",text:"Corresponde ao per\xedodo que o funcion\xe1rio ficou de prontid\xe3o."};case 32:return{title:"Tempo de plant\xe3o",text:"Corresponde ao per\xedodo que o funcion\xe1rio ficou de plant\xe3o."};case 33:return{title:"Tempo total de plant\xe3o",text:"Corresponde ao per\xedodo que o funcion\xe1rio ficou de plant\xe3o."};case 34:return{title:"Tempo justificado n\xe3o pago",text:"Corresponde as aus\xeancias que n\xe3o foram pagas."};case 35:return{title:"Horas faltas",text:"Corresponde as horas faltas totais do funcion\xe1rio, n\xe3o ir\xe1 descontar das horas caso possua alguma aus\xeancia."};case 36:return{title:"Horas DSR",text:"Corresponde quando o funcion\xe1rio trabalhou quando era seu DSR."};case 37:return{title:"Horas noturnas n\xe3o reduzidas",text:"Corresponde as horas noturnas trabalhadas, que n\xe3o foi aplicado o fator de redu\xe7\xe3o."};case 38:return{title:"Horas extras feriado",text:"Corresponde quando o funcion\xe1rio fez horas extras em um feriado."};case 39:return{title:"Horas reduzidas",text:"Corresponde ao horario total reduzido trabalhado."};case 40:return{title:"Dias de faltas integrais",text:"Quando o funcion\xe1rio possui faltas integrais, mas ser\xe1 mostrado em dias e n\xe3o em horas."};case 41:return{title:"Horas faltas n\xe3o justificadas",text:"Corresponde ao per\xedodo de horas faltas que n\xe3o foram justificadas com aus\xeancia."};case 42:return{title:"Horas extras 4",text:"Corresponde ao per\xedodo de f\xe9rias em horas de um funcion\xe1rio."};case 43:return{title:"Horas extras 4 diurnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a diurna.'};case 44:return{title:"Horas extras 4 noturnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna.'};case 45:return{title:"Horas extras 4 noturnas reduzidas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras(noturnas e diurnas)" em "Regra do Ponto", ir\xe1 separar a noturna reduzida.'};case 46:return{title:"Dsr negativo em dia",text:"Corresponde as horas negativas do DSR."};case 47:return{title:"D\xe9bito banco de horas",text:"Quando o funcion\xe1rio possui um fechamento do banco de horas, e possui horas negativas ap\xf3s o fechamento."};case 48:return{title:"Cr\xe9dito banco horas",text:"Quando o funcion\xe1rio possui um fechamento do banco de horas, e possui horas positivas ap\xf3s o fechamento."};case 49:return{title:"Horas extras feriado diurnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra"  em "Regra do Ponto", ir\xe1 separar a hora extra diurna feita somente em feriados.'};case 50:return{title:"Horas extras feriado noturnas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra"  em "Regra do Ponto", ir\xe1 separar a hora extra noturna feita somente em feriados.'};case 51:return{title:"Horas extras feriado noturnas reduzidas",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra" em "Regra do Ponto", ir\xe1 separar a hora extra noturna feita somente em feriados (noturna reduzida).'};case 52:return{title:"Tempo de intrajornada diurno",text:'Quando possui marcado a op\xe7\xe3o "Separar horas de intrajornada em diurna ou noturna" em "Regra do Ponto", ir\xe1 separar a intrajornada (diurna).'};case 53:return{title:"Tempo de intrajornada noturno",text:'Quando possui marcado a op\xe7\xe3o "Separar horas de intrajornada em diurna ou noturna" em "Regra do Ponto", ir\xe1 separar a intrajornada (noturna).'};case 54:return{title:"Tempo de intrajornada noturno reduzido",text:'Quando possui marcado a op\xe7\xe3o "Separar horas de intrajornada em diurna ou noturna" em "Regra do Ponto", ir\xe1 separar a intrajornada (noturna reduzida).'};case 55:return{title:"Horas faltantes diurnas",text:"Corresponde as horas faltas diurnas totais do funcion\xe1rio, n\xe3o ir\xe1 descontar das horas caso possua alguma aus\xeancia."};case 56:return{title:"Horas faltantes noturnas",text:"Corresponde as horas faltas noturnas totais do funcion\xe1rio, n\xe3o ir\xe1 descontar das horas caso possua alguma aus\xeancia."};case 57:return{title:"Horas faltantes noturnas reduzidas",text:"Corresponde as horas faltas noturnas totais do funcion\xe1rio, n\xe3o ir\xe1 descontar das horas caso possua alguma aus\xeancia (noturna reduzida)."};case 58:return{title:"Horas extras em DSR",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra" em "Regra do Ponto", ir\xe1 separar a hora extra feita somente em feriados.'};case 59:return{title:"Horas extras em DSR Diurno",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra" em "Regra do Ponto", ir\xe1 separar a hora extra diurna feita somente em feriados.'};case 60:return{title:"Horas extras em DSR Noturno",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra" em "Regra do Ponto", ir\xe1 separar a hora extra noturna feita somente em feriados.'};case 61:return{title:"Horas extras em DSR Noturno Reduzido",text:'Quando possui marcado a op\xe7\xe3o "separar horas extras em feriado/DSR de horas extra" em "Regra do Ponto", ir\xe1 separar a hora extra noturna feita somente em feriados (noturna reduzida).'};case 62:return{title:"",text:""};default:return{title:"Rubrica n\xe3o encontrada",text:"Entre em contato com o nosso suporte e reporte a eles o ocorrido."}}}}])}()).\u0275fac=function(e){return new(e||n2)},n2.\u0275prov=Se({token:n2,factory:n2.\u0275fac,providedIn:"root"}),n2);function c2(e,t){if(1&e){var n=as();es(0,"div",9),es(1,"io-btn",10),ls("btnClick",(function(){return mn(n),Gr(3).click()})),ts(),es(2,"input",11,12),ls("change",(function(e){return mn(n),fs(2).handleFile(e.target.files[0])})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","export")("action","create")("btnText","importar")("btnTypeUpload",!0)("btnTitle","importar"))}function u2(e,t){if(1&e){var n=as();es(0,"div",9),es(1,"div",13),es(2,"span",14),Gs(3),ts(),es(4,"fa-icon",15),ls("click",(function(){return mn(n),fs(2).removeCollaboratorImporFile()})),ts(),ts(),es(5,"io-btn",16),ls("btnClick",(function(){return mn(n),fs(2).emitCollaboratorImportList()})),ts(),ts()}if(2&e){var i=fs(2);Bo(3),$s(i.collaboratorFileName),Bo(1),Zr("icon",i.iconSolidService.faTrashAlt),Bo(1),Zr("moduleName","export")("action","create")("btnText","Confirmar")("btnTitle","Confirmar")}}function d2(e,t){if(1&e&&(es(0,"div"),es(1,"h2",3),Gs(2,"Importar Funcion\xe1rios"),ts(),es(3,"p",4),Gs(4,"O arquivo para a importa\xe7\xe3o de funcion\xe1rios deve seguir o: "),es(5,"a",5),Gs(6,"Modelo de importa\xe7\xe3o."),ts(),ts(),es(7,"div",6),Jr(8,c2,4,5,"div",7),Jr(9,u2,6,6,"div",7),ts(),es(10,"p",8),Gs(11,"O arquivo deve estar no formato CSV para que possa ser realizada a importa\xe7\xe3o."),ts(),ts()),2&e){var n=fs();Bo(8),Zr("ngIf",1==n.step),Bo(1),Zr("ngIf",2==n.step)}}var h2,f2=((h2=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.showModal=!1,this.hideModal=new Mc,this.collaboratorImportList=new Mc,this.file=null,this.collaboratorList=[],this.collaboratorFileName="Adicione um arquivo",this.step=1}),[{key:"ngOnChanges",value:function(){this.step=1,this.file=null,this.collaboratorList=[]}},{key:"handleFile",value:function(e){var t=this;if(this.file=e,!this.file.name.endsWith(".csv"))return this.file=null,void this.functionsService.openSnackBar("O arquivo de importa\xe7\xe3o deve ser do tipo CSV");this.collaboratorFileName=this.file.name;var n=new FileReader;n.readAsText(this.file),n.onload=function(e){t.collaboratorList=n.result.split(/\r\n|\n/)},this.step=2}},{key:"emitCollaboratorImportList",value:function(){this.collaboratorImportList.emit(this.collaboratorList),this.closeModal()}},{key:"removeCollaboratorImporFile",value:function(){this.file=null,this.step=1}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||h2)($r(wp),$r(yM),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP))},h2.\u0275cmp=Ot({type:h2,selectors:[["io-export-modal-import"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",collaboratorImportList:"collaboratorImportList"},features:[dl],decls:3,vars:2,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[4,"ngIf"],[1,"sizeA","cl-blue","fontUp","fontBold"],[1,"sizeC","pdgT2","pdgB2"],["href","https://iopoint.com.br/assets/files/iopoint_modelo_exportacao.csv","title","Baixar modelo de importa\xe7\xe3o.",1,"fontUp","clickPlace","cl-blue"],[1,"importBox"],["class","importBoxItems",4,"ngIf"],[1,"sizeC","center"],[1,"importBoxItems"],[3,"moduleName","action","btnText","btnTypeUpload","btnTitle","btnClick"],["hidden","","type","file","accept",".csv",1,"hide",3,"change"],["fileInput",""],[1,"flex","mrgB2"],[1,"siceC"],["size","3x","title","Remover Arquivo",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],[3,"moduleName","action","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),Jr(2,d2,12,2,"div",2),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Zr("ngIf",t.step<3))},directives:[CE,sh,jD,FD],styles:[".importBox[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:250px}.importBox[_ngcontent-%COMP%]   .importBoxItems[_ngcontent-%COMP%]{margin:0}.importBox[_ngcontent-%COMP%]   .importBoxItems[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:20px}.importBox[_ngcontent-%COMP%]   .importBoxItems[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:40px;padding:5px}.topCollaborator[_ngcontent-%COMP%]{margin:0 0 10px;width:250px}"]}),h2);function m2(e,t){1&e&&(es(0,"option",30),Gs(1,"Selecione"),ts()),2&e&&Zr("ngValue",null)}function p2(e,t){if(1&e&&(es(0,"option",32),Gs(1),ts()),2&e){var n=fs().$implicit;vs("value",n.id),Zr("ngValue",n.id),Bo(1),$s(n.name)}}function g2(e,t){if(1&e&&(is(0),Jr(1,p2,2,3,"option",31),os()),2&e){var n=t.$implicit,i=fs().index,o=fs(2);Bo(1),Zr("ngIf",o.configsForm.at(i).get("id").value===n.id||!o.configIsSelected(n.id))}}function v2(e,t){if(1&e){var n=as();es(0,"fa-icon",33),ls("click",(function(){mn(n);var e=fs().index;return fs(2).removeConfig(e)})),ts()}2&e&&Zr("icon",fs(3).iconSolidService.faTrashAlt)}function y2(e,t){if(1&e){var n=as();es(0,"div",19),es(1,"div",20),es(2,"div",21),ns(3,"input",22),ts(),ts(),es(4,"div",23),es(5,"div",21),es(6,"select",24),ls("change",(function(){return mn(n),fs(2).checkConfigListField()})),Jr(7,m2,2,1,"option",25),Jr(8,g2,2,1,"ng-container",26),ts(),ns(9,"fa-icon",27),ts(),ts(),es(10,"div",28),Jr(11,v2,1,1,"fa-icon",29),ts(),ts()}if(2&e){var i=t.index,o=fs(2);Zr("formArrayName","configs"),Bo(1),Zr("formGroupName",i.toString()),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","code"),Bo(1),Zr("formGroupName",i.toString()),Bo(2),ys("id","selectConfig",i,""),Zr("formControlName","id"),Bo(1),Zr("ngIf",null==o.rubricsForm.at(i).get("id").value),Bo(1),Zr("ngForOf",o.configListField),Bo(1),Zr("icon",o.iconSolidService.faCaretDown),Bo(2),Zr("ngIf",o.configFormArray.length>1)}}function b2(e,t){if(1&e){var n=as();es(0,"div",34),ls("click",(function(){return mn(n),fs(2).addConfig()})),ns(1,"fa-icon",35),es(2,"span",36),Gs(3,"Adicionar"),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("icon",i.iconRegularService.faTimesCircle)}}function _2(e,t){1&e&&(es(0,"option",30),Gs(1,"Selecione"),ts()),2&e&&Zr("ngValue",null)}function k2(e,t){if(1&e&&(es(0,"option",32),Gs(1),ts()),2&e){var n=fs().$implicit;vs("value",n.id),Zr("ngValue",n.id),Bo(1),$s(n.name)}}function C2(e,t){if(1&e&&(is(0),Jr(1,k2,2,3,"option",31),os()),2&e){var n=t.$implicit,i=fs().index,o=fs(2);Bo(1),Zr("ngIf",o.rubricsForm.at(i).get("id").value===n.id||!o.rubricIsSelected(n.id))}}function w2(e,t){if(1&e){var n=as();es(0,"fa-icon",40),ls("click",(function(){mn(n);var e=fs().index,t=fs(2);return t.showQuestionCard(t.rubricsForm.at(e).get("id").value)})),ts()}if(2&e){var i=fs().index,o=fs(2);ys("title","Mais informa\xe7\xf5es sobre: ",o.rubricsForm.at(i).get("name").value,""),Zr("icon",o.iconRegularService.faQuestionCircle)}}function x2(e,t){if(1&e){var n=as();es(0,"fa-icon",33),ls("click",(function(){mn(n);var e=fs().index;return fs(2).removeRubric(e)})),ts()}2&e&&Zr("icon",fs(3).iconSolidService.faTrashAlt)}function M2(e,t){if(1&e){var n=as();es(0,"div",19),es(1,"div",37),es(2,"div",21),ns(3,"input",38),ts(),ts(),es(4,"div",23),es(5,"div",21),es(6,"select",24),ls("change",(function(){return mn(n),fs(2).checkRubricListField()})),Jr(7,_2,2,1,"option",25),Jr(8,C2,2,1,"ng-container",26),ts(),ns(9,"fa-icon",27),ts(),Jr(10,w2,1,2,"fa-icon",39),ts(),es(11,"div",28),Jr(12,x2,1,1,"fa-icon",29),ts(),ts()}if(2&e){var i=t.index,o=fs(2);Zr("formArrayName","rubrics"),Bo(1),Zr("formGroupName",i.toString()),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","code"),Bo(1),Zr("formGroupName",i.toString()),Bo(2),ys("id","rubricSelect",i,""),Zr("formControlName","id"),Bo(1),Zr("ngIf",null==o.rubricsForm.at(i).get("id").value),Bo(1),Zr("ngForOf",o.rubricListField),Bo(1),Zr("icon",o.iconSolidService.faCaretDown),Bo(1),Zr("ngIf",null!=o.rubricsForm.at(i).get("id").value&&(o.isSupport||o.isDev)),Bo(2),Zr("ngIf",o.rubricFormArray.length>1)}}function S2(e,t){if(1&e){var n=as();es(0,"div",34),ls("click",(function(){return mn(n),fs(2).addRubric()})),ns(1,"fa-icon",35),es(2,"span",36),Gs(3,"Adicionar"),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("icon",i.iconRegularService.faTimesCircle)}}function P2(e,t){if(1&e&&(es(0,"div",11),es(1,"div",12),es(2,"div",13),es(3,"div",14),Gs(4,"Principal"),ts(),es(5,"div",15),es(6,"div",16),Jr(7,y2,12,11,"div",17),Jr(8,b2,4,1,"div",18),ts(),ts(),ts(),es(9,"div",13),es(10,"div",14),Gs(11,"Rubricas"),ts(),es(12,"div",15),es(13,"div",16),Jr(14,M2,13,12,"div",17),Jr(15,S2,4,1,"div",18),ts(),ts(),ts(),ts(),ts()),2&e){var n=fs();Bo(5),Zr("formGroup",n.exportForm),Bo(2),Zr("ngForOf",n.configFormArray),Bo(1),Zr("ngIf",n.configFormArray.length<n.configListField.length),Bo(4),Zr("formGroup",n.exportForm),Bo(2),Zr("ngForOf",n.rubricFormArray),Bo(1),Zr("ngIf",n.rubricFormArray.length<n.rubricListField.length)}}var T2=function(e){return{"cl-gray":e}};function O2(e,t){if(1&e){var n=as();es(0,"div",44),es(1,"div",37),es(2,"span",45),Gs(3),ts(),ts(),es(4,"div",23),es(5,"div",21),es(6,"input",46),ls("keyup",(function(){mn(n);var e=t.index;return fs(2).checkCollaboratorCode(e)})),ts(),es(7,"label",47),Gs(8,"C\xf3digo do funcion\xe1rio"),ts(),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs(2);Zr("formArrayName","collaborators"),Bo(1),Zr("formGroupName",o.toString()),Bo(1),Zr("ngClass",pc(11,T2,null!=i.dismissal_date)),Bo(1),$s(i.name),Bo(1),Zr("formGroupName",o.toString()),Bo(2),Es(1==a.collaboratorFormCheck[o]?"emptyError":""),ys("id","code",o,""),Zr("formControlName","code"),Bo(1),ys("for","code",o,"")}}function L2(e,t){if(1&e&&(es(0,"div",11),es(1,"div",41),es(2,"div",42),Jr(3,O2,9,13,"div",43),ts(),ts(),ts()),2&e){var n=fs();Bo(1),Zr("formGroup",n.exportForm),Bo(2),Zr("ngForOf",n.collaboratorList)}}function D2(e,t){if(1&e){var n=as();es(0,"io-export-modal-import",48),ls("collaboratorImportList",(function(e){return mn(n),fs().setCollaboratorList(e)}))("hideModal",(function(){return mn(n),fs().hideModalImport()})),ts()}2&e&&Zr("showModal",fs().modalImport)}var I2,F2=((I2=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.exportDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.rubricService=u,this.systemId=null,this.systemName=null,this.configListField=[],this.configSelectedId=new Set,this.collaboratorFormCheck=[],this.collaboratorList=[],this.modalImport=!1,this.rubricListField=[],this.rubricSelectedId=new Set,this.step=1,this.questionCardType=!1,this.titleQuestionCardType="",this.textQuestionCardType="",this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Exporta\xe7\xe3o");var h=this.router.getCurrentNavigation();h.extras.state?(this.systemId=h.extras.state.systemId,this.systemName=h.extras.state.systemName,this.exportDatabase.getExportSystem(this.systemId,(function(e){e.error||d.loadSettings(e.data.configs,e.data.rubrics)}))):this.router.navigate(["/export"]).then((function(){return!1})),this.exportForm=this.formBuilder.group({configs:this.formBuilder.array([this.createConfig()]),collaborators:this.formBuilder.array([this.createCollaborator()]),rubrics:this.formBuilder.array([this.createRubric()])}),this.rubricFormArray=this.rubricsForm.value,this.configFormArray=this.configsForm.value}),[{key:"ngOnInit",value:function(){}},{key:"createConfig",value:function(){return this.formBuilder.group({code:new Wm("",[Jf.required]),id:new Wm(null,[Jf.required]),name:new Wm("",[Jf.required])})}},{key:"createCollaborator",value:function(){return this.collaboratorFormCheck.push(0),this.formBuilder.group({code:new Wm("",[Jf.required]),id:new Wm(null,[Jf.required])})}},{key:"createRubric",value:function(){return this.formBuilder.group({code:new Wm("",[Jf.required]),id:new Wm(null,[Jf.required]),name:new Wm("",[Jf.required])})}},{key:"expForm",get:function(){return this.exportForm.controls}},{key:"configsForm",get:function(){return this.expForm.configs}},{key:"collaboratorsForm",get:function(){return this.expForm.collaborators}},{key:"rubricsForm",get:function(){return this.expForm.rubrics}},{key:"addConfig",value:function(){this.configsForm.push(this.createConfig()),this.configFormArray.push(this.configsForm.at(this.configsForm.length-1))}},{key:"addCollaborator",value:function(){this.collaboratorsForm.push(this.createCollaborator())}},{key:"addRubric",value:function(){this.rubricsForm.push(this.createRubric()),this.rubricFormArray.push(this.rubricsForm.at(this.rubricsForm.length-1))}},{key:"removeConfig",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;1!=this.configsForm.length?(this.configsForm.removeAt(e),this.configFormArray=this.configsForm.value,this.checkConfigListField()):this.functionsService.openSnackBar("Este campo \xe9 necess\xe1rio.")}},{key:"removeCollaborator",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.collaboratorsForm.removeAt(e),this.collaboratorFormArray=this.collaboratorsForm.value,this.checkConfigListField()}},{key:"removeRubric",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;1!=this.rubricsForm.length?(this.rubricsForm.removeAt(e),this.rubricFormArray=this.rubricsForm.value,this.checkRubricListField()):this.functionsService.openSnackBar("Este campo \xe9 necess\xe1rio.")}},{key:"loadSettings",value:function(e,t){var n=this;this.configListField=e,this.rubricListField=t,this.configListField.forEach((function(e){""!=e.code&&(""==n.configsForm.at(0).get("code").value?(n.configsForm.at(0).get("id").setValue(e.id),n.configsForm.at(0).get("code").setValue(e.code),n.configsForm.at(0).get("name").setValue(e.name)):(n.addConfig(),n.configsForm.at(n.configsForm.length-1).get("id").setValue(e.id),n.configsForm.at(n.configsForm.length-1).get("code").setValue(e.code),n.configsForm.at(n.configsForm.length-1).get("name").setValue(e.name)))})),this.checkConfigListField(),this.rubricListField.forEach((function(e){null!=e.code&&(""==n.rubricsForm.at(0).get("code").value?(n.rubricsForm.at(0).get("code").setValue(e.code),n.rubricsForm.at(0).get("id").setValue(e.id),n.rubricsForm.at(0).get("name").setValue(e.name)):(n.addRubric(),n.rubricsForm.at(n.rubricsForm.length-1).get("code").setValue(e.code),n.rubricsForm.at(n.rubricsForm.length-1).get("id").setValue(e.id),n.rubricsForm.at(n.rubricsForm.length-1).get("name").setValue(e.name)))})),this.checkRubricListField()}},{key:"checkConfigListField",value:function(){this.configSelectedId.clear();for(var e=0;e<this.configsForm.length;e++)if(null!=this.configsForm.at(e).get("id").value&&(this.configSelectedId.add(this.configsForm.at(e).get("id").value),""==this.configsForm.at(e).get("code").value)){for(var t=0;t<this.rubricsForm.length;t++)this.rubricsForm.at(t).get("code").setValue("");for(var n=0;n<this.collaboratorsForm.length;n++)this.collaboratorsForm.at(n).get("code").setValue("")}}},{key:"checkRubricListField",value:function(){var e=this;this.rubricSelectedId.clear();for(var t=function(t){null!=e.rubricsForm.at(t).get("id").value&&(e.rubricSelectedId.add(e.rubricsForm.at(t).get("id").value),""==e.rubricsForm.at(t).get("code").value&&e.rubricsForm.at(t).get("code").setValue(e.rubricListField[e.rubricListField.findIndex((function(n){return n.id==e.rubricsForm.at(t).get("id").value}))].code))},n=0;n<this.rubricsForm.length;n++)t(n)}},{key:"configIsSelected",value:function(e){return this.configSelectedId.has(e)}},{key:"rubricIsSelected",value:function(e){return this.rubricSelectedId.has(e)}},{key:"nextStep",value:function(){switch(this.step){case 1:this.checkConfigListField(),this.loadCollaboratorList(),this.step=2;break;case 2:this.sendExportForm()}}},{key:"backStep",value:function(){1==this.step&&this.router.navigate(["/export-configuration"]).then((function(){})),this.step--}},{key:"loadCollaboratorList",value:function(){var e=this;0==this.collaboratorList.length&&this.exportDatabase.getExportSystemCollaboratorList(this.systemId,(function(t){if(!t.error){e.collaboratorList=t.data.person;for(var n=0;n<e.collaboratorList.length;n++)e.addCollaborator(),e.collaboratorsForm.at(n).get("id").setValue(e.collaboratorList[n].id),e.collaboratorsForm.at(n).get("code").setValue(e.collaboratorList[n].ex_collaborator_code);e.removeCollaborator(e.collaboratorList.length)}}))}},{key:"showModalImport",value:function(){this.modalImport=!0}},{key:"setCollaboratorList",value:function(e){for(var t=this,n=function(n){var i=t.collaboratorList.findIndex((function(t){return t.id==e[n].split(";")[0]}));-1!=i&&t.collaboratorsForm.at(i).get("code").setValue(e[n].split(";")[1])},i=0;i<e.length;i++)n(i)}},{key:"hideModalImport",value:function(){this.modalImport=!1}},{key:"sendExportForm",value:function(){var e=this;this.exportDatabase.postExportSystem(Object.assign(Object.assign({},this.exportForm.value),{system_id:this.systemId}),(function(t){t.error||e.router.navigate(["/export-configuration"]).then((function(){return!1}))}))}},{key:"checkCollaboratorCode",value:function(e){this.collaboratorFormCheck[e]=this.collaboratorsForm.at(e).get("code").valid?0:1}},{key:"showQuestionCard",value:function(e){var t=this.rubricService.getRubricText(e);this.questionCardType=!0,this.titleQuestionCardType=t.title,this.textQuestionCardType=t.text}},{key:"hideQuestionCard",value:function(){this.questionCardType=!1}}])}()).\u0275fac=function(e){return new(e||I2)($r(wp),$r(yM),$r(s2),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL),$r(l2))},I2.\u0275cmp=Ot({type:I2,selectors:[["io-export-form"]],inputs:{systemId:"systemId",systemName:"systemName"},decls:12,vars:22,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","textTop","showBtn","btnDataText","btnClick"],[1,"exportForm"],[1,"minHeightBox"],["class","listBoxSlideMob",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showModal","collaboratorImportList","hideModal",4,"ngIf"],[3,"showCard","title","text","hideCard"],[1,"listBoxSlideMob"],[1,"exportInputBox"],[1,"block"],[1,"sizeB","fontBold"],[1,"exportFormBox","flex","top","borderTop",3,"formGroup"],[1,"exportFormSide"],["class","exportLine flex border-gray-light round2",3,"formArrayName",4,"ngFor","ngForOf"],["class","flex start clickPlace addDayBox","title","Adicionar dia",3,"click",4,"ngIf"],[1,"exportLine","flex","border-gray-light","round2",3,"formArrayName"],[1,"item","company-code",3,"formGroupName"],[1,"form-group","inputAnimated"],["onClick","this.select();","autocomplete","off","mask","00000000000000000000","maxlength","20","placeholder","C\xf3digo","type","text",3,"dropSpecialCharacters","formControlName"],[1,"item","flex",3,"formGroupName"],["autocomplete","off","required","",3,"formControlName","id","change"],["value","null","disabled","",3,"ngValue",4,"ngIf"],[4,"ngFor","ngForOf"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"item"],["size","3x","class","iconItem iconSizeF cl-gray-dark clickPlace","title","Remover",3,"icon","click",4,"ngIf"],["value","null","disabled","",3,"ngValue"],[3,"value","ngValue",4,"ngIf"],[3,"value","ngValue"],["size","3x","title","Remover",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],["title","Adicionar dia",1,"flex","start","clickPlace","addDayBox",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue","fa-rotate-45",3,"icon"],[1,"mrgL1"],[1,"item",3,"formGroupName"],["onClick","this.select();","autocomplete","off","mask","00000000000000000000","placeholder","C\xf3digo","type","text",3,"dropSpecialCharacters","formControlName"],["size","3x","class","iconItem iconSizeG cl-blue clickPlace mrgL1",3,"icon","title","click",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","title","click"],[1,"exportFormBox","borderTop",3,"formGroup"],[1,"collaboratorFormBox","listBox"],["class","collaboratorLine flex bg-white",3,"formArrayName",4,"ngFor","ngForOf"],[1,"collaboratorLine","flex","bg-white",3,"formArrayName"],[1,"sizeC",3,"ngClass"],["onClick","this.select();","autocomplete","off","mask","000000000000000","min","1","max","15","required","","type","text",3,"formControlName","id","keyup"],[1,"form-label","required",3,"for"],[3,"showModal","collaboratorImportList","hideModal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalImport()})),ts(),es(3,"div",3),es(4,"div",4),Jr(5,P2,16,6,"div",5),Jr(6,L2,4,2,"div",5),ts(),es(7,"div",6),es(8,"io-btn",7),ls("btnClick",(function(){return t.backStep()})),ts(),es(9,"io-btn",8),ls("btnClick",(function(){return t.nextStep()})),ts(),ts(),ts(),ts(),ts(),Jr(10,D2,1,1,"io-export-modal-import",9),es(11,"io-modal-question-card",10),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Bo(2),Zr("moduleName","export")("titleTop",t.systemName)("textTop","Configura\xe7\xf5es da exporta\xe7\xe3o")("showBtn",2==t.step)("btnDataText","Importar"),Bo(3),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(2),Zr("moduleName","export")("action","")("btnColor","btn-red")("btnText",1==t.step?"Cancelar":"Voltar")("btnTitle",1==t.step?"Cancelar":"Voltar")("useValidation",!1),Bo(1),Zr("moduleName","export")("action","create")("btnColor","btn-blue-bg")("btnText",2==t.step?"Salvar":"Pr\xf3ximo")("btnTitle",2==t.step?"Salvar":"Pr\xf3ximo"),Bo(1),Zr("ngIf",t.modalImport),Bo(1),Zr("showCard",t.questionCardType)("title",t.titleQuestionCardType)("text",t.textQuestionCardType))},directives:[eI,sh,jD,W$,Hf,ip,ah,sp,ap,If,DE,kp,Vf,vp,vm,bp,FD,ym,xm,ih,f2],styles:[".exportInputBox[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between}.exportInputBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%;max-width:50%}.exportInputBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .exportFormSide[_ngcontent-%COMP%]{margin-right:20px}.exportFormBox[_ngcontent-%COMP%]{padding:20px 0 0}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]{justify-content:space-between;padding:0 15px;margin:0 0 10px;background:var(--cl-white)}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:150px}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:270px}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:10px}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]   .item.company-code[_ngcontent-%COMP%]{max-width:200px}.exportFormBox[_ngcontent-%COMP%]   .exportLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .inputAnimated[_ngcontent-%COMP%]{margin:-5px 0 0}.exportFormBox[_ngcontent-%COMP%]   .exportFormSide[_ngcontent-%COMP%]{width:98%}.exportFormBox[_ngcontent-%COMP%]   .collaboratorFormBox[_ngcontent-%COMP%]{max-width:610px;padding:0 3px 0 0;margin:0 auto 20px}.exportFormBox[_ngcontent-%COMP%]   .collaboratorFormBox[_ngcontent-%COMP%]   .collaboratorLine[_ngcontent-%COMP%]{padding:0 10px;margin:0 0 10px}.exportFormBox[_ngcontent-%COMP%]   .collaboratorFormBox[_ngcontent-%COMP%]   .collaboratorLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.exportFormBox[_ngcontent-%COMP%]   .collaboratorFormBox[_ngcontent-%COMP%]   .collaboratorLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.exportFormBox[_ngcontent-%COMP%]   .collaboratorFormBox[_ngcontent-%COMP%]   .collaboratorLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px}@media (max-width:780px){.exportInputBox[_ngcontent-%COMP%]{display:block}.exportInputBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{max-width:100%;margin:0 0 20px}}"]}),I2);function A2(e,t){if(1&e&&(es(0,"option",11),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.name)}}function E2(e,t){if(1&e&&(es(0,"span",40),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function B2(e,t){if(1&e){var n=as();es(0,"li",33),es(1,"span",34),es(2,"label",35),es(3,"input",36),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",20),ts(),ts(),es(5,"span",34),es(6,"label",37),Jr(7,E2,2,1,"span",38),es(8,"span"),Gs(9),ts(),ts(),ts(),es(10,"span",39),Gs(11),ts(),ns(12,"span",34),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),ys("id","coll",i.id,""),Zr("checked",o.collaboratorListSelectedId.indexOf(i.id)>=0),Bo(3),ys("for","coll",i.id,""),Bo(1),Zr("ngIf",o.userIsDevOrSupport),Bo(1),Xs("sizeC ",null!=i.dismissal_date?"cl-gray":"",""),Bo(1),$s(i.name),Bo(2),$s(null!=i.dismissal_date?"Inativo":"Ativo")}}function N2(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function R2(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum funcion\xe1rio encontrado."),ts())}function j2(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rios configurados neste sistema de exporta\xe7\xe3o."),ts())}function z2(e,t){if(1&e&&(es(0,"li"),Jr(1,N2,2,0,"p",28),Jr(2,R2,2,0,"p",28),Jr(3,j2,2,0,"p",28),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorListLoading()),Bo(1),Zr("ngIf",n.noFilterMatch()),Bo(1),Zr("ngIf",n.hasNoCollaboratorConfigured())}}function V2(e,t){1&e&&(es(0,"div",45),ns(1,"input",46),es(2,"label",47),Gs(3,"C\xf3digo de c\xe1lculo"),ts(),ts()),2&e&&(Zr("formGroup",fs(2).exportForm),Bo(1),Zr("formControlName","calcCod"))}function H2(e,t){if(1&e){var n=as();es(0,"div",48),es(1,"label",49),Gs(2,"Exportar horas zeradas. "),es(3,"input",50),ls("change",(function(){return mn(n),fs(2).setExportZeroData()})),ts(),ns(4,"span",20),ts(),ts()}}function Y2(e,t){if(1&e){var n=as();es(0,"div",41),Jr(1,V2,4,2,"div",42),Jr(2,H2,5,0,"div",43),es(3,"div",41),es(4,"io-btn",44),ls("btnClick",(function(){return mn(n),fs().showModalConfirmExport()})),ts(),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("ngIf",1==i.seniorLayout&&!i.collaboratorListLoading()),Bo(1),Zr("ngIf",0==i.mteLayout),Bo(2),Zr("moduleName","export")("action","show")("btnColor","btn-blue-bg")("btnTitle","Exportar")("btnText","Exportar")("useValidation",!1)}}var q2,U2=((q2=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.companyDatabase=n,this.exportDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.journeyDatabase=s,this.storageService=l,this.titleService=u,this.beginDate=null,this.endDate=null,this.specialRule=!1,this.exportDataZero=!1,this.collaboratorList=[],this.fieldListExport=[],this.collaboratorListFilteredStatus=[],this.collaboratorListFilteredSearch=[],this.collaboratorListSelectedId=[],this.filterDepartmentSelected=[],this.filterContractSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterRubricSelected=[],this.modalFilter=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.userIsDevOrSupport="31"==this.userId||"4"==this.userId,this.modalConfirExport=!1,this.modalConfirmBankTimePayment=!1,this.codeINPI="",this.companyCNPJ="",this.bankTimePayment="",this.questionCard=!1,this.seniorLayout=!1,this.mteLayout=!1,this.questionCardType=0,this.calcCod=null,this.validationGetMteCollaboratorList=!1,this.exportCodeCompanies=["19","23","34","35"],this.titleService.setTitle("Exporta\xe7\xe3o"),this.exportForm=this.formBuilder.group({system_id:new Wm("",[Jf.required]),begin_date:new Wm(null,[Jf.required]),end_date:new Wm(null,[Jf.required]),ex_group_id:new Wm(null,[Jf.required])}),this.exportForm=this.formBuilder.group({exportType:new Wm("",[Jf.required]),calcCod:new Wm("",[Jf.required])}),this.searchForm=this.formBuilder.group({allSelected:new Wm(!1,[Jf.required]),collaboratorStatus:new Wm("active",[Jf.required]),journey:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])});var h={listRequired:JSON.stringify(["export"])};this.companyDatabase.getSelectList(h,(function(e){e.error||(d.fieldListExport=e.data.export),d.fieldListExport.length>0?(d.exportForm.get("exportType").setValue(d.fieldListExport[0].id),d.getExportCollaboratorList()):(d.exportForm.get("exportType").setValue("exportMte671Afd"),d.getExportCollaboratorList())}))}),[{key:"ngOnInit",value:function(){}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"setFilter",value:function(e){this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterRubricSelected=e.rubricIdList,this.filterContractSelected=e.contractIdList,this.getExportCollaboratorList()}},{key:"setBeginDate",value:function(e){this.beginDate=e,this.exportDataZero=!1,this.exportForm.get("exportType").value&&this.getList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.exportDataZero=!1,this.exportForm.get("exportType").value&&this.getList()}},{key:"getList",value:function(){var e=this;clearTimeout(this.interval),this.interval=setTimeout((function(){e.getExportCollaboratorList()}),200)}},{key:"getDateBR",value:function(e){return null==e||""===e?"":this.functionsService.dateENtoBR(e)}},{key:"getExportCollaboratorList",value:function(){var e=this;this.exportForm.controls.calcCod.setValue("");var t={beginDate:this.beginDate,endDate:this.endDate,systemId:this.exportForm.get("exportType").value,filterDepartment:JSON.stringify(this.filterDepartmentSelected),filterRegime:JSON.stringify(this.filterRegimeSelected),filterContract:JSON.stringify(this.filterContractSelected),filterUnit:JSON.stringify(this.filterUnitSelected),collaboratorIdList:"[]"};this.seniorLayout=this.exportCodeCompanies.includes(this.exportForm.get("exportType").value.toString()),this.mteLayout="exportMte671Afd"==this.exportForm.get("exportType").value||"exportMte671Aej"==this.exportForm.get("exportType").value||24==this.exportForm.get("exportType").value,null!=this.beginDate&&null!=this.endDate&&(this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],t.systemId.toString().includes("exportMte671")?this.exportDatabase.getExportMTE671CollaboratorList(t,(function(t){t.error||(e.collaboratorList=t.data.collaboratorList,e.companyCNPJ=t.data.companyData.national_registry,e.codeINPI=t.data.iopointData.codeINPI,e.filterCollaboratorStatus(),e.validationGetMteCollaboratorList=!1)})):this.exportDatabase.getExportCollaboratorList(t,(function(t){t.error||(e.collaboratorList=t.data.collaboratorList,e.filterCollaboratorStatus(),e.bankTimePayment=t.data.bankTimeRangeEndDate,e.validationGetMteCollaboratorList=!0)})))}},{key:"filterCollaboratorStatus",value:function(){var e=this.searchForm.get("collaboratorStatus").value;"active"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null==e.dismissal_date}))),"inactive"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null!==e.dismissal_date}))),"all"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList),this.filterMirrorSearch(this.searchForm.controls.search.value)}},{key:"filterMirrorSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredStatus,e,"name")}},{key:"verifyAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").value?(this.collaboratorListSelectedId=[],this.collaboratorListFilteredSearch.forEach((function(t){e.collaboratorListSelectedId.push(t.id)}))):this.collaboratorListSelectedId=[]}},{key:"selectId",value:function(e){this.collaboratorListSelectedId.find((function(t){return t==e}))?this.collaboratorListSelectedId=this.collaboratorListSelectedId.filter((function(t){return t!=e})):this.collaboratorListSelectedId.push(e),this.validAllSelected()}},{key:"setRule",value:function(){this.specialRule=!0!==this.specialRule}},{key:"setExportZeroData",value:function(){this.exportDataZero=!0!==this.exportDataZero}},{key:"exportCollaborators",value:function(){var e=this;if(0==this.collaboratorListSelectedId.length)return this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio"),void this.hideModalConfirmExport();if(19==this.exportForm.get("exportType").value&&""==this.exportForm.get("calcCod").value)return this.functionsService.openSnackBar("Insira o c\xf3digo de c\xe1lculo"),void this.hideModalConfirmExport();var t=this.exportForm.get("exportType").value,n=this.beginDate,i=this.endDate,o=this.storageService.decodeFromLocalStorage("companyId"),a=this.storageService.decodeFromLocalStorage("companyTradingName"),r={beginDate:this.beginDate,endDate:this.endDate,hasSpecialRule:this.specialRule,systemId:this.exportForm.get("exportType").value,calcCod:this.exportForm.get("calcCod").value,exportDataZero:this.exportDataZero,collaboratorIdList:JSON.stringify(this.collaboratorListSelectedId),filterRubric:JSON.stringify(this.filterRubricSelected)};if(r.systemId.toString().includes("exportMte671")){var s=Object.assign(Object.assign({},r),{exportType:r.systemId.toString().split("exportMte671")[1].toLowerCase()});this.exportDatabase.getExportMTE671File(s,(function(t){t.error||e.functionsService.downloadFile(t.data,"zip",s.exportType.toString().toUpperCase()+e.codeINPI+e.companyCNPJ+"REP_P")}))}else this.exportDatabase.getExportFile(t,r,(function(r){r.error||e.functionsService.downloadFile(r.data,24==t||29==t?"csv":"txt","export-"+a+"-"+o+"-"+t+"-"+n+"-"+i)}));this.hideModalConfirmExport()}},{key:"validAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").setValue(this.collaboratorListFilteredSearch.length==this.collaboratorListFilteredSearch.filter((function(t){return e.collaboratorListSelectedId.indexOf(t.id)>=0})).length)}},{key:"showModalConfirmExport",value:function(){""!==this.bankTimePayment?this.modalConfirmBankTimePayment=!0:this.modalConfirExport=!0}},{key:"hideModalConfirmExport",value:function(){this.modalConfirExport=!1,this.modalConfirmBankTimePayment=!1}},{key:"showQuestionCard",value:function(e){this.questionCardType=e,this.questionCard=!0}},{key:"hideQuestionCard",value:function(){this.questionCard=!1}},{key:"specialRuleEnable",value:function(){return this.collaboratorList.length>0&&!this.collaboratorList[0].loading&&0!=this.validationGetMteCollaboratorList}},{key:"collaboratorListLoading",value:function(){return this.collaboratorList.length>0&&this.collaboratorList[0].loading}},{key:"noFilterMatch",value:function(){return this.collaboratorList.length>0&&!this.collaboratorList[0].loading&&!this.collaboratorList[0].select&&0==this.collaboratorListFilteredSearch.length}},{key:"hasNoCollaboratorConfigured",value:function(){return 0==this.collaboratorList.length}}])}()).\u0275fac=function(e){return new(e||q2)($r(wp),$r(Mz),$r(s2),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(hL))},q2.\u0275cmp=Ot({type:q2,selectors:[["io-export-page-list-group"]],decls:47,vars:30,consts:[[1,"container"],[1,"main","listBoxfour"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[3,"showRubricList","selectedFilters"],[1,"flexDesk","top","mrgB1"],[1,"sizeC"],[1,"flexPad","mrgB1"],[1,"form-group","inputAnimated","wdMax25",3,"formGroup","change"],["id","exportType","required","",1,"fontBold","clickPlace",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"flex","mrgL2",3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob","mrgB2"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","collaboratorStatus","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex end",4,"ngIf"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"],[3,"showModal","title","text","btnTextConfirm","hideModal","confirmClick"],[3,"showCard","questionCardType","hideCard"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"checked","id","change"],[1,"clickPlace",3,"for"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"sizeB","internal","mrgR1"],[1,"flex","end"],["class","form-group inputAnimated mrgR1 wdMax15",3,"formGroup",4,"ngIf"],["class","flex",4,"ngIf"],[3,"moduleName","action","btnColor","btnTitle","btnText","useValidation","btnClick"],[1,"form-group","inputAnimated","mrgR1","wdMax15",3,"formGroup"],["autocomplete","off","id","calcCod","placeholder","","required","","type","text",3,"formControlName"],["for","calcCod",1,"form-label"],[1,"flex"],[1,"radioBox","hd1","sizeC","mrgR1"],["type","checkbox",3,"change"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilter(e)})),ts(),ts(),es(5,"div",5),es(6,"p",6),Gs(7," Selecione o sistema para "),es(8,"strong"),Gs(9,"exporta\xe7\xe3o"),ts(),Gs(10,"."),ts(),ts(),es(11,"div",7),es(12,"div",8),ls("change",(function(){return t.getExportCollaboratorList()})),es(13,"select",9),Jr(14,A2,2,2,"option",10),es(15,"option",11),Gs(16,"MTE 671 AFD"),ts(),es(17,"option",11),Gs(18,"MTE 671 AEJ"),ts(),ts(),ns(19,"fa-icon",12),ts(),es(20,"io-interval-selector",13),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(21,"div",14),es(22,"io-search-line",15),ls("onKeyPress",(function(e){return t.filterMirrorSearch(e)})),ts(),ts(),es(23,"div",16),es(24,"div",17),es(25,"label",18),es(26,"input",19),ls("change",(function(){return t.verifyAllSelected()})),ts(),ns(27,"span",20),ts(),es(28,"h3",21),Gs(29,"Funcion\xe1rios"),ts(),es(30,"div",22),es(31,"select",23),ls("change",(function(){return t.filterCollaboratorStatus()})),es(32,"option",24),Gs(33,"Todos"),ts(),es(34,"option",24),Gs(35,"Ativos"),ts(),es(36,"option",24),Gs(37,"Inativos"),ts(),ts(),ns(38,"fa-icon",25),ts(),ns(39,"h3",21),ts(),es(40,"ul",26),Jr(41,B2,13,9,"li",27),Jr(42,z2,4,3,"li",28),ts(),ts(),Jr(43,Y2,5,8,"div",29),ts(),ts(),es(44,"io-modal-confirm",30),ls("hideModal",(function(){return t.hideModalConfirmExport()}))("confirmClick",(function(){return t.exportCollaborators()})),ts(),es(45,"io-modal-confirm",31),ls("hideModal",(function(){return t.hideModalConfirmExport()}))("confirmClick",(function(){return t.exportCollaborators()})),ts(),es(46,"io-point-rule-modal-question-card",32),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Bo(3),Zr("moduleName","export")("titleTop","Exporta\xe7\xe3o"),Bo(1),Zr("showRubricList",!0),Bo(8),Zr("formGroup",t.exportForm),Bo(1),Zr("formControlName","exportType"),Bo(1),Zr("ngForOf",t.fieldListExport),Bo(1),Zr("value","exportMte671Afd"),Bo(2),Zr("value","exportMte671Aej"),Bo(2),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(4),Zr("formGroup",t.searchForm),Bo(2),Zr("formControlName","allSelected"),Bo(5),Zr("formControlName","collaboratorStatus"),Bo(1),Zr("value","all"),Bo(2),Zr("value","active"),Bo(2),Zr("value","inactive"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(3),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",!t.collaboratorListLoading()),Bo(1),Zr("showModal",t.modalConfirExport)("title","Deseja prosseguir com a exporta\xe7\xe3o?")("btnTextConfirm","Exportar"),Bo(1),Zr("showModal",t.modalConfirmBankTimePayment)("title","Deseja prosseguir com a exporta\xe7\xe3o?")("text","O per\xedodo selecionado inclui um fim de vig\xeancia do banco de horas no dia "+t.getDateBR(t.bankTimePayment)+". A exporta\xe7\xe3o ser\xe1 gerada at\xe9 essa data.")("btnTextConfirm","Exportar"),Bo(1),Zr("showCard",t.questionCard)("questionCardType",t.questionCardType))},directives:[eI,qV,Hf,ip,vm,bp,Vf,vp,ah,ym,xm,FD,ZA,oE,Of,sh,UB,XQ,jD,If],styles:[".downloadMirrorBox[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;width:auto}.downloadMirrorBox[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{min-width:170px;padding:1px 0 2px;margin:0}.downloadMirrorBox[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{top:0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;margin:0;text-align:right}.wdMax15[_ngcontent-%COMP%]{max-width:15%}"]}),q2);function W2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Alfanum\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"11 (10,2)"),ts(),es(48,"td"),Gs(49,"Valor referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,'Utiliza o delimitador "|" (pipe).'),ts(),es(53,"li"),Gs(54,'O campo "valor" \xe9 informado em formato decimal.'),ts(),es(55,"li"),Gs(56,'O campo "valor" cont\xe9m somente n\xfameros, sendo os 2 (dois) \xfaltimos d\xedgitos referentes a parte decimal do valor. '),ts(),es(57,"li"),Gs(58,"Ex.: |"),es(59,"span",6),Gs(60,"99999"),ts(),Gs(61,"|"),es(62,"span",7),Gs(63,"MATR\xcdCULA"),ts(),Gs(64,"|"),es(65,"span",8),Gs(66,"9999"),ts(),Gs(67,"|"),es(68,"span",9),Gs(69,"99999999999"),ts(),Gs(70,"| "),ts(),ts(),ts())}function J2(e,t){if(1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"2"),ts(),es(21,"td"),Gs(22),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"10"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Compet\xeancia"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"6"),ts(),es(39,"td"),Gs(40,"O conte\xfado \xe9 a compet\xeancia, no formato AAAAMM."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Rubrica"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"4"),ts(),es(48,"td"),Gs(49,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Tipo do processo"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"2"),ts(),es(57,"td"),Gs(58),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Valor"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"9"),ts(),es(66,"td"),Gs(67,"O valor \xe9 referente a rubrica."),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"C\xf3digo da Empresa"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"10"),ts(),es(75,"td"),Gs(76,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),ts(),ts(),ts(),es(77,"ul",5),es(78,"li"),Gs(79,"N\xe3o utilizar delimitador."),ts(),es(80,"li"),Gs(81,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(82,"li"),Gs(83,"Ex.: "),es(84,"span",6),Gs(85,"99"),ts(),es(86,"span",7),Gs(87,"9999999999"),ts(),es(88,"span",8),Gs(89,"999999"),ts(),es(90,"span",9),Gs(91,"9999"),ts(),es(92,"span",10),Gs(93,"99"),ts(),es(94,"span",11),Gs(95,"999999999"),ts(),es(96,"span",12),Gs(97,"9999999999"),ts(),ts(),ts(),ts()),2&e){var n=fs();Bo(22),Qs('O c\xf3digo est\xe1 fixado em "10" por solicita\xe7\xe3o da ',n.exportSelected.name,"."),Bo(36),Qs('O c\xf3digo est\xe1 fixado em "11" (folha mensal) por solicita\xe7\xe3o da ',n.exportSelected.name,". ")}}function G2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"5"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"3"),ts(),es(30,"td"),Gs(31,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Valor"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"O valor \xe9 referente a rubrica."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Campo 4"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"11"),ts(),es(48,"td"),Gs(49,"Definido como 00000000000."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,'Utiliza o delimitador "|" (pipe).'),ts(),es(53,"li"),Gs(54,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Ex.: "),es(57,"span",6),Gs(58,"99999"),ts(),Gs(59,"|"),es(60,"span",7),Gs(61,"999"),ts(),Gs(62,"|"),es(63,"span",8),Gs(64,"99999"),ts(),Gs(65,"|"),es(66,"span",9),Gs(67,"99999999999"),ts(),ts(),ts(),ts())}function $2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"10"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"9"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"10"),ts(),es(48,"td"),Gs(49,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(53,"li"),Gs(54,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Ex.: "),es(57,"span",6),Gs(58,"9999999999"),ts(),Gs(59,";"),es(60,"span",7),Gs(61,"999999999"),ts(),Gs(62,";"),es(63,"span",8),Gs(64,"9999"),ts(),Gs(65,";"),es(66,"span",9),Gs(67,"9999999999"),ts(),ts(),ts(),ts())}function Q2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"6"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"10"),ts(),es(48,"td"),Gs(49,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(53,"li"),Gs(54,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Ex.: "),es(57,"span",6),Gs(58,"999999"),ts(),Gs(59,";"),es(60,"span",7),Gs(61,"999999"),ts(),Gs(62,";"),es(63,"span",8),Gs(64,"9999"),ts(),Gs(65,";"),es(66,"span",9),Gs(67,"9999999999"),ts(),ts(),ts(),ts())}function K2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Tipo de informa\xe7\xe3o"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"1"),ts(),es(48,"td"),Gs(49,'O tipo est\xe1 fixado em "1" (Hora).'),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Valor"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"11"),ts(),es(57,"td"),Gs(58,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,"N\xe3o utilizar delimitador."),ts(),es(62,"li"),Gs(63,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(64,"li"),Gs(65,"Ex.: "),es(66,"span",6),Gs(67,"9999"),ts(),es(68,"span",7),Gs(69,"999999"),ts(),es(70,"span",8),Gs(71,"99999"),ts(),es(72,"span",9),Gs(73,"9"),ts(),es(74,"span",10),Gs(75,"99999999999"),ts(),ts(),ts(),ts())}function Z2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Tipo de informa\xe7\xe3o"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"1"),ts(),es(48,"td"),Gs(49,'O tipo est\xe1 fixado em "1" (Hora).'),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Valor"),ts(),es(53,"td"),Gs(54,"Centesimal"),ts(),es(55,"td"),Gs(56,"11"),ts(),es(57,"td"),Gs(58,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,"N\xe3o utilizar delimitador."),ts(),es(62,"li"),Gs(63,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(64,"li"),Gs(65,'O campo "valor" \xe9 informado em formato centesimal.'),ts(),es(66,"li"),Gs(67,"Ex.: "),es(68,"span",6),Gs(69,"9999"),ts(),es(70,"span",7),Gs(71,"999999"),ts(),es(72,"span",8),Gs(73,"99999"),ts(),es(74,"span",9),Gs(75,"9"),ts(),es(76,"span",10),Gs(77,"99999999999"),ts(),ts(),ts(),ts())}function X2(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"11"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Valor"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(41,"ul",5),es(42,"li"),Gs(43,"N\xe3o utilizar delimitador."),ts(),es(44,"li"),Gs(45,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(46,"li"),Gs(47,"Ex.: "),es(48,"span",6),Gs(49,"99999999999"),ts(),es(50,"span",7),Gs(51,"9999"),ts(),es(52,"span",8),Gs(53,"99999"),ts(),ts(),ts(),ts())}function e3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"10"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Refer\xeancia"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"7"),ts(),es(39,"td"),Gs(40,"A quantidade \xe9 referente a rubrica."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"10"),ts(),es(48,"td"),Gs(49,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,"N\xe3o utilizar delimitador."),ts(),es(53,"li"),Gs(54,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Ex.: "),es(57,"span",6),Gs(58,"999999999"),ts(),es(59,"span",7),Gs(60,"9999"),ts(),es(61,"span",8),Gs(62,"9999999"),ts(),es(63,"span",9),Gs(64,"9999999999"),ts(),ts(),ts(),ts())}function t3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"11"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 o CPF do funcion\xe1rio."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"O valor \xe9 referente a rubrica."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Quantidade da rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),ts(),ts(),ts(),es(41,"ul",5),es(42,"li"),Gs(43,"N\xe3o utilizar delimitador."),ts(),es(44,"li"),Gs(45,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(46,"li"),Gs(47,"Ex.: "),es(48,"span",6),Gs(49,"99999999999"),ts(),es(50,"span",7),Gs(51,"9999"),ts(),es(52,"span",8),Gs(53,"99999"),ts(),ts(),ts(),ts())}function n3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"10"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 o CPF do funcion\xe1rio."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"5"),ts(),es(30,"td"),Gs(31,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Valor"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"10 (8,2)"),ts(),es(39,"td"),Gs(40,"O valor \xe9 referente a rubrica."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor m\xeas anterior"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"45"),ts(),es(48,"td"),Gs(49,"Valor referente m\xeas anterior (campo opcional, preencher com espa\xe7os em branco)."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,"N\xe3o utilizar delimitador."),ts(),es(53,"li"),Gs(54,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Ex.: "),es(57,"span",6),Gs(58,"9999999999"),ts(),es(59,"span",7),Gs(60,"99999"),ts(),es(61,"span",8),Gs(62,"9999999999"),ts(),ts(),ts(),ts())}function i3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"5"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"3"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"12"),ts(),es(48,"td"),Gs(49,"O valor \xe9 referente a rubrica."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"C\xf3digo da Aula/Tarefa"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"3"),ts(),es(57,"td"),Gs(58,"C\xf3digo da Aula/Tarefa."),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"C\xf3digo da Divis\xe3o de RH"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"9"),ts(),es(66,"td"),Gs(67,"Este campo s\xf3 deve ser informado caso o funcion\xe1rio tenha trabalhado em mais de uma divis\xe3o no m\xeas, ou seja, por aloca\xe7\xe3o de empresas. "),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"C\xf3digo da Convoca\xe7\xe3o"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"30"),ts(),es(75,"td"),Gs(76,'Campo obrigat\xf3rio e exclusivo apenas para o trabalhador intermitente (categoria "111").'),ts(),ts(),ts(),ts(),ts(),es(77,"ul",5),es(78,"li"),Gs(79,"N\xe3o utilizadelimitador."),ts(),es(80,"li"),Gs(81,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(82,"li"),Gs(83,"Ex.: "),es(84,"span",6),Gs(85,"9999"),ts(),es(86,"span",7),Gs(87,"99999"),ts(),es(88,"span",8),Gs(89,"999"),ts(),es(90,"span",9),Gs(91,"999999999999"),ts(),es(92,"span",10),Gs(93,"999"),ts(),es(94,"span",11),Gs(95,"999999999"),ts(),es(96,"span",12),Gs(97,"999999999999999999999999999999"),ts(),ts(),ts(),ts())}function o3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"Campo ignorado"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"1"),ts(),es(21,"td"),Gs(22,"Campo \xe9 ignorado, sempre preenchido com 0."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo da empresa"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Campo ignorado"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"3"),ts(),es(39,"td"),Gs(40,"Campo \xe9 ignorado, sempre preenchido com 000."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do funcion\xe1rio"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"9"),ts(),es(48,"td"),Gs(49,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Rubrica"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"4"),ts(),es(57,"td"),Gs(58,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Campo ignorado"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"4"),ts(),es(66,"td"),Gs(67,"Campo \xe9 ignorado, sempre preenchido com 0000."),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"Refer\xeancia do evento"),ts(),es(71,"td"),Gs(72,"Horas"),ts(),es(73,"td"),Gs(74,"11"),ts(),es(75,"td"),Gs(76,"Usar valor com 9 (nove) d\xedgitos para horas e 2 (dois) digitos para minutos sem separador. "),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"Valor do evento"),ts(),es(80,"td"),Gs(81,"Num\xe9rico"),ts(),es(82,"td"),Gs(83,"11"),ts(),es(84,"td"),Gs(85,"Valor do evento em R$.(Valor n\xe3o exportado pelo sistema, sera preenchido com zeros.)"),ts(),ts(),ts(),ts(),ts(),es(86,"ul",5),es(87,"li"),Gs(88,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(89,"li"),Gs(90,"Completar as colunas com 0 (zero) \xe0 esquerda at\xe9 completar seu tamanho m\xe1ximo."),ts(),es(91,"li"),Gs(92,"Ex.: "),es(93,"span",6),Gs(94,"9"),ts(),Gs(95,";"),es(96,"span",7),Gs(97,"9999"),ts(),Gs(98,";"),es(99,"span",8),Gs(100,"999"),ts(),Gs(101,";"),es(102,"span",9),Gs(103,"999999999"),ts(),Gs(104,";"),es(105,"span",13),Gs(106,"9999"),ts(),Gs(107,";"),es(108,"span",14),Gs(109,"9999"),ts(),Gs(110,"; "),es(111,"span",12),Gs(112,"99999999999"),ts(),Gs(113,";"),es(114,"span",10),Gs(115,"99999999999"),ts(),Gs(116,";"),ts(),ts(),ts())}function a3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"3"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"3"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Refer\xeancia do evento"),ts(),es(44,"td"),Gs(45,"Horas"),ts(),es(46,"td"),Gs(47,"5"),ts(),es(48,"td"),Gs(49,"Usar valor com 3 (tr\xeas) d\xedgitos para horas e 2 (dois) digitos para minutos sem separador. "),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Valor do evento"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"9"),ts(),es(57,"td"),Gs(58,"Valor do evento em R$.(Valor n\xe3o exportado pelo sistema, sera preenchido com zeros.)"),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(62,"li"),Gs(63,"Completar as colunas com 0 (zero) \xe0 esquerda at\xe9 completar seu tamanho m\xe1ximo."),ts(),es(64,"li"),Gs(65,"Ex.: "),es(66,"span",7),Gs(67,"999"),ts(),Gs(68,";"),es(69,"span",8),Gs(70,"999999"),ts(),Gs(71,";"),es(72,"span",9),Gs(73,"999"),ts(),Gs(74,";"),es(75,"span",13),Gs(76,"99999"),ts(),Gs(77,";"),es(78,"span",14),Gs(79,"999999999"),ts(),Gs(80,";"),ts(),ts(),ts())}function r3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"3"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Hexadecimal"),ts(),es(46,"td"),Gs(47,"5"),ts(),es(48,"td"),Gs(49,"Usar valor com 3 (tr\xeas) d\xedgitos para horas e 2 (dois) digitos para minutos. "),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(53,"li"),Gs(54,'As horas e minutos s\xe3o separados por "," (v\xedrgula).'),ts(),es(55,"li"),Gs(56,"Completar as colunas com 0 (zero) \xe0 esquerda at\xe9 completar seu tamanho m\xe1ximo."),ts(),es(57,"li"),Gs(58,"Ex.: "),es(59,"span",6),Gs(60,"9999"),ts(),Gs(61,";"),es(62,"span",7),Gs(63,"999999"),ts(),Gs(64,";"),es(65,"span",8),Gs(66,"999"),ts(),Gs(67,";"),es(68,"span",9),Gs(69,"999,99"),ts(),ts(),ts(),ts())}function s3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Hora"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"3"),ts(),es(48,"td"),Gs(49,"Informar as horas da rubrica."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Minuto"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"2"),ts(),es(57,"td"),Gs(58,"Informar os minutos da rubrica."),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(62,"li"),Gs(63,'Utiliza o separador "." (ponto) para hora e minuto.'),ts(),es(64,"li"),Gs(65,"Completar as colunas com 0 (zero) \xe0 esquerda at\xe9 completar seu tamanho m\xe1ximo."),ts(),es(66,"li"),Gs(67,"Ex.: "),es(68,"span",6),Gs(69,"9999"),ts(),Gs(70,";"),es(71,"span",7),Gs(72,"999999"),ts(),Gs(73,";"),es(74,"span",8),Gs(75,"999"),ts(),Gs(76,"."),es(77,"span",9),Gs(78,"99"),ts(),ts(),ts(),ts())}function l3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"-"),ts(),es(28,"td"),Gs(29,"#N(9,0)[EDICAD]#"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Hexadecimal"),ts(),es(46,"td"),Gs(47,"10 (9,2)"),ts(),es(48,"td"),Gs(49,"O valor \xe9 referente a rubrica."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Vari\xe1vel dPerRef"),ts(),es(53,"td"),Gs(54,"MMYYYY"),ts(),es(55,"td"),Gs(56,"5"),ts(),es(57,"td"),Gs(58,"Data refer\xeancia."),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(62,"li"),Gs(63,'O campo "valor" sempre deve ser informado em formato decimal.'),ts(),es(64,"li"),Gs(65,'Utiliza o delimitador ":" (dois-pontos) para separa\xe7\xe3o de horas e minutos.'),ts(),es(66,"li"),Gs(67,"Ex.: "),es(68,"span",6),Gs(69,"99"),ts(),Gs(70,";"),es(71,"span",7),Gs(72,"99"),ts(),Gs(73,";"),es(74,"span",8),Gs(75,"999:99"),ts(),Gs(76,";"),es(77,"span",9),Gs(78,"MMYYYY"),ts(),ts(),ts(),ts())}function c3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"11"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 o CPF do funcion\xe1rio."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Valor"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(41,"ul",5),es(42,"li"),Gs(43,"N\xe3o utilizar delimitador."),ts(),es(44,"li"),Gs(45,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(46,"li"),Gs(47,"Ex.: "),es(48,"span",6),Gs(49,"99999999999"),ts(),es(50,"span",7),Gs(51,"9999"),ts(),es(52,"span",8),Gs(53,"99999"),ts(),ts(),ts(),ts())}function u3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"11"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 o CPF do funcion\xe1rio."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Valor"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(41,"ul",5),es(42,"li"),Gs(43,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(44,"li"),Gs(45,'Utiliza o delimitador "," (v\xedrgula) para separa\xe7\xe3o de horas e minutos.'),ts(),es(46,"li"),Gs(47,"Ex.: "),es(48,"span",6),Gs(49,"99999999999"),ts(),Gs(50,";"),es(51,"span",7),Gs(52,"9999"),ts(),Gs(53,";"),es(54,"span",8),Gs(55,"999,99"),ts(),ts(),ts(),ts())}function d3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Refer\xeancia em horas"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"2"),ts(),es(48,"td"),Gs(49,"Quantidade de horas referente a rubrica."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Refer\xeancia em minutos"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"2"),ts(),es(57,"td"),Gs(58,"Quantidade de minutos referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,"N\xe3o utilizar delimitador."),ts(),es(62,"li"),Gs(63,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(64,"li"),Gs(65,"Ex.: "),es(66,"span",6),Gs(67,"9999"),ts(),es(68,"span",7),Gs(69,"999999"),ts(),es(70,"span",8),Gs(71,"99"),ts(),es(72,"span",9),Gs(73,"99"),ts(),ts(),ts(),ts())}function h3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Tipo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"1"),ts(),es(30,"td"),Gs(31,"Este campo sempre ser\xe1 fixado em 1."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"C\xf3digo do funcion\xe1rio"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"3"),ts(),es(39,"td"),Gs(40,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do c\xe1lculo"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"4"),ts(),es(48,"td"),Gs(49,"O c\xf3digo do c\xe1lculo \xe9 informado antes da exporta\xe7\xe3o, colocado pelo gestor."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Tabela de eventos"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"3"),ts(),es(57,"td"),Gs(58,"Sempre ser\xe1 fixada em 941"),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Rubrica"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"4"),ts(),es(66,"td"),Gs(67,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"Sequ\xeancia do evento"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"1"),ts(),es(75,"td"),Gs(76,"O valor sempre ser\xe1 fixado em 1."),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"Origem"),ts(),es(80,"td"),Gs(81,"Letra"),ts(),es(82,"td"),Gs(83,"C"),ts(),es(84,"td"),Gs(85,"A letra sempre ser\xe1 fixada em C."),ts(),ts(),es(86,"tr"),es(87,"td"),Gs(88,"Refer\xeancia evento"),ts(),es(89,"td"),Gs(90,"Num\xe9rico"),ts(),es(91,"td"),Gs(92,"4"),ts(),es(93,"td"),Gs(94,"O valor \xe9 referente a ao evento."),ts(),ts(),es(95,"tr"),es(96,"td"),Gs(97,"Valor do evento"),ts(),es(98,"td"),Gs(99,"Num\xe9rico"),ts(),es(100,"td"),Gs(101,"2"),ts(),es(102,"td"),Gs(103,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(104,"ul",5),es(105,"li"),Gs(106,'Utiliza o delimitador ";" (ponto e v\xedrgula).'),ts(),es(107,"li"),Gs(108,"Os valores dos campos cont\xe9m somente n\xfameros, somente em origem que existir\xe1 a letra C."),ts(),es(109,"li"),Gs(110,"Ex.: "),es(111,"span",6),Gs(112,"9999"),ts(),Gs(113,";"),es(114,"span",7),Gs(115,"9"),ts(),Gs(116,";"),es(117,"span",8),Gs(118,"999"),ts(),Gs(119,";"),es(120,"span",9),Gs(121,"9999"),ts(),Gs(122,";"),es(123,"span",10),Gs(124,"999"),ts(),Gs(125,";"),es(126,"span",12),Gs(127,"9999"),ts(),Gs(128," ;"),es(129,"span",11),Gs(130,"9"),ts(),Gs(131,";"),es(132,"span",13),Gs(133,"C"),ts(),Gs(134,";"),es(135,"span",14),Gs(136,"9999"),ts(),Gs(137,"."),es(138,"span",15),Gs(139,"99"),ts(),ts(),ts(),ts())}function f3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"5"),ts(),es(21,"td"),Gs(22,"Preenchido com zeros"),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"M\xeas"),ts(),es(26,"td"),Gs(27,"Data"),ts(),es(28,"td"),Gs(29,"2"),ts(),es(30,"td"),Gs(31,"Representa o m\xeas do pagamento"),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Ano refer\xeancia"),ts(),es(35,"td"),Gs(36,"Data"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"Ano em que se est\xe1 fazendo a exporta\xe7\xe3o"),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Matr\xedcula do funcion\xe1rio"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"5"),ts(),es(48,"td"),Gs(49,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Contrato"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"3"),ts(),es(57,"td"),Gs(58,"Sempre ser\xe1 fixada em 001"),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Valor da rubrica"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"11"),ts(),es(66,"td"),Gs(67,"Esse campo \xe9 preenchido com as horas"),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"Evento"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"4"),ts(),es(75,"td"),Gs(76,"O c\xf3digo do evento \xe9 informado na primeira etapa da configura\xe7\xe3o"),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"Tipo"),ts(),es(80,"td"),Gs(81,"Texto"),ts(),es(82,"td"),Gs(83,"1"),ts(),es(84,"td"),Gs(85,"Esse campo ser\xe1 fixado em H"),ts(),ts(),es(86,"tr"),es(87,"td"),Gs(88,"Final"),ts(),es(89,"td"),Gs(90,"Num\xe9rico"),ts(),es(91,"td"),Gs(92,"8"),ts(),es(93,"td"),Gs(94,"Esse campo \xe9 fixado em zeros"),ts(),ts(),ts(),ts(),ts(),es(95,"ul",5),es(96,"li"),Gs(97,"Utiliza espa\xe7os em branco como delimitador entre alguns campos"),ts(),es(98,"li"),Gs(99,"Os campos do tipo num\xe9rico ser\xe3o preenchidos com 0 (zero) para completar o seu tamanho."),ts(),es(100,"li"),Gs(101,"Ex.: "),es(102,"span",6),Gs(103,"99999"),ts(),es(104,"span",7),Gs(105,"99"),ts(),es(106,"span",8),Gs(107,"9999\xa0"),ts(),es(108,"span",9),Gs(109,"99999"),ts(),es(110,"span",10),Gs(111,"999\xa0\xa0"),ts(),es(112,"span",12),Gs(113,"99999999999\xa0"),ts(),es(114,"span",11),Gs(115,"9999"),ts(),es(116,"span",13),Gs(117,"9\xa0\xa0"),ts(),es(118,"span",15),Gs(119,"99999999"),ts(),ts(),ts(),ts())}function m3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"10"),ts(),es(21,"td"),Gs(22,"O c\xf3digo ser\xe1 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo da empresa"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"5"),ts(),es(30,"td"),Gs(31,"O c\xf3digo ser\xe1 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"C\xf3digo do evento"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o em rubricas."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor do evento"),ts(),es(44,"td"),Gs(45,"Num\xe9rico, centesimal"),ts(),es(46,"td"),Gs(47,"15"),ts(),es(48,"td"),Gs(49,"\xc9 o valor referente ao evento"),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Tipo do funcion\xe1rio"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"2"),ts(),es(57,"td"),Gs(58,"Sempre ser\xe1 fixada em 01"),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Data da presta\xe7\xe3o"),ts(),es(62,"td"),Gs(63,"data"),ts(),es(64,"td"),Gs(65,"10"),ts(),es(66,"td"),Gs(67,"Esse campo \xe9 preenchido com espa\xe7os em branco."),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"Descri\xe7\xe3o da presta\xe7\xe3o"),ts(),es(71,"td"),Gs(72,"Texto"),ts(),es(73,"td"),Gs(74,"50"),ts(),es(75,"td"),Gs(76,"Esse campo \xe9 preenchido com espa\xe7os em branco."),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"Status do recibo"),ts(),es(80,"td"),Gs(81,"num\xe9rico"),ts(),es(82,"td"),Gs(83,"02"),ts(),es(84,"td"),Gs(85,"Esse campo ser\xe1 fixado em 00"),ts(),ts(),ts(),ts(),ts(),es(86,"ul",5),es(87,"li"),Gs(88,"Os valores dos campos cont\xe9m somente n\xfameros, com exce\xe7\xe3o dos que s\xe3o preenchidos com espa\xe7os em branco. "),ts(),es(89,"li"),Gs(90,"Os campos do tipo num\xe9rico ser\xe3o preenchidos com 0 (zero) para completar o seu tamanho."),ts(),es(91,"li"),Gs(92,"Ex.: "),es(93,"span",6),Gs(94,"9999999999"),ts(),es(95,"span",7),Gs(96,"99999"),ts(),es(97,"span",8),Gs(98,"99999"),ts(),es(99,"span",9),Gs(100,"999999999999999"),ts(),es(101,"span",10),Gs(102,"99"),ts(),es(103,"span",12),Gs(104,"(10 espa\xe7os em branco)"),ts(),es(105,"span",11),Gs(106,"(50 espa\xe7os em branco)"),ts(),es(107,"span",13),Gs(108,"99"),ts(),ts(),ts(),ts())}function p3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"CNPJ"),ts(),es(19,"td"),Gs(20,"14"),ts(),es(21,"td"),Gs(22,"O CNPJ da empresa \xe9 informado na primeira etapa da configura\xe7\xe3o"),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"CPF"),ts(),es(28,"td"),Gs(29,"11"),ts(),es(30,"td"),Gs(31,"O c\xf3digo do funcion\xe1rio \xe9 o n\xfamero de CPF que foi cadastrado no sistema"),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Data"),ts(),es(35,"td"),Gs(36,"Data"),ts(),es(37,"td"),Gs(38,"8"),ts(),es(39,"td"),Gs(40,"A data \xe9 informada no padr\xe3o dia m\xeas e ano (ddmmaaaa)"),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do evento"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"3"),ts(),es(48,"td"),Gs(49,"O c\xf3digo do evento \xe9 informado na primeira etapa da configura\xe7\xe3o"),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Quantidade"),ts(),es(53,"td"),Gs(54,"Num\xe9rico, decimal"),ts(),es(55,"td"),Gs(56,"6"),ts(),es(57,"td"),Gs(58,"Quantidade de horas referente ao evento"),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,"Os campos do tipo num\xe9rico ser\xe3o preenchidos com 0 (zero) para completar o seu tamanho."),ts(),es(62,"li"),Gs(63,"Ex.: "),es(64,"span",6),Gs(65,"99999999999999"),ts(),es(66,"span",7),Gs(67,"99999999999"),ts(),es(68,"span",8),Gs(69,"99999999"),ts(),es(70,"span",9),Gs(71,"999"),ts(),es(72,"span",10),Gs(73,"999999"),ts(),ts(),ts(),ts())}function g3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"Codigo do registro"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"2"),ts(),es(21,"td"),Gs(22,"Este campo sempre ser\xe1 fixado em 01."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo da empresa"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Tipo do funcion\xe1rio"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"1"),ts(),es(39,"td"),Gs(40,"Este campo sempre ser\xe1 fixado em 1."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do funcion\xe1rio"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"3"),ts(),es(48,"td"),Gs(49,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"C\xf3digo do c\xe1lculo"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"5"),ts(),es(57,"td"),Gs(58,"O c\xf3digo do c\xe1lculo \xe9 informado antes da exporta\xe7\xe3o, colocado pelo gestor."),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Tabela de eventos"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"3"),ts(),es(66,"td"),Gs(67,"Este campo sempre ser\xe1 fixado em 001"),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"C\xf3digo Rateio"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"9"),ts(),es(75,"td"),Gs(76,"Fixo zero pois empresa n\xe3o usa rateio."),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"Sequ\xeancia do evento"),ts(),es(80,"td"),Gs(81,"Num\xe9rico"),ts(),es(82,"td"),Gs(83,"2"),ts(),es(84,"td"),Gs(85,"Este campo sempre ser\xe1 fixado em 00."),ts(),ts(),es(86,"tr"),es(87,"td"),Gs(88,"Refer\xeancia evento"),ts(),es(89,"td"),Gs(90,"Num\xe9rico"),ts(),es(91,"td"),Gs(92,"4"),ts(),es(93,"td"),Gs(94,"O valor \xe9 referente ao evento."),ts(),ts(),es(95,"tr"),es(96,"td"),Gs(97,"Valor do evento"),ts(),es(98,"td"),Gs(99,"Num\xe9rico"),ts(),es(100,"td"),Gs(101,"2"),ts(),es(102,"td"),Gs(103,"Este campo sempre ser\xe1 fixado em 00000000000."),ts(),ts(),es(104,"tr"),es(105,"td"),Gs(106,"Origem"),ts(),es(107,"td"),Gs(108,"Letra"),ts(),es(109,"td"),Gs(110,"I"),ts(),es(111,"td"),Gs(112,"A letra sempre ser\xe1 fixada em I."),ts(),ts(),ts(),ts(),ts(),es(113,"ul",5),es(114,"li"),Gs(115,"N\xe3o utiliza o delimitador."),ts(),es(116,"li"),Gs(117,"Os valores dos campos cont\xe9m somente n\xfameros, somente em origem que existir\xe1 a letra I."),ts(),es(118,"li"),Gs(119,"Ex.: "),es(120,"span",6),Gs(121,"99"),ts(),es(122,"span",7),Gs(123,"9999"),ts(),es(124,"span",8),Gs(125,"9"),ts(),es(126,"span",9),Gs(127,"999"),ts(),es(128,"span",10),Gs(129,"99999"),ts(),es(130,"span",12),Gs(131,"999"),ts(),es(132,"span",11),Gs(133,"999999999"),ts(),es(134,"span",14),Gs(135,"99"),ts(),es(136,"span",15),Gs(137,"9999"),ts(),es(138,"span",6),Gs(139,"99"),ts(),es(140,"span",13),Gs(141,"I"),ts(),ts(),ts(),ts())}function v3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"Codigo do registro"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"2"),ts(),es(21,"td"),Gs(22,"Este campo sempre ser\xe1 fixado em 01."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo da empresa"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Tipo do funcion\xe1rio"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"1"),ts(),es(39,"td"),Gs(40,"Este campo sempre ser\xe1 fixado em 1."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do funcion\xe1rio"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"9"),ts(),es(48,"td"),Gs(49,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"C\xf3digo do c\xe1lculo"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"5"),ts(),es(57,"td"),Gs(58,"O c\xf3digo do c\xe1lculo \xe9 informado antes da exporta\xe7\xe3o, colocado pelo gestor."),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Tabela de eventos"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"3"),ts(),es(66,"td"),Gs(67,"Este campo sempre ser\xe1 fixado em 001"),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"C\xf3digo do Evento"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"4"),ts(),es(75,"td"),Gs(76,"informado na primeira etapa da configura\xe7\xe3o"),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"C\xf3digo do Rateio"),ts(),es(80,"td"),Gs(81,"Num\xe9rico"),ts(),es(82,"td"),Gs(83,"9"),ts(),es(84,"td"),Gs(85,"Fixo zero pois empresa n\xe3o usa rateio."),ts(),ts(),es(86,"tr"),es(87,"td"),Gs(88,"Sequ\xeancia do evento"),ts(),es(89,"td"),Gs(90,"Num\xe9rico"),ts(),es(91,"td"),Gs(92,"2"),ts(),es(93,"td"),Gs(94,"Este campo sempre ser\xe1 fixado em 00."),ts(),ts(),es(95,"tr"),es(96,"td"),Gs(97,"Refer\xeancia do evento"),ts(),es(98,"td"),Gs(99,"Num\xe9rico"),ts(),es(100,"td"),Gs(101,"11"),ts(),es(102,"td"),Gs(103,"Valor da rubrica"),ts(),ts(),es(104,"tr"),es(105,"td"),Gs(106,"Valor do Evento"),ts(),es(107,"td"),Gs(108,"Num\xe9rico"),ts(),es(109,"td"),Gs(110,"11"),ts(),es(111,"td"),Gs(112,"Este campo sempre ser\xe1 fixado em 00000000000."),ts(),ts(),es(113,"tr"),es(114,"td"),Gs(115,"Origem do evento"),ts(),es(116,"td"),Gs(117,"Alfa num\xe9rico"),ts(),es(118,"td"),Gs(119,"1"),ts(),es(120,"td"),Gs(121,"Este campo sempre ser\xe1 fixado em I."),ts(),ts(),ts(),ts(),ts(),es(122,"ul",5),es(123,"li"),Gs(124,"N\xe3o utiliza o delimitador."),ts(),es(125,"li"),Gs(126,"Os valores dos campos cont\xe9m somente n\xfameros"),ts(),es(127,"li"),Gs(128,"Ex.: "),es(129,"span",6),Gs(130,"99"),ts(),es(131,"span",7),Gs(132,"9999"),ts(),es(133,"span",8),Gs(134,"9"),ts(),es(135,"span",9),Gs(136,"999999999"),ts(),es(137,"span",10),Gs(138,"99999"),ts(),es(139,"span",12),Gs(140,"999"),ts(),es(141,"span",11),Gs(142,"9999"),ts(),es(143,"span",14),Gs(144,"999999999"),ts(),es(145,"span",15),Gs(146,"99"),ts(),es(147,"span",9),Gs(148,"99999999999"),ts(),es(149,"span",16),Gs(150,"99999999999"),ts(),es(151,"span",6),Gs(152,"I"),ts(),ts(),ts(),ts())}function y3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Conte\xfado"),ts(),ts(),ts(),es(11,"tbody"),es(12,"tr"),es(13,"td"),Gs(14,"NOME"),ts(),es(15,"td"),Gs(16,"Texto"),ts(),es(17,"td"),Gs(18,"Nome do funcion\xe1rio."),ts(),ts(),es(19,"tr"),es(20,"td"),Gs(21,"CPF"),ts(),es(22,"td"),Gs(23,"Num\xe9rico"),ts(),es(24,"td"),Gs(25,"CPF do funcion\xe1rio."),ts(),ts(),es(26,"tr"),es(27,"td"),Gs(28,"VALOR"),ts(),es(29,"td"),Gs(30,"Num\xe9rico"),ts(),es(31,"td"),Gs(32,"Valor total do vale."),ts(),ts(),es(33,"tr"),es(34,"td"),Gs(35,"MATR\xcdCULA"),ts(),es(36,"td"),Gs(37,"Num\xe9rico"),ts(),es(38,"td"),Gs(39,"Matr\xedcula do funcin\xe1rio."),ts(),ts(),es(40,"tr"),es(41,"td"),Gs(42,"FILIAL"),ts(),es(43,"td"),Gs(44,"Num\xe9rico"),ts(),es(45,"td"),Gs(46,"Sempre ser\xe1 fixado em 0."),ts(),ts(),es(47,"tr"),es(48,"td"),Gs(49,"SETOR"),ts(),es(50,"td"),Gs(51,"Num\xe9rico"),ts(),es(52,"td"),Gs(53,"Sempre ser\xe1 fixado em 0."),ts(),ts(),es(54,"tr"),es(55,"td"),Gs(56,"CCUSTO"),ts(),es(57,"td"),Gs(58,"Num\xe9rico"),ts(),es(59,"td"),Gs(60,"Sempre ser\xe1 fixado em 0."),ts(),ts(),ts(),ts(),ts(),es(61,"ul",5),es(62,"li"),Gs(63,"Utiliza o delimitador ;."),ts(),es(64,"li"),Gs(65,"Ex.: "),es(66,"span",6),Gs(67,"NOME"),ts(),Gs(68,";"),es(69,"span",7),Gs(70,"CPF"),ts(),Gs(71,";"),es(72,"span",8),Gs(73,"VALOR"),ts(),Gs(74,";"),es(75,"span",9),Gs(76,"MATRICULA"),ts(),Gs(77,";"),es(78,"span",10),Gs(79,"FILIAL"),ts(),Gs(80,";"),es(81,"span",12),Gs(82,"SETOR"),ts(),Gs(83,";"),es(84,"span",17),Gs(85,"CCUSTO"),ts(),ts(),ts(),ts())}function b3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"7"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"4"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Refer\xeancia"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"6"),ts(),es(39,"td"),Gs(40,"A quantidade \xe9 referente a rubrica."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"4"),ts(),es(48,"td"),Gs(49,'Ser\xe1 a quantidade em dias no campo referencia, caso seja utilizado a rubrica "Dias de faltas integrais". '),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,"N\xe3o utilizar delimitador."),ts(),es(53,"li"),Gs(54,"Os valores dos campos podem conter somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Ex.: "),es(57,"span",6),Gs(58,"9999999"),ts(),es(59,"span",7),Gs(60,"9999"),ts(),es(61,"span",8),Gs(62,"999999"),ts(),es(63,"span",9),Gs(64,"9999"),ts(),ts(),ts(),ts())}function _3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Inteiro"),ts(),es(19,"td"),Gs(20,"5"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Inteiro"),ts(),es(28,"td"),Gs(29,"5"),ts(),es(30,"td"),Gs(31,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Valor"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(41,"ul",5),es(42,"li"),Gs(43,"Utiliza ponto e v\xedrgula (;) como delimitador."),ts(),es(44,"li"),Gs(45,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(46,"li"),Gs(47,"Completa os campos com zeros \xe0 esquerda se necess\xe1rio"),ts(),es(48,"li"),Gs(49,"Ex.: "),es(50,"span",6),Gs(51,"99999"),ts(),Gs(52,";"),es(53,"span",7),Gs(54,"99999"),ts(),Gs(55,";"),es(56,"span",8),Gs(57,"99999"),ts(),ts(),ts(),ts())}function k3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da Empresa"),ts(),es(17,"td"),Gs(18,"Inteiro"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo da empresa \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Inteiro"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo do funcion\xe1rio \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Rubrica"),ts(),es(35,"td"),Gs(36,"Inteiro"),ts(),es(37,"td"),Gs(38,"4"),ts(),es(39,"td"),Gs(40,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Hora"),ts(),es(46,"td"),Gs(47,"7"),ts(),es(48,"td"),Gs(49,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,"N\xe3o faz uso de delimitador"),ts(),es(53,"li"),Gs(54,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(55,"li"),Gs(56,"Completa os campos com zeros \xe0 esquerda se necess\xe1rio"),ts(),es(57,"li"),Gs(58,"Ex.: "),es(59,"span",6),Gs(60,"9999"),ts(),es(61,"span",7),Gs(62,"999999"),ts(),es(63,"span",8),Gs(64,"9999"),ts(),es(65,"span",9),Gs(66,"9999999"),ts(),ts(),ts(),ts())}function C3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),ns(19,"td"),es(20,"td"),Gs(21,"O c\xf3digo \xe9 o CPF do funcion\xe1rio."),ts(),ts(),es(22,"tr"),es(23,"td"),Gs(24,"Rubrica"),ts(),es(25,"td"),Gs(26,"Num\xe9rico"),ts(),ns(27,"td"),es(28,"td"),Gs(29,"A rubrica \xe9 informada na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(30,"tr"),es(31,"td"),Gs(32,"Valor"),ts(),es(33,"td"),Gs(34,"Num\xe9rico"),ts(),ns(35,"td"),es(36,"td"),Gs(37,"O valor \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(38,"ul",5),es(39,"li"),Gs(40,'Utiliza o delimitador ";" para poder formatar o CSV.'),ts(),es(41,"li"),Gs(42,"Os valores dos campos cont\xe9m somente n\xfameros."),ts(),es(43,"li"),Gs(44,'O campo "valor" \xe9 informado em formato centesimal.'),ts(),es(45,"li"),Gs(46,"Est\xe1 exporta\xe7\xe3o \xe9 emitida em formato CSV."),ts(),es(47,"li"),Gs(48,"Ex.: "),es(49,"span",6),Gs(50,"99999999999"),ts(),Gs(51,";"),es(52,"span",7),Gs(53,"9999"),ts(),Gs(54,";"),es(55,"span",8),Gs(56,"99999"),ts(),ts(),ts(),ts())}function w3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"CPF"),ts(),es(19,"td"),Gs(20,"11"),ts(),es(21,"td"),Gs(22,"CPF informado no cadastro de funcion\xe1rio"),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"5"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Refer\xeancia"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"6"),ts(),es(39,"td"),Gs(40,"A quantidade \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(41,"ul",5),es(42,"li"),Gs(43,"N\xe3o utilizar delimitador."),ts(),es(44,"li"),Gs(45,"Os valores dos campos podem conter somente n\xfameros."),ts(),es(46,"li"),Gs(47,"Ex.: "),es(48,"span",6),Gs(49,"99999999999"),ts(),es(50,"span",7),Gs(51,"99999"),ts(),es(52,"span",8),Gs(53,"999999"),ts(),ts(),ts(),ts())}function x3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"5"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"3"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Quantidade de horas"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"6"),ts(),es(39,"td"),Gs(40,"A quantidade \xe9 referente a rubrica."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"12"),ts(),ns(48,"td"),ts(),es(49,"tr"),es(50,"td"),Gs(51,"Tipo de folha"),ts(),es(52,"td"),Gs(53,"Num\xe9rico"),ts(),es(54,"td"),Gs(55,"1"),ts(),es(56,"td"),Gs(57,"Fixo o valor 7"),ts(),ts(),ts(),ts(),ts(),es(58,"ul",5),es(59,"li"),Gs(60,'Utiliza o delimitador ";"'),ts(),es(61,"li"),Gs(62,"Os valores dos campos podem conter somente n\xfameros."),ts(),es(63,"li"),Gs(64,"Ex.: "),es(65,"span",6),Gs(66,"9999999"),ts(),Gs(67,";"),es(68,"span",7),Gs(69,"9999"),ts(),Gs(70,";"),es(71,"span",8),Gs(72,"999999"),ts(),Gs(73,";"),es(74,"span",9),Gs(75,"9999"),ts(),Gs(76,";"),es(77,"span",11),Gs(78,"9"),ts(),ts(),ts(),ts())}function M3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do funcion\xe1rio"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"5"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Rubrica"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"3"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Quantidade de horas"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"5"),ts(),es(39,"td"),Gs(40,"A quantidade \xe9 referente a rubrica."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"9"),ts(),es(48,"td"),Gs(49,"Valor a ser pago/descontado (n\xe3o \xe9 exportado)"),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"V\xednculo"),ts(),es(53,"td"),Gs(54,"Alfanum\xe9rico"),ts(),es(55,"td"),Gs(56,"20"),ts(),es(57,"td"),Gs(58,"V\xednculo alfanum\xe9rico para o funcion\xe1rio (n\xe3o \xe9 exportado)"),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Evento"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"5"),ts(),es(66,"td"),Gs(67,"Codigo do evento com mais de 3 digitos, se utilizado informar ZEROS no evento (n\xe3o \xe9 exportado) "),ts(),ts(),ts(),ts(),ts(),es(68,"ul",5),es(69,"li"),Gs(70,'Utiliza o delimitador "|"'),ts(),es(71,"li"),Gs(72,"Os valores dos campos podem conter somente n\xfameros."),ts(),es(73,"li"),Gs(74,"Ex.: "),es(75,"span",6),Gs(76,"99999"),ts(),Gs(77,";"),es(78,"span",7),Gs(79,"999"),ts(),Gs(80,";"),es(81,"span",8),Gs(82,"999999"),ts(),Gs(83,";"),es(84,"span",9),Gs(85,"999999999"),ts(),Gs(86,";"),es(87,"span",11),Gs(88,"99999999999999999999"),ts(),Gs(89,";"),es(90,"span",14),Gs(91,"99999"),ts(),ts(),ts(),ts())}function S3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do evento"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"3"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"5"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Refer\xeancia do evento"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"7"),ts(),es(39,"td"),Gs(40,"Refer\xeancia ao evento(n\xe3o \xe9 exportado)"),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor do evento"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"15"),ts(),es(48,"td"),Gs(49,"A quantidade \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,"Os valores dos campos podem conter somente n\xfameros."),ts(),es(53,"li"),Gs(54,"Ex.: "),es(55,"span",6),Gs(56,"999"),ts(),es(57,"span",7),Gs(58,"99999"),ts(),es(59,"span",8),Gs(60,"9999999"),ts(),es(61,"span",9),Gs(62,"999999999999999"),ts(),ts(),ts(),ts())}function P3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo do evento"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"6"),ts(),es(30,"td"),Gs(31,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Refer\xeancia do evento"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"7"),ts(),es(39,"td"),Gs(40,"Refer\xeancia ao evento(n\xe3o \xe9 exportado)"),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"Valor do evento"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"15"),ts(),es(48,"td"),Gs(49,"A quantidade \xe9 referente a rubrica."),ts(),ts(),ts(),ts(),ts(),es(50,"ul",5),es(51,"li"),Gs(52,"Os valores dos campos podem conter somente n\xfameros."),ts(),es(53,"li"),Gs(54,"Ex.: "),es(55,"span",6),Gs(56,"9999"),ts(),es(57,"span",7),Gs(58,"999999"),ts(),es(59,"span",8),Gs(60,"9999999"),ts(),es(61,"span",9),Gs(62,"999999999999999"),ts(),ts(),ts(),ts())}function T3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"Codigo da empresa"),ts(),es(17,"td"),Gs(18,"Num\xe9rico"),ts(),es(19,"td"),Gs(20,"4"),ts(),es(21,"td"),Gs(22,"O c\xf3digo \xe9 informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"Tipo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"Num\xe9rico"),ts(),es(28,"td"),Gs(29,"1"),ts(),es(30,"td"),Gs(31,"Este campo sempre ser\xe1 fixado em 1."),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"C\xf3digo do funcion\xe1rio"),ts(),es(35,"td"),Gs(36,"Num\xe9rico"),ts(),es(37,"td"),Gs(38,"3"),ts(),es(39,"td"),Gs(40,"O c\xf3digo \xe9 informado na segunda etapa da configura\xe7\xe3o."),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do c\xe1lculo"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"4"),ts(),es(48,"td"),Gs(49,"O c\xf3digo do c\xe1lculo \xe9 informado antes da exporta\xe7\xe3o, colocado pelo gestor."),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Tabela de eventos"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"3"),ts(),es(57,"td"),Gs(58,"C\xf3digo referente a tabela de eventos."),ts(),ts(),es(59,"tr"),es(60,"td"),Gs(61,"Rubrica"),ts(),es(62,"td"),Gs(63,"Num\xe9rico"),ts(),es(64,"td"),Gs(65,"4"),ts(),es(66,"td"),Gs(67,"informado na primeira etapa da configura\xe7\xe3o."),ts(),ts(),es(68,"tr"),es(69,"td"),Gs(70,"Sequ\xeancia do evenmto"),ts(),es(71,"td"),Gs(72,"Num\xe9rico"),ts(),es(73,"td"),Gs(74,"1"),ts(),es(75,"td"),Gs(76,"Referente a sequ\xeancia de eventos"),ts(),ts(),es(77,"tr"),es(78,"td"),Gs(79,"Origem do evento"),ts(),es(80,"td"),Gs(81,"Alfanum\xe9rico maiusculo"),ts(),es(82,"td"),Gs(83,"1"),ts(),es(84,"td"),Gs(85,"Sempre fixado em U"),ts(),ts(),es(86,"tr"),es(87,"td"),Gs(88,"Refer\xeancia do evento"),ts(),es(89,"td"),Gs(90,"Num\xe9rico"),ts(),ns(91,"td"),es(92,"td"),Gs(93,"Este campo sempre ser\xe1 fixado em 000,00"),ts(),ts(),es(94,"tr"),es(95,"td"),Gs(96,"Valor do evento"),ts(),es(97,"td"),Gs(98,"Num\xe9rico"),ts(),ns(99,"td"),es(100,"td"),Gs(101,"Valor da rubrica"),ts(),ts(),ts(),ts(),ts(),es(102,"ul",5),es(103,"li"),Gs(104,"N\xe3o utiliza o delimitador."),ts(),es(105,"li"),Gs(106,"Os valores dos campos cont\xe9m somente n\xfameros"),ts(),es(107,"li"),Gs(108,"Ex.: "),es(109,"span",6),Gs(110,"9999"),ts(),Gs(111,";"),es(112,"span",7),Gs(113,"9"),ts(),Gs(114,";"),es(115,"span",8),Gs(116,"999"),ts(),Gs(117,";"),es(118,"span",9),Gs(119,"9999"),ts(),Gs(120,";"),es(121,"span",10),Gs(122,"999"),ts(),Gs(123,";"),es(124,"span",12),Gs(125,"9999"),ts(),Gs(126,"; "),es(127,"span",11),Gs(128,"9"),ts(),Gs(129,";"),es(130,"span",14),Gs(131,"U"),ts(),Gs(132,";"),es(133,"span",15),Gs(134,"000,00"),ts(),Gs(135,";"),es(136,"span",9),Gs(137,"999,99"),ts(),ts(),ts(),ts())}function O3(e,t){1&e&&(es(0,"div"),es(1,"div",4),es(2,"table"),es(3,"thead"),es(4,"tr"),es(5,"th"),Gs(6,"Campo"),ts(),es(7,"th"),Gs(8,"Tipo"),ts(),es(9,"th"),Gs(10,"Tamanho"),ts(),es(11,"th"),Gs(12,"Conte\xfado"),ts(),ts(),ts(),es(13,"tbody"),es(14,"tr"),es(15,"td"),Gs(16,"C\xf3digo da empresa"),ts(),es(17,"td"),Gs(18,"N\xfamerico"),ts(),es(19,"td"),Gs(20,"03"),ts(),es(21,"td"),Gs(22,"O c\xf3digo da empresa \xe9 informado na primeira etapa da configura\xe7\xe3o"),ts(),ts(),es(23,"tr"),es(24,"td"),Gs(25,"C\xf3digo do funcion\xe1rio"),ts(),es(26,"td"),Gs(27,"N\xfamerico"),ts(),es(28,"td"),Gs(29,"11"),ts(),es(30,"td"),Gs(31,"O c\xf3digo do funcion\xe1rio \xe9 o n\xfamero de CPF e/ou PIS que foi cadastrado no sistema"),ts(),ts(),es(32,"tr"),es(33,"td"),Gs(34,"Data"),ts(),es(35,"td"),Gs(36,"Data"),ts(),es(37,"td"),Gs(38,"08"),ts(),es(39,"td"),Gs(40,"A data \xe9 informada no padr\xe3o dia m\xeas e ano (ddmmaaaa)"),ts(),ts(),es(41,"tr"),es(42,"td"),Gs(43,"C\xf3digo do evento"),ts(),es(44,"td"),Gs(45,"Num\xe9rico"),ts(),es(46,"td"),Gs(47,"03"),ts(),es(48,"td"),Gs(49,"O c\xf3digo do evento \xe9 informado na primeira etapa da configura\xe7\xe3o"),ts(),ts(),es(50,"tr"),es(51,"td"),Gs(52,"Valor do evento"),ts(),es(53,"td"),Gs(54,"Num\xe9rico"),ts(),es(55,"td"),Gs(56,"05"),ts(),es(57,"td"),Gs(58,"O valor do evento \xe9 em formato centesimal"),ts(),ts(),ts(),ts(),ts(),es(59,"ul",5),es(60,"li"),Gs(61,"Os campos do tipo num\xe9rico ser\xe3o preenchidos com 0 (zero) para completar o seu tamanho."),ts(),es(62,"li"),Gs(63,'Utiliza o delimitador " " (espa\xe7o).'),ts(),es(64,"li"),Gs(65,"Ex.: "),es(66,"span",6),Gs(67,"999"),ts(),es(68,"span",7),Gs(69,"99999999999"),ts(),es(70,"span",8),Gs(71,"99999999"),ts(),es(72,"span",9),Gs(73,"999"),ts(),es(74,"span",13),Gs(75,"99999"),ts(),ts(),ts(),ts())}var L3,D3=((L3=function(){return d((function e(){c(this,e),this.exportSelected=null,this.showModal=!0,this.hideModal=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||L3)},L3.\u0275cmp=Ot({type:L3,selectors:[["io-modal-info-layout"]],inputs:{exportSelected:"exportSelected",showModal:"showModal"},outputs:{hideModal:"hideModal"},decls:41,vars:41,consts:[[3,"showModal","hideModal"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[4,"ngIf"],[1,"flex","form-group","inputAnimated","mrgB1"],[1,"listInfo"],[1,"red"],[1,"blue"],[1,"green"],[1,"deeppink"],[1,"darkOrange"],[1,"acua"],[1,"darkBlue"],[1,"purple"],[1,"orange"],[1,"newgreen"],[1,"yellow"],[1,"pink"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),ns(2,"io-main-top",2),ts(),Jr(3,W2,71,0,"div",3),Jr(4,J2,98,2,"div",3),Jr(5,G2,68,0,"div",3),Jr(6,$2,68,0,"div",3),Jr(7,Q2,68,0,"div",3),Jr(8,K2,76,0,"div",3),Jr(9,Z2,78,0,"div",3),Jr(10,X2,54,0,"div",3),Jr(11,e3,65,0,"div",3),Jr(12,t3,54,0,"div",3),Jr(13,n3,63,0,"div",3),Jr(14,i3,98,0,"div",3),Jr(15,o3,117,0,"div",3),Jr(16,a3,81,0,"div",3),Jr(17,r3,70,0,"div",3),Jr(18,s3,79,0,"div",3),Jr(19,l3,79,0,"div",3),Jr(20,c3,54,0,"div",3),Jr(21,u3,56,0,"div",3),Jr(22,d3,74,0,"div",3),Jr(23,h3,140,0,"div",3),Jr(24,f3,120,0,"div",3),Jr(25,m3,109,0,"div",3),Jr(26,p3,74,0,"div",3),Jr(27,g3,142,0,"div",3),Jr(28,v3,153,0,"div",3),Jr(29,y3,86,0,"div",3),Jr(30,b3,65,0,"div",3),Jr(31,_3,58,0,"div",3),Jr(32,k3,67,0,"div",3),Jr(33,C3,57,0,"div",3),Jr(34,w3,54,0,"div",3),Jr(35,x3,79,0,"div",3),Jr(36,M3,92,0,"div",3),Jr(37,S3,63,0,"div",3),Jr(38,P3,63,0,"div",3),Jr(39,T3,138,0,"div",3),Jr(40,O3,76,0,"div",3),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Zr("moduleName","exportSelected")("titleTop","Layout de exporta\xe7\xe3o: "+t.exportSelected.name),Bo(1),Zr("ngIf","Contabit"===t.exportSelected.name),Bo(1),Zr("ngIf","Dom\xednio Sistemas"===t.exportSelected.name),Bo(1),Zr("ngIf","IoB"===t.exportSelected.name),Bo(1),Zr("ngIf","Jbsoft"===t.exportSelected.name),Bo(1),Zr("ngIf","Jbsoft(Beta)"===t.exportSelected.name),Bo(1),Zr("ngIf","Metadados"===t.exportSelected.name),Bo(1),Zr("ngIf","Metadados - Centesimal"===t.exportSelected.name),Bo(1),Zr("ngIf","PhSoftware"===t.exportSelected.name),Bo(1),Zr("ngIf","PhSoftware - Layout 2"===t.exportSelected.name),Bo(1),Zr("ngIf","PhSoftware(Beta)"===t.exportSelected.name),Bo(1),Zr("ngIf","Priori"===t.exportSelected.name),Bo(1),Zr("ngIf","Prosoft"===t.exportSelected.name),Bo(1),Zr("ngIf","Questor - Layout 1"===t.exportSelected.name),Bo(1),Zr("ngIf","Questor - Layout 2"===t.exportSelected.name),Bo(1),Zr("ngIf","Questor - Layout 3"===t.exportSelected.name),Bo(1),Zr("ngIf","SCI/Practice"===t.exportSelected.name),Bo(1),Zr("ngIf","Senior Sistemas"===t.exportSelected.name),Bo(1),Zr("ngIf","Sgd"===t.exportSelected.name),Bo(1),Zr("ngIf","Sinergie"===t.exportSelected.name),Bo(1),Zr("ngIf","VetorRh"===t.exportSelected.name),Bo(1),Zr("ngIf","Senior 2"===t.exportSelected.name),Bo(1),Zr("ngIf","Exactus"===t.exportSelected.name),Bo(1),Zr("ngIf","Contmatic Phoenix"===t.exportSelected.name),Bo(1),Zr("ngIf","Consisa"===t.exportSelected.name),Bo(1),Zr("ngIf","Senior 3"===t.exportSelected.name),Bo(1),Zr("ngIf","Senior 4"===t.exportSelected.name),Bo(1),Zr("ngIf","Personal Card"===t.exportSelected.name),Bo(1),Zr("ngIf","PhSoftwares - Layout 3"===t.exportSelected.name),Bo(1),Zr("ngIf","Useall"===t.exportSelected.name),Bo(1),Zr("ngIf","SCI Unico"===t.exportSelected.name),Bo(1),Zr("ngIf","Protheus - Centesimal"===t.exportSelected.name),Bo(1),Zr("ngIf","PhSoftware - Layout 4"===t.exportSelected.name),Bo(1),Zr("ngIf","PS Sistemas Ltda"===t.exportSelected.name),Bo(1),Zr("ngIf","SAGE"===t.exportSelected.name),Bo(1),Zr("ngIf","System"===t.exportSelected.name),Bo(1),Zr("ngIf","System 2"===t.exportSelected.name),Bo(1),Zr("ngIf","Senior 5"===t.exportSelected.name),Bo(1),Zr("ngIf","SGRH"===t.exportSelected.name))},directives:[CE,eI,sh],styles:[".inputStyle[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .inputStyle[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{border-bottom:2px solid var(--cl-black);width:90%;margin-bottom:25px}[_ngcontent-%COMP%]::-moz-placeholder{color:var(--cl-gray-dark);font-weight:700}[_ngcontent-%COMP%]::placeholder{color:var(--cl-gray-dark);font-weight:700}.borderBottom[_ngcontent-%COMP%]{border-bottom:2px solid var(--cl-black)}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.iconSelectField[_ngcontent-%COMP%]{right:25px}table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border:1px solid #ccc;padding:5px}table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{font-weight:700;background:#e3e3e3}table[_ngcontent-%COMP%]{border-collapse:collapse;width:100%}.listInfo[_ngcontent-%COMP%]{width:100%;margin-left:-4%}.red[_ngcontent-%COMP%]{color:red}.blue[_ngcontent-%COMP%]{color:#00f}.green[_ngcontent-%COMP%]{color:green}.deeppink[_ngcontent-%COMP%]{color:#ff1493}.darkOrange[_ngcontent-%COMP%]{color:#b6630a}.acua[_ngcontent-%COMP%]{color:#00ffad}.darkBlue[_ngcontent-%COMP%]{color:#5d69c7}.purple[_ngcontent-%COMP%]{color:#d300ff}.orange[_ngcontent-%COMP%]{color:red}.newgreen[_ngcontent-%COMP%]{color:#00b10a}"]}),L3);function I3(e,t){if(1&e){var n=as();es(0,"span",16),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().navigate(e)})),Gs(1),ts()}if(2&e){var i=fs().$implicit;Bo(1),$s(0==i.rubrics?"Configurar":"Configura\xe7\xe3o")}}function F3(e,t){if(1&e){var n=as();es(0,"span",17),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().activePersonalCard(e)})),Gs(1),ts()}if(2&e){var i=fs().$implicit;Bo(1),$s(0==i.rubrics?"Ativar":"Desativar")}}var A3=function(e,t){return{"cl-gray-dark":e,"cl-blue":t}};function E3(e,t){if(1&e){var n=as();es(0,"div"),es(1,"h2",9),Gs(2),ts(),ns(3,"div",10),ns(4,"div",11),es(5,"div",12),Jr(6,I3,2,1,"span",13),Jr(7,F3,2,1,"span",14),es(8,"fa-icon",15),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectExportType(e)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Xs("card ",0==i.rubrics?"bg-gray-light":"bg-white"," pdg1"),Bo(1),Zr("ngClass",gc(8,A3,0==i.rubrics,0!=i.rubrics)),Bo(1),$s(i.name),Bo(4),Zr("ngIf",24!=i.id),Bo(1),Zr("ngIf",24==i.id),Bo(1),Zr("icon",o.iconRegularService.faEye)}}var B3,N3=((B3=function(){return d((function e(t,n,i,o,a,r,s,l,u,d){var h=this;c(this,e),this.formBuilder=t,this.router=n,this.companyService=i,this.exportDatabase=o,this.functionsService=a,this.iconRegularService=r,this.storageService=s,this.titleService=l,this.userService=u,this.companyDatabase=d,this.modalActiveSystem=!1,this.isSupport=!1,this.isDev=!1,this.systemList=[{loading:!0}],this.systemListFiltered=[],this.fieldListExport=[],this.listExportSystemCompany=[],this.modalInfoLayout=!1,this.exportSelected="",this.titleService.setTitle("Exporta\xe7\xe3o"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])}),this.exportForm=this.formBuilder.group({exportType:new Wm("",[Jf.required])}),this.exportDatabase.getExportSystemList((function(e){e.error||(h.systemList=e.data.systemList,h.systemListFiltered=h.systemList)}));var f={listRequired:JSON.stringify(["export"])};this.companyDatabase.getSelectList(f,(function(e){e.error||(h.fieldListExport=e.data.export)})),this.isSupport="31"==this.userService.getId(),this.isDev="4"==this.userService.getId()}),[{key:"ngOnInit",value:function(){}},{key:"filterExportSystemSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.systemListFiltered=this.functionsService.arrayFilterWords(this.systemList,e,"name")}},{key:"navigate",value:function(e){this.router.navigate(["/export-update"],{state:{systemId:e.id,systemName:e.name}}).then((function(){return!1}))}},{key:"activePersonalCard",value:function(e){var t=this;this.exportDatabase.updateExSystemCompany(Object.assign(Object.assign({},this.exportForm.value),{system_id:e}),(function(e){e.error||t.exportDatabase.getExportSystemList((function(e){e.error||(t.systemList=e.data.systemList,t.systemListFiltered=t.systemList)}))}))}},{key:"selectExportType",value:function(e){this.exportSelected=e,this.modalInfoLayout=!0}},{key:"hideModalInfoLayout",value:function(){this.modalInfoLayout=!1}}])}()).\u0275fac=function(e){return new(e||B3)($r(wp),$r(yM),$r(tI),$r(s2),$r(zP),$r(WO),$r(YP),$r(hL),$r(VH),$r(Mz))},B3.\u0275cmp=Ot({type:B3,selectors:[["io-export-page-list-system"]],decls:9,vars:5,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"carBox"],[1,"listBoxExport","pdgT2"],[3,"class",4,"ngFor","ngForOf"],[3,"showModal","exportSelected","hideModal"],[1,"sizeB","mrgB1",3,"ngClass"],[1,"mrgB2"],[1,"detail","mrgB1"],[1,"flexPad"],["class","sizeB fontBold cl-gray-dark clickPlace star fontSize","title","Configurar o sistema de exporta\xe7\xe3o",3,"click",4,"ngIf"],["class","sizeB fontBold cl-gray-dark clickPlace star fontSize","title","Ativar a exporta\xe7\xe3o",3,"click",4,"ngIf"],["size","3x","title","Ver layout de exporta\xe7\xe3o",1,"iconItem","iconSizeH","cl-primary","clickPlace","iconEnd",3,"icon","click"],["title","Configurar o sistema de exporta\xe7\xe3o",1,"sizeB","fontBold","cl-gray-dark","clickPlace","star","fontSize",3,"click"],["title","Ativar a exporta\xe7\xe3o",1,"sizeB","fontBold","cl-gray-dark","clickPlace","star","fontSize",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterExportSystemSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"ul",6),Jr(7,E3,9,11,"div",7),ts(),ts(),ts(),ts(),es(8,"io-modal-info-layout",8),ls("hideModal",(function(){return t.hideModalInfoLayout()})),ts()),2&e&&(Bo(2),Zr("moduleName","export")("titleTop","Configura\xe7\xe3o"),Bo(5),Zr("ngForOf",t.systemListFiltered),Bo(1),Zr("showModal",t.modalInfoLayout)("exportSelected",t.exportSelected))},directives:[eI,oE,ah,D3,ih,sh,FD],styles:[".listBoxExport[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(5,1fr);grid-gap:20px;padding-left:0}.card[_ngcontent-%COMP%]{border:1px solid var(--cl-gray-light);border-radius:4px}.card[_ngcontent-%COMP%]   .cardBottom[_ngcontent-%COMP%]{margin-top:5px}.card[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:2px;background-color:var(--primary-color)}@media (max-width:600px){.card-box[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width:400px){.card-box[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}.fontSize[_ngcontent-%COMP%]{left:-65px}.listBoxExport[_ngcontent-%COMP%]{list-style:none;max-height:660px;overflow-y:auto;padding:5px 0;margin:15px 0 0}.listBoxExport[_ngcontent-%COMP%]::-webkit-scrollbar{display:block;-webkit-transition:all .4s ease;transition:all .4s ease}.listBoxExport[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 5px 10px;padding:10px;height:48px}.listBoxExport[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-bottom:0}.listBoxExport[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span.item.sizeC[_ngcontent-%COMP%]{text-decoration:none;max-height:36px;overflow:hidden}.listBoxExport[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:25px}"]}),B3);function R3(e,t){if(1&e){var n=as();es(0,"fa-icon",32),ls("click",(function(){return mn(n),fs().getExportFile()})),ts()}2&e&&Zr("icon",fs().iconRegularService.faFilePdf)}function j3(e,t){if(1&e&&(es(0,"span",40),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function z3(e,t){if(1&e){var n=as();es(0,"li",33),es(1,"span",34),es(2,"label",35),es(3,"input",36),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",23),ts(),ts(),es(5,"span",34),Jr(6,j3,2,1,"span",37),es(7,"span",38),Gs(8),ts(),ts(),es(9,"span",39),Gs(10),ts(),ns(11,"span",34),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Zr("checked",o.collaboratorListSelectedId.indexOf(i.id)>=0),Bo(3),Zr("ngIf",o.userIsDevOrSupport),Bo(2),$s(i.name),Bo(2),$s(null!=i.dismissal_date?"Inativo":"Ativo")}}function V3(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function H3(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function Y3(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 pontos registrados no per\xedodo."),ts())}function q3(e,t){if(1&e&&(es(0,"li"),Jr(1,V3,2,0,"p",30),Jr(2,H3,2,0,"p",30),Jr(3,Y3,2,0,"p",30),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&!n.collaboratorList[0].select&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var U3,W3,J3=((W3=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.exportDatabase=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.journeyDatabase=r,this.storageService=s,this.titleService=l,this.beginDate=null,this.endDate=null,this.codeINPI="",this.companyCNPJ="",this.collaboratorList=[],this.collaboratorListFilteredStatus=[],this.collaboratorListFilteredSearch=[],this.collaboratorListSelectedId=[],this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.modalFilter=!1,this.userIsDevOrSupport=!1,this.titleService.setTitle("Exporta\xe7\xe3o MTE 671"),this.exportTypeForm=this.formBuilder.group({exportType:new Wm("afd",[Jf.required])}),this.searchForm=this.formBuilder.group({allSelected:new Wm(!1,[Jf.required]),collaboratorStatus:new Wm("all",[Jf.required]),journey:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])});var u=this.storageService.decodeFromLocalStorage("userId");this.userIsDevOrSupport="4"==u||"31"==u}),[{key:"ngOnInit",value:function(){this.getCollaboratorList()}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilter",value:function(e){this.filterDepartmentSelected=e.department,this.filterRegimeSelected=e.regime,this.filterUnitSelected=e.unit,this.getCollaboratorList()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"setBeginDate",value:function(e){this.beginDate=e,this.getList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.getList()}},{key:"getList",value:function(){var e=this;clearTimeout(this.interval),this.interval=setTimeout((function(){e.getCollaboratorList()}),200)}},{key:"getCollaboratorList",value:function(){var e=this;null!=this.beginDate&&null!=this.endDate&&(this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.exportDatabase.getExportMTE671CollaboratorList(this.getRequestParams(),(function(t){t.error||(e.collaboratorList=t.data.collaboratorList,e.companyCNPJ=t.data.companyData.national_registry,e.codeINPI=t.data.iopointData.codeINPI,e.filterCollaboratorStatus())})))}},{key:"getRequestParams",value:function(){return{beginDate:this.beginDate,endDate:this.endDate,filterDepartment:JSON.stringify(this.filterDepartmentSelected),filterRegime:JSON.stringify(this.filterRegimeSelected),filterUnit:JSON.stringify(this.filterUnitSelected)}}},{key:"filterCollaboratorStatus",value:function(){var e=this.searchForm.get("collaboratorStatus").value;"active"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null==e.dismissal_date}))),"inactive"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null!=e.dismissal_date}))),"all"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList),this.filterMirrorSearch(this.searchForm.get("search").value)}},{key:"filterMirrorSearch",value:function(e){this.searchForm.get("search").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredStatus,e,"name")}},{key:"verifyAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").value?(this.collaboratorListSelectedId=[],this.collaboratorListFilteredSearch.forEach((function(t){e.collaboratorListSelectedId.push(t.id)}))):this.collaboratorListSelectedId=[]}},{key:"selectId",value:function(e){this.collaboratorListSelectedId.find((function(t){return t==e}))?this.collaboratorListSelectedId=this.collaboratorListSelectedId.filter((function(t){return t!=e})):this.collaboratorListSelectedId.push(e),this.validAllSelected()}},{key:"validAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").setValue(this.collaboratorListFilteredSearch.length==this.collaboratorListFilteredSearch.filter((function(t){return e.collaboratorListSelectedId.indexOf(t.id)>=0})).length)}},{key:"getExportFile",value:function(){var e=this;if(0!=this.collaboratorListSelectedId.length){var t={beginDate:this.beginDate,endDate:this.endDate,exportType:this.exportTypeForm.get("exportType").value,collaboratorIdList:JSON.stringify(this.collaboratorListSelectedId)};this.exportDatabase.getExportMTE671File(t,(function(n){n.error||e.functionsService.downloadFile(n.data,"zip",t.exportType.toString().toUpperCase()+e.codeINPI+e.companyCNPJ+"REP_P")}))}else this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio")}}])}()).\u0275fac=function(e){return new(e||W3)($r(wp),$r(s2),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(hL))},W3.\u0275cmp=Ot({type:W3,selectors:[["io-export-page-mte"]],decls:43,vars:21,consts:[[1,"container"],[1,"main","listBoxfour"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],["title","Filtro",1,"flex","end","filterBtnBox","clickPlace",3,"click"],[1,"sizeB","fontBold","mrgR1"],["size","3x",1,"iconItem","iconSizeG","cl-blue",3,"icon"],[1,"flex","mrgB2"],[1,"flex","start",3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"wdFull"],[1,"flex","start","relativePlace"],[3,"onKeyPress"],[1,"downloadMirrorBox","flex","end"],[1,"form-group","inputAnimated","clickPlace",3,"formGroup"],["id","mirrorType","required","",1,"fontBold","clickPlace",3,"formControlName"],["selected","",3,"value"],[3,"value"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["size","3x","class","iconItem iconSizeG cl-blue mrgL1 clickPlace","title","Gerar espelho dos funcion\xe1rios listados",3,"icon","click",4,"ngIf"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","collaboratorStatus","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showFilter","selectedFilters","hideFilter"],["size","3x","title","Gerar espelho dos funcion\xe1rios listados",1,"iconItem","iconSizeG","cl-blue","mrgL1","clickPlace",3,"icon","click"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"checked","change"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"sizeC"],[1,"item","sizeC","pdgL1"],[1,"sizeB","cl-magenta","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"div",4),ls("click",(function(){return t.showModalFilter()})),es(5,"p",5),Gs(6,"Filtro"),ts(),ns(7,"fa-icon",6),ts(),ts(),es(8,"div",7),es(9,"io-interval-selector",8),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ns(10,"div",9),ts(),es(11,"div",10),es(12,"io-search-line",11),ls("onKeyPress",(function(e){return t.filterMirrorSearch(e)})),ts(),es(13,"div",12),es(14,"div",13),es(15,"select",14),es(16,"option",15),Gs(17,"AFD"),ts(),es(18,"option",16),Gs(19,"AEJ"),ts(),ts(),ns(20,"fa-icon",17),ts(),Jr(21,R3,1,1,"fa-icon",18),ts(),ts(),es(22,"div",19),es(23,"div",20),es(24,"label",21),es(25,"input",22),ls("change",(function(){return t.verifyAllSelected()})),ts(),ns(26,"span",23),ts(),es(27,"h3",24),Gs(28,"Funcion\xe1rios"),ts(),es(29,"div",25),es(30,"select",26),ls("change",(function(){return t.filterCollaboratorStatus()})),es(31,"option",15),Gs(32,"Todos"),ts(),es(33,"option",15),Gs(34,"Ativos"),ts(),es(35,"option",15),Gs(36,"Inativos"),ts(),ts(),ns(37,"fa-icon",27),ts(),ns(38,"h3",24),ts(),es(39,"ul",28),Jr(40,z3,12,4,"li",29),Jr(41,q3,4,3,"li",30),ts(),ts(),ts(),ts(),es(42,"io-modal-filter",31),ls("selectedFilters",(function(e){return t.setFilter(e)}))("hideFilter",(function(){return t.hideModalFilter()})),ts()),2&e&&(Bo(3),Zr("moduleName","export")("titleTop","Exporta\xe7\xe3o MTE 671"),Bo(4),Zr("icon",t.iconSolidService.faFilter),Bo(2),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(5),Zr("formGroup",t.exportTypeForm),Bo(1),Zr("formControlName","exportType"),Bo(1),Zr("value","afd"),Bo(2),Zr("value","aej"),Bo(2),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("ngIf","send_email"!=t.exportTypeForm.controls.exportType.value),Bo(2),Zr("formGroup",t.searchForm),Bo(2),Zr("formControlName","allSelected"),Bo(5),Zr("formControlName","collaboratorStatus"),Bo(1),Zr("value","all"),Bo(2),Zr("value","active"),Bo(2),Zr("value","inactive"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(3),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("showFilter",t.modalFilter))},directives:[eI,FD,ZA,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,sh,Of,ah,Rz],styles:[".downloadMirrorBox[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;width:auto}.downloadMirrorBox[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{min-width:170px;padding:1px 0 2px;margin:0}.downloadMirrorBox[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{top:0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;margin:0;text-align:right}"]}),W3),G3=((U3=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteExtraTimeScheduled",value:function(e,t){this.databaseService.delete("/extraTimeScheduled/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExtraTimeScheduled",value:function(e,t){this.databaseService.get("/extraTimeScheduled/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getExtraTimeScheduledList",value:function(e){this.databaseService.get("/extraTimeScheduled",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getExtraTimeScheduledJourneyList",value:function(e){this.databaseService.get("/extraTimeScheduled/getExtraTimeScheduleJourneyList",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postExtraTimeScheduled",value:function(e,t){this.databaseService.post("/extraTimeScheduled",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putExtraTimeScheduled",value:function(e,t,n){this.databaseService.put("/extraTimeScheduled/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||U3)(ut(tT))},U3.\u0275prov=Se({token:U3,factory:U3.\u0275fac,providedIn:"root"}),U3);function $3(e,t){if(1&e&&(es(0,"option",10),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.description),Bo(1),$s(n.description)}}var Q3=function(e){return{extraTimeScheduledId:e}};function K3(e,t){if(1&e){var n=as();es(0,"li",17),es(1,"span",18),Gs(2),ts(),es(3,"span",18),Gs(4),ts(),es(5,"span",19),ns(6,"fa-icon",20),es(7,"fa-icon",21),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.description),Bo(2),$s(i.journey_description),Bo(2),Zr("routerLink","/extra-time-scheduled-update")("state",pc(6,Q3,i.id))("icon",o.iconRegularService.faEdit),Bo(1),Zr("icon",o.iconSolidService.faTrashAlt)}}function Z3(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function X3(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma hora extra programada encontrada."),ts())}function e4(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 hora extra programada cadastrada."),ts())}function t4(e,t){if(1&e&&(es(0,"li"),Jr(1,Z3,2,0,"p",15),Jr(2,X3,2,0,"p",15),Jr(3,e4,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.extraTimeScheduledList.length>0&&n.extraTimeScheduledList[0].loading),Bo(1),Zr("ngIf",n.extraTimeScheduledList.length>0&&!n.extraTimeScheduledList[0].loading&&0==n.extraTimeScheduledListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.extraTimeScheduledList.length)}}var n4,i4=((n4=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.extraTimeScheduleDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.modalConfirm=!1,this.extraTimeScheduledList=[{loading:!0}],this.extraTimeScheduledListFilteredSearch=[],this.extraTimeScheduledListFilteredJourney=[],this.extraTimeScheduledSelectedId=null,this.journeyList=[],this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),journeyDescription:new Wm("all",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.titleService.setTitle("Feriados"),this.extraTimeScheduleDatabase.getExtraTimeScheduledJourneyList((function(t){t.error||(e.journeyList=t.data.journeyList)})),this.loadList()}},{key:"loadList",value:function(){var e=this;this.extraTimeScheduleDatabase.getExtraTimeScheduledList((function(t){t.error||(e.extraTimeScheduledList=t.data.extraTimeScheduledList,e.filterExtraTimeScheduledJourney())}))}},{key:"filterExtraTimeScheduledJourney",value:function(){var e=this.searchForm.controls.journeyDescription.value;this.extraTimeScheduledListFilteredJourney="all"==e?this.extraTimeScheduledList:this.extraTimeScheduledList.filter((function(t){return t.journey_description==e})),this.filterExtraTimeScheduledSearch(this.searchForm.controls.search.value)}},{key:"filterExtraTimeScheduledSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.extraTimeScheduledListFilteredSearch=this.functionsService.arrayFilterWords(this.extraTimeScheduledListFilteredJourney,e,"description")}},{key:"showModalDelete",value:function(e){this.extraTimeScheduledSelectedId=e,this.modalConfirm=!0}},{key:"deleteExtraTimeScheduled",value:function(){var e=this,t=this.extraTimeScheduledSelectedId;this.extraTimeScheduleDatabase.deleteExtraTimeScheduled(t,(function(n){n.error||(e.extraTimeScheduledList=e.extraTimeScheduledList.filter((function(e){return e.id!=t})),e.filterExtraTimeScheduledJourney(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalConfirm=!1,this.extraTimeScheduledSelectedId=null}}])}()).\u0275fac=function(e){return new(e||n4)($r(wp),$r(yM),$r(G3),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},n4.\u0275cmp=Ot({type:n4,selectors:[["io-extra-time-scheduled-page-list"]],decls:21,vars:14,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],["size","3x","title","Editar hora extra programada",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgR1",3,"routerLink","state","icon"],["size","3x","title","Excluir hora extra programada",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterExtraTimeScheduledSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Descri\xe7\xe3o"),ts(),es(9,"div",8),es(10,"select",9),ls("change",(function(){return t.filterExtraTimeScheduledJourney()})),es(11,"option",10),Gs(12,"Escala"),ts(),Jr(13,$3,2,2,"option",11),ts(),ns(14,"fa-icon",12),ts(),es(15,"h3",7),Gs(16,"A\xe7\xe3o"),ts(),ts(),es(17,"ul",13),Jr(18,K3,8,8,"li",14),Jr(19,t4,4,3,"li",15),ts(),ts(),ts(),ts(),es(20,"io-modal-confirm",16),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteExtraTimeScheduled()})),ts()),2&e&&(Bo(2),Zr("moduleName","extra")("titleTop","Hora Extra Programada")("showBtn",!0)("btnDataUrl","extra-time-scheduled-register"),Bo(3),Zr("formGroup",t.searchForm),Bo(5),Zr("formControlName","journeyDescription"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.journeyList),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.extraTimeScheduledListFilteredSearch),Bo(1),Zr("ngIf",0==t.extraTimeScheduledListFilteredSearch.length),Bo(1),Zr("title","Excluir hora extra programada?")("btnTextConfirm","Excluir")("showModal",t.modalConfirm))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,ah,FD,sh,UB,bM],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:80px;margin:0;text-align:right}.hasUnit[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:180px}"]}),n4);function o4(e,t){if(1&e&&(es(0,"option",27),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function a4(e,t){if(1&e){var n=as();es(0,"span",36),ls("click",(function(){mn(n);var e=t.index,i=fs().index;return fs().setLineDay(i,e)})),Gs(1),ts()}if(2&e){var i=t.index,o=fs().index,a=fs();Zr("ngClass",a.daySelectedLine[i]==o?"cl-blue":"cl-gray"),Bo(1),$s(a.dayNameList[i])}}function r4(e,t){if(1&e){var n=as();es(0,"fa-icon",37),ls("click",(function(){mn(n);var e=fs().index;return fs().removeLine(e)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faTrashAlt)}function s4(e,t){if(1&e){var n=as();es(0,"div",28),es(1,"div",29),Jr(2,a4,2,2,"span",30),ts(),es(3,"div",31),es(4,"input",32),ls("change",(function(){mn(n);var e=t.index,i=fs();return i.validHour("begin_hour",e),i.calcTimeLine()})),ts(),es(5,"input",32),ls("change",(function(){mn(n);var e=t.index,i=fs();return i.validHour("end_hour",e),i.calcTimeLine()})),ts(),ts(),es(6,"div",33),es(7,"span"),Gs(8),ts(),ts(),es(9,"div",34),Jr(10,r4,1,1,"fa-icon",35),ts(),ts()}if(2&e){var i=t.index,o=fs();Zr("formArrayName","line"),Bo(2),Zr("ngForOf",o.dayNameList),Bo(1),Zr("formGroupName",i.toString()),Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","begin_hour"),Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","end_hour"),Bo(3),$s(o.lines.at(i).get("total").value),Bo(2),Zr("ngIf",o.lineArrayShow.length>1)}}function l4(e,t){if(1&e){var n=as();es(0,"div",38),es(1,"div",39),ls("click",(function(){return mn(n),fs().addLine()})),ns(2,"fa-icon",40),es(3,"span",41),Gs(4,"Adicionar"),ts(),ts(),ts()}if(2&e){var i=fs();Bo(2),Zr("icon",i.iconRegularService.faTimesCircle)}}var c4,u4,d4,h4,f4=((h4=function(){return d((function e(t,n,i,o,a,r,s){var l=this;c(this,e),this.formBuilder=t,this.router=n,this.extraTimeScheduledDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.validService=s,this.extraTimeScheduledId=null,this.dayNameList=["Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom"],this.daySelectedLine=[0,0,0,0,0,-1,-1],this.journeyList=[],this.journeySelectedId=null,this.modalJourneyView=!1,this.lineArrayShow=[],this.totalHour="00:00",this.extraTimeScheduledForm=this.formBuilder.group({description:new Wm("",[Jf.required]),journeyId:new Wm("",[Jf.required])}),this.lineForm=this.formBuilder.group({line:this.formBuilder.array([this.createLine()])}),this.extraTimeScheduledDatabase.getExtraTimeScheduledJourneyList((function(e){e.error||(l.journeyList=e.data.journeyList)}))}),[{key:"createLine",value:function(){return this.formBuilder.group({begin_hour:new Wm("00:00",[Jf.required]),end_hour:new Wm("00:00",[Jf.required]),total:new Wm("00:00",[Jf.required])})}},{key:"ngOnInit",value:function(){var e=this;this.lineArrayShow=this.lines.value,null!=this.extraTimeScheduledId&&this.extraTimeScheduledDatabase.getExtraTimeScheduled(this.extraTimeScheduledId,(function(t){t.error?e.goToList():(e.extraTimeScheduledForm.get("description").setValue(t.data.extraTimeScheduled.description),e.extraTimeScheduledForm.get("journeyId").setValue(t.data.extraTimeScheduled.journey_id),e.loadDayList(t.data.extraTimeScheduledHours))}))}},{key:"l",get:function(){return this.lineForm.controls}},{key:"lines",get:function(){return this.l.line}},{key:"addLine",value:function(){this.lines.push(this.createLine()),this.lineArrayShow=this.lines.value}},{key:"removeLine",value:function(e){var t=this;this.lines.removeAt(e),this.lineArrayShow.splice(e,1),this.daySelectedLine.forEach((function(n,i){n==e&&(t.daySelectedLine[i]=-1),n>e&&(t.daySelectedLine[i]=n-1)}))}},{key:"setLineDay",value:function(e,t){this.daySelectedLine[t]=this.daySelectedLine[t]==e?-1:e}},{key:"calcTimeLine",value:function(){for(var e=0;e<this.lines.length;e++)this.lines.at(e).get("total").setValue(this.functionsService.sumTime([this.lines.at(e).get("begin_hour").value,this.lines.at(e).get("end_hour").value]))}},{key:"totalTime",value:function(){var e=this,t="00:00";return this.daySelectedLine.forEach((function(n){-1!=n&&(t=e.functionsService.sumTime([t,e.lines.at(n).get("total").value]))})),t}},{key:"loadDayList",value:function(e){for(var t=0;t<7;t++)for(var n=0;n<this.lines.length;n++){var i=e[t].begin_hour.slice(0,5),o=e[t].end_hour.slice(0,5).slice(0,5);"00:00"!=i||"00:00"!=o?"00:00"!=this.lines.at(0).get("begin_hour").value||"00:00"!=this.lines.at(0).get("end_hour").value?this.lines.at(n).get("begin_hour").value!=i||this.lines.at(n).get("end_hour").value!=o?n==this.lines.length-1&&(this.addLine(),this.lines.at(n+1).get("begin_hour").setValue(i),this.lines.at(n+1).get("end_hour").setValue(o),this.daySelectedLine[t]=n+1):(this.daySelectedLine[t]=n,n=this.lines.length):(this.lines.at(0).get("begin_hour").setValue(e[t].begin_hour),this.lines.at(0).get("end_hour").setValue(e[t].end_hour),this.daySelectedLine[t]=n,n=this.lines.length):(this.daySelectedLine[t]=-1,n=this.lines.length)}this.calcTimeLine()}},{key:"sendExtraTimeSchedule",value:function(){var e=this;if(""!=this.extraTimeScheduledForm.get("description").value&&""!=this.extraTimeScheduledForm.get("journeyId").value)if("00:00"!=this.totalTime()){var t=[];this.daySelectedLine.forEach((function(n,i){t.push({day_of_week:i+1,begin_hour:-1!=n?e.lines.at(n).get("begin_hour").value:"00:00",end_hour:-1!=n?e.lines.at(n).get("end_hour").value:"00:00"})}));var n=Object.assign(Object.assign({},this.extraTimeScheduledForm.value),{days:JSON.stringify(t)});null==this.extraTimeScheduledId?this.postForm(n):this.putForm(n)}else this.functionsService.openSnackBar("O Total de horas n\xe3o pode ser '00:00'");else this.functionsService.openSnackBar("emptyField")}},{key:"postForm",value:function(e){var t=this;this.extraTimeScheduledDatabase.postExtraTimeScheduled(e,(function(e){e.error||t.goToList()}))}},{key:"putForm",value:function(e){var t=this;this.extraTimeScheduledDatabase.putExtraTimeScheduled(this.extraTimeScheduledId,e,(function(e){e.error||t.goToList()}))}},{key:"validHour",value:function(e,t){this.lines.at(t).get(e).setValue(this.validService.validHour(this.lines.at(t).get(e).value||"00:00"))}},{key:"goToList",value:function(){this.router.navigate(["/extra-time-scheduled"]).then((function(){return!1}))}},{key:"showModalJourneyView",value:function(e){this.journeySelectedId=e,this.modalJourneyView=!0}},{key:"hideModalJourneyView",value:function(){this.modalJourneyView=!1,this.journeySelectedId=null}}])}()).\u0275fac=function(e){return new(e||h4)($r(wp),$r(yM),$r(G3),$r(zP),$r(WO),$r(JO),$r(TN))},h4.\u0275cmp=Ot({type:h4,selectors:[["io-extra-time-scheduled-form"]],inputs:{extraTimeScheduledId:"extraTimeScheduledId"},decls:41,vars:26,consts:[[1,"formBox"],[3,"moduleName","titleTop"],[1,"minHeightBox","listBoxSlideMob","mrgB2",3,"formGroup"],[1,"flex","top","mrgB2"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","required","","type","text",3,"formControlName"],["for","description",1,"form-label","required"],[1,"form-group","inputAnimated","selectAbsenceType","selectViewList","mrgL2"],["id","type","required","",3,"formControlName"],["selectJouney",""],[3,"value",4,"ngFor","ngForOf"],["for","type",1,"form-label","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","iconViewJourney",3,"icon","click"],[1,"flex","listAlign","listHeader","mrgB2"],[1,"item","sizeC","fontBold"],[1,"fontBold"],[3,"formGroup"],["class","listAlign flex boxWhite mrgB1",3,"formArrayName",4,"ngFor","ngForOf"],["class","flex start",4,"ngIf"],[1,"flex","end"],[1,"sizeC"],[1,"pdgB2","mrgB2"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation","useValidation"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"journeyId","showModal","hideModal"],[3,"value"],[1,"listAlign","flex","boxWhite","mrgB1",3,"formArrayName"],[1,"item","flex","start"],["class","fontBold flexDays clickPlace",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"item",3,"formGroupName"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center",3,"dropSpecialCharacters","formControlName","change"],[1,"item"],[1,"item","flex","end"],["size","3x","class","iconItem iconSizeF cl-gray-dark clickPlace","title","Remover Dia",3,"icon","click",4,"ngIf"],[1,"fontBold","flexDays","clickPlace",3,"ngClass","click"],["size","3x","title","Remover Dia",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],[1,"flex","start"],["title","Adicionar dia",1,"flex","start","clickPlace","pdgT1","pdgB1",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue","fa-rotate-45",3,"icon"],[1,"mrgL1"]],template:function(e,t){if(1&e){var n=as();es(0,"div",0),ns(1,"io-main-top",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),ns(5,"input",5),es(6,"label",6),Gs(7,"Descri\xe7\xe3o"),ts(),ts(),es(8,"div",7),es(9,"select",8,9),Jr(11,o4,2,2,"option",10),ts(),es(12,"label",11),Gs(13,"Escala"),ts(),ns(14,"fa-icon",12),es(15,"fa-icon",13),ls("click",(function(){mn(n);var e=Gr(10);return t.showModalJourneyView(e.value)})),ts(),ts(),ts(),es(16,"div",14),es(17,"h3",15),Gs(18,"Dias"),ts(),es(19,"h3",15),es(20,"span",16),Gs(21,"Entrada"),ts(),es(22,"span",16),Gs(23,"Sa\xedda"),ts(),ts(),es(24,"h3",15),Gs(25,"Total dia"),ts(),es(26,"h3",15),Gs(27,"A\xe7\xe3o"),ts(),ts(),es(28,"div",17),Jr(29,s4,11,9,"div",18),ts(),Jr(30,l4,5,1,"div",19),es(31,"div",20),es(32,"span",21),Gs(33,"Total de horas: "),es(34,"span",16),Gs(35),ts(),ts(),ts(),ns(36,"div",22),ts(),es(37,"div",23),ns(38,"io-btn",24),es(39,"io-btn",25),ls("btnClick",(function(){return t.sendExtraTimeSchedule()})),ts(),ts(),ts(),es(40,"io-journey-modal-view",26),ls("hideModal",(function(){return t.hideModalJourneyView()})),ts()}2&e&&(Bo(1),Zr("moduleName","extra")("titleTop","Hora Extra Programada"),Bo(1),Zr("formGroup",t.extraTimeScheduledForm),Bo(3),Zr("formControlName","description"),Bo(4),Zr("formControlName","journeyId"),Bo(2),Zr("ngForOf",t.journeyList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("icon",t.iconRegularService.faEye),Bo(13),Zr("formGroup",t.lineForm),Bo(1),Zr("ngForOf",t.lineArrayShow),Bo(1),Zr("ngIf",t.lines.length<6),Bo(5),$s(t.totalTime()),Bo(3),Zr("moduleName","export")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("urlNavigation","extra-time-scheduled")("useValidation",!1),Bo(1),Zr("moduleName","export")("action","create")("btnColor","btn-blue-bg")("btnText",t.extraTimeScheduledId?"Salvar":"Finalizar")("btnTitle",t.extraTimeScheduledId?"Salvar":"Finalizar"),Bo(1),Zr("journeyId",t.journeySelectedId)("showModal",t.modalJourneyView))},directives:[eI,Hf,ip,If,bp,Vf,vp,vm,ah,FD,sh,jD,jW,ym,xm,sp,ap,DE,kp,ih],styles:[".listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:70px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:290px;overflow:hidden}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   span[_ngcontent-%COMP%]{margin-right:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   span[_ngcontent-%COMP%]:last-child{margin-right:0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){display:flex;max-width:180px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   input[_ngcontent-%COMP%], .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   span[_ngcontent-%COMP%]{width:80px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   input[_ngcontent-%COMP%]:last-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   span[_ngcontent-%COMP%]:last-child{margin-left:20px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:90px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:60px;text-align:right}.iconViewFutureJourney[_ngcontent-%COMP%]{right:-20px}"]}),h4),m4=((d4=function(){return d((function e(t,n){c(this,e),this.databaseService=t,this.storageService=n}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||d4)($r(tT),$r(YP))},d4.\u0275cmp=Ot({type:d4,selectors:[["io-extra-time-schedule-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-extra-time-scheduled-form"),ts(),ts())},directives:[f4],styles:[""]}),d4),p4=((u4=function(){return d((function e(t,n,i){c(this,e),this.databaseService=t,this.storageService=n,this.router=i,this.extraTimeScheduledId=null;var o=this.router.getCurrentNavigation();o.extras.state?this.extraTimeScheduledId=o.extras.state.extraTimeScheduledId:this.router.navigate(["/extra-time-scheduled"]).then((function(){return!1}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||u4)($r(tT),$r(YP),$r(yM))},u4.\u0275cmp=Ot({type:u4,selectors:[["io-extra-time-schedule-page-register"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"extraTimeScheduledId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-extra-time-scheduled-form",2),ts(),ts()),2&e&&(Bo(2),Zr("extraTimeScheduledId",t.extraTimeScheduledId))},directives:[f4],styles:[""]}),u4),g4=((c4=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteHoliday",value:function(e,t){this.databaseService.delete("/holiday/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHoliday",value:function(e,t){this.databaseService.get("/holiday/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHolidayList",value:function(e,t){this.databaseService.get("/holiday",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getHolidayUnitList",value:function(e,t){this.databaseService.get("/holiday/"+e+"/unitList",{}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postHoliday",value:function(e,t){this.databaseService.post("/holiday",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putHoliday",value:function(e,t,n){this.databaseService.put("/holiday/"+t,e).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||c4)(ut(tT))},c4.\u0275prov=Se({token:c4,factory:c4.\u0275fac,providedIn:"root"}),c4);function v4(e,t){if(1&e&&(es(0,"li",9),es(1,"span",10),Gs(2),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.name)}}function y4(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function b4(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma unidade encontrada."),ts())}function _4(e,t){if(1&e&&(es(0,"li"),Jr(1,y4,2,0,"p",8),Jr(2,b4,2,0,"p",8),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.unitList.length>0&&n.unitList[0].loading),Bo(1),Zr("ngIf",n.unitList.length>0&&!n.unitList[0].loading&&0==n.unitListFilteredSearch.length)}}var k4,C4=((k4=function(){return d((function e(t,n,i){c(this,e),this.functionsService=t,this.holidayDatabase=n,this.iconSolidService=i,this.showModal=!1,this.holidayId=null,this.hideModal=new Mc,this.unitList=[{loading:!0}],this.unitListFilteredSearch=[]}),[{key:"ngOnChanges",value:function(){var e=this;null!=this.holidayId&&1==this.showModal&&this.holidayDatabase.getHolidayUnitList(this.holidayId,(function(t){t.error||(e.unitList=t.data.unitList||[],e.unitListFilteredSearch=e.unitList)}))}},{key:"filterOnDutySearch",value:function(e){this.unitListFilteredSearch=this.functionsService.arrayFilterWords(this.unitList,e,"name")}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.unitList=[{loading:!0}],this.unitListFilteredSearch=[]}}])}()).\u0275fac=function(e){return new(e||k4)($r(zP),$r(g4),$r(JO))},k4.\u0275cmp=Ot({type:k4,selectors:[["io-holiday-modal-list-unit"]],inputs:{showModal:"showModal",holidayId:"holidayId"},outputs:{hideModal:"hideModal"},features:[dl],decls:11,vars:3,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontBold","fontUp","mrgB2"],[3,"onKeyPress"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox","mrgB2"],["class","flex pdgB1",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","pdgB1"],[1,"item","sizeC"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Unidades vinculadas a este feriado"),ts(),es(4,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterOnDutySearch(e)})),ts(),es(5,"div",4),es(6,"h3",5),Gs(7,"Unidade"),ts(),ts(),es(8,"ul",6),Jr(9,v4,3,1,"li",7),Jr(10,_4,3,2,"li",8),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(9),Zr("ngForOf",t.unitListFilteredSearch),Bo(1),Zr("ngIf",0==t.unitListFilteredSearch.length))},directives:[CE,oE,ah,sh],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 3px 10px 0;padding:0 15px;height:20px}"]}),k4);function w4(e,t){1&e&&(es(0,"h3",17),Gs(1,"Data de transfer\xeancia"),ts())}function x4(e,t){if(1&e&&(es(0,"option",20),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.name),Bo(1),$s(n.name)}}function M4(e,t){if(1&e){var n=as();es(0,"div",18),es(1,"select",19),ls("change",(function(){return mn(n),fs().filterHolidayUnit()})),es(2,"option",20),Gs(3,"Unidade"),ts(),Jr(4,x4,2,2,"option",21),ts(),ns(5,"fa-icon",22),ts()}if(2&e){var i=fs();Bo(1),Zr("formControlName","unit"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",i.unitList),Bo(1),Zr("icon",i.iconSolidService.faSort)}}function S4(e,t){if(1&e&&(es(0,"span",32),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function P4(e,t){if(1&e&&(es(0,"span",33),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),$s(!n.appellant&&n.holiday_date_transfer&&n.date!=n.holiday_date_transfer?i.getDateBr(n.holiday_date_transfer):"")}}function T4(e,t){if(1&e&&(es(0,"span",34),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(null==n.unit_name?"Todas as unidades":n.unit_name)}}function O4(e,t){if(1&e){var n=as();es(0,"io-icon",35),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalUnit(e.id)})),ts()}2&e&&Zr("moduleName","unit")("action","show")("iconTitle","Visualizar Unidades")}var L4=function(e){return{holidayId:e}};function D4(e,t){if(1&e){var n=as();es(0,"li",23),es(1,"span",24),Jr(2,S4,2,1,"span",25),Gs(3),ts(),es(4,"span",24),Gs(5),ts(),Jr(6,P4,2,1,"span",26),es(7,"span",24),Gs(8),ts(),Jr(9,T4,2,1,"span",27),es(10,"span",28),Jr(11,O4,1,3,"io-icon",29),ns(12,"io-icon",30),es(13,"io-icon",31),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description,""),Bo(2),$s(i.date.split("-").reverse().join("/")),Bo(1),Zr("ngIf",o.showColumnDataTransfer),Bo(2),$s(i.appellant?"Sim":"N\xe3o"),Bo(1),Zr("ngIf",o.unitList.length>0),Bo(2),Zr("ngIf","multiUnit"==i.unit_name),Bo(1),Zr("moduleName","holiday")("action","update")("urlNavigation","holiday-update")("urlStateData",pc(15,L4,i.id))("iconTitle","Editar feriado"),Bo(1),Zr("moduleName","holiday")("action","delete")("iconTitle","Excluir feriado")}}function I4(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function F4(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum feriado encontrado."),ts())}function A4(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 feriados cadastrados."),ts())}function E4(e,t){if(1&e&&(es(0,"li"),Jr(1,I4,2,0,"p",14),Jr(2,F4,2,0,"p",14),Jr(3,A4,2,0,"p",14),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.holidayList.length>0&&n.holidayList[0].loading),Bo(1),Zr("ngIf",n.holidayList.length>0&&!n.holidayList[0].loading&&0==n.holidayListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.holidayList.length)}}var B4,N4=((B4=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.companyService=i,this.functionsService=o,this.holidayDatabase=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.titleService=u,this.holidayList=[{loading:!0}],this.holidayListFilteredSearch=[],this.holidayListFilteredUnit=[],this.holidaySelectedId=null,this.modalConfirm=!1,this.modalUnit=!1,this.showColumnDataTransfer=!1,this.unitList=[],this.yearSelected=this.companyService.getMinDate().split("-")[0],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Feriados")}},{key:"setDate",value:function(e){this.yearSelected=e.split("-")[0],this.loadList()}},{key:"loadList",value:function(){var e=this;this.holidayDatabase.getHolidayList({year:this.yearSelected},(function(t){t.error||(e.holidayList=t.data.holidayList,e.holidayList.forEach((function(t,n){if(t.date==t.holiday_date_transfer||t.appellant||(e.showColumnDataTransfer=!0),t.unit_name&&e.unitList.indexOf(t.unit_name)<0){var i="multiUnit"==t.unit_name?"V\xe1rias unidades":t.unit_name;e.holidayList[n].unit_name=i,e.unitList.push({name:i})}})),e.filterHolidayUnit())}))}},{key:"filterHolidayUnit",value:function(){var e=this.searchForm.controls.unit.value;this.holidayListFilteredUnit="all"==e?this.holidayList:this.holidayList.filter((function(t){return t.unit_name==e})),this.filterHolidaySearch(this.searchForm.controls.search.value)}},{key:"filterHolidaySearch",value:function(e){this.searchForm.controls.search.setValue(e),this.holidayListFilteredSearch=this.functionsService.arrayFilterWords(this.holidayListFilteredUnit,e,"description")}},{key:"showModalDelete",value:function(e){this.holidaySelectedId=e,this.modalConfirm=!0}},{key:"deleteHoliday",value:function(){var e=this,t=this.holidaySelectedId;this.holidayDatabase.deleteHoliday(t,(function(n){n.error||(e.holidayList=e.holidayList.filter((function(e){return e.id!=t})),e.filterHolidayUnit(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalConfirm=!1,this.holidaySelectedId=null}},{key:"showModalUnit",value:function(e){this.holidaySelectedId=e,this.modalUnit=!0}},{key:"hideModalUnit",value:function(){this.modalUnit=!1,this.holidaySelectedId=null}},{key:"getDateBr",value:function(e){return this.functionsService.dateENtoBR(e)}}])}()).\u0275fac=function(e){return new(e||B4)($r(wp),$r(yM),$r(tI),$r(zP),$r(g4),$r(WO),$r(JO),$r(YP),$r(hL))},B4.\u0275cmp=Ot({type:B4,selectors:[["io-holiday-page-list"]],decls:24,vars:20,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"flex","start","mrgB2"],[3,"labelText","datepickerYear","dateSelectedEN"],[1,"wdMax50"],[3,"onKeyPress"],[3,"formGroup"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],["class","item sizeC fontBold transfer",4,"ngIf"],["class","item form-group inputAnimated unit",4,"ngIf"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","holidayId","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"item","sizeC","fontBold","transfer"],[1,"item","form-group","inputAnimated","unit"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],["class","item sizeC transfer",4,"ngIf"],["class","item sizeC unit pdgL1",4,"ngIf"],[1,"item"],["class","mrgR1",3,"moduleName","action","iconTitle","iconClick",4,"ngIf"],[1,"mrgR1",3,"moduleName","action","urlNavigation","urlStateData","iconTitle"],[3,"moduleName","action","iconTitle","iconClick"],[1,"sizeB","cl-magenta","mrgR1"],[1,"item","sizeC","transfer"],[1,"item","sizeC","unit","pdgL1"],[1,"mrgR1",3,"moduleName","action","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-datepicker",4),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterHolidaySearch(e)})),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"h3",9),Gs(10,"Feriado"),ts(),es(11,"h3",9),Gs(12,"Data"),ts(),Jr(13,w4,2,0,"h3",10),es(14,"h3",9),Gs(15,"Recorrente"),ts(),Jr(16,M4,6,4,"div",11),es(17,"h3",9),Gs(18,"A\xe7\xe3o"),ts(),ts(),es(19,"ul",12),Jr(20,D4,14,17,"li",13),Jr(21,E4,4,3,"li",14),ts(),ts(),ts(),ts(),es(22,"io-holiday-modal-list-unit",15),ls("hideModal",(function(){return t.hideModalUnit()})),ts(),es(23,"io-modal-confirm",16),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteHoliday()})),ts()),2&e&&(Bo(2),Zr("moduleName","holiday")("titleTop","Feriados")("showBtn",!0)("btnDataUrl","holiday-register"),Bo(2),Zr("labelText","Refer\xeancia")("datepickerYear",!0),Bo(3),el("listBoxSlideMob  ",t.showColumnDataTransfer?"hasTransfer":""," ",t.unitList.length>0?"hasUnit":"",""),Zr("formGroup",t.searchForm),Bo(6),Zr("ngIf",t.showColumnDataTransfer),Bo(3),Zr("ngIf",t.unitList.length>0),Bo(4),Zr("ngForOf",t.holidayListFilteredSearch),Bo(1),Zr("ngIf",0==t.holidayListFilteredSearch.length),Bo(1),Zr("showModal",t.modalUnit)("holidayId",t.holidaySelectedId),Bo(1),Zr("title","Excluir feriado?")("btnTextConfirm","Excluir")("showModal",t.modalConfirm))},directives:[eI,UA,oE,Hf,ip,sh,ah,C4,UB,vm,bp,Vf,vp,ym,xm,FD,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30%}.listAlign[_ngcontent-%COMP%]   .item.transfer[_ngcontent-%COMP%], .listAlign[_ngcontent-%COMP%]   .item.unit[_ngcontent-%COMP%]{max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),B4);function R4(e,t){if(1&e){var n=as();es(0,"li",15),es(1,"label",16),Gs(2),es(3,"input",17),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toUnitList(e.id)})),ts(),ns(4,"span",18),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.name," "),Bo(1),Zr("checked",o.selectedListId.indexOf(i.id)>=0)}}function j4(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function z4(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma unidade encontrada."),ts())}function V4(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 unidade registrada."),ts())}function H4(e,t){if(1&e&&(es(0,"li"),Jr(1,j4,2,0,"p",11),Jr(2,z4,2,0,"p",11),Jr(3,V4,2,0,"p",11),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.unitList.length>0&&n.unitList[0].loading),Bo(1),Zr("ngIf",n.unitList.length>0&&!n.unitList[0].loading&&0==n.unitListFiltered.length),Bo(1),Zr("ngIf",0==n.unitList.length)}}var Y4,q4=((Y4=function(){return d((function e(t,n){c(this,e),this.companyDatabase=t,this.functionsService=n,this.showModal=!1,this.selectedListId=[],this.hideModal=new Mc,this.selectedAll=new Mc,this.selectedId=new Mc,this.listLoaded=!1,this.unitList=[{loading:!0}],this.unitListFiltered=[],this.unitListSelectedId=[]}),[{key:"ngOnChanges",value:function(){this.loadList()}},{key:"loadList",value:function(){var e=this;this.showModal&&(this.unitList.length<2||this.unitList[0].loading)&&this.companyDatabase.getSelectList({listRequired:JSON.stringify(["unit"])},(function(t){t.error||(e.unitList=t.data.unit||[],e.unitListFiltered=e.unitList,e.loadSelectedList())}))}},{key:"loadSelectedList",value:function(){var e=this;0==this.listLoaded&&this.unitList.length>0&&this.selectedListId.length>0&&(this.selectedListId.forEach((function(t){return e.toUnitList(t)})),this.listLoaded=!0,this.emitList())}},{key:"unitFilter",value:function(e){this.unitListFiltered=this.functionsService.arrayFilterWords(this.unitList,e,"name")}},{key:"toUnitList",value:function(e){this.unitListSelectedId.find((function(t){return t==e}))?this.unitListSelectedId=this.unitListSelectedId.filter((function(t){return t!=e})):this.unitListSelectedId.push(e)}},{key:"finishSelection",value:function(){this.emitList(),this.hideModal.emit(!1)}},{key:"emitList",value:function(){this.selectedId.emit(this.unitListSelectedId)}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||Y4)($r(Mz),$r(zP))},Y4.\u0275cmp=Ot({type:Y4,selectors:[["io-holiday-modal-select-unit"]],inputs:{showModal:"showModal",selectedListId:"selectedListId"},outputs:{hideModal:"hideModal",selectedAll:"selectedAll",selectedId:"selectedId"},features:[dl],decls:18,vars:14,consts:[[3,"showModal","hideModal"],[1,"modalBody","relativePlace"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontBold","fontUp","mrgB2"],[1,"center","mrgB2"],[1,"sizeC"],[1,"fontBold"],[3,"onKeyPress"],[1,"relativePlace"],[1,"listBox"],["class","flex start spcDesk",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"flex","start","spcDesk"],[1,"radioBox","hd1","mrgR1","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","change"],[1,"checkmark"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Selecione as unidades"),ts(),es(5,"div",4),es(6,"span",5),Gs(7,"Se nenhuma unidade for selecionada o feriado ser\xe1 v\xe1lido para "),es(8,"span",6),Gs(9,"todas as unidades."),ts(),ts(),ts(),es(10,"io-search-line",7),ls("onKeyPress",(function(e){return t.unitFilter(e)})),ts(),es(11,"div",8),es(12,"ul",9),Jr(13,R4,5,2,"li",10),Jr(14,H4,4,3,"li",11),ts(),ts(),ts(),es(15,"div",12),es(16,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),ts(),es(17,"io-btn",14),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(13),Zr("ngForOf",t.unitListFiltered),Bo(1),Zr("ngIf",0==t.unitListFiltered.length),Bo(2),Zr("moduleName","point")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","point")("action","create")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar"))},directives:[CE,oE,ah,sh,jD],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}"]}),Y4);function U4(e,t){1&e&&(es(0,"div",16),es(1,"label",17),Gs(2,"Recorrente (todos os anos o feriado ocorre no mesmo dia e m\xeas) "),ns(3,"input",18),ns(4,"span",19),ts(),ts()),2&e&&(Bo(3),Zr("formControlName","appellant"))}function W4(e,t){if(1&e&&(es(0,"div",16),es(1,"p",20),Gs(2,"Este feriado "),es(3,"span",21),Gs(4),ts(),Gs(5," recorrente."),ts(),ts()),2&e){var n=fs();Bo(4),$s(1==n.holidayForm.controls.appellant.value?"\xe9":"n\xe3o \xe9")}}function J4(e,t){if(1&e){var n=as();es(0,"io-datepicker",22),ls("dateSelectedEN",(function(e){return mn(n),fs().holidayForm.controls.holiday_date.setValue(e)})),ts()}if(2&e){var i=fs();Zr("labelText","Data do feriado")("startDate",i.holidayForm.controls.holiday_date.value)}}function G4(e,t){if(1&e){var n=as();es(0,"io-datepicker",23),ls("dateSelectedEN",(function(e){return mn(n),fs().holidayForm.controls.holiday_date_transfer.setValue(e)})),ts()}2&e&&Zr("labelText","Data de realiza\xe7\xe3o do feriado")}function $4(e,t){if(1&e){var n=as();es(0,"io-datepicker",24),ls("dateSelectedEN",(function(e){return mn(n),fs().holidayForm.controls.holiday_date_transfer.setValue(e)})),ts()}if(2&e){var i=fs();Zr("labelText","Data de realiza\xe7\xe3o do feriado")("startDate",i.holidayForm.controls.holiday_date_transfer.value)}}var Q4,K4,Z4,X4,e5,t5=((e5=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.holidayDatabase=r,this.storageService=s,this.unitDatabase=l,this.validService=u,this.holidayId=null,this.modalUnit=!1,this.loaded=!1,this.stateFields={description:{class:""},holiday_date:{class:""}},this.unitList=[],this.updateOn=!1,this.result=[],this.unitListSelectedIdLoad=[],this.unitListSelectedId=[],this.allUnitLoad=!1,this.holidayForm=this.formBuilder.group({description:new Wm("",[Jf.required]),holiday_date:new Wm("",[Jf.required]),holiday_date_transfer:new Wm("",[Jf.required]),appellant:new Wm(!1,[Jf.required]),unit_id:new Wm(null,[Jf.required])}),this.unitDatabase.getUnitList((function(e){d.unitList=e.data.unitList}))}),[{key:"ngOnInit",value:function(){var e=this;this.holidayId&&(this.updateOn=!0,this.holidayDatabase.getHoliday(this.holidayId,(function(t){if(!t.error){if(e.holidayForm.controls.description.setValue((t=t.data).holiday.description),e.holidayForm.controls.holiday_date.setValue(t.holiday.holiday_date),e.holidayForm.controls.appellant.setValue(t.holiday.appellant),null!=t.holiday.holiday_date_transfer&&e.holidayForm.controls.holiday_date_transfer.setValue(t.holiday.holiday_date_transfer),t.holiday.unit_id&&e.holidayForm.controls.unit_id.setValue(t.holiday.unit_id),t.unitListId.length>0){var n=[];t.unitListId.forEach((function(e){return n.push(e.id)})),e.unitListSelectedIdLoad=n,e.unitListSelectedId=e.unitListSelectedIdLoad}e.loaded=!0}})))}},{key:"showModalUnit",value:function(){this.modalUnit=!0}},{key:"setUnitIdList",value:function(e){var t=this;this.unitListSelectedId=[],e.forEach((function(e){t.unitListSelectedId.push(e)}))}},{key:"hideModalUnit",value:function(){this.modalUnit=!1}},{key:"sendHoliday",value:function(){this.checkErrorField("description")&&this.checkErrorField("holiday_date")?(!0===this.holidayForm.get("appellant").value&&this.holidayForm.get("holiday_date_transfer").setValue(this.holidayForm.get("holiday_date").value),this.updateOn?this.putHoliday():this.postHoliday()):this.functionsService.openSnackBar("emptyField")}},{key:"postHoliday",value:function(){var e=this;this.holidayDatabase.postHoliday(Object.assign(Object.assign({},this.holidayForm.value),{unitListId:this.unitListSelectedId}),(function(t){t.error||e.router.navigate(["/holiday"]).then((function(){return!1}))}))}},{key:"putHoliday",value:function(){var e=this;this.holidayDatabase.putHoliday(Object.assign(Object.assign({},this.holidayForm.value),{unitListId:JSON.stringify(this.unitListSelectedId)}),this.holidayId,(function(t){t.error||e.router.navigate(["/holiday"]).then((function(){return!1}))}))}},{key:"checkErrorField",value:function(e){return this.holidayForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"verfyDate",value:function(e){this.holidayForm.controls[e].setValue(this.validService.validDate(this.holidayForm.controls[e].value))}}])}()).\u0275fac=function(e){return new(e||e5)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(g4),$r(YP),$r(FN),$r(TN))},e5.\u0275cmp=Ot({type:e5,selectors:[["io-holiday-form"]],inputs:{holidayId:"holidayId"},decls:19,vars:26,consts:[[1,"holidayForm",3,"formGroup"],[3,"moduleName","titleTop","textTop2","showBtn","btnDataText","btnClick"],[1,"minHeightBox"],[1,"pdgT1","mrgB1"],[1,"flexLine","flex"],[1,"form-group","inputAnimated","mrgB1"],["autocomplete","off","id","description","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","description",1,"form-label","required"],["class","form-group pdgT1 mrgB1",4,"ngIf"],["class","datepicker required",3,"labelText","startDate","dateSelectedEN",4,"ngIf"],["class","datepicker",3,"labelText","dateSelectedEN",4,"ngIf"],["class","datepicker",3,"labelText","startDate","dateSelectedEN",4,"ngIf"],[1,"flex"],[3,"moduleName","btnText","btnColor","useValidation","urlNavigation"],[1,"mrgL2",3,"moduleName","btnText","action","btnColor","btnClick"],[3,"showModal","selectedListId","selectedId","hideModal"],[1,"form-group","pdgT1","mrgB1"],[1,"radioBox","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark"],[1,"sizeC"],[1,"fontBold"],[1,"datepicker","required",3,"labelText","startDate","dateSelectedEN"],[1,"datepicker",3,"labelText","dateSelectedEN"],[1,"datepicker",3,"labelText","startDate","dateSelectedEN"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"io-main-top",1),ls("btnClick",(function(){return t.showModalUnit()})),ts(),es(2,"div",2),ns(3,"div",3),es(4,"div",4),es(5,"div",5),es(6,"input",6),ls("keyup",(function(){return t.checkErrorField("description")})),ts(),es(7,"label",7),Gs(8,"Nome do feriado"),ts(),ts(),Jr(9,U4,5,1,"div",8),Jr(10,W4,6,1,"div",8),ts(),es(11,"div",4),Jr(12,J4,1,2,"io-datepicker",9),Jr(13,G4,1,1,"io-datepicker",10),Jr(14,$4,1,2,"io-datepicker",11),ts(),ts(),es(15,"div",12),ns(16,"io-btn",13),es(17,"io-btn",14),ls("btnClick",(function(){return t.sendHoliday()})),ts(),ts(),ts(),es(18,"io-holiday-modal-select-unit",15),ls("selectedId",(function(e){return t.setUnitIdList(e)}))("hideModal",(function(){return t.hideModalUnit()})),ts()),2&e&&(Zr("formGroup",t.holidayForm),Bo(1),Zr("moduleName","holiday")("titleTop",(t.updateOn?"Editar":"Novo")+" Feriado")("textTop2","Digite o novo nome e nova data do feriado.")("showBtn",t.unitList.length>1)("btnDataText","Selecionar unidades"),Bo(5),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(3),Zr("ngIf",!t.updateOn),Bo(1),Zr("ngIf",t.updateOn),Bo(2),Zr("ngIf",!t.updateOn||""!=t.holidayForm.controls.holiday_date.value),Bo(1),Zr("ngIf",!t.updateOn&&0==t.holidayForm.controls.appellant.value),Bo(1),Zr("ngIf",t.loaded&&0==t.holidayForm.controls.appellant.value),Bo(2),Zr("moduleName","holiday")("btnText","Cancelar")("btnColor","btn-red")("useValidation",!1)("urlNavigation","holiday"),Bo(1),Zr("moduleName","holiday")("btnText",t.updateOn?"Salvar":"Cadastrar")("action",t.updateOn?"update":"create")("btnColor","btn-blue-bg"),Bo(1),Zr("showModal",t.modalUnit)("selectedListId",t.unitListSelectedIdLoad))},directives:[Hf,ip,eI,If,bp,Vf,vp,sh,jD,q4,Of,UA],styles:[".flexLine[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:100%;max-width:49%}.flexLine[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%]{max-width:49%}@media (max-width:500px){.flexLine[_ngcontent-%COMP%]{display:block}.flexLine[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .flexLine[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{max-width:100%}}"]}),e5),n5=((X4=function(){return d((function e(){c(this,e)}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||X4)},X4.\u0275cmp=Ot({type:X4,selectors:[["io-holiday-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-holiday-form"),ts(),ts())},directives:[t5],styles:[""]}),X4),i5=((Z4=function(){return d((function e(t,n,i){c(this,e),this.storageService=t,this.databaseService=n,this.router=i,this.holiday_id="";var o=this.router.getCurrentNavigation();o.extras.state?this.holiday_id=o.extras.state.holidayId:this.router.navigate(["/holiday"]).then((function(){return!1}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Z4)($r(YP),$r(tT),$r(yM))},Z4.\u0275cmp=Ot({type:Z4,selectors:[["io-update-holiday"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"holidayId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-holiday-form",2),ts(),ts()),2&e&&(Bo(2),Zr("holidayId",t.holiday_id))},directives:[t5],styles:[""]}),Z4),o5=((K4=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getHomeData",value:function(e,t){this.databaseService.get("/company/getHomeData",{company_id:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"updateFirstLogin",value:function(e,t){this.databaseService.put("/user/updateFirstLogin",{user_id:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteNotificationUser",value:function(e){this.databaseService.delete("/notification/deleteNotificationUser",{}).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}}])}()).\u0275fac=function(e){return new(e||K4)(ut(tT))},K4.\u0275prov=Se({token:K4,factory:K4.\u0275fac,providedIn:"root"}),K4),a5=((Q4=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getReportDataList",value:function(e,t){this.databaseService.get("/report/getReportDataList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getInconsistencyList",value:function(e,t){this.databaseService.get("/report/getInconsistencyList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getbankTimeRange",value:function(e,t){this.databaseService.get("/report/getbankTimeRange",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorList",value:function(e,t){this.databaseService.get("/report/getCollaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getReportData",value:function(e,t,n){this.databaseService.getFile("/report/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getReportScreen",value:function(e,t,n){this.databaseService.get("/report/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"getAllTurnoverReport",value:function(e,t){this.databaseService.get("/report/getAllTurnoverReport",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"generateReportTurnover",value:function(e,t){this.databaseService.getFile("/report/generateReportTurnover",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Q4)(ut(tT))},Q4.\u0275prov=Se({token:Q4,factory:Q4.\u0275fac,providedIn:"root"}),Q4),r5=function(e,t){return e===t||e!=e&&t!=t},s5=function(e,t){for(var n=e.length;n--;)if(r5(e[n][0],t))return n;return-1},l5=Array.prototype.splice;function c5(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])}}c5.prototype.clear=function(){this.__data__=[],this.size=0},c5.prototype.delete=function(e){var t=this.__data__,n=s5(t,e);return!(n<0||(n==t.length-1?t.pop():l5.call(t,n,1),--this.size,0))},c5.prototype.get=function(e){var t=this.__data__,n=s5(t,e);return n<0?void 0:t[n][1]},c5.prototype.has=function(e){return s5(this.__data__,e)>-1},c5.prototype.set=function(e,t){var n=this.__data__,i=s5(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var u5,d5=c5,h5=l("Ju5/"),f5=h5.a.Symbol,m5=Object.prototype,p5=m5.hasOwnProperty,g5=m5.toString,v5=f5?f5.toStringTag:void 0,y5=Object.prototype.toString,b5=f5?f5.toStringTag:void 0,_5=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b5&&b5 in Object(e)?function(e){var t=p5.call(e,v5),n=e[v5];try{e[v5]=void 0;var i=!0}catch(Dwe){}var o=g5.call(e);return i&&(t?e[v5]=n:delete e[v5]),o}(e):function(e){return y5.call(e)}(e)},k5=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},C5=function(e){if(!k5(e))return!1;var t=_5(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},w5=h5.a["__core-js_shared__"],x5=(u5=/[^.]+$/.exec(w5&&w5.keys&&w5.keys.IE_PROTO||""))?"Symbol(src)_1."+u5:"",M5=Function.prototype.toString,S5=function(e){if(null!=e){try{return M5.call(e)}catch(Dwe){}try{return e+""}catch(Dwe){}}return""},P5=/^\[object .+?Constructor\]$/,T5=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),O5=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!k5(e)||(t=e,x5&&x5 in t))&&(C5(e)?T5:P5).test(S5(e));var t}(n)?n:void 0},L5=O5(h5.a,"Map"),D5=O5(Object,"create"),I5=Object.prototype.hasOwnProperty,F5=Object.prototype.hasOwnProperty;function A5(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])}}A5.prototype.clear=function(){this.__data__=D5?D5(null):{},this.size=0},A5.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},A5.prototype.get=function(e){var t=this.__data__;if(D5){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return I5.call(t,e)?t[e]:void 0},A5.prototype.has=function(e){var t=this.__data__;return D5?void 0!==t[e]:F5.call(t,e)},A5.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=D5&&void 0===t?"__lodash_hash_undefined__":t,this};var E5=A5,B5=function(e,t){var n,i,o=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map};function N5(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])}}N5.prototype.clear=function(){this.size=0,this.__data__={hash:new E5,map:new(L5||d5),string:new E5}},N5.prototype.delete=function(e){var t=B5(this,e).delete(e);return this.size-=t?1:0,t},N5.prototype.get=function(e){return B5(this,e).get(e)},N5.prototype.has=function(e){return B5(this,e).has(e)},N5.prototype.set=function(e,t){var n=B5(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var R5=N5;function j5(e){var t=this.__data__=new d5(e);this.size=t.size}j5.prototype.clear=function(){this.__data__=new d5,this.size=0},j5.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},j5.prototype.get=function(e){return this.__data__.get(e)},j5.prototype.has=function(e){return this.__data__.has(e)},j5.prototype.set=function(e,t){var n=this.__data__;if(n instanceof d5){var i=n.__data__;if(!L5||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new R5(i)}return n.set(e,t),this.size=n.size,this};var z5=j5,V5=function(){try{var e=O5(Object,"defineProperty");return e({},"",{}),e}catch(Dwe){}}(),H5=function(e,t,n){"__proto__"==t&&V5?V5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Y5=Object.prototype.hasOwnProperty,q5=function(e,t,n){var i=e[t];Y5.call(e,t)&&r5(i,n)&&(void 0!==n||t in e)||H5(e,t,n)},U5=function(e,t,n,i){var o=!n;n||(n={});for(var a=-1,r=t.length;++a<r;){var s=t[a],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?H5(n,s,l):q5(n,s,l)}return n},W5=function(e){return null!=e&&"object"==typeof e},J5=function(e){return W5(e)&&"[object Arguments]"==_5(e)},G5=Object.prototype,$5=G5.hasOwnProperty,Q5=G5.propertyIsEnumerable,K5=J5(function(){return arguments}())?J5:function(e){return W5(e)&&$5.call(e,"callee")&&!Q5.call(e,"callee")},Z5=Array.isArray,X5=l("WOAq"),e6=/^(?:0|[1-9]\d*)$/,t6=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&e6.test(e))&&e>-1&&e%1==0&&e<t},n6=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},i6={};i6["[object Float32Array]"]=i6["[object Float64Array]"]=i6["[object Int8Array]"]=i6["[object Int16Array]"]=i6["[object Int32Array]"]=i6["[object Uint8Array]"]=i6["[object Uint8ClampedArray]"]=i6["[object Uint16Array]"]=i6["[object Uint32Array]"]=!0,i6["[object Arguments]"]=i6["[object Array]"]=i6["[object ArrayBuffer]"]=i6["[object Boolean]"]=i6["[object DataView]"]=i6["[object Date]"]=i6["[object Error]"]=i6["[object Function]"]=i6["[object Map]"]=i6["[object Number]"]=i6["[object Object]"]=i6["[object RegExp]"]=i6["[object Set]"]=i6["[object String]"]=i6["[object WeakMap]"]=!1;var o6=function(e){return function(t){return e(t)}},a6=l("xutz"),r6=a6.a&&a6.a.isTypedArray,s6=r6?o6(r6):function(e){return W5(e)&&n6(e.length)&&!!i6[_5(e)]},l6=Object.prototype.hasOwnProperty,c6=function(e,t){var n=Z5(e),i=!n&&K5(e),o=!n&&!i&&Object(X5.a)(e),a=!n&&!i&&!o&&s6(e),r=n||i||o||a,s=r?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],l=s.length;for(var c in e)!t&&!l6.call(e,c)||r&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||t6(c,l))||s.push(c);return s},u6=Object.prototype,d6=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||u6)},h6=function(e,t){return function(n){return e(t(n))}},f6=h6(Object.keys,Object),m6=Object.prototype.hasOwnProperty,p6=function(e){return null!=e&&n6(e.length)&&!C5(e)},g6=function(e){return p6(e)?c6(e):function(e){if(!d6(e))return f6(e);var t=[];for(var n in Object(e))m6.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},v6=Object.prototype.hasOwnProperty,y6=function(e){return p6(e)?c6(e,!0):function(e){if(!k5(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=d6(e),n=[];for(var i in e)("constructor"!=i||!t&&v6.call(e,i))&&n.push(i);return n}(e)},b6=l("3/ER"),_6=function(){return[]},k6=Object.prototype.propertyIsEnumerable,C6=Object.getOwnPropertySymbols,w6=C6?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var i=-1,o=null==t?0:t.length,a=0,r=[];++i<o;){var s=t[i];k6.call(e,s)&&(r[a++]=s)}return r}(C6(e)))}:_6,x6=function(e,t){for(var n=-1,i=t.length,o=e.length;++n<i;)e[o+n]=t[n];return e},M6=h6(Object.getPrototypeOf,Object),S6=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)x6(t,w6(e)),e=M6(e);return t}:_6,P6=function(e,t,n){var i=t(e);return Z5(e)?i:x6(i,n(e))},T6=function(e){return P6(e,g6,w6)},O6=function(e){return P6(e,y6,S6)},L6=O5(h5.a,"DataView"),D6=O5(h5.a,"Promise"),I6=O5(h5.a,"Set"),F6=O5(h5.a,"WeakMap"),A6=S5(L6),E6=S5(L5),B6=S5(D6),N6=S5(I6),R6=S5(F6),j6=_5;(L6&&"[object DataView]"!=j6(new L6(new ArrayBuffer(1)))||L5&&"[object Map]"!=j6(new L5)||D6&&"[object Promise]"!=j6(D6.resolve())||I6&&"[object Set]"!=j6(new I6)||F6&&"[object WeakMap]"!=j6(new F6))&&(j6=function(e){var t=_5(e),n="[object Object]"==t?e.constructor:void 0,i=n?S5(n):"";if(i)switch(i){case A6:return"[object DataView]";case E6:return"[object Map]";case B6:return"[object Promise]";case N6:return"[object Set]";case R6:return"[object WeakMap]"}return t});var z6=j6,V6=Object.prototype.hasOwnProperty,H6=h5.a.Uint8Array,Y6=function(e){var t=new e.constructor(e.byteLength);return new H6(t).set(new H6(e)),t},q6=/\w*$/,U6=f5?f5.prototype:void 0,W6=U6?U6.valueOf:void 0,J6=Object.create,G6=function(){function e(){}return function(t){if(!k5(t))return{};if(J6)return J6(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),$6=a6.a&&a6.a.isMap,Q6=$6?o6($6):function(e){return W5(e)&&"[object Map]"==z6(e)},K6=a6.a&&a6.a.isSet,Z6=K6?o6(K6):function(e){return W5(e)&&"[object Set]"==z6(e)},X6={};X6["[object Arguments]"]=X6["[object Array]"]=X6["[object ArrayBuffer]"]=X6["[object DataView]"]=X6["[object Boolean]"]=X6["[object Date]"]=X6["[object Float32Array]"]=X6["[object Float64Array]"]=X6["[object Int8Array]"]=X6["[object Int16Array]"]=X6["[object Int32Array]"]=X6["[object Map]"]=X6["[object Number]"]=X6["[object Object]"]=X6["[object RegExp]"]=X6["[object Set]"]=X6["[object String]"]=X6["[object Symbol]"]=X6["[object Uint8Array]"]=X6["[object Uint8ClampedArray]"]=X6["[object Uint16Array]"]=X6["[object Uint32Array]"]=!0,X6["[object Error]"]=X6["[object Function]"]=X6["[object WeakMap]"]=!1;var e8=function e(t,n,i,o,a,r){var s,l=1&n,c=2&n,u=4&n;if(i&&(s=a?i(t,o,a,r):i(t)),void 0!==s)return s;if(!k5(t))return t;var d=Z5(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&V6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}(t,s)}else{var h=z6(t),f="[object Function]"==h||"[object GeneratorFunction]"==h;if(Object(X5.a)(t))return Object(b6.a)(t,l);if("[object Object]"==h||"[object Arguments]"==h||f&&!a){if(s=c||f?{}:function(e){return"function"!=typeof e.constructor||d6(e)?{}:G6(M6(e))}(t),!l)return c?function(e,t){return U5(e,S6(e),t)}(t,function(e,t){return e&&U5(t,y6(t),e)}(s,t)):function(e,t){return U5(e,w6(e),t)}(t,function(e,t){return e&&U5(t,g6(t),e)}(s,t))}else{if(!X6[h])return a?t:{};s=function(e,t,n){var i,o,a=e.constructor;switch(t){case"[object ArrayBuffer]":return Y6(e);case"[object Boolean]":case"[object Date]":return new a(+e);case"[object DataView]":return function(e,t){var n=t?Y6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?Y6(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":return new a;case"[object Number]":case"[object String]":return new a(e);case"[object RegExp]":return(o=new(i=e).constructor(i.source,q6.exec(i))).lastIndex=i.lastIndex,o;case"[object Set]":return new a;case"[object Symbol]":return W6?Object(W6.call(e)):{}}}(t,h,l)}}r||(r=new z5);var m=r.get(t);if(m)return m;r.set(t,s),Z6(t)?t.forEach((function(o){s.add(e(o,n,i,o,t,r))})):Q6(t)&&t.forEach((function(o,a){s.set(a,e(o,n,i,a,t,r))}));var p=d?void 0:(u?c?O6:T6:c?y6:g6)(t);return function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n););}(p||t,(function(o,a){p&&(o=t[a=o]),q5(s,a,e(o,n,i,a,t,r))})),s},t8=l("MO+k"),n8=[[255,99,132],[54,162,235],[255,206,86],[231,233,237],[75,192,192],[151,187,205],[220,220,220],[247,70,74],[70,191,189],[253,180,92],[148,159,177],[77,83,96]];function i8(e,t){return"rgba("+e.concat(t).join(",")+")"}function o8(e,t){return Math.floor(Math.random()*(t-e+1))+e}function a8(e){return{backgroundColor:e.map((function(e){return i8(e,.6)})),borderColor:e.map((function(){return"#fff"})),pointBackgroundColor:e.map((function(e){return i8(e,1)})),pointBorderColor:e.map((function(){return"#fff"})),pointHoverBackgroundColor:e.map((function(e){return i8(e,1)})),pointHoverBorderColor:e.map((function(e){return i8(e,1)}))}}function r8(){return[o8(0,255),o8(0,255),o8(0,255)]}function s8(e){return n8[e]||r8()}function l8(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=n8[n]||r8();return t}var c8,u8,d8,h8,f8,m8=((c8=function(){return d((function e(){c(this,e),this.pColorschemesOptions={},this.colorschemesOptions=new tk({})}),[{key:"setColorschemesOptions",value:function(e){this.pColorschemesOptions=e,this.colorschemesOptions.next(e)}},{key:"getColorschemesOptions",value:function(){return this.pColorschemesOptions}}])}()).\u0275fac=function(e){return new(e||c8)},c8.\u0275prov=Se({factory:function(){return new c8},token:c8,providedIn:"root"}),c8),p8=function(){var e={Default:0,Update:1,Refresh:2};return e[e.Default]="Default",e[e.Update]="Update",e[e.Refresh]="Refresh",e}(),g8=((h8=function(){return d((function e(t,n){c(this,e),this.element=t,this.themeService=n,this.options={},this.chartClick=new Mc,this.chartHover=new Mc,this.old={dataExists:!1,dataLength:0,datasetsExists:!1,datasetsLength:0,datasetsDataObjects:[],datasetsDataLengths:[],colorsExists:!1,colors:[],labelsExist:!1,labels:[],legendExists:!1,legend:{}},this.subs=[]}),[{key:"ngOnInit",value:function(){var e=this;this.ctx=this.element.nativeElement.getContext("2d"),this.refresh(),this.subs.push(this.themeService.colorschemesOptions.subscribe((function(t){return e.themeChanged(t)})))}},{key:"themeChanged",value:function(e){this.refresh()}},{key:"ngDoCheck",value:function(){var e=this;if(this.chart){var t=p8.Default,n=function(e){t=e>t?e:t};switch(!!this.data!==this.old.dataExists&&(this.propagateDataToDatasets(this.data),this.old.dataExists=!!this.data,n(p8.Update)),this.data&&this.data.length!==this.old.dataLength&&(this.old.dataLength=this.data&&this.data.length||0,n(p8.Update)),!!this.datasets!==this.old.datasetsExists&&(this.old.datasetsExists=!!this.datasets,n(p8.Update)),this.datasets&&this.datasets.length!==this.old.datasetsLength&&(this.old.datasetsLength=this.datasets&&this.datasets.length||0,n(p8.Update)),this.datasets&&this.datasets.filter((function(t,n){return t.data!==e.old.datasetsDataObjects[n]})).length&&(this.old.datasetsDataObjects=this.datasets.map((function(e){return e.data})),n(p8.Update)),this.datasets&&this.datasets.filter((function(t,n){return t.data.length!==e.old.datasetsDataLengths[n]})).length&&(this.old.datasetsDataLengths=this.datasets.map((function(e){return e.data.length})),n(p8.Update)),!!this.colors!==this.old.colorsExists&&(this.old.colorsExists=!!this.colors,this.updateColors(),n(p8.Update)),this.colors&&this.colors.filter((function(t,n){return!e.colorsEqual(t,e.old.colors[n])})).length&&(this.old.colors=this.colors.map((function(t){return e.copyColor(t)})),this.updateColors(),n(p8.Update)),!!this.labels!==this.old.labelsExist&&(this.old.labelsExist=!!this.labels,n(p8.Update)),this.labels&&this.labels.filter((function(t,n){return!e.labelsEqual(t,e.old.labels[n])})).length&&(this.old.labels=this.labels.map((function(t){return e.copyLabel(t)})),n(p8.Update)),!!this.options.legend!==this.old.legendExists&&(this.old.legendExists=!!this.options.legend,n(p8.Refresh)),this.options.legend&&this.options.legend.position!==this.old.legend.position&&(this.old.legend.position=this.options.legend.position,n(p8.Refresh)),t){case p8.Default:break;case p8.Update:this.update();break;case p8.Refresh:this.refresh()}}}},{key:"copyLabel",value:function(e){return Array.isArray(e)?r(e):e}},{key:"labelsEqual",value:function(e,t){return Array.isArray(e)===Array.isArray(t)&&(Array.isArray(e)||e===t)&&(!Array.isArray(e)||e.length===t.length)&&(!Array.isArray(e)||0===e.filter((function(e,n){return e!==t[n]})).length)}},{key:"copyColor",value:function(e){return{backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderColor:e.borderColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,pointBorderColor:e.pointBorderColor,pointBackgroundColor:e.pointBackgroundColor,pointBorderWidth:e.pointBorderWidth,pointRadius:e.pointRadius,pointHoverRadius:e.pointHoverRadius,pointHitRadius:e.pointHitRadius,pointHoverBackgroundColor:e.pointHoverBackgroundColor,pointHoverBorderColor:e.pointHoverBorderColor,pointHoverBorderWidth:e.pointHoverBorderWidth,pointStyle:e.pointStyle,hoverBackgroundColor:e.hoverBackgroundColor,hoverBorderColor:e.hoverBorderColor,hoverBorderWidth:e.hoverBorderWidth}}},{key:"colorsEqual",value:function(e,t){return!e==!t&&(!e||e.backgroundColor===t.backgroundColor&&e.borderWidth===t.borderWidth&&e.borderColor===t.borderColor&&e.borderCapStyle===t.borderCapStyle&&e.borderDash===t.borderDash&&e.borderDashOffset===t.borderDashOffset&&e.borderJoinStyle===t.borderJoinStyle&&e.pointBorderColor===t.pointBorderColor&&e.pointBackgroundColor===t.pointBackgroundColor&&e.pointBorderWidth===t.pointBorderWidth&&e.pointRadius===t.pointRadius&&e.pointHoverRadius===t.pointHoverRadius&&e.pointHitRadius===t.pointHitRadius&&e.pointHoverBackgroundColor===t.pointHoverBackgroundColor&&e.pointHoverBorderColor===t.pointHoverBorderColor&&e.pointHoverBorderWidth===t.pointHoverBorderWidth&&e.pointStyle===t.pointStyle&&e.hoverBackgroundColor===t.hoverBackgroundColor&&e.hoverBorderColor===t.hoverBorderColor&&e.hoverBorderWidth===t.hoverBorderWidth)}},{key:"updateColors",value:function(){var e=this;this.datasets.forEach((function(t,n){e.colors&&e.colors[n]?Object.assign(t,e.colors[n]):Object.assign(t,function(e,t,n){if("pie"===e||"doughnut"===e)return a8(l8(n));if("polarArea"===e)return{backgroundColor:(i=l8(n)).map((function(e){return i8(e,.6)})),borderColor:i.map((function(e){return i8(e,1)})),hoverBackgroundColor:i.map((function(e){return i8(e,.8)})),hoverBorderColor:i.map((function(e){return i8(e,1)}))};var i;if("line"===e||"radar"===e)return function(e){return{backgroundColor:i8(e,.4),borderColor:i8(e,1),pointBackgroundColor:i8(e,1),pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:i8(e,.8)}}(s8(t));if("bar"===e||"horizontalBar"===e)return function(e){return{backgroundColor:i8(e,.6),borderColor:i8(e,1),hoverBackgroundColor:i8(e,.8),hoverBorderColor:i8(e,1)}}(s8(t));if("bubble"===e)return a8(l8(n));if("scatter"===e)return a8(l8(n));throw new Error("getColors - Unsupported chart type: "+e)}(e.chartType,n,t.data.length),Object.assign({},t))}))}},{key:"ngOnChanges",value:function(e){var t=p8.Default,n=function(e){t=e>t?e:t};switch(e.hasOwnProperty("data")&&e.data.currentValue&&(this.propagateDataToDatasets(e.data.currentValue),n(p8.Update)),e.hasOwnProperty("datasets")&&e.datasets.currentValue&&(this.propagateDatasetsToData(e.datasets.currentValue),n(p8.Update)),e.hasOwnProperty("labels")&&(this.chart&&(this.chart.data.labels=e.labels.currentValue),n(p8.Update)),e.hasOwnProperty("legend")&&(this.chart&&(this.chart.config.options.legend.display=e.legend.currentValue,this.chart.generateLegend()),n(p8.Update)),e.hasOwnProperty("options")&&n(p8.Refresh),t){case p8.Update:this.update();break;case p8.Refresh:case p8.Default:this.refresh()}}},{key:"ngOnDestroy",value:function(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.subs.forEach((function(e){return e.unsubscribe()}))}},{key:"update",value:function(e){if(this.chart)return this.chart.update(e)}},{key:"hideDataset",value:function(e,t){this.chart.getDatasetMeta(e).hidden=t,this.chart.update()}},{key:"isDatasetHidden",value:function(e){return this.chart.getDatasetMeta(e).hidden}},{key:"toBase64Image",value:function(){return this.chart.toBase64Image()}},{key:"getChartConfiguration",value:function(){var e=this,t=this.getDatasets(),n=Object.assign({},this.options);!1===this.legend&&(n.legend={display:!1}),n.hover=n.hover||{},n.hover.onHover||(n.hover.onHover=function(t,n){n&&!n.length||e.chartHover.emit({event:t,active:n})}),n.onClick||(n.onClick=function(t,n){e.chartClick.emit({event:t,active:n})});var i=this.smartMerge(n,this.themeService.getColorschemesOptions());return{type:this.chartType,data:{labels:this.labels||[],datasets:t},plugins:this.plugins,options:i}}},{key:"getChartBuilder",value:function(e){var t=this.getChartConfiguration();return new t8.Chart(e,t)}},{key:"smartMerge",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===i&&(e=e8(e,5)),Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var a=e[o];a&&a.forEach((function(e){n.smartMerge(e,t[o][0],i+1)}))}else"object"==typeof t[o]?(o in e||(e[o]={}),n.smartMerge(e[o],t[o],i+1)):e[o]=t[o]})),0===i)return e}},{key:"isMultiLineLabel",value:function(e){return Array.isArray(e)}},{key:"joinLabel",value:function(e){return e?this.isMultiLineLabel(e)?e.join(" "):e:null}},{key:"propagateDatasetsToData",value:function(e){this.data=this.datasets.map((function(e){return e.data})),this.chart&&(this.chart.data.datasets=e),this.updateColors()}},{key:"propagateDataToDatasets",value:function(e){var t=this;this.isMultiDataSet(e)?this.datasets&&e.length===this.datasets.length?this.datasets.forEach((function(t,n){t.data=e[n]})):(this.datasets=e.map((function(e,n){return{data:e,label:t.joinLabel(t.labels[n])||"Label "+n}})),this.chart&&(this.chart.data.datasets=this.datasets)):this.datasets?(this.datasets[0]||(this.datasets[0]={}),this.datasets[0].data=e,this.datasets.splice(1)):(this.datasets=[{data:e}],this.chart&&(this.chart.data.datasets=this.datasets)),this.updateColors()}},{key:"isMultiDataSet",value:function(e){return Array.isArray(e[0])}},{key:"getDatasets",value:function(){if(!this.datasets&&!this.data)throw new Error("ng-charts configuration error, data or datasets field are required to render chart "+this.chartType);return this.datasets?(this.propagateDatasetsToData(this.datasets),this.datasets):this.data?(this.propagateDataToDatasets(this.data),this.datasets):void 0}},{key:"refresh",value:function(){this.chart&&(this.chart.destroy(),this.chart=void 0),this.ctx&&(this.chart=this.getChartBuilder(this.ctx))}}],[{key:"registerPlugin",value:function(e){t8.pluginService.register(e)}},{key:"unregisterPlugin",value:function(e){t8.pluginService.unregister(e)}}])}()).\u0275fac=function(e){return new(e||h8)($r(Ml),$r(m8))},h8.\u0275dir=Et({type:h8,selectors:[["canvas","baseChart",""]],inputs:{options:"options",data:"data",datasets:"datasets",labels:"labels",chartType:"chartType",colors:"colors",legend:"legend",plugins:"plugins"},outputs:{chartClick:"chartClick",chartHover:"chartHover"},exportAs:["base-chart"],features:[dl]}),h8),v8=((d8=d((function e(){c(this,e)}))).\u0275mod=Ft({type:d8}),d8.\u0275inj=Pe({factory:function(e){return new(e||d8)},imports:[[]]}),d8),y8=((u8=function(){return d((function e(){c(this,e),this.showModal=!1,this.updateOn=!1,this.hideModal=new Mc}),[{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||u8)},u8.\u0275cmp=Ot({type:u8,selectors:[["io-home-modal-welcome"]],inputs:{showModal:"showModal",updateOn:"updateOn"},outputs:{hideModal:"hideModal"},decls:23,vars:1,consts:[[3,"showModal","hideModal"],[1,"topSelebration"],[1,"sizeS","fontBold","cl-blue","center"],[1,"minHeightBox"],[1,"sizeA","center","fontUp","pdgB2","mrgB2"],[1,"sizeA","center","pdgB2","mrgB2"],[1,"sizeB","center","pdgT2","pdgB2","mrgB2"],[1,"flex","center","foneBox"],[1,"sizeC"],[1,"sizeC","fontBold","cl-blue"],["href","https://api.whatsapp.com/send/?phone=554931910333&text=Ol%C3%A1.%20quero%20um%20atendimento.","target","_blank",1,"fontBold"],[1,"sizeC","center"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div"),es(2,"div",1),es(3,"h2",2),Gs(4,"Parab\xe9ns!"),ts(),ts(),es(5,"div",3),es(6,"h2",4),Gs(7,"Sua compra foi finalizada com sucesso!"),ts(),es(8,"h3",5),Gs(9,"Um membro da nossa equipe entrar\xe1 em contato em breve."),ts(),es(10,"h3",6),Gs(11,"Precisa de ajuda?"),ts(),es(12,"div",7),es(13,"div"),es(14,"span",8),Gs(15,"Telefone / WhatsApp: "),ts(),es(16,"span",9),es(17,"a",10),Gs(18,"49 3191-0333"),ts(),ts(),ts(),ts(),es(19,"p",11),Gs(20,"Hor\xe1rio de atendimento:"),ts(),es(21,"p",11),Gs(22,"Segunda a Sexta das 8h \xe0s 12h e 13h30 \xe0s 18h."),ts(),ts(),ts(),ts()),2&e&&Zr("showModal",t.showModal)},directives:[CE],styles:[".topSelebration[_ngcontent-%COMP%]{height:60px}.foneBox[_ngcontent-%COMP%]{justify-content:space-around;max-width:500px;margin:0 auto 40px}.foneBox[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{text-align:center}.foneBox[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;margin:0 0 10px}"]}),u8),b8=["*"],_8=((f8=function(){return d((function e(t){c(this,e),this.iconSolidService=t,this.showModal=!1,this.notificationText="",this.updateOn=!1,this.hideModal=new Mc,this.resetFirstLogin=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}},{key:"resetFirstLoginFlag",value:function(){this.resetFirstLogin.emit(!0)}}])}()).\u0275fac=function(e){return new(e||f8)($r(JO))},f8.\u0275cmp=Ot({type:f8,selectors:[["io-modal-advertise"]],inputs:{showModal:"showModal",notificationText:"notificationText",updateOn:"updateOn"},outputs:{hideModal:"hideModal",resetFirstLogin:"resetFirstLogin"},ngContentSelectors:b8,decls:11,vars:7,consts:[[1,"filterBlack","modalFilter","collaboratorBox","flexDesk",3,"ngClass"],["modalFilter",""],[1,"modalBoxInfo","round2","bg-white"],[1,"topCelebration"],[1,"sizeS","fontBold","cl-blue","center"],[1,"flex","center","mrgT2"],[3,"innerHTML"],[1,"flexDesk","end","mrgT2"],[1,"mrgT2",3,"moduleName","btnColor","btnText","action","useValidation","btnClick"]],template:function(e,t){1&e&&(ps(),es(0,"div",0,1),es(2,"div",2),gs(3),es(4,"div",3),es(5,"h3",4),Gs(6,"Informa\xe7\xe3o Importante "),ts(),ts(),es(7,"div",5),ns(8,"div",6),ts(),es(9,"div",7),es(10,"io-btn",8),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts(),ts()),2&e&&(Zr("ngClass",1==t.showModal?"active":""),Bo(8),Zr("innerHTML",t.notificationText,fo),Bo(2),Zr("moduleName","")("btnColor","btn-blue-bg")("btnText","Estou ciente")("action","")("useValidation",!1))},directives:[ih,jD],styles:[".topCelebration[_ngcontent-%COMP%]{height:60px}h3[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.modalBoxInfo[_ngcontent-%COMP%]{position:fixed;left:50%;top:40%;transform:translate(-50%,-50%);padding:50px;max-height:800px;width:100%;max-width:980px;margin:60px 20px 20px;border-radius:4px}.modalBoxInfo[_ngcontent-%COMP%]   .modalBody[_ngcontent-%COMP%]{min-height:350px}"]}),f8);function k8(e,t){if(1&e){var n=as();es(0,"div",56),es(1,"div",57),ns(2,"fa-icon",58),es(3,"p",59),Gs(4),ts(),ts(),es(5,"div",57),es(6,"io-btn",60),ls("btnClick",(function(){return mn(n),fs().showModalHire()})),ts(),ts(),ts()}if(2&e){var i=fs();Bo(2),Zr("icon",i.iconSolidService.faExclamationTriangle),Bo(2),Qs("Esta empresa est\xe1 em per\xedodo de avalia\xe7\xe3o. Voc\xea possui ",i.finalCountDown," dias restantes."),Bo(2),Zr("moduleName","company")("action","update")("btnClassList","btnShort")("btnColor","btn-blue")("btnText","Assinar")("btnTitle","Assinar")}}function C8(e,t){if(1&e&&(es(0,"div",56),es(1,"div",57),ns(2,"fa-icon",58),es(3,"p",59),Gs(4),ts(),ts(),es(5,"div",57),ns(6,"io-btn",61),ts(),ts()),2&e){var n=fs();Bo(2),Zr("icon",n.iconSolidService.faExclamationTriangle),Bo(2),Qs("Fechamento do banco de horas em ",n.bankTimeRangeDaysLeft," dias."),Bo(2),Zr("moduleName","company")("action","")("btnClassList","btnShort")("btnColor","btn-blue")("btnText","visualizar")("btnTitle","visualizar")("urlNavigation","/company-config")("useValidation",!1)}}function w8(e,t){if(1&e){var n=as();es(0,"li",62),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalPoint(e.id,e.punch_date_time.split(" ")[0],e.collaborator_id,e.name)})),es(1,"span",63),es(2,"img",64),ls("error",(function(){return t.$implicit.urlImg="/assets/img/photo-user.png"})),ts(),ts(),es(3,"span",65),es(4,"span",66),Gs(5),_c(6,"lowercase"),_c(7,"lowercase"),ts(),es(8,"span",59),Gs(9),ts(),es(10,"span",67),Gs(11),_c(12,"date"),ts(),ts(),es(13,"span",68),ns(14,"fa-icon",69),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),vs("alt",i.name),vs("title",i.name),Zr("src",i.urlImg,mo),Bo(3),Ks("",kc(6,8,i.name.split(" ")[0])," ",kc(7,10,i.name.split(" ")[1]),""),Bo(4),$s(i.in_out?"Sa\xedda":"Entrada"),Bo(2),$s(Cc(12,12,i.punch_date_time,"HH:mm")),Bo(3),Zr("icon",o.iconRegularService.faEye)}}function x8(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function M8(e,t){1&e&&(es(0,"p"),Gs(1,"Sem permiss\xe3o para visualizar"),ts())}function S8(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum registro encontrado."),ts())}function P8(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 pontos registrados."),ts())}function T8(e,t){if(1&e&&(es(0,"li",70),Jr(1,x8,2,0,"p",48),Jr(2,M8,2,0,"p",48),Jr(3,S8,2,0,"p",48),Jr(4,P8,2,0,"p",48),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].loading),Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].hasNoPermission),Bo(1),Zr("ngIf",n.pointList.length>0&&!n.pointList[0].loading&&!n.pointList[0].hasNoPermission&&0==n.pointListFiltered.length),Bo(1),Zr("ngIf",0==n.pointList.length)}}function O8(e,t){if(1&e){var n=as();es(0,"io-search-line",41),ls("onKeyPress",(function(e){return mn(n),fs().filterAdjust(e)})),ts()}2&e&&Zr("paddingRight","pdgR2")("paddingLeft","pdgL2")}function L8(e,t){if(1&e){var n=as();es(0,"io-search-line",41),ls("onKeyPress",(function(e){return mn(n),fs().filterMedicalCertificate(e)})),ts()}2&e&&Zr("paddingRight","pdgR2")("paddingLeft","pdgL2")}function D8(e,t){if(1&e){var n=as();es(0,"li",62),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2).showModalAdjustment(e.id,e.date)})),es(1,"span",63),es(2,"img",64),ls("error",(function(){return t.$implicit.urlImg="/assets/img/photo-user.png"})),ts(),ts(),es(3,"span",65),es(4,"span",66),Gs(5),_c(6,"lowercase"),_c(7,"lowercase"),ts(),es(8,"span",59),Gs(9,"Solicita\xe7\xe3o de ajuste"),ts(),es(10,"span",67),Gs(11),ts(),ts(),es(12,"span",68),ns(13,"fa-icon",69),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2);Bo(2),vs("alt",i.name),vs("title",i.name),Zr("src",i.urlImg,mo),Bo(3),Ks("",kc(6,7,i.name.split(" ")[0])," ",kc(7,9,i.name.split(" ")[1]),""),Bo(6),$s(i.date.split("-").reverse().join("/")),Bo(2),Zr("icon",o.iconRegularService.faEye)}}function I8(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function F8(e,t){1&e&&(es(0,"p"),Gs(1,"Sem permiss\xe3o para visualizar"),ts())}function A8(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 solicita\xe7\xf5es cadastradas."),ts())}function E8(e,t){if(1&e&&(es(0,"li",70),Jr(1,I8,2,0,"p",48),Jr(2,F8,2,0,"p",48),Jr(3,A8,2,0,"p",48),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",n.adjustmentList.length>0&&n.adjustmentList[0].loading),Bo(1),Zr("ngIf",n.adjustmentList.length>0&&n.adjustmentList[0].hasNoPermission),Bo(1),Zr("ngIf",0==n.adjustmentList.length)}}function B8(e,t){if(1&e&&(es(0,"ul"),Jr(1,D8,14,11,"li",44),Jr(2,E8,4,3,"li",45),ts()),2&e){var n=fs();Bo(1),Zr("ngForOf",n.adjustmentListFiltered),Bo(1),Zr("ngIf",0==n.adjustmentListFiltered.length)}}function N8(e,t){if(1&e){var n=as();es(0,"li",62),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2).showModalAbsence(e.id)})),es(1,"span",63),es(2,"img",64),ls("error",(function(){return t.$implicit.urlImg="/assets/img/photo-user.png"})),ts(),ts(),es(3,"span",65),es(4,"span",66),Gs(5),_c(6,"lowercase"),_c(7,"lowercase"),ts(),es(8,"span",59),Gs(9,"Atestado"),ts(),es(10,"span",67),Gs(11),ts(),ts(),es(12,"span",68),ns(13,"fa-icon",69),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2);Bo(2),vs("alt",i.name),vs("title",i.name),Zr("src",i.urlImg,mo),Bo(3),Ks("",kc(6,7,i.name.split(" ")[0])," ",kc(7,9,i.name.split(" ")[1]),""),Bo(6),$s(i.end_date.split(" ")[0].split("-").reverse().join("/")),Bo(2),Zr("icon",o.iconRegularService.faEye)}}function R8(e,t){1&e&&(es(0,"p"),Gs(1," Carregando..."),ts())}function j8(e,t){1&e&&(es(0,"p"),Gs(1," Sem permiss\xe3o para visualizar"),ts())}function z8(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 atestados."),ts())}function V8(e,t){if(1&e&&(es(0,"li",70),Jr(1,R8,2,0,"p",48),Jr(2,j8,2,0,"p",48),Jr(3,z8,2,0,"p",48),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",n.medicalCertificateList.length>0&&n.medicalCertificateList[0].loading),Bo(1),Zr("ngIf",n.medicalCertificateList.length>0&&n.medicalCertificateList[0].hasNoPermission),Bo(1),Zr("ngIf",0==n.medicalCertificateList.length)}}function H8(e,t){if(1&e&&(es(0,"ul"),Jr(1,N8,14,11,"li",44),Jr(2,V8,4,3,"li",45),ts()),2&e){var n=fs();Bo(1),Zr("ngForOf",n.medicalCertificateListFiltered),Bo(1),Zr("ngIf",0==n.medicalCertificateListFiltered.length)}}function Y8(e,t){if(1&e){var n=as();es(0,"io-adjustment-modal-form",71),ls("hideModal",(function(){return mn(n),fs().hideModalAdjustment()}))("updateList",(function(e){return mn(n),fs().updateAdjustmentList(e)})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalAdjustment)("collaboratorSelectedId",i.adjustmentSelectedId)("collaboratorSelectedDate",i.adjustmentSelectedDate)}}function q8(e,t){if(1&e){var n=as();es(0,"io-modal-hire",49),ls("hideModal",(function(){return mn(n),fs().hideModalHire()})),ts()}2&e&&Zr("showModal",fs().modalHire)}var U8,W8=function(){return["/collaborator"]},J8=function(){return["",""]},G8=function(){return{situation:"working"}},$8=function(){return["","",""]},Q8=function(){return["/absence"]},K8=function(){return{situation:"is_late"}},Z8=function(){return["/point-control"]},X8=function(){return{inconsistency:1}},e9=((U8=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h,f,m){c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.companyService=o,this.databaseService=a,this.functionsService=r,this.homeDatabase=s,this.iconRegularService=l,this.iconSolidService=u,this.storageService=d,this.titleService=h,this.userService=f,this.reportDatabase=m,this.absenceSelectedId=null,this.adjustmentList=[{loading:!0}],this.adjustmentListFiltered=[],this.adjustmentSelectedId=null,this.adjustmentSelectedDate=null,this.bankTimeRangeDaysLeft=0,this.companyId=this.companyService.getId(),this.doughnutChartColorBlack=[{backgroundColor:["#444444","#e9f6ff"]}],this.doughnutChartColorBlue=[{backgroundColor:["#23a3ff","#e9f6ff"]}],this.doughnutChartColorGreen=[{backgroundColor:["#0acfa9","#e9f6ff"]}],this.doughnutChartColorOrange=[{backgroundColor:["#ff9100","#e9f6ff"]}],this.doughnutChartColorRed=[{backgroundColor:["#FF0000","#e9f6ff"]}],this.doughnutChartOptions={animation:{animateScale:!0},legend:{display:!1},cutoutPercentage:70},this.doughnutChartDataCollaborator=[[0,0]],this.doughnutChartDataInconsistency=[[0,0]],this.doughnutChartDataLate=[[0,0]],this.doughnutChartDataVacation=[[0,0]],this.doughnutChartDataWorking=[[0,0]],this.finalCountDown=0,this.homeMsgBankTimeRange=!1,this.homeMsgFreeTest=!1,this.inconsistency="",this.inconsistencyPercent=0,this.late="",this.latePercent=0,this.medicalCertificateList=[{loading:!0}],this.medicalCertificateListFiltered=[],this.medicalCertificateShow=!1,this.modalAbsence=!1,this.modalAdjustment=!1,this.modalHire=!1,this.modalMultiPoint=!1,this.modalNotification=!1,this.modalPoint=!1,this.modalWelcome=!1,this.modalWarning=!1,this.notification="",this.systemUpdate=!1,this.pointList=[{loading:!0}],this.pointListFiltered=[],this.dataParams=[],this.pointSelectedId=null,this.pointSelectedDate=null,this.pointSelectedCollaboratorId=null,this.pointSelectedCollaboratorName=null,this.dateSelected=new Date,this.dayPointList=String(this.dateSelected.getDate()).padStart(2,"0"),this.monthPointList=String(this.dateSelected.getMonth()+1).padStart(2,"0"),this.yearPointList=this.dateSelected.getFullYear(),this.currentDatePoint=this.yearPointList+"-"+this.monthPointList+"-"+this.dayPointList,this.settingTabPulseActive=!0,this.userId=this.userService.getId(),this.userName=this.userService.getName(),this.urlImg=this.databaseService.currentDatabaseUrl(),this.vacationPercent=0,this.vacation="",this.workingPercent=0,this.working="",this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Home");var p=this.router.getCurrentNavigation();p.extras.state&&1==p.extras.state.showModalWelcome&&(this.modalWelcome=!0)}),[{key:"ngOnInit",value:function(){var e=this;navigator.cookieEnabled||this.databaseService.logout(),this.currentDate=this.functionsService.getFullDateBR(this.functionsService.currentDateEN("01/01/2020","min")),this.salutation=this.functionsService.getSalutation(),this.getHomeData(),this.companyService.getIdEmitter().subscribe((function(t){e.companyId!=t&&(e.companyId=t)})),this.userService.getIdEmitter().subscribe((function(t){return e.userName=t})),this.userService.getNameEmitter().subscribe((function(t){return e.userName=t}))}},{key:"getHomeData",value:function(){var e=this;null!=this.companyId&&"0"!=this.companyId&&this.homeDatabase.getHomeData(this.companyId,(function(t){if(!t.error){var n=t.data.homeData;e.collaborators=n.collaborators||"0",e.doughnutChartDataCollaborator=[[parseInt(e.collaborators)||0,parseInt(n.totalCollaborators||0)-parseInt(e.collaborators)||0]],e.inconsistency=n.inconsistency||"0",e.inconsistencyPercent=parseFloat((100*parseInt(e.inconsistency)/parseInt(e.collaborators)).toFixed(0))||0,e.doughnutChartDataInconsistency=[[e.inconsistencyPercent,100-e.inconsistencyPercent]],e.late=n.late||"0",e.latePercent=parseFloat((100*parseInt(e.late)/parseInt(e.collaborators)).toFixed(0))||0,e.doughnutChartDataLate=[[e.latePercent,100-e.latePercent]],e.vacation=n.amountCollaboratorInVacation||"0",e.vacationPercent=parseFloat((100*parseInt(e.vacation)/parseInt(e.collaborators)).toFixed(0))||0,e.doughnutChartDataVacation=[[e.vacationPercent,100-e.vacationPercent]],e.working=n.working||"0",e.workingPercent=parseFloat((100*parseInt(e.working)/parseInt(e.collaborators)).toFixed(0))||0,e.doughnutChartDataWorking=[[e.workingPercent,100-e.workingPercent]],e.firstLogin=n.firstLogin.first_login,"1"==e.firstLogin&&(e.modalWarning=!0),e.adjustmentList=n.adjustment_request||[],e.adjustmentList.length>0&&!e.adjustmentList[0].hasNoPermission&&(e.adjustmentList=e.setUrlImg(e.adjustmentList),e.adjustmentListFiltered=e.adjustmentList),e.medicalCertificateList=n.medical_certificate||[],e.medicalCertificateList.length>0&&!e.medicalCertificateList[0].hasNoPermission&&(e.medicalCertificateList=e.setUrlImg(e.medicalCertificateList),e.medicalCertificateListFiltered=e.medicalCertificateList),e.pointList=n.last_points||[],e.pointList.length>0&&!e.pointList[0].hasNoPermission&&(e.pointList=e.setUrlImg(e.pointList),e.pointListFiltered=e.pointList),e.finalCountDown=n.configuration.final_countdown,e.homeMsgFreeTest=e.finalCountDown>0,e.bankTimeRangeDaysLeft=n.bankTimeRange?n.bankTimeRange.bankTimeRangeDayLeft:0,e.homeMsgBankTimeRange=0!=e.bankTimeRangeDaysLeft,n.notification&&(e.notification=n.notification.notification,e.showModalWarning())}}))}},{key:"setUrlImg",value:function(e){var t=this,n=[];return e.forEach((function(e){var i=null!=e.photo?t.urlImg+"/storage/person/person_"+e.person_id+"/"+e.photo:"/assets/img/photo-user.png";n.push(Object.assign(Object.assign({},e),{urlImg:i}))})),n}},{key:"filterRegister",value:function(e){this.pointListFiltered=this.functionsService.arrayFilterWords(this.pointList,e,"name")}},{key:"filterAdjust",value:function(e){this.adjustmentListFiltered=this.functionsService.arrayFilterWords(this.adjustmentList,e,"name")}},{key:"filterMedicalCertificate",value:function(e){this.medicalCertificateListFiltered=this.functionsService.arrayFilterWords(this.medicalCertificateList,e,"name")}},{key:"showModalAbsence",value:function(e){this.absenceSelectedId=e,this.modalAbsence=!0}},{key:"hideModalAbsence",value:function(){this.modalAbsence=!1,this.absenceSelectedId=null}},{key:"showModalAdjustment",value:function(e,t){this.adjustmentSelectedId=e,this.adjustmentSelectedDate=t,this.modalAdjustment=!0}},{key:"updateAdjustmentList",value:function(e){var t=this.adjustmentList.findIndex((function(t){return t.id==e.id&&t.date==e.date}));this.adjustmentList=this.adjustmentList.filter((function(e,n){return t!=n?e:""})),this.adjustmentListFiltered=this.adjustmentList}},{key:"hideModalAdjustment",value:function(){this.adjustmentSelectedId=null,this.adjustmentSelectedDate=null,this.modalAdjustment=!1}},{key:"showModalHire",value:function(){this.modalHire=!0}},{key:"hideModalHire",value:function(){this.modalHire=!1}},{key:"showModalNotification",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.pointSelectedDate=e,this.modalNotification=!0,this.modalPoint=!1}},{key:"hideModalNotification",value:function(){this.modalNotification=!1,this.pointSelectedId=null,this.pointSelectedDate=null,this.pointSelectedCollaboratorId=null,this.pointSelectedCollaboratorName=null}},{key:"showModalPoint",value:function(e,t,n,i){this.pointSelectedId=e,this.pointSelectedDate=t,this.pointSelectedCollaboratorId=n,this.pointSelectedCollaboratorName=i,this.modalPoint=!0}},{key:"hideModalPoint",value:function(){this.modalPoint=!1,this.pointSelectedId=null,this.pointSelectedDate=null,this.pointSelectedCollaboratorId=null,this.pointSelectedCollaboratorName=null}},{key:"openConfiguration",value:function(){}},{key:"hideModalWelcome",value:function(){this.modalWelcome=!1}},{key:"showModalWarning",value:function(){this.modalWarning=!0}},{key:"hideModalWarning",value:function(){this.modalWarning=!1,this.homeDatabase.deleteNotificationUser((function(e){}))}},{key:"resetFirstLogin",value:function(){var e=this;this.modalWarning=!1,this.firstLogin="0",this.homeDatabase.updateFirstLogin(this.userId,(function(t){"success"!=t.data&&e.functionsService.openSnackBar("errorOps","error")}))}},{key:"navigateToPointDayReport",value:function(){var e=this;this.dataParams={dateSelected:this.currentDatePoint,archiveType:"screen_synthetic"},this.reportDatabase.getReportScreen("pointDay",this.dataParams,(function(t){t.error?e.functionsService.openSnackBar("A informa\xe7\xe3o n\xe3o existe ou n\xe3o corresponde aos crit\xe9rios de filtro."):(e.dataPointListScreen=t.data,e.router.navigate(["/report-screen-point-day"],{state:{dateSelected:e.dateSelected,dataPointListScreen:e.dataPointListScreen}}).then((function(){return!1})))}))}}])}()).\u0275fac=function(e){return new(e||U8)($r(wp),$r(yM),$r(Mz),$r(tI),$r(tT),$r(zP),$r(o5),$r(WO),$r(JO),$r(YP),$r(hL),$r(VH),$r(a5))},U8.\u0275cmp=Ot({type:U8,selectors:[["io-home"]],decls:127,vars:98,consts:[[1,"container"],[1,"main","home"],[1,"homeTop","flexDesk","fullHeight"],[1,"homeSalutation","mrgB2"],[1,"sizeB"],[1,"fontBold"],[1,"sizeC"],[1,"notificationBox","mrgB2"],["class","notification flex bg-yellow-light",4,"ngIf"],[1,"homeContent"],[1,"flexDesk","cardBox","fullHeight"],[1,"wdFullTab","bg-white","round2","pdg2","mrgB2","clickPlace","border",3,"routerLink"],[1,"flex","fullHeight"],[1,"chartBox"],[1,"legendSpace","flex"],[1,"flex"],[1,"legendBlock","bg-blue"],[1,"sizeD","spacerHere"],[1,"flex","spacerHere"],[1,"legendBlock","bg-back-color"],[1,"ioChartBox"],["baseChart","","height","100%",3,"width","options","colors","data","labels","chartType"],[1,"chartBoxText"],["size","3x",1,"iconItem","iconSizeA","cl-blue",3,"icon"],[1,"numberCount","sizeS","fontBold","cl-blue"],[1,"sizeB","fontBold"],[1,"wdFullTab","bg-white","round2","pdg2","mrgB2","clickPlace","border",3,"routerLink","state"],[1,"ioChartLegendCenter","sizeC","cl-blue"],["size","3x",1,"iconItem","iconSizeA","cl-green-light",3,"icon"],[1,"numberCount","sizeS","fontBold","cl-green-light"],["size","3x",1,"iconItem","iconSizeA","cl-black",3,"icon"],[1,"numberCount","sizeS","fontBold","cl-black"],[1,"wdFullTab","round2"],[1,"wdFull","bg-white","round2","pdg2","mrgB2","clickPlace","border",3,"routerLink","state"],["size","3x",1,"iconItem","iconSizeA","cl-red",3,"icon"],[1,"numberCount","sizeS","fontBold","cl-red"],[1,"wdFull","bg-white","round2","pdg2","clickPlace","iconsistencyCard","border",3,"routerLink","state"],["size","3x",1,"iconItem","iconSizeA","cl-orange",3,"icon"],[1,"numberCount","sizeS","fontBold","cl-orange"],[1,"sizeC","rightText"],[1,"wdFullTab","bg-white","round2","pdgT2","border"],[3,"paddingRight","paddingLeft","onKeyPress"],[1,"listBoxHome","pdg2"],[1,"sizeB","fontBold","cl-blue","clickPlace",3,"click"],["class","flex fullHeight clickPlace round2",3,"click",4,"ngFor","ngForOf"],["class","round2",4,"ngIf"],[3,"paddingRight","paddingLeft","onKeyPress",4,"ngIf"],[3,"click"],[4,"ngIf"],[3,"showModal","hideModal"],[3,"showModal","absenceId","hideModal"],[3,"showModal","collaboratorSelectedId","collaboratorSelectedDate","hideModal","updateList",4,"ngIf"],[3,"pointId","showModal","showModalNotification","hideModal"],[3,"collaboratorId","collaboratorName","dateNotification","pointId","showModal","hideModal"],[3,"showModal","hideModal",4,"ngIf"],[3,"showModal","notificationText","hideModal"],[1,"notification","flex","bg-yellow-light"],[1,"block"],["size","3x",1,"iconItem","iconSizeE","cl-red","mrgR1",3,"icon"],[1,"sizeD"],[3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","urlNavigation","useValidation"],[1,"flex","fullHeight","clickPlace","round2",3,"click"],[1,"flex","listImgBox"],[1,"imgBorder",3,"src","alt","title","error"],[1,"listTextBox"],[1,"sizeC","fontBold","fontCap","cl-blue"],[1,"sizeC","fontBold"],[1,"flex","center","listIconBox"],["size","3x",1,"iconItem","iconSizeF","cl-blue",3,"icon"],[1,"round2"],[3,"showModal","collaboratorSelectedId","collaboratorSelectedDate","hideModal","updateList"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),es(3,"div",3),es(4,"h3",4),Gs(5),es(6,"span",5),Gs(7),ts(),ts(),es(8,"p",6),Gs(9),ts(),ts(),es(10,"div",7),Jr(11,k8,7,8,"div",8),Jr(12,C8,7,10,"div",8),ts(),ts(),es(13,"div",9),es(14,"div",10),es(15,"div",11),es(16,"div",12),es(17,"div",13),es(18,"div",14),es(19,"div",15),ns(20,"span",16),es(21,"span",17),Gs(22,"Ativos"),ts(),ts(),es(23,"div",18),ns(24,"span",19),es(25,"span",17),Gs(26,"Inativos"),ts(),ts(),ts(),es(27,"div",20),ns(28,"canvas",21),ts(),ts(),es(29,"div",22),ns(30,"fa-icon",23),es(31,"span",24),Gs(32),ts(),es(33,"h3",25),Gs(34,"Funcion\xe1rios"),ts(),ts(),ts(),ts(),es(35,"div",26),es(36,"div",12),es(37,"div",13),ns(38,"div",14),es(39,"div",20),es(40,"span",27),Gs(41),ts(),ns(42,"canvas",21),ts(),ts(),es(43,"div",22),ns(44,"fa-icon",28),es(45,"span",29),Gs(46),ts(),es(47,"h3",25),Gs(48,"Trabalhando"),ts(),ts(),ts(),ts(),es(49,"div",11),es(50,"div",12),es(51,"div",13),ns(52,"div",14),es(53,"div",20),es(54,"span",27),Gs(55),ts(),ns(56,"canvas",21),ts(),ts(),es(57,"div",22),ns(58,"fa-icon",30),es(59,"span",31),Gs(60),ts(),es(61,"h3",25),Gs(62,"Folgas & F\xe9rias"),ts(),ts(),ts(),ts(),ts(),ts(),es(63,"div",9),es(64,"div",10),es(65,"div",32),es(66,"div",33),es(67,"div",12),es(68,"div",13),ns(69,"div",14),es(70,"div",20),es(71,"span",27),Gs(72),ts(),ns(73,"canvas",21),ts(),ts(),es(74,"div",22),ns(75,"fa-icon",34),es(76,"span",35),Gs(77),ts(),es(78,"h3",25),Gs(79,"Atrasados"),ts(),ts(),ts(),ts(),es(80,"div",36),es(81,"div",12),es(82,"div",13),ns(83,"div",14),es(84,"div",20),es(85,"span",27),Gs(86),ts(),ns(87,"canvas",21),ts(),ts(),es(88,"div",22),ns(89,"fa-icon",37),es(90,"span",38),Gs(91),ts(),es(92,"h3",25),Gs(93,"Inconsist\xeancias"),ts(),ts(),ts(),es(94,"h4",39),Gs(95,"referentes ao "),es(96,"span",5),Gs(97,"m\xeas atual"),ts(),ts(),ts(),ts(),es(98,"div",40),es(99,"io-search-line",41),ls("onKeyPress",(function(e){return t.filterRegister(e)})),ts(),es(100,"div",42),es(101,"div",15),es(102,"h3",25),Gs(103,"\xdaltimos registros de hoje "),ts(),es(104,"h3",43),ls("click",(function(){return t.navigateToPointDayReport()})),Gs(105,"Ver todos"),ts(),ts(),es(106,"ul"),Jr(107,w8,15,15,"li",44),Jr(108,T8,5,4,"li",45),ts(),ts(),ts(),es(109,"div",40),Jr(110,O8,1,2,"io-search-line",46),Jr(111,L8,1,2,"io-search-line",46),es(112,"div",42),es(113,"div",15),es(114,"span",47),ls("click",(function(){return t.medicalCertificateShow=!1})),Gs(115,"Pedidos de ajuste"),ts(),es(116,"span",47),ls("click",(function(){return t.medicalCertificateShow=!0})),Gs(117,"Atestados"),ts(),ts(),Jr(118,B8,3,2,"ul",48),Jr(119,H8,3,2,"ul",48),ts(),ts(),ts(),ts(),ts(),ts(),es(120,"io-home-modal-welcome",49),ls("hideModal",(function(){return t.hideModalWelcome()})),ts(),es(121,"io-absence-modal-view",50),ls("hideModal",(function(){return t.hideModalAbsence()})),ts(),Jr(122,Y8,1,3,"io-adjustment-modal-form",51),es(123,"io-point-modal-point",52),ls("showModalNotification",(function(e){return t.showModalNotification(e.date,e.pointId)}))("hideModal",(function(){return t.hideModalPoint()})),ts(),es(124,"io-point-modal-notification",53),ls("hideModal",(function(){return t.hideModalNotification()})),ts(),Jr(125,q8,1,1,"io-modal-hire",54),es(126,"io-modal-advertise",55),ls("hideModal",(function(){return t.hideModalWarning()})),ts()),2&e&&(Bo(5),Qs("",t.salutation,", "),Bo(2),$s(t.userName),Bo(2),$s(t.currentDate),Bo(2),Zr("ngIf",t.homeMsgFreeTest),Bo(1),Zr("ngIf",!t.homeMsgFreeTest&&t.homeMsgBankTimeRange),Bo(3),Zr("routerLink",mc(85,W8)),Bo(13),Zr("width","100%")("options",t.doughnutChartOptions)("colors",t.doughnutChartColorBlue)("data",t.doughnutChartDataCollaborator)("labels",mc(86,J8))("chartType","doughnut"),Bo(2),Zr("icon",t.iconSolidService.faUser),Bo(2),$s(t.collaborators),Bo(3),Zr("routerLink",mc(87,W8))("state",mc(88,G8)),Bo(6),Qs("",t.workingPercent,"%"),Bo(1),Zr("width","100%")("options",t.doughnutChartOptions)("colors",t.doughnutChartColorGreen)("data",t.doughnutChartDataWorking)("labels",mc(89,$8))("chartType","doughnut"),Bo(2),Zr("icon",t.iconSolidService.faUserCheck),Bo(2),$s(t.working),Bo(3),Zr("routerLink",mc(90,Q8)),Bo(6),Qs("",t.vacationPercent," %"),Bo(1),Zr("width","100%")("options",t.doughnutChartOptions)("colors",t.doughnutChartColorBlack)("data",t.doughnutChartDataVacation)("labels",mc(91,J8))("chartType","doughnut"),Bo(2),Zr("icon",t.iconSolidService.faUmbrellaBeach),Bo(2),$s(t.vacation),Bo(6),Zr("routerLink",mc(92,W8))("state",mc(93,K8)),Bo(6),Qs("",t.latePercent," %"),Bo(1),Zr("width","100%")("options",t.doughnutChartOptions)("colors",t.doughnutChartColorRed)("data",t.doughnutChartDataLate)("labels",mc(94,J8))("chartType","doughnut"),Bo(2),Zr("icon",t.iconSolidService.faClock),Bo(2),$s(t.late),Bo(3),Zr("routerLink",mc(95,Z8))("state",mc(96,X8)),Bo(6),Qs("",t.inconsistencyPercent," %"),Bo(1),Zr("width","100%")("options",t.doughnutChartOptions)("colors",t.doughnutChartColorOrange)("data",t.doughnutChartDataInconsistency)("labels",mc(97,J8))("chartType","doughnut"),Bo(2),Zr("icon",t.iconSolidService.faExclamationTriangle),Bo(2),$s(t.inconsistency),Bo(8),Zr("paddingRight","pdgR2")("paddingLeft","pdgL2"),Bo(8),Zr("ngForOf",t.pointListFiltered),Bo(1),Zr("ngIf",0==t.pointListFiltered.length),Bo(2),Zr("ngIf",!t.medicalCertificateShow),Bo(1),Zr("ngIf",t.medicalCertificateShow),Bo(3),Xs("sizeB fontBold clickPlace ",t.medicalCertificateShow?"":"cl-blue",""),Bo(2),Xs("sizeB fontBold clickPlace ",t.medicalCertificateShow?"cl-blue":"",""),Bo(2),Zr("ngIf",!t.medicalCertificateShow),Bo(1),Zr("ngIf",t.medicalCertificateShow),Bo(1),Zr("showModal",t.modalWelcome),Bo(1),Zr("showModal",t.modalAbsence)("absenceId",t.absenceSelectedId),Bo(1),Zr("ngIf",t.modalAdjustment),Bo(1),Zr("pointId",t.pointSelectedId)("showModal",t.modalPoint),Bo(1),Zr("collaboratorId",t.pointSelectedCollaboratorId)("collaboratorName",t.pointSelectedCollaboratorName)("dateNotification",t.pointSelectedDate)("pointId",t.pointSelectedId)("showModal",t.modalNotification),Bo(1),Zr("ngIf",t.modalHire),Bo(1),Zr("showModal",t.modalWarning)("notificationText",t.notification))},directives:[sh,bM,g8,FD,oE,ah,y8,IB,nZ,MK,_8,jD,nj,_1],pipes:[wh,xh],styles:[".homeSalutation[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:3px}.notificationBox[_ngcontent-%COMP%]{width:100%;max-width:66%}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]{width:100%;min-height:46px;padding:5px 15px;border-radius:4px}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{width:100%;display:flex;align-items:center}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:nth-child(2){width:100%;max-width:130px;margin-left:20px}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   io-btn[_ngcontent-%COMP%]{margin:0;height:36px;border-radius:3px;font-size:14px}.wdFullTab[_ngcontent-%COMP%]{width:100%;max-width:32%}.cardBox[_ngcontent-%COMP%]{width:100%}.cardBox[_ngcontent-%COMP%]   .border[_ngcontent-%COMP%]{border:1px solid var(--primary-color-light-70)}.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]{margin:0}.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]   .legendSpace[_ngcontent-%COMP%]{height:10px}.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]   .legendSpace[_ngcontent-%COMP%]   .legendBlock[_ngcontent-%COMP%]{display:block;height:10px;width:15px}.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]   .legendSpace[_ngcontent-%COMP%]   .spacerHere[_ngcontent-%COMP%]{margin-left:5px}.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]   .ioChartBox[_ngcontent-%COMP%]{position:relative;width:50%;max-width:100px;min-width:100px;margin:8px 0 0}.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]   .ioChartBox[_ngcontent-%COMP%]   .ioChartLegendCenter[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:100%;transform:translate(-50%,-50%);text-align:center}.cardBox[_ngcontent-%COMP%]   .chartBoxText[_ngcontent-%COMP%]{text-align:right}.cardBox[_ngcontent-%COMP%]   .chartBoxText[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{margin-bottom:20px}.cardBox[_ngcontent-%COMP%]   .chartBoxText[_ngcontent-%COMP%]   .numberCount[_ngcontent-%COMP%]{margin-bottom:10px}.cardBox[_ngcontent-%COMP%]   .chartBoxText[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:30px;max-height:30px}.cardBox[_ngcontent-%COMP%]   .chartBoxText[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{height:75px}.cardBox[_ngcontent-%COMP%]   .chartBoxText[_ngcontent-%COMP%]   .numberCount[_ngcontent-%COMP%]{display:block;text-align:right}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:20px 0 0;padding:0 2px 0 0;max-height:232px;overflow-y:auto}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]::-webkit-scrollbar{display:inherit;width:3px}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{background-color:var(--background-color);padding:5px 10px;border-left:3px solid var(--cl-blue);margin:0 0 10px}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{background-color:var(--primary-color-light-90)}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin:0}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .listImgBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:50px}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .listTextBox[_ngcontent-%COMP%]{width:100%;margin:0 10px}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .listTextBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}.listBoxHome[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .listTextBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:nth-child(2){margin:2px 0 5px}.moreInformation[_ngcontent-%COMP%]{padding:5px;width:150px}.moreInformation[_ngcontent-%COMP%]:hover{background-color:#cacc5d}.moreInformation[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px}@media (max-width:1070px){.cardBox[_ngcontent-%COMP%]   .chartBox[_ngcontent-%COMP%]   .legendSpace[_ngcontent-%COMP%]   .legendBlock[_ngcontent-%COMP%]{width:10px}}@media (max-width:780px){.notificationBox[_ngcontent-%COMP%]{max-width:100%}.flexDesk[_ngcontent-%COMP%]{display:block}.flexDesk[_ngcontent-%COMP%]   .wdFullTab[_ngcontent-%COMP%]{width:100%;max-width:100%}.iconsistencyCard[_ngcontent-%COMP%]{margin-bottom:20px}}@media (max-width:600px){.userBox[_ngcontent-%COMP%]   .userBoxTop[_ngcontent-%COMP%]{justify-content:center}.userBox[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .userBox[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{text-align:center}.cardBox[_ngcontent-%COMP%]   .wdFullMob[_ngcontent-%COMP%]{max-width:100%}.cardBox[_ngcontent-%COMP%]   .wdFullMob[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{height:10px}.cardBox[_ngcontent-%COMP%]   .wdFullMob[_ngcontent-%COMP%]   .numberCount[_ngcontent-%COMP%]{text-align:center}}@media (max-width:530px){.registerList[_ngcontent-%COMP%]   .cardBox[_ngcontent-%COMP%]{display:block}.registerList[_ngcontent-%COMP%]   .cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;width:100%;height:80px;margin-bottom:20px}}@media (max-width:450px){.listBoxHome[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .listBoxHome[_ngcontent-%COMP%]   .separator[_ngcontent-%COMP%]{display:none}.listBoxHome[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .listBoxHome[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{max-width:100%;max-height:270px}.listBoxHome[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .listBoxHome[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{margin:30px 0 0}.listBoxHome[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .listBoxHome[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin-top:10px}}@media (max-width:400px){.notificationBox[_ngcontent-%COMP%]{max-width:100%}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]{display:block}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child{width:100%;text-align:center}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{width:100%;max-width:130px;margin:10px auto 0}.notificationBox[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{margin:0;height:36px;border-radius:3px;box-shadow:none;font-size:14px}}"]}),U8);function t9(e,t){if(1&e&&(es(0,"option",36),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.description)}}function n9(e,t){if(1&e&&(es(0,"option",36),Gs(1),ts()),2&e){var n=t.index;vs("value",n+1),Bo(1),Qs("Dia ",n+1,"")}}function i9(e,t){if(1&e&&(es(0,"div",37),es(1,"select",38),Jr(2,n9,2,2,"option",9),ts(),es(3,"label",39),Gs(4,"Dia de in\xedcio na escala"),ts(),ns(5,"fa-icon",11),ts()),2&e){var n=fs();Bo(1),Zr("formControlName","first_day"),Bo(1),Zr("ngForOf",n.selectFieldListJourneyDays),Bo(3),Zr("icon",n.iconSolidService.faCaretDown)}}function o9(e,t){if(1&e&&(es(0,"option",36),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.description),Bo(1),$s(n.description)}}function a9(e,t){if(1&e){var n=as();es(0,"span",49),es(1,"span",14),es(2,"io-icon",50),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalJourney(e.journeyCollaborator.journey_id,e.id)})),ts(),es(3,"span",51),Gs(4),ts(),ts(),es(5,"span",52),es(6,"io-icon",50),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDeleteJourneyCollaborator(e.journeyCollaborator.id)})),ts(),ts(),ts()}if(2&e){var i=fs().$implicit,o=fs();Bo(2),Zr("moduleName","journey")("action","show")("iconTitle","Visualizar escala")("iconClassList","mrgR1"),Bo(2),Zs(" ",i.journeyCollaborator.journey_description," - ",o.getDateBR(i.journeyCollaborator.begin_date)," ",0!=i.journeyCollaborator.first_day&&null!=i.journeyCollaborator.first_day?" (Dia "+i.journeyCollaborator.first_day+")":null," "),Bo(2),Zr("moduleName","journey")("action","delete")("iconTitle","Excluir mudan\xe7a de escala")("iconClassList","mrgL1")}}function r9(e,t){1&e&&(es(0,"span",21),Gs(1,"-"),ts())}function s9(e,t){if(1&e){var n=as();es(0,"li",40),es(1,"span",41),es(2,"label",22),es(3,"input",42),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectCollaboratorId(e.id)})),ts(),ns(4,"span",24),ts(),ts(),es(5,"span",21),es(6,"label",43),Gs(7),ts(),ts(),es(8,"span",44),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalJourney(e.journey_id,e.id)})),ns(9,"fa-icon",45),es(10,"span",46),Gs(11),ts(),ts(),Jr(12,a9,7,11,"span",47),Jr(13,r9,2,0,"span",48),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),ys("id","coll",i.id,""),Zr("checked",o.collaboratorSelectedIdList.indexOf(i.id)>=0),Bo(3),ys("for","coll",i.id,""),Bo(1),Qs(" ",i.name," "),Bo(2),Zr("icon",o.iconRegularService.faEye),Bo(2),Ks(" ",i.journey_description," ",0!=i.first_day&&null!=i.first_day?" (Dia "+i.first_day+")":null," "),Bo(1),Zr("ngIf",i.journeyCollaborator),Bo(1),Zr("ngIf",!i.journeyCollaborator)}}function l9(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function c9(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function u9(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rios."),ts())}function d9(e,t){if(1&e&&(es(0,"li"),Jr(1,l9,2,0,"p",32),Jr(2,c9,2,0,"p",32),Jr(3,u9,2,0,"p",32),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var h9,f9,m9=((f9=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.collaboratorDatabase=i,this.companyDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.journeyDatabase=l,this.titleService=u,this.changeJourneyMinDate=this.functionsService.getMonthBeforeEN(this.functionsService.getFirstLastDay()[0],2),this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredJourney=[],this.collaboratorListFilteredSearch=[],this.collaboratorSelectedId=null,this.collaboratorSelectedIdList=[],this.currentDate=this.functionsService.getCurrentDateEN(),this.dateSelected="",this.especialJourney=!1,this.journeyCollaboratorSelectedId=null,this.modalDeleteJourneyCollaborator=!1,this.selectFieldListJourney=[],this.selectFieldListJourneyDays=[],this.modalJourney=!1,this.journeySelectedId=null,this.titleService.setTitle("Mudan\xe7a de escala"),this.searchForm=this.formBuilder.group({selectAllCollaborators:new Wm("",[Jf.required]),search:new Wm("",[Jf.required]),journey:new Wm("all",[Jf.required])}),this.journeyChangeForm=this.formBuilder.group({journey_id:new Wm(null,[Jf.required]),first_day:new Wm("1",[Jf.required])});var h=this.router.getCurrentNavigation().extras.state;this.companyDatabase.getSelectList({listRequired:JSON.stringify(["journey"])},(function(e){e.error||(d.selectFieldListJourney=e.data.journey,h&&d.searchForm.get("journey").setValue(h.journeyDescription))}))}),[{key:"ngOnInit",value:function(){this.loadCollaboratorList()}},{key:"setFilter",value:function(e){this.loadCollaboratorList(e)}},{key:"loadCollaboratorList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.journeyDatabase.getJourneyCollaboratorList(t,(function(t){t.error||(e.collaboratorList=(t=t.data).collaboratorList||[],e.collaboratorList.forEach((function(t){e.selectFieldListJourney.findIndex((function(e){return e.id==t.journey_id}))<0&&e.selectFieldListJourney.push({description:t.journey_description,id:t.journey_id})})),e.filterCollaboratorJourney())}))}},{key:"filterCollaboratorJourney",value:function(){var e=this.searchForm.controls.journey.value;this.collaboratorListFilteredJourney=this.collaboratorList.filter((function(t){return t.journey_description==e})),"all"==e&&(this.collaboratorListFilteredJourney=this.collaboratorList),this.filterCollaboratorSearch(this.searchForm.controls.search.value)}},{key:"filterCollaboratorSearch",value:function(e){this.searchForm.get("search").setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredJourney,e,"name")}},{key:"setDate",value:function(e){this.dateSelected=e}},{key:"selectAllCollaborators",value:function(){var e=this;this.searchForm.get("selectAllCollaborators").value?(this.collaboratorSelectedIdList=[],this.collaboratorListFilteredSearch.forEach((function(t){e.collaboratorSelectedIdList.push(t.id)}))):this.collaboratorSelectedIdList=[]}},{key:"selectCollaboratorId",value:function(e){var t=this,n=this.collaboratorSelectedIdList;n.find((function(t){return t==e}))?n=n.filter((function(t){return t!=e})):n.push(e),this.collaboratorSelectedIdList=[],n.forEach((function(e){t.collaboratorSelectedIdList.push(e)}))}},{key:"checkJourneySelected",value:function(){var e=this,t=this.journeyChangeForm.get("journey_id").value,n=this.selectFieldListJourney.find((function(e){return e.id==t}));"5x1"==n.type||"12x36"==n.type||"24x48"==n.type||"24x72"==n.type||"custom_hour"==n.type?this.journeyDatabase.getJourneyHours(t,(function(t){e.selectFieldListJourneyDays=t.data.journeyHours,e.journeyChangeForm.get("first_day").setValue(e.selectFieldListJourneyDays[0].first_day),e.especialJourney=!0})):(this.journeyChangeForm.get("first_day").setValue("0"),this.especialJourney=!1)}},{key:"sendJourneyChange",value:function(){var e=this;if(this.validFields()){var t={collaboratorIdList:JSON.stringify(this.collaboratorSelectedIdList),beginDate:this.dateSelected,journey_id:this.journeyChangeForm.get("journey_id").value,first_day:this.journeyChangeForm.get("first_day").value};this.journeyDatabase.postJourneyCollaboratorList(t,(function(t){t.error||(e.searchForm.get("selectAllCollaborators").setValue(!1),e.selectAllCollaborators(),e.loadCollaboratorList())}))}}},{key:"validFields",value:function(){return""==this.dateSelected||null==this.dateSelected?(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar a data de in\xedcio da nova escala."),!1):""==this.journeyChangeForm.get("journey_id").value||null==this.journeyChangeForm.get("journey_id").value?(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar a escala para transfer\xeancia."),!1):0!=this.collaboratorSelectedIdList.length||(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar ao menos um funcion\xe1rio para transfer\xeancia."),!1)}},{key:"showModalDeleteJourneyCollaborator",value:function(e){this.journeyCollaboratorSelectedId=e,this.modalDeleteJourneyCollaborator=!0}},{key:"deleteJourneyCollaborator",value:function(){var e=this;this.journeyDatabase.deleteJourneyCollaborator(this.journeyCollaboratorSelectedId,(function(t){t.error||(e.searchForm.get("selectAllCollaborators").setValue(!1),e.selectAllCollaborators(),e.loadCollaboratorList(),e.hideModalDeleteJourneyCollaborator())}))}},{key:"hideModalDeleteJourneyCollaborator",value:function(){this.modalDeleteJourneyCollaborator=!1,this.journeyCollaboratorSelectedId=null}},{key:"showModalJourney",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&(this.collaboratorSelectedId=t,this.journeySelectedId=e,this.modalJourney=!0)}},{key:"hideModalJourney",value:function(){this.modalJourney=!1,this.journeySelectedId=null,this.collaboratorSelectedId=null}},{key:"getDateBR",value:function(e){return this.functionsService.dateENtoBR(e)}}])}()).\u0275fac=function(e){return new(e||f9)($r(wp),$r(yM),$r(LN),$r(Mz),$r(zP),$r(WO),$r(JO),$r(DN),$r(hL))},f9.\u0275cmp=Ot({type:f9,selectors:[["io-journey-page-collaborator-change"]],decls:43,vars:34,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","textTop","textTop2"],[1,"flex","mrgB2","top"],[1,"datepicker","required","wdMax25",3,"labelText","validMinDateClosure","collaboratorListId","minDate","dateSelectedEN"],[1,"journey-form-box","flex","pdg-top-here",3,"formGroup"],[1,"form-group","inputAnimated","selectViewList"],["id","journey_id","required","",3,"formControlName","change"],["selectJourney",""],[3,"value",4,"ngFor","ngForOf"],["for","journey_id",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","iconViewJourney",3,"icon","click"],["class","form-group inputAnimated mrgL2",4,"ngIf"],[1,"flex"],[3,"selectFull","onKeyPress"],[1,"flex","end"],[3,"showCollaboratorStatusList","selectedFiltersAsStrings"],[1,"minHeightBox","mrgB2"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","journeyFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showModal","journeyId","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"value"],[1,"form-group","inputAnimated","mrgL2"],["id","first_day","required","",3,"formControlName"],["for","first_day",1,"form-label","flex"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item"],["type","checkbox",3,"checked","id","change"],[1,"clickPlace",3,"for"],[1,"item","flex","start","clickPlace",3,"click"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeH","cl-gray-dark",3,"icon"],[1,"sizeC","pdgL1","mrgR1"],["class","item flex clickPlace",4,"ngIf"],["class","item sizeC",4,"ngIf"],[1,"item","flex","clickPlace"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[1,"sizeC","pdgR1"],[1,"flex","end","mrgL1"]],template:function(e,t){if(1&e){var n=as();es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-datepicker",4),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),es(5,"div",5),es(6,"div",6),es(7,"select",7,8),ls("change",(function(){return t.checkJourneySelected()})),Jr(9,t9,2,2,"option",9),ts(),es(10,"label",10),Gs(11,"Escala"),ts(),ns(12,"fa-icon",11),es(13,"fa-icon",12),ls("click",(function(){mn(n);var e=Gr(8);return t.showModalJourney(e.value)})),ts(),ts(),Jr(14,i9,6,3,"div",13),ts(),ts(),es(15,"div",14),es(16,"io-search-line",15),ls("onKeyPress",(function(e){return t.filterCollaboratorSearch(e)})),ts(),es(17,"div",16),es(18,"io-collaborator-filter",17),ls("selectedFiltersAsStrings",(function(e){return t.setFilter(e)})),ts(),ts(),ts(),es(19,"div",18),es(20,"div",19),es(21,"div",20),es(22,"h3",21),es(23,"label",22),es(24,"input",23),ls("change",(function(){return t.selectAllCollaborators()})),ts(),ns(25,"span",24),ts(),ts(),es(26,"h3",25),Gs(27,"Funcion\xe1rio"),ts(),es(28,"div",26),es(29,"select",27),ls("change",(function(){return t.filterCollaboratorJourney()})),es(30,"option",28),Gs(31,"Escala"),ts(),Jr(32,o9,2,2,"option",9),ts(),ns(33,"fa-icon",29),ts(),es(34,"h3",25),Gs(35,"Pr\xf3xima troca de escala"),ts(),ts(),es(36,"ul",30),Jr(37,s9,14,9,"li",31),Jr(38,d9,4,3,"li",32),ts(),ts(),ts(),es(39,"div",16),es(40,"io-btn",33),ls("btnClick",(function(){return t.sendJourneyChange()})),ts(),ts(),ts(),ts(),es(41,"io-journey-modal-view",34),ls("hideModal",(function(){return t.hideModalJourney()})),ts(),es(42,"io-modal-confirm",35),ls("hideModal",(function(){return t.hideModalDeleteJourneyCollaborator()}))("confirmClick",(function(){return t.deleteJourneyCollaborator()})),ts()}2&e&&(Bo(2),Zr("moduleName","journey")("titleTop","Mudan\xe7a de escala")("textTop","Selecione a data, a nova escala e os funcion\xe1rios para a mudan\xe7a de escala.")("textTop2","Caso exista alguma mudan\xe7a programada, todas as mudan\xe7as posteriores a data selecionada ser\xe3o exclu\xeddas!"),Bo(2),Zr("labelText","Data de in\xedcio")("validMinDateClosure",!0)("collaboratorListId",t.collaboratorSelectedIdList)("minDate",t.changeJourneyMinDate),Bo(1),Zr("formGroup",t.journeyChangeForm),Bo(2),Zr("formControlName","journey_id"),Bo(2),Zr("ngForOf",t.selectFieldListJourney),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("icon",t.iconRegularService.faEye),Bo(1),Zr("ngIf",t.especialJourney),Bo(2),Zr("selectFull",!0),Bo(2),Zr("showCollaboratorStatusList",!1),Bo(3),Zr("formGroup",t.searchForm),Bo(3),Zr("formControlName","selectAllCollaborators"),Bo(5),Zr("formControlName","journey"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.selectFieldListJourney),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(2),Zr("moduleName","journey")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar mudan\xe7a de escala")("btnTitle","Salvar mudan\xe7a de escala"),Bo(1),Zr("showModal",t.modalJourney)("journeyId",t.journeySelectedId),Bo(1),Zr("title","Deseja realmente excluir esta mudan\xe7a escala?")("btnTextConfirm","Excluir")("showModal",t.modalDeleteJourneyCollaborator))},directives:[eI,UA,Hf,ip,vm,bp,Vf,vp,ah,FD,sh,oE,qV,Of,ym,xm,jD,jW,UB,BB],styles:[".pdg-top-here[_ngcontent-%COMP%]{justify-content:flex-end;width:100%;max-width:420px;padding-top:1px}.pdg-top-here[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{max-width:250px}io-icon[_ngcontent-%COMP%]{display:inline-flex}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:500px}.listBoxHere[_ngcontent-%COMP%]{min-height:300px}"]}),f9),p9=((h9=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getInvoiceList",value:function(e){this.databaseService.get("/invoice",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getInvoicePaymentData",value:function(e){this.databaseService.get("/invoice/paymentData",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"putInvoicePaymentData",value:function(e,t){this.databaseService.put("/invoice/paymentData",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putInvoicePaymentEmail",value:function(e,t){this.databaseService.put("/invoice/paymentEmail",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||h9)(ut(tT))},h9.\u0275prov=Se({token:h9,factory:h9.\u0275fac,providedIn:"root"}),h9);function g9(e,t){if(1&e){var n=as();es(0,"div",11),es(1,"h3",5),Gs(2,"Dados de faturamento"),ts(),es(3,"div",12),es(4,"div",13),es(5,"div",14),ns(6,"input",15),es(7,"label",16),Gs(8,"E-mail para recebimento de faturas:"),ts(),ts(),ts(),es(9,"io-btn",17),ls("btnClick",(function(){return mn(n),fs().sendPaymentForm()})),ts(),ts(),ts()}if(2&e){var i=fs();Bo(5),Zr("formGroup",i.paymentDataForm),Bo(1),Zr("formControlName","email_invoice"),Bo(3),Zr("moduleName","invoice")("action","update")("btnColor","btn-blue-bg")("btnClassList","btnSmall btnShort")("btnText","Salvar")("btnTitle","Salvar")}}function v9(e,t){1&e&&(es(0,"div",18),es(1,"span",19),Gs(2,"Carregando..."),ts(),ts())}function y9(e,t){1&e&&(es(0,"span",31),Gs(1,"s"),ts())}function b9(e,t){1&e&&(es(0,"span"),Gs(1,"s"),ts())}function _9(e,t){1&e&&(es(0,"span"),Gs(1,"s"),ts())}function k9(e,t){1&e&&(es(0,"span"),Gs(1,"s"),ts())}function C9(e,t){1&e&&(es(0,"span"),Gs(1,"s"),ts())}function w9(e,t){if(1&e&&(es(0,"span",19),Gs(1),Jr(2,k9,2,0,"span",27),Gs(3," inativo"),Jr(4,C9,2,0,"span",27),ts()),2&e){var n=fs(2);Bo(1),Qs("",n.invoiceData.collaborator_inactive," funcion\xe1rio"),Bo(1),Zr("ngIf",n.invoiceData.collaborator_inactive>1),Bo(2),Zr("ngIf",n.invoiceData.collaborator_inactive>1)}}function x9(e,t){if(1&e&&(es(0,"span",19),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs("(R$ ",n.invoiceData.price,"/por funcion\xe1rio)")}}function M9(e,t){if(1&e&&(es(0,"div",20),es(1,"div",21),es(2,"div",22),es(3,"span",23),Gs(4),Jr(5,y9,2,0,"span",24),ts(),ts(),es(6,"div",25),ns(7,"span",26),ts(),es(8,"div",18),es(9,"span",19),Gs(10),Jr(11,b9,2,0,"span",27),Gs(12," ativo"),Jr(13,_9,2,0,"span",27),ts(),Jr(14,w9,5,3,"span",28),ts(),ts(),es(15,"div",21),es(16,"div",18),es(17,"span",23),Gs(18,"Total previsto"),ts(),es(19,"span",19),es(20,"a",29),Gs(21,"Cancelar"),ts(),ts(),ts(),es(22,"h3",30),Gs(23),Jr(24,x9,2,1,"span",28),ts(),es(25,"h4",19),Gs(26,"Pr\xf3ximo pagamento em"),ts(),es(27,"span",19),Gs(28),ts(),ts(),ts()),2&e){var n=fs();Bo(4),Qs("",n.invoiceData.collaborator_count_total," funcion\xe1rio"),Bo(1),Zr("ngIf",n.invoiceData.collaborator_count_total>1),Bo(2),Rs(Ys,As,"width:"+n.planCurrentPercentageUsage+"%",!1),Bo(3),Qs("",n.invoiceData.collaborator_active," funcion\xe1rio"),Bo(1),Zr("ngIf",n.invoiceData.collaborator_active>1),Bo(2),Zr("ngIf",n.invoiceData.collaborator_active>1),Bo(1),Zr("ngIf",n.invoiceData.collaborator_inactive>0),Bo(9),Qs("R$ ",n.invoiceData.total," "),Bo(1),Zr("ngIf","0"!=n.invoiceDataPrice),Bo(4),$s(n.invoiceData.next_invoice_date_payment)}}function S9(e,t){if(1&e&&(es(0,"a",42),ns(1,"fa-icon",43),ts()),2&e){var n=fs().$implicit,i=fs(2);vs("href",n.bank_slip_link,mo),Bo(1),Zr("icon",i.iconSolidService.faInvoice)}}function P9(e,t){if(1&e&&(es(0,"li",39),es(1,"span",40),Gs(2),ts(),es(3,"span",40),Gs(4),ts(),es(5,"span",40),Gs(6),ts(),es(7,"span",40),Gs(8),ts(),es(9,"span",40),Gs(10),ts(),es(11,"span",40),Gs(12),ts(),es(13,"span"),Gs(14),Jr(15,S9,2,2,"a",41),ts(),ts()),2&e){var n=t.$implicit,i=fs(2);Bo(2),$s(n.due_date),Bo(2),$s(n.minimal_license),Bo(2),Qs("R$ ",i.validCost(n.price),""),Bo(2),Qs("R$ ",i.validCost(n.total_cost),""),Bo(2),$s(n.bank_slip_due_date),Bo(2),$s(n.bank_slip_date_payment),Bo(1),Xs("item sizeC status",n.status,""),Bo(1),Qs("",n.status?"Pago":"Aberto"," "),Bo(1),Zr("ngIf",0==n.status)}}function T9(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function O9(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma fatura encontrada."),ts())}function L9(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 registro de faturas."),ts())}function D9(e,t){if(1&e&&(es(0,"li"),Jr(1,T9,2,0,"p",27),Jr(2,O9,2,0,"p",27),Jr(3,L9,2,0,"p",27),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",n.invoiceList.length>0&&n.invoiceList[0].loading),Bo(1),Zr("ngIf",n.invoiceList.length>0&&!n.invoiceList[0].loading&&0==n.invoiceListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.invoiceList.length)}}function I9(e,t){if(1&e&&(es(0,"div",32),es(1,"h3",33),Gs(2,"Faturas"),ts(),es(3,"div",34),es(4,"div",35),es(5,"h3",36),Gs(6,"Data"),ts(),es(7,"h3",36),Gs(8,"Funcion\xe1rios"),ts(),es(9,"h3",36),Gs(10,"Valor do plano"),ts(),es(11,"h3",36),Gs(12,"Valor total"),ts(),es(13,"h3",36),Gs(14,"Vencimento"),ts(),es(15,"h3",36),Gs(16,"Liquidado"),ts(),es(17,"h3",36),Gs(18,"Status"),ts(),ts(),es(19,"ul",37),Jr(20,P9,16,11,"li",38),Jr(21,D9,4,3,"li",27),ts(),ts(),ts()),2&e){var n=fs();Bo(20),Zr("ngForOf",n.invoiceListFilteredSearch),Bo(1),Zr("ngIf",0==n.invoiceListFilteredSearch.length)}}var F9,A9=((F9=function(){return d((function e(t,n,i,o,a,r){var s=this;c(this,e),this.iconSolidService=t,this.formBuilder=n,this.titleService=i,this.functionsService=o,this.invoiceDatabase=a,this.validService=r,this.enableUptPayment=!0,this.enableInvoiceList=!0,this.invoiceData={},this.invoiceList=[],this.invoiceListFilteredSearch=[],this.invoiceDataPrice="0",this.invoiceDataDiscount="0",this.modalPlanUpdate=!1,this.planCurrentPercentageUsage=0,this.titleService.setTitle("Configura\xe7\xf5es da empresa"),this.paymentDataForm=this.formBuilder.group({email_invoice:new Wm("",Jf.required)}),this.invoiceDatabase.getInvoicePaymentData((function(e){e.error||(s.invoiceData=e.data.invoiceData,s.paymentDataForm.get("email_invoice").setValue(s.invoiceData.email_invoice),s.setProgressBar(),s.setTotal())})),this.invoiceDatabase.getInvoiceList((function(e){e.error||(s.invoiceList=e.data.invoiceList,s.invoiceListFilteredSearch=s.invoiceList)}))}),[{key:"setProgressBar",value:function(){var e=this;setTimeout((function(){e.planCurrentPercentageUsage=e.invoiceData.collaborator_active/e.invoiceData.collaborator_count_total*100,100==e.planCurrentPercentageUsage&&e.planCurrentPercentageUsage++}),200)}},{key:"setTotal",value:function(){this.invoiceDataPrice=this.invoiceData.price,this.invoiceDataDiscount=this.invoiceData.discount}},{key:"ngOnInit",value:function(){}},{key:"planUpdateData",value:function(e){this.invoiceData.minimal_license=e.minimal_license,this.setProgressBar(),this.setTotal()}},{key:"hideModalPlanUpdate",value:function(){this.modalPlanUpdate=!1}},{key:"validCost",value:function(e){return this.validService.validMoneyValueNumber(e)}},{key:"paymentFormIsValid",value:function(){return!!this.validService.validEmail(this.paymentDataForm.get("email_invoice").value)||(this.functionsService.openSnackBar("invalidEmail"),!1)}},{key:"sendPaymentForm",value:function(){this.paymentFormIsValid()&&this.invoiceDatabase.putInvoicePaymentEmail(this.paymentDataForm.value,(function(e){}))}}])}()).\u0275fac=function(e){return new(e||F9)($r(JO),$r(wp),$r(hL),$r(zP),$r(p9),$r(TN))},F9.\u0275cmp=Ot({type:F9,selectors:[["io-invoice-page-control"]],decls:12,vars:9,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],["class","payment",4,"ngIf"],[1,"plan"],[1,"sizeB","fontBold","borderTop"],[1,"configLine"],["class","flex",4,"ngIf"],["class","cardBox flex fullHeight",4,"ngIf"],["class","invoice",4,"ngIf"],[3,"showModal","showMsg","updateData","hideModal"],[1,"payment"],[1,"configLine","flex"],[1,"payment-form-box"],[1,"form-group","inputAnimated",3,"formGroup"],["autocomplete","off","id","email","type","text","required","",1,"sizeC",3,"formControlName"],["for","email",1,"form-label","required"],[1,"btnSmall","btnShort",3,"moduleName","action","btnColor","btnClassList","btnText","btnTitle","btnClick"],[1,"flex"],[1,"sizeC"],[1,"cardBox","flex","fullHeight"],[1,"card","bg-white","round2"],[1,"flex","start"],[1,"sizeC","fontBold"],["class","fontBold",4,"ngIf"],[1,"progressionBarHolder"],[1,"progressionBar"],[4,"ngIf"],["class","sizeC",4,"ngIf"],["target","_blank","href","https://api.whatsapp.com/send/?phone=554931910333&text=Ol\xe1%2C+gostaria+de+solicitar+o+cancelamento+do+sistema",1,"sizeC","cl-red","clickPlace"],[1,"sizeA","fontBold","mrgT2","mrgB2"],[1,"fontBold"],[1,"invoice"],[1,"sizeB","fontBold","borderTop","mrgB1"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign bg-white",4,"ngFor","ngForOf"],[1,"flex","listAlign","bg-white"],[1,"item","sizeC"],["target","_blank",3,"href",4,"ngIf"],["target","_blank",3,"href"],["size","3x","title","Boleto",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),Jr(3,g9,10,8,"div",3),es(4,"div",4),es(5,"h3",5),Gs(6),ts(),es(7,"div",6),Jr(8,v9,3,0,"div",7),Jr(9,M9,29,11,"div",8),ts(),ts(),Jr(10,I9,22,2,"div",9),ts(),ts(),es(11,"io-invoice-modal-plan-update",10),ls("updateData",(function(e){return t.planUpdateData(e)}))("hideModal",(function(){return t.hideModalPlanUpdate()})),ts()),2&e&&(Bo(2),Zr("moduleName","invoice")("titleTop","Faturamento"),Bo(1),Zr("ngIf",t.enableUptPayment),Bo(3),Qs("Cobran\xe7a prevista para ",t.invoiceData.next_invoice_date,""),Bo(2),Zr("ngIf",null==t.invoiceData),Bo(1),Zr("ngIf",null!=t.invoiceData),Bo(1),Zr("ngIf",t.enableInvoiceList),Bo(1),Zr("showModal",t.modalPlanUpdate)("showMsg",!1))},directives:[eI,sh,YU,Hf,ip,If,bp,Vf,vp,jD,ah,FD],styles:[".borderTop[_ngcontent-%COMP%], .configLine[_ngcontent-%COMP%]{padding:10px 0 0}.configLine[_ngcontent-%COMP%]{margin:5px 0 20px;align-items:start}.box-alert[_ngcontent-%COMP%]{padding:2rem;background-color:#ffc4c4;margin-bottom:.5rem}.box-alert[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:700;color:var(--cl-red-dark);padding-bottom:1rem}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{width:100%;padding:20px}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:first-child{max-width:66%}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:nth-child(2){max-width:32%}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .progressionBarHolder[_ngcontent-%COMP%]{display:block;width:100%;height:20px;overflow:hidden;background-color:var(--cl-gray);margin:30px 0;border-radius:15px}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .progressionBarHolder[_ngcontent-%COMP%]   .progressionBar[_ngcontent-%COMP%]{display:block;height:20px;background-color:var(--cl-green-light);overflow:hidden;clip-path:ellipse(100% 400% at 0 50%);transition:all .3s ease;border-radius:15px}.payment-form-box[_ngcontent-%COMP%]{width:100%;max-width:500px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:120px;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(7){text-align:center;max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(7).status0{color:var(--cl-red-light)}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(7).status1{color:var(--cl-green-light)}"]}),F9);function E9(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function B9(e,t){if(1&e&&(es(0,"span",26),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),$s(i.journeyTypeTitle[n.type])}}function N9(e,t){if(1&e&&(es(0,"span",26),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.type)}}function R9(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id,e.collaborators)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","journey")("action","delete")("iconTitle",0==i.collaborators?"Excluir escala":"Inativar escala")("iconClassList","mrgL1")}}var j9=function(e){return{journeyDescription:e}};function z9(e,t){if(1&e){var n=as();es(0,"li",21),es(1,"span",22),Jr(2,E9,2,1,"span",23),Gs(3),ts(),Jr(4,B9,2,1,"span",24),Jr(5,N9,2,1,"span",24),es(6,"span",25),Gs(7),ts(),es(8,"span",26),Gs(9),ts(),es(10,"span",27),ns(11,"io-icon",28),es(12,"io-icon",29),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalJourney(e.id)})),ts(),Jr(13,R9,1,4,"io-icon",30),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description,""),Bo(1),Zr("ngIf",!i.type.includes("x")||i.type.includes("fl")),Bo(1),Zr("ngIf",i.type.includes("x")&&!i.type.includes("fl")),Bo(2),$s(i.collaboratorAmount),Bo(2),$s(1==i.active?"Ativa":"Inativa"),Bo(2),Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconTitle","Visualizar funcion\xe1rios vinculados")("urlNavigation","journey-collaborator-change")("urlStateData",pc(16,j9,i.description)),Bo(1),Zr("moduleName","journey")("action","show")("iconTitle","Visualizar escala")("iconClassList","mrgL1"),Bo(1),Zr("ngIf",1==i.active)}}function V9(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function H9(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma escala encontrada."),ts())}function Y9(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 escala cadastrada."),ts())}function q9(e,t){if(1&e&&(es(0,"li"),Jr(1,V9,2,0,"p",18),Jr(2,H9,2,0,"p",18),Jr(3,Y9,2,0,"p",18),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.journeyList.length>0&&n.journeyList[0].loading),Bo(1),Zr("ngIf",n.journeyList.length>0&&!n.journeyList[0].loading&&0==n.journeyListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.journeyList.length)}}var U9,W9=function(){return["/journey-collaborator-change"]},J9=((U9=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.journeyDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.modalDelete=!1,this.modalJourney=!1,this.screenJourney=!0,this.journeySelectedId="",this.journeySelectedCollaborators=0,this.journeyList=[{loading:!0}],this.journeyListFilteredActive=[],this.journeyListFilteredType=[],this.journeyListFilteredSearch=[],this.journeyTypeTitle={week:"Semanal",flex:"Flex\xedvel",flex_week:"Flex\xedvel Semanal",custom_hour:"Personalizada por Hora",custom_day:"Personalizada por Dia",intermittent:"Intermitente",free:"Livre"},this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Escalas"),this.searchForm=this.formBuilder.group({active:new Wm("1",[Jf.required]),search:new Wm("",[Jf.required]),type:new Wm("all",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getJourneyList()}},{key:"getJourneyList",value:function(){var e=this;this.journeyList=[{loading:!0}],this.journeyListFilteredSearch=[],this.journeyDatabase.getJourneyList((function(t){t.error||(e.journeyList=(t=t.data).journey,e.filterJourneyType())}))}},{key:"filterJourneyType",value:function(){var e=this.searchForm.controls.type.value;this.journeyListFilteredType=this.journeyList.filter((function(t){return t.type==e})),"all"==e&&(this.journeyListFilteredType=this.journeyList),this.filterJourneyActive()}},{key:"filterJourneyActive",value:function(){var e=this.searchForm.get("active").value;this.journeyListFilteredActive=this.journeyListFilteredType.filter((function(t){return t.active==e})),"all"==e&&(this.journeyListFilteredActive=this.journeyListFilteredType),this.filterJourneySearch(this.searchForm.controls.search.value)}},{key:"filterJourneySearch",value:function(e){this.searchForm.controls.search.setValue(e),this.journeyListFilteredSearch=this.functionsService.arrayFilterWords(this.journeyListFilteredActive,e,"description")}},{key:"showModalJourney",value:function(e){this.journeySelectedId=e,this.modalJourney=!0}},{key:"hideModalJourney",value:function(){this.modalJourney=!1,this.journeySelectedId=null}},{key:"showModalDelete",value:function(e,t){this.journeySelectedId=e,this.journeySelectedCollaborators=t,this.modalDelete=!0}},{key:"deleteJourney",value:function(){var e=this,t=this.storageService.decodeFromLocalStorage("companyId");this.journeyDatabase.deleteJourney(this.journeySelectedId,t,(function(t){t.error||(e.functionsService.openSnackBar(0==e.journeySelectedCollaborators?"Escala excluida com sucesso":"Escala inativada com sucesso"),e.getJourneyList()),e.hideModalDelete()}))}},{key:"hideModalDelete",value:function(){this.journeySelectedId="",this.journeySelectedCollaborators=0,this.modalDelete=!1}}])}()).\u0275fac=function(e){return new(e||U9)($r(wp),$r(yM),$r(DN),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},U9.\u0275cmp=Ot({type:U9,selectors:[["io-journey-page-list"]],decls:60,vars:36,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"flex","end"],["title","Mudan\xe7a de escala",1,"flex","end","downloadMirrorBox","mrgB2","border-gray-light","btn","w-auto","clickPlace",3,"routerLink"],[1,"sizeC","fontUp"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","journeyId","screenJourney","hideModal"],[3,"title","text","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],["class","item sizeC pdgL1",4,"ngIf"],[1,"item","sizeC","fontCap"],[1,"item","sizeC","pdgL1"],[1,"item","flex","end"],[3,"moduleName","action","iconTitle","urlNavigation","urlStateData"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div",4),es(5,"span",5),Gs(6,"Mudan\xe7a de escala"),ts(),ts(),ts(),es(7,"div",6),es(8,"io-search-line",7),ls("onKeyPress",(function(e){return t.filterJourneySearch(e)})),ts(),ts(),es(9,"div",8),es(10,"div",9),es(11,"h3",10),Gs(12,"Nome"),ts(),es(13,"div",11),es(14,"select",12),ls("change",(function(){return t.filterJourneyType()})),es(15,"option",13),Gs(16,"Todas"),ts(),es(17,"option",14),Gs(18,"Semanal"),ts(),es(19,"option",14),Gs(20,"5x1"),ts(),es(21,"option",14),Gs(22,"5x2"),ts(),es(23,"option",14),Gs(24,"6x1"),ts(),es(25,"option",14),Gs(26,"Personalizada por Dia"),ts(),es(27,"option",14),Gs(28,"12x36"),ts(),es(29,"option",14),Gs(30,"24x48"),ts(),es(31,"option",14),Gs(32,"24x72"),ts(),es(33,"option",14),Gs(34,"Personalizada por Hora"),ts(),es(35,"option",14),Gs(36,"Flex\xedvel"),ts(),es(37,"option",14),Gs(38,"Intermitente"),ts(),es(39,"option",14),Gs(40,"Livre"),ts(),ts(),ns(41,"fa-icon",15),ts(),es(42,"h3",10),Gs(43,"Funcion\xe1rios"),ts(),es(44,"div",11),es(45,"select",12),ls("change",(function(){return t.filterJourneyType()})),es(46,"option",14),Gs(47,"Todas"),ts(),es(48,"option",13),Gs(49,"Ativas"),ts(),es(50,"option",14),Gs(51,"Inativas"),ts(),ts(),ns(52,"fa-icon",15),ts(),es(53,"h3",10),Gs(54,"A\xe7\xe3o"),ts(),ts(),es(55,"ul",16),Jr(56,z9,14,18,"li",17),Jr(57,q9,4,3,"li",18),ts(),ts(),ts(),ts(),es(58,"io-journey-modal-view",19),ls("hideModal",(function(){return t.hideModalJourney()})),ts(),es(59,"io-modal-confirm",20),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteJourney()})),ts()),2&e&&(Bo(2),Zr("moduleName","journey")("titleTop","Escalas")("showBtn",!0)("btnDataUrl","journey-register"),Bo(2),Zr("routerLink",mc(35,W9)),Bo(6),Zr("formGroup",t.searchForm),Bo(4),Zr("formControlName","type"),Bo(1),Zr("value","all"),Bo(2),Zr("value","week"),Bo(2),Zr("value","5x1"),Bo(2),Zr("value","5x2"),Bo(2),Zr("value","6x1"),Bo(2),Zr("value","custom_day"),Bo(2),Zr("value","12x36"),Bo(2),Zr("value","24x48"),Bo(2),Zr("value","24x72"),Bo(2),Zr("value","custom_hour"),Bo(2),Zr("value","flex"),Bo(2),Zr("value","intermittent"),Bo(2),Zr("value","free"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("formControlName","active"),Bo(1),Zr("value","all"),Bo(2),Zr("value","1"),Bo(2),Zr("value","0"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.journeyListFilteredSearch),Bo(1),Zr("ngIf",0==t.journeyListFilteredSearch.length),Bo(1),Zr("showModal",t.modalJourney)("journeyId",t.journeySelectedId)("screenJourney",t.screenJourney),Bo(1),Zr("title",0==t.journeySelectedCollaborators?"Deseja realmente excluir esta escala?":"Deseja realmente inativar esta escala?")("text",0==t.journeySelectedCollaborators?"":"Ainda h\xe1 funcion\xe1rios vinculados a esta escala.")("btnTextConfirm",0==t.journeySelectedCollaborators?"Excluir":"Inativar")("showModal",t.modalDelete))},directives:[eI,bM,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,jW,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:45%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}"]}),U9);function G9(e,t){if(1&e&&(es(0,"span",12),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.time_in_1.slice(0,5))}}function $9(e,t){if(1&e&&(es(0,"span",12),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.time_out_1.slice(0,5))}}function Q9(e,t){if(1&e&&(es(0,"span",12),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.time_in_2.slice(0,5))}}function K9(e,t){if(1&e&&(es(0,"span",12),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.time_out_2.slice(0,5))}}function Z9(e,t){if(1&e&&(es(0,"span",12),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.time_in_3.slice(0,5))}}function X9(e,t){if(1&e&&(es(0,"span",12),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.time_out_3.slice(0,5))}}function e7(e,t){if(1&e&&(es(0,"div",18),es(1,"div",19),es(2,"span",12),Gs(3),ts(),ts(),es(4,"div",19),Jr(5,G9,2,1,"span",20),Jr(6,$9,2,1,"span",20),Jr(7,Q9,2,1,"span",20),Jr(8,K9,2,1,"span",20),Jr(9,Z9,2,1,"span",20),Jr(10,X9,2,1,"span",20),ts(),es(11,"div",21),es(12,"span",12),Gs(13),ts(),ts(),ts()),2&e){var n=t.$implicit;Bo(3),$s(n.date.split("-").reverse().join("/")),Bo(2),Zr("ngIf","00:00:00"!=n.time_in_1||"00:00:00"!=n.time_out_1),Bo(1),Zr("ngIf","00:00:00"!=n.time_in_1||"00:00:00"!=n.time_out_1),Bo(1),Zr("ngIf","00:00:00"!=n.time_in_2||"00:00:00"!=n.time_out_2),Bo(1),Zr("ngIf","00:00:00"!=n.time_in_2||"00:00:00"!=n.time_out_2),Bo(1),Zr("ngIf","00:00:00"!=n.time_in_3||"00:00:00"!=n.time_out_3),Bo(1),Zr("ngIf","00:00:00"!=n.time_in_3||"00:00:00"!=n.time_out_3),Bo(3),$s(n.total_hours.slice(0,5))}}function t7(e,t){if(1&e&&(es(0,"div",10),es(1,"div",11),es(2,"span",12),Gs(3,"Nome da covoca\xe7\xe3o: "),es(4,"span",13),Gs(5),ts(),ts(),ts(),es(6,"div",14),es(7,"h3",15),Gs(8,"Data"),ts(),es(9,"h3",15),Gs(10,"Turnos"),ts(),es(11,"h3",15),Gs(12,"Total"),ts(),ts(),es(13,"div",16),Jr(14,e7,14,8,"div",17),ts(),ts()),2&e){var n=fs();Bo(5),$s(n.intermittentCall.name),Bo(9),Zr("ngForOf",n.intermittentCallDays)}}function n7(e,t){1&e&&(es(0,"div"),es(1,"div",22),es(2,"div",23),es(3,"span",24),Gs(4,"Carregando dados da convoca\xe7\xe3o.."),ts(),ts(),ts(),ts())}var i7,o7=((i7=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.journeyDatabase=o,this.storageService=a,this.validService=r,this.showModal=!0,this.intermittentCallId=null,this.hideModal=new Mc,this.showModalCollaborator=new Mc,this.intermittentCall=[],this.intermittentCallDays=[],this.previewEnable=!1}),[{key:"ngOnChanges",value:function(){var e=this;null!=this.intermittentCallId&&this.showModal&&this.journeyDatabase.getIntermittentCall(this.intermittentCallId,(function(t){t.error||(e.intermittentCall=t.data.intermittent||[],e.intermittentCallDays=t.data.intermittentDays||[],e.previewEnable=!0)}))}},{key:"reset",value:function(){this.intermittentCall=[],this.intermittentCallDays=[],this.previewEnable=!1}},{key:"emitShowModalCollaborator",value:function(){this.reset(),this.showModalCollaborator.emit()}},{key:"closeModal",value:function(){this.reset(),this.hideModal.emit()}}])}()).\u0275fac=function(e){return new(e||i7)($r(wp),$r(yM),$r(zP),$r(DN),$r(YP),$r(TN))},i7.\u0275cmp=Ot({type:i7,selectors:[["io-journey-modal-view-intermittent-call"]],inputs:{showModal:"showModal",intermittentCallId:"intermittentCallId"},outputs:{hideModal:"hideModal",showModalCollaborator:"showModalCollaborator"},features:[dl],decls:11,vars:8,consts:[[3,"showModal","hideModal"],[1,"modalViewBox"],[1,"relativePlace"],[1,"previewJourneyBox"],[1,"flex","mrgB1"],[1,"sizeA","cl-blue","fontUp","fontBold"],["class","minHeightBox",4,"ngIf"],[4,"ngIf"],[1,"flex","center"],[3,"moduleName","action","btnText","btnTitle","useValidation","btnClick"],[1,"minHeightBox"],[1,"mrgB2"],[1,"sizeC"],[1,"fontBold"],[1,"flex","listAlign","listHeader","mrgB2"],[1,"item","sizeC","fontBold"],[1,"dayBox","mrgB1"],["class","day listAlign boxWhite mrgB1",4,"ngFor","ngForOf"],[1,"day","listAlign","boxWhite","mrgB1"],[1,"item","flex","start"],["class","sizeC",4,"ngIf"],[1,"item","flex","end"],[1,"minHeightBox","pgdT2","mrgT2"],[1,"flex","center","pgdT2","mrgT2"],[1,"flex","center","pgdT2","mrgT2","sizeC"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),es(5,"h2",5),Gs(6,"Convoca\xe7\xe3o de escala intermitente"),ts(),ts(),Jr(7,t7,15,2,"div",6),Jr(8,n7,5,0,"div",7),ts(),ts(),es(9,"div",8),es(10,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),Zr("ngIf",t.previewEnable),Bo(1),Zr("ngIf",!t.previewEnable),Bo(2),Zr("moduleName","journey")("action","")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1))},directives:[CE,sh,jD,ah],styles:[".listHeader[_ngcontent-%COMP%]{padding-right:10px;padding-left:10px}.item[_ngcontent-%COMP%]:first-child{max-width:110px}.item[_ngcontent-%COMP%]:nth-child(2)   span[_ngcontent-%COMP%]{width:100%;max-width:45px}.item[_ngcontent-%COMP%]:nth-child(2)   span[_ngcontent-%COMP%]:nth-child(2n){margin-right:20px}.item[_ngcontent-%COMP%]:nth-child(3){max-width:40px;text-align:right}"]}),i7);function a7(e,t){if(1&e){var n=as();es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",16),Gs(4),ts(),es(5,"span",16),Gs(6),ts(),es(7,"span",17),es(8,"io-icon",18),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),es(9,"io-icon",19),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalIntermittentCall(e.id)})),ts(),es(10,"io-icon",19),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.name),Bo(2),$s(i.work_place),Bo(2),$s(i.collaborators),Bo(2),Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","journey")("action","show")("iconClassList","mrgL1")("iconTitle","Visualizar convoca\xe7\xe3o"),Bo(1),Zr("moduleName","journey")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir convoca\xe7\xe3o")}}function r7(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function s7(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma convoca\xe7\xe3o encontrada."),ts())}function l7(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 convoca\xe7\xe3o cadastrada."),ts())}function c7(e,t){if(1&e&&(es(0,"li"),Jr(1,r7,2,0,"p",10),Jr(2,s7,2,0,"p",10),Jr(3,l7,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.intermittentCallList.length>0&&n.intermittentCallList[0].loading),Bo(1),Zr("ngIf",n.intermittentCallList.length>0&&!n.intermittentCallList[0].loading&&0==n.intermittentListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.intermittentCallList.length)}}var u7,d7=((u7=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.journeyDatabase=r,this.storageService=s,this.titleService=l,this.collaboratorListIn=[],this.modalCollaboratorList=!1,this.modalDelete=!1,this.modalIntermittentCall=!1,this.intermittentCallSelectedId="",this.intermittentCallList=[{loading:!0}],this.intermittentListFilteredSearch=[],this.titleService.setTitle("Convoca\xe7\xe3o"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.journeyDatabase.getIntermittentCallList((function(t){t.error||(e.intermittentCallList=(t=t.data).intermittentCallList||[],e.filterJourneySearch(e.searchForm.controls.search.value))}))}},{key:"filterJourneySearch",value:function(e){this.searchForm.controls.search.setValue(e),this.intermittentListFilteredSearch=this.functionsService.arrayFilterWords(this.intermittentCallList,e,"name")}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.journeyDatabase.getIntermittentCallCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.intermittentCallSelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1,this.intermittentCallSelectedId=null}},{key:"showModalIntermittentCall",value:function(e){this.intermittentCallSelectedId=e,this.modalIntermittentCall=!0}},{key:"hideModalIntermittentCall",value:function(){this.intermittentCallSelectedId="",this.modalIntermittentCall=!1}},{key:"showModalDelete",value:function(e){this.intermittentCallSelectedId=e,this.modalDelete=!0}},{key:"deleteJourney",value:function(){var e=this,t=this.storageService.decodeFromLocalStorage("companyId");this.journeyDatabase.deleteIntermittentCall(this.intermittentCallSelectedId,t,(function(t){t.error||(e.intermittentCallList=e.intermittentCallList.filter((function(t){return t.id!==e.intermittentCallSelectedId})),e.filterJourneySearch(e.searchForm.controls.search.value)),e.hideModalDelete()}))}},{key:"hideModalDelete",value:function(){this.intermittentCallSelectedId="",this.modalDelete=!1}}])}()).\u0275fac=function(e){return new(e||u7)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(hL))},u7.\u0275cmp=Ot({type:u7,selectors:[["io-journey-page-list-intermittent-call"]],decls:21,vars:20,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"intermittentCallId","showModal","showModalCollaborator","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC","flex","start"],[1,"item","sizeC","fontCap"],[1,"item"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterJourneySearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Nome"),ts(),es(9,"h3",7),Gs(10,"Local"),ts(),es(11,"h3",7),Gs(12,"Funcion\xe1rios"),ts(),es(13,"h3",7),Gs(14,"A\xe7\xe3o"),ts(),ts(),es(15,"ul",8),Jr(16,a7,11,14,"li",9),Jr(17,c7,4,3,"li",10),ts(),ts(),ts(),ts(),es(18,"io-journey-modal-view-intermittent-call",11),ls("showModalCollaborator",(function(){return t.showModalCollaboratorList(t.intermittentCallSelectedId)}))("hideModal",(function(){return t.hideModalIntermittentCall()})),ts(),es(19,"io-modal-confirm",12),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteJourney()})),ts(),es(20,"io-modal-multi-select-id",13),ls("hideModal",(function(){return t.hideModalCollaboratorList()})),ts()),2&e&&(Bo(2),Zr("moduleName","journey")("titleTop","Convoca\xe7\xe3o de escala intermitente")("showBtn",!0)("btnDataUrl","intermittent-call-register"),Bo(4),Zr("formGroup",t.searchForm),Bo(10),Zr("ngForOf",t.intermittentListFilteredSearch),Bo(1),Zr("ngIf",0==t.intermittentListFilteredSearch.length),Bo(1),Zr("intermittentCallId",t.intermittentCallSelectedId)("showModal",t.modalIntermittentCall),Bo(1),Zr("title","Deseja realmente excluir esta convoca\xe7\xe3o?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("title","Funcion\xe1rios vinculados a esta convoca\xe7\xe3o")("moduleName","journey")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList))},directives:[eI,oE,Hf,ip,ah,sh,o7,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%;margin:0;text-align:right}"]}),u7);function h7(e,t){if(1&e){var n=as();es(0,"div",36),es(1,"div",37),es(2,"input",38),ls("change",(function(){mn(n);var e=t.index,i=fs().index,o=fs();return o.verifyHour("time_in_"+(e+1),i),o.verifyTotalTime()})),ts(),ts(),es(3,"fa-icon",39),ls("click",(function(){mn(n);var e=t.index,i=fs().index;return fs().removeTurn(i,e)})),ts(),es(4,"div",37),es(5,"input",38),ls("change",(function(){mn(n);var e=t.index,i=fs().index,o=fs();return o.verifyHour("time_out_"+(e+1),i),o.verifyTotalTime()})),ts(),ts(),ts()}if(2&e){var i=t.index,o=fs(2);Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","time_in_"+(i+1)),Bo(1),Zr("icon",o.iconSolidService.faTrashAlt),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","time_out_"+(i+1))}}function f7(e,t){if(1&e){var n=as();es(0,"div",40),es(1,"div",41),ls("click",(function(){mn(n);var e=fs().index;return fs().addTurn(e)})),ns(2,"fa-icon",15),es(3,"span",16),Gs(4,"Turno"),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(2),Zr("icon",i.iconRegularService.faTimesCircle)}}function m7(e,t){if(1&e){var n=as();es(0,"fa-icon",42),ls("click",(function(){mn(n);var e=fs().index;return fs().removeDay(e)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faTrashAlt)}function p7(e,t){if(1&e){var n=as();es(0,"div",26),es(1,"div",27),es(2,"io-datepicker",28),ls("dateSelectedEN",(function(e){mn(n);var i=t.index;return fs().daysForm.at(i).get("date").setValue(e)})),ts(),ts(),es(3,"div",29),es(4,"div",30),Jr(5,h7,6,5,"div",31),Jr(6,f7,5,1,"div",32),ts(),ts(),es(7,"div",33),es(8,"span"),Gs(9),ts(),ts(),es(10,"div",34),Jr(11,m7,1,1,"fa-icon",35),ts(),ts()}if(2&e){var i=t.index,o=fs();Zr("formArrayName","day"),Bo(2),Zr("labelText","")("minDate",o.minDate)("startDate",o.daysForm.at(i).get("date").value),Bo(1),Zr("formGroupName",i.toString()),Bo(2),Zr("ngForOf",o.intermittentCallDayTurn[i]),Bo(1),Zr("ngIf",o.intermittentCallDayTurn[i].length<3),Bo(3),$s(o.daysForm.at(i).get("total_hours").value),Bo(2),Zr("ngIf",o.daysForm.length>1)}}var g7,v7,y7,b7=((y7=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.journeyDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.validService=s,this.intermittentCallId=null,this.modalCollaborator=!1,this.updateOn=!1,this.days=null,this.intermittentCallDayTurn=[["show","show"]],this.intermittentCallType=0,this.allCollaborator=!1,this.collaboratorListSelectedId=[],this.minDate=this.functionsService.getDayAfter(this.functionsService.currentDateEN("00/00/0000","min"),3),this.finalDate="00/00/0000",this.finalHour="00:00",this.intermittentCallForm=this.formBuilder.group({day:this.formBuilder.array([this.createDay()]),name:new Wm("",[Jf.required]),details:new Wm("",[Jf.required]),work_place:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.days=this.daysForm.value}},{key:"createDay",value:function(){return this.formBuilder.group({date:new Wm(this.minDate,[Jf.required]),time_in_1:new Wm("00:00",[Jf.required]),time_in_2:new Wm("00:00",[Jf.required]),time_in_3:new Wm("00:00",[Jf.required]),time_out_1:new Wm("00:00",[Jf.required]),time_out_2:new Wm("00:00",[Jf.required]),time_out_3:new Wm("00:00",[Jf.required]),total_hours:new Wm("00:00",[Jf.required])})}},{key:"intermittentForm",get:function(){return this.intermittentCallForm.controls}},{key:"daysForm",get:function(){return this.intermittentForm.day}},{key:"addDay",value:function(){this.daysForm.push(this.createDay()),this.intermittentCallDayTurn.push(["show","show"]),this.days=this.daysForm.value}},{key:"removeDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;1!=this.daysForm.length?(this.daysForm.removeAt(e),this.intermittentCallDayTurn.splice(this.daysForm.length,1),this.days=this.daysForm.value):this.functionsService.openSnackBar("journeyOneDay")}},{key:"addTurn",value:function(e){var t=this.intermittentCallDayTurn[e];t.push("show"),this.intermittentCallDayTurn[e]=t}},{key:"removeTurn",value:function(e,t){if(1==this.intermittentCallDayTurn[e].length){if(1==this.daysForm.length)return void this.functionsService.openSnackBar("journeyOneTurn");this.removeDay(e)}var n=this.intermittentCallDayTurn[e];n.splice(t,1),this.intermittentCallDayTurn[e]=n,0==t&&(this.daysForm.at(e).get("time_in_1").setValue(this.daysForm.at(e).get("time_in_2").value),this.daysForm.at(e).get("time_out_1").setValue(this.daysForm.at(e).get("time_out_2").value)),t<2&&(this.daysForm.at(e).get("time_in_2").setValue(this.daysForm.at(e).get("time_in_3").value),this.daysForm.at(e).get("time_out_2").setValue(this.daysForm.at(e).get("time_out_3").value)),this.daysForm.at(e).get("time_in_3").setValue("00:00"),this.daysForm.at(e).get("time_out_3").setValue("00:00"),1==this.intermittentCallDayTurn[e].length&&(this.daysForm.at(e).get("time_in_2").setValue("00:00"),this.daysForm.at(e).get("time_out_2").setValue("00:00"))}},{key:"verifyTotalTime",value:function(){for(var e=0;e<this.daysForm.length;e++){var t=this.daysForm.at(e).value;this.daysForm.at(e).get("total_hours").setValue(this.functionsService.diffTime([t.time_in_1,t.time_out_1,t.time_in_2,t.time_out_2,t.time_in_3,t.time_out_3]))}}},{key:"showModalCollaborator",value:function(){this.modalCollaborator=!0}},{key:"setCollaboratorListSelect",value:function(e){var t=this;this.collaboratorListSelectedId=[],e.forEach((function(e){t.collaboratorListSelectedId.push(e)})),this.setAllCollaborator(!1)}},{key:"setAllCollaborator",value:function(e){this.allCollaborator=e}},{key:"hideModalCollaborator",value:function(){this.modalCollaborator=!1}},{key:"validOnDuty",value:function(){for(var e=[],t=0;t<this.daysForm.length;t++){if(e.includes(this.daysForm.at(t).get("date").value))return this.functionsService.openSnackBar("Os dias n\xe3o podem ter datas repetidas. Favor, verificar."),!1;if("00:00"==this.daysForm.at(t).get("total_hours").value)return this.functionsService.openSnackBar("Os dias n\xe3o podem ter total de horas zeradas. Favor, verificar."),!1;e.push(this.daysForm.at(t).get("date").value)}return""==this.intermittentCallForm.controls.name.value?(this.functionsService.openSnackBar("Informe um nome para esta convoca\xe7\xe3o."),!1):""==this.intermittentCallForm.controls.work_place.value?(this.functionsService.openSnackBar("Informe o local de trabalho para esta convoca\xe7\xe3o."),!1):0!=this.collaboratorListSelectedId.length||0!=this.allCollaborator||(this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio para cadastrar"),!1)}},{key:"sendIntermittentCall",value:function(){if(this.validOnDuty()){var e=JSON.stringify(this.collaboratorListSelectedId),t=Object.assign({collaborator_id:e},this.intermittentCallForm.value);this.postIntermittentCall(t)}}},{key:"postIntermittentCall",value:function(e){var t=this;this.journeyDatabase.postIntermittentCall(e,(function(e){e.error||t.router.navigate(["/intermittent-call"]).then((function(){return!1}))}))}},{key:"verifyHour",value:function(e,t){this.daysForm.at(t).get(e).setValue(this.validService.validHour(this.daysForm.at(t).get(e).value))}}])}()).\u0275fac=function(e){return new(e||y7)($r(wp),$r(yM),$r(DN),$r(zP),$r(WO),$r(JO),$r(TN))},y7.\u0275cmp=Ot({type:y7,selectors:[["io-journey-form-intermittent-call"]],inputs:{intermittentCallId:"intermittentCallId"},decls:37,vars:25,consts:[[1,"formBox"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"minHeightBox","mrgB2",3,"formGroup"],[1,"flex","top","mrgB2"],[1,"form-group","inputAnimated","mrgR2"],["autocomplete","off","id","description","required","","type","text",3,"formControlName"],["for","description",1,"form-label"],[1,"form-group","inputAnimated"],["autocomplete","off","id","work_place","required","","type","text",3,"formControlName"],["for","work_place",1,"form-label"],[1,"flex","listAlign","listHeader","mrgB2"],[1,"item","sizeC","fontBold"],[1,"listAlign","mrgB1"],["class","day boxWhite",3,"formArrayName",4,"ngFor","ngForOf"],["title","Adicionar dia",1,"flex","start","clickPlace","addDayBox",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue","fa-rotate-45",3,"icon"],[1,"mrgL1"],[1,"pdgB2","mrgB2"],[1,"flex","sizeC","pdgB1"],[1,"flexDesk","mrgB2"],[1,"form-group","wdFull","inputAnimated"],["placeholder","","required","",1,"sizeC",3,"formControlName"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation","useValidation"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showModal","selectedListId","getCollaboratorListIntermittentFromDatabase","selectedId","hideModal"],[1,"day","boxWhite",3,"formArrayName"],[1,"item"],[1,"datepicker",3,"labelText","minDate","startDate","dateSelectedEN"],[1,"item","flex",3,"formGroupName"],[1,"flex","start","wdFull"],["class","flex setHourInputBox subItem",4,"ngFor","ngForOf"],["class","flex a setHourInputBox subItem",4,"ngIf"],[1,"item","flex","center"],[1,"item","flex","end"],["size","3x","class","iconItem iconSizeF cl-gray-dark clickPlace","title","Remover Dia",3,"icon","click",4,"ngIf"],[1,"flex","setHourInputBox","subItem"],[1,"flex","center"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center","pdgT1","pdgB1",3,"dropSpecialCharacters","formControlName","change"],["size","3x","title","Remover Turno",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],[1,"flex","a","setHourInputBox","subItem"],["title","Adicionar Turno",1,"flex","center","clickPlace","addTurnBox",3,"click"],["size","3x","title","Remover Dia",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"io-main-top",1),ls("btnClick",(function(){return t.showModalCollaborator()})),ts(),es(2,"div",2),es(3,"div",3),es(4,"div",4),ns(5,"input",5),es(6,"label",6),Gs(7,"*Nome"),ts(),ts(),es(8,"div",7),ns(9,"input",8),es(10,"label",9),Gs(11,"*Local de trabalho"),ts(),ts(),ts(),es(12,"div",10),es(13,"h3",11),Gs(14,"Data"),ts(),es(15,"h3",11),Gs(16,"Turnos"),ts(),es(17,"h3",11),Gs(18,"Total"),ts(),es(19,"h3",11),Gs(20,"A\xe7\xe3o"),ts(),ts(),es(21,"div",12),Jr(22,p7,12,9,"div",13),ts(),es(23,"div",14),ls("click",(function(){return t.addDay()})),ns(24,"fa-icon",15),es(25,"span",16),Gs(26,"Adicionar dia"),ts(),ts(),ns(27,"div",17),es(28,"span",18),Gs(29,"Detalhes:"),ts(),es(30,"div",19),es(31,"div",20),ns(32,"textarea",21),ts(),ts(),ts(),es(33,"div",22),ns(34,"io-btn",23),es(35,"io-btn",24),ls("btnClick",(function(){return t.sendIntermittentCall()})),ts(),ts(),ts(),es(36,"io-modal-multi-select-id",25),ls("selectedId",(function(e){return t.setCollaboratorListSelect(e)}))("hideModal",(function(){return t.hideModalCollaborator()})),ts()),2&e&&(Bo(1),Zr("moduleName","journey")("titleTop","Convoca\xe7\xe3o de escala intermitente")("showBtn",!0)("btnDataText","Selecionar Funcion\xe1rios"),Bo(1),Zr("formGroup",t.intermittentCallForm),Bo(3),Zr("formControlName","name"),Bo(4),Zr("formControlName","work_place"),Bo(13),Zr("ngForOf",t.days),Bo(2),Zr("icon",t.iconRegularService.faTimesCircle),Bo(8),Zr("formControlName","details"),Bo(2),Zr("moduleName","journey")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("urlNavigation","on-duty")("useValidation",!1),Bo(1),Zr("moduleName","journey")("action",t.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",t.updateOn?"Salvar":"Finalizar")("btnTitle",t.updateOn?"Salvar":"Finalizar"),Bo(1),Zr("showModal",t.modalCollaborator)("selectedListId",t.collaboratorListSelectedId)("getCollaboratorListIntermittentFromDatabase",!0))},directives:[eI,Hf,ip,If,bp,Vf,vp,ah,FD,jD,tR,sp,UA,ap,sh,DE,kp],styles:[".minHeightBox[_ngcontent-%COMP%]{padding:20px 0;margin:20px 0 0}.weekForm[_ngcontent-%COMP%]{padding:20px 0 0;width:300px}.listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:120px}.listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:110px;text-align:center;padding:0}.listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:70px;text-align:center;padding:0}.listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{margin-bottom:20px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:30px;height:30px;padding:5px;cursor:pointer}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:110px;margin-right:40px;overflow:hidden}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   io-datepicker[_ngcontent-%COMP%]{display:block;margin:-7px 0 0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   io-datepicker[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{border:none}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:110px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:60px;padding-left:10px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:50%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{width:100%;max-width:125px;margin-right:25px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]:last-child{margin-right:0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%], .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]{justify-content:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize;width:auto}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:5px}.addDayBox[_ngcontent-%COMP%]{max-width:200px}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:140px;align-items:center}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]{position:relative;width:30px;text-align:right}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]{position:absolute;top:100%;left:50%;transform:translateX(-50%);display:none;width:45px;background:#fff;padding:0 0 5px;box-shadow:0 1px 5px rgba(0,0,0,.08)}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;width:100%;padding:5px 5px 0;cursor:pointer;text-align:center;border-bottom:1px solid #ccc}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{background-color:#ddd}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop.active[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]{display:block}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:25px;cursor:pointer}.previewJourneyBox[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 0 10px}.previewJourneyBox.week[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{max-width:300px}.previewJourneyBox.week[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]   img.active[_ngcontent-%COMP%]{margin:0 -15px;z-index:1}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:130px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:120px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:100%;text-align:left}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .flexDays[_ngcontent-%COMP%]{margin-left:10px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;justify-content:flex-end}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:150px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:150px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   input[_ngcontent-%COMP%]{max-width:60px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .addBtn[_ngcontent-%COMP%]{max-width:100px}.previewJourneyBox[_ngcontent-%COMP%]   .inputBottom[_ngcontent-%COMP%]{max-width:45px}.previewJourneyBox[_ngcontent-%COMP%]   input.borderless[_ngcontent-%COMP%]{border:none}.selectJourneyBox[_ngcontent-%COMP%]   .wdFull[_ngcontent-%COMP%]{max-width:260px}.selectJourneyBox[_ngcontent-%COMP%]   .wdFull.bigger[_ngcontent-%COMP%]{max-width:300px}"]}),y7),_7=((v7=function(){return d((function e(){c(this,e)}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||v7)},v7.\u0275cmp=Ot({type:v7,selectors:[["io-journey-page-register-intermittent-call"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-journey-form-intermittent-call"),ts(),ts())},directives:[b7],styles:[""]}),v7),k7=((g7=function(){return d((function e(){c(this,e),this.showModal=!0,this.hideModal=new Mc}),[{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||g7)},g7.\u0275cmp=Ot({type:g7,selectors:[["io-journey-modal-exception-info"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal"},decls:29,vars:7,consts:[[3,"showModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","fontBold"],[1,"pdg2"],[1,"sizeC","mrgB2"],[1,"sizeC"],[1,"flex","center"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),es(1,"div",1),es(2,"h2",2),Gs(3,"Escala por exce\xe7\xe3o"),ts(),ns(4,"div",3),es(5,"p",4),Gs(6,"Conforme Lei 13.874/2019, \xa7 4\xba Fica permitida a utiliza\xe7\xe3o de registro de ponto por exce\xe7\xe3o \xe0 jornada regular de trabalho, mediante acordo individual escrito, conven\xe7\xe3o coletiva ou acordo coletivo de trabalho."),ts(),es(7,"p",4),Gs(8,"Assim, para utilizar a escala por exce\xe7\xe3o a empresa deve atender alguns requisitos:"),ts(),es(9,"ul",5),es(10,"li",5),Gs(11,"- M\xe1ximo de 20 funcion\xe1rios;"),ts(),es(12,"li",5),Gs(13,"- Mediante acordo individual escrito ou"),ts(),es(14,"li",5),Gs(15,"- Conven\xe7\xe3o coletiva ou"),ts(),es(16,"li",5),Gs(17,"- Acordo coletivo de trabalho."),ts(),ts(),ns(18,"div",3),es(19,"p",4),Gs(20,"Regras de funcionamento da escala por exce\xe7\xe3o:"),ts(),es(21,"ul",5),es(22,"li",5),Gs(23,"- Os pontos da escala ser\xe3o gerados automaticamente de acordo com os hor\xe1rios informados na escala."),ts(),es(24,"li",5),Gs(25,"- Se houver registro e/ou ajuste de ponto durante um dos turnos, os pontos deste turno n\xe3o ser\xe3o gerados."),ts(),ts(),ns(26,"div",3),ts(),es(27,"div",6),es(28,"io-btn",7),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(28),Zr("moduleName","journey")("action","")("btnColor","btn-blue-bg")("btnText","Entendi")("btnTitle","Entendi")("useValidation",!1))},directives:[CE,jD],styles:["ul[_ngcontent-%COMP%]{padding:0 0 0 40px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none;margin:0 0 10px}"]}),g7);function C7(e,t){if(1&e){var n=as();es(0,"div"),ns(1,"io-main-top",11),es(2,"div",12),es(3,"div",13),es(4,"div",14),es(5,"input",15),ls("keyup",(function(){return mn(n),fs().checkErrorField("description")})),ts(),es(6,"label",16),Gs(7,"Nome da escala"),ts(),ts(),ts(),es(8,"div",17),es(9,"label",18),ns(10,"fa-icon",19),Gs(11," Semanal "),es(12,"input",20),ls("click",(function(){mn(n);var e=fs();return e.setJourneyType(e.journeyEnum.Weekly)})),ts(),ts(),es(13,"label",21),ns(14,"fa-icon",19),Gs(15," Especial "),es(16,"input",20),ls("click",(function(){mn(n);var e=fs();return e.setJourneyType(e.journeyEnum.Special)})),ts(),ts(),es(17,"label",18),ns(18,"fa-icon",19),Gs(19," Flex\xedvel "),es(20,"input",20),ls("click",(function(){mn(n);var e=fs();return e.setJourneyType(e.journeyEnum.Flex)})),ts(),ts(),ts(),es(21,"div",22),es(22,"p",23),es(23,"span",24),Gs(24,"Semanal:"),ts(),Gs(25," escala utilizada para trabalho semanal, Segunda-feira \xe0 Sexta-feira "),es(26,"span",24),Gs(27,"OU"),ts(),Gs(28," Segunda-feira \xe0 S\xe1bado, com hor\xe1rios de in\xedcio, intervalo e fim de turno."),ts(),es(29,"p",23),es(30,"span",24),Gs(31,"Especial:"),ts(),Gs(32," escala que compreende turnos especiais em dias (5x1, 5x2, etc) "),es(33,"span",24),Gs(34,"OU"),ts(),Gs(35," horas (ex: 12/24, 12/36, etc) "),es(36,"span",24),Gs(37,"OU"),ts(),Gs(38," personaliza\xe7\xe3o de turnos."),ts(),es(39,"p",23),es(40,"span",24),Gs(41,"Flex\xedvel:"),ts(),Gs(42," escala onde o funcion\xe1rio ir\xe1 cumprir sua jornada obedecendo um n\xfamero de horas di\xe1rias, sem rigidez nos hor\xe1rios de in\xedcio e fim de turno. "),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("titleTop",i.journeyTitleText)("textTop3","Digite o nome da nova escala, escolha o tipo e clique em pr\xf3ximo."),Bo(4),Es(i.stateFields.description.class),Zr("formControlName","description"),Bo(4),Zr("ngClass",i.journeyType==i.journeyEnum.Weekly?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyType==i.journeyEnum.Weekly?"cl-white":"cl-blue"),Bo(3),Zr("ngClass",i.journeyType==i.journeyEnum.Special?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyType==i.journeyEnum.Special?"cl-white":"cl-blue"),Bo(3),Zr("ngClass",i.journeyType==i.journeyEnum.Flex?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyType==i.journeyEnum.Flex?"cl-white":"cl-blue")}}function w7(e,t){if(1&e&&(es(0,"div",35),es(1,"div",36),es(2,"label",37),Gs(3,"S\xe1bado meio per\xedodo "),ns(4,"input",38),ns(5,"span",39),ts(),ts(),ts()),2&e){var n=fs(3);Bo(1),Zr("formGroup",n.weekForm),Bo(3),Zr("formControlName","halfSaturday")}}function x7(e,t){if(1&e){var n=as();es(0,"div"),ns(1,"io-main-top",25),es(2,"div",26),es(3,"div",27),es(4,"div",28),es(5,"div",29),es(6,"h2",30),Gs(7,"De Segunda-feira \xe0 Sexta-feira"),ts(),ts(),es(8,"div",31),es(9,"label"),Gs(10," De Segunda-feira \xe0 Sexta-feira "),es(11,"input",32),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyWeekModel(e.journeyWeekEnum.MondayFriday)})),ts(),ts(),ts(),ts(),es(12,"div",28),es(13,"div",29),es(14,"h2",30),Gs(15,"De Segunda-feira \xe0 S\xe1bado"),ts(),ts(),es(16,"div",31),es(17,"label"),Gs(18," De Segunda-feira \xe0 S\xe1bado "),es(19,"input",33),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyWeekModel(e.journeyWeekEnum.MondaySaturday)})),ts(),ts(),Jr(20,w7,6,2,"div",34),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("titleTop",i.journeyTitleText+" Semanal")("textTop","D\xfavidas? Verifique os dados com a sua contabilidade.")("textTop3","Quais ser\xe3o os dias trabalhados nesta escala de trabalho?"),Bo(8),Xs("btn btnWide center ",i.journeyWeekModel==i.journeyWeekEnum.MondayFriday?"active":"",""),Bo(8),Xs("btn btnWide center ",i.journeyWeekModel==i.journeyWeekEnum.MondaySaturday?"active":"",""),Bo(3),Zr("ngIf",i.journeyWeekModel==i.journeyWeekEnum.MondaySaturday)}}function M7(e,t){if(1&e){var n=as();es(0,"div"),ns(1,"io-main-top",25),es(2,"div",12),es(3,"div",40),es(4,"div",41),es(5,"div",42),es(6,"h2",30),Gs(7,"Escalas por dias"),ts(),ts(),ts(),es(8,"div",41),es(9,"div",43),es(10,"h2",30),Gs(11,"Escalas por horas"),ts(),ts(),ts(),ts(),es(12,"div",44),es(13,"div",41),es(14,"div",45),es(15,"label",18),ns(16,"fa-icon",19),Gs(17," Escala 5x1 "),es(18,"input",46),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.Journey5x1)})),ts(),ts(),ts(),es(19,"div",45),es(20,"label",18),ns(21,"fa-icon",19),Gs(22," Escala 5x2 "),es(23,"input",47),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.Journey5x2)})),ts(),ts(),ts(),es(24,"div",45),es(25,"label",18),ns(26,"fa-icon",19),Gs(27," Escala 6x1 "),es(28,"input",48),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.Journey6x1)})),ts(),ts(),ts(),es(29,"div",45),es(30,"label",18),ns(31,"fa-icon",19),Gs(32," Personalizada "),es(33,"input",48),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.CustomDay)})),ts(),ts(),ts(),ts(),es(34,"div",49),es(35,"div",50),es(36,"label",18),ns(37,"fa-icon",19),Gs(38," Escala 12x36 "),es(39,"input",51),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.Journey12x36)})),ts(),ts(),ts(),es(40,"div",50),es(41,"label",18),ns(42,"fa-icon",19),Gs(43," Escala 24x48 "),es(44,"input",52),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.Journey24x48)})),ts(),ts(),ts(),es(45,"div",50),es(46,"label",18),ns(47,"fa-icon",19),Gs(48," Escala 24x72 "),es(49,"input",53),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.Journey24x72)})),ts(),ts(),ts(),es(50,"div",50),es(51,"label",18),ns(52,"fa-icon",19),Gs(53," Personalizada "),es(54,"input",52),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyEspecialModel(e.journeySpecialEnum.CustomHour)})),ts(),ts(),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("titleTop",i.journeyTitleText+" Especial")("textTop","D\xfavidas? Verifique os dados com a sua contabilidade.")("textTop3","Como ser\xe1 a escala? Por dias ou por horas?"),Bo(14),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey5x1?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey5x1?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey5x2?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey5x2?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey6x1?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey6x1?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.CustomDay?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.CustomDay?"cl-white":"cl-blue"),Bo(5),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey12x36?"active":""),Bo(1),Zr("icon",i.iconRegularService.faClock)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey12x36?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey24x48?"active":""),Bo(1),Zr("icon",i.iconRegularService.faClock)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey24x48?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey24x72?"active":""),Bo(1),Zr("icon",i.iconRegularService.faClock)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.Journey24x72?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.CustomHour?"active":""),Bo(1),Zr("icon",i.iconRegularService.faClock)("ngClass",i.journeyEspecialModel==i.journeySpecialEnum.CustomHour?"cl-white":"cl-blue")}}function S7(e,t){if(1&e){var n=as();es(0,"div"),ns(1,"io-main-top",25),es(2,"div",12),es(3,"div",40),es(4,"div",41),es(5,"div",42),es(6,"h2",30),Gs(7,"Intermitente"),ts(),ts(),ts(),es(8,"div",41),es(9,"div",43),es(10,"h2",30),Gs(11,"Flex\xedvel"),ts(),ts(),ts(),ts(),es(12,"div",54),es(13,"div",55),es(14,"div",45),es(15,"label",18),ns(16,"fa-icon",19),Gs(17," Intermitente "),es(18,"input",20),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyFlexModel(e.journeyFlexEnum.Intermittent)})),ts(),ts(),ts(),ts(),es(19,"div",56),es(20,"div",50),es(21,"label",18),ns(22,"fa-icon",19),Gs(23," Escala por dia "),es(24,"input",20),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyFlexModel(e.journeyFlexEnum.Daily)})),ts(),ts(),ts(),es(25,"div",50),es(26,"label",18),ns(27,"fa-icon",19),Gs(28," Livre "),es(29,"input",20),ls("click",(function(){mn(n);var e=fs(2);return e.setJourneyFlexModel(e.journeyFlexEnum.Free)})),ts(),ts(),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("titleTop",i.journeyTitleText+" Flex\xedvel")("textTop","D\xfavidas? Verifique os dados com a sua contabilidade.")("textTop3","Como ser\xe1 a escala? Por dias ou por horas?"),Bo(14),Zr("ngClass",i.journeyFlexModel==i.journeyFlexEnum.Intermittent?"active":""),Bo(1),Zr("icon",i.iconSolidService.faCalendarAlt)("ngClass",i.journeyFlexModel==i.journeyFlexEnum.Intermittent?"cl-white":"cl-blue"),Bo(5),Zr("ngClass",i.journeyFlexModel==i.journeyFlexEnum.Daily?"active":""),Bo(1),Zr("icon",i.iconRegularService.faClock)("ngClass",i.journeyFlexModel==i.journeyFlexEnum.Daily?"cl-white":"cl-blue"),Bo(4),Zr("ngClass",i.journeyFlexModel==i.journeyFlexEnum.Free?"active":""),Bo(1),Zr("icon",i.iconRegularService.faClock)("ngClass",i.journeyFlexModel==i.journeyFlexEnum.Free?"cl-white":"cl-blue")}}function P7(e,t){if(1&e&&(es(0,"div"),Jr(1,x7,21,10,"div",1),Jr(2,M7,55,27,"div",1),Jr(3,S7,30,12,"div",1),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Weekly),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Special),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Flex)}}function T7(e,t){if(1&e&&ns(0,"io-main-top",25),2&e){var n=fs(2);Zr("titleTop",n.journeyWeekModel==n.journeyEnum.Weekly?n.journeyTitleText+" Semanal - Seg a Sex":n.journeyTitleText+" Semanal - Seg a S\xe1b")("textTop","Configure o hor\xe1rio de entrada, intervalo e sa\xedda dos dias trabalhados.")("textTop3","Voc\xea poder\xe1 editar dia a dia na pr\xf3xima tela.")}}function O7(e,t){if(1&e&&ns(0,"io-main-top",25),2&e){var n=fs(2);Zr("titleTop","Nova escala "+n.journeyEspecialModels[n.journeyEspecialModel-1].title)("textTop","Configure o hor\xe1rio de entrada, intervalo e sa\xedda dos dias trabalhados.")("textTop3","Voc\xea poder\xe1 editar dia a dia na pr\xf3xima tela.")}}function L7(e,t){1&e&&(es(0,"div",72),es(1,"h3",73),Gs(2,"Entrada"),ts(),es(3,"h3",73),Gs(4,"Sa\xedda"),ts(),ts())}function D7(e,t){if(1&e){var n=as();es(0,"div",74),es(1,"div",75),es(2,"input",76),ls("change",(function(){mn(n);var e=t.index,i=fs(2);return i.verifyHour("in",e),i.verifyWeekTime()})),ts(),ts(),es(3,"div",75),es(4,"input",76),ls("change",(function(){mn(n);var e=t.index,i=fs(2);return i.verifyHour("out",e),i.verifyWeekTime()})),ts(),ts(),ts()}if(2&e){var i=t.index,o=fs(2);Zr("formGroupName",i.toString())("ngClass",1==o.countTurn?"wider":""),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","in"),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","out")}}function I7(e,t){1&e&&(es(0,"div",77),es(1,"h3",73),Gs(2,"Entrada s\xe1bado"),ts(),es(3,"h3",73),Gs(4,"Sa\xedda s\xe1bado"),ts(),ts())}function F7(e,t){if(1&e){var n=as();es(0,"div",78),es(1,"div",79),es(2,"input",76),ls("change",(function(){mn(n);var e=fs(2);return e.verifyHourWeek("inSaturday"),e.verifyWeekTime()})),ts(),ts(),es(3,"div",79),es(4,"input",76),ls("change",(function(){mn(n);var e=fs(2);return e.verifyHourWeek("outSaturday"),e.verifyWeekTime()})),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("formGroup",i.weekForm),Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","inSaturday"),Bo(1),Zr("formGroup",i.weekForm),Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","outSaturday")}}function A7(e,t){1&e&&(es(0,"span",82),Gs(1,"Total de Horas na Semana"),ts())}function E7(e,t){1&e&&(es(0,"span",82),Gs(1,"Total de Horas Di\xe1rias"),ts())}function B7(e,t){if(1&e&&(es(0,"div",80),Jr(1,A7,2,0,"span",81),Jr(2,E7,2,0,"span",81),es(3,"span",82),Gs(4),ts(),ts()),2&e){var n=fs(2);Bo(1),Zr("ngIf",n.journeyEspecialModel<=n.journeySpecialEnum.CustomDay),Bo(1),Zr("ngIf",n.journeyEspecialModel==n.journeySpecialEnum.CustomHour),Bo(2),$s(n.weekHours)}}function N7(e,t){if(1&e&&(es(0,"div"),es(1,"div",57),Jr(2,T7,1,3,"io-main-top",58),Jr(3,O7,1,3,"io-main-top",58),es(4,"div",59),es(5,"div",60),Jr(6,L7,5,0,"div",61),ts(),es(7,"div",62),es(8,"div",63),es(9,"div",64),es(10,"div",65),Jr(11,D7,5,6,"div",66),ts(),ts(),ts(),es(12,"div",67),Jr(13,I7,5,0,"div",68),ts(),es(14,"div",69),Jr(15,F7,5,6,"div",70),Jr(16,B7,5,3,"div",71),ts(),ts(),ts(),ts(),ts()),2&e){var n=fs();Bo(2),Zr("ngIf",n.journeyType==n.journeyEnum.Weekly),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Special),Bo(3),Zr("ngForOf",n.dayTurn),Bo(2),Zr("formArrayName","day"),Bo(1),Zr("formGroupName","0"),Bo(1),Zr("formArrayName","dayTurn"),Bo(1),Zr("ngForOf",n.dayTurn),Bo(2),Zr("ngIf",n.journeyWeekModel==n.journeyWeekEnum.MondaySaturday&&1==n.weekForm.get("halfSaturday").value),Bo(1),Zr("ngClass",n.journeyWeekModel==n.journeyWeekEnum.MondaySaturday&&1==n.weekForm.get("halfSaturday").value?"":"end"),Bo(1),Zr("ngIf",n.journeyWeekModel==n.journeyWeekEnum.MondaySaturday&&1==n.weekForm.get("halfSaturday").value),Bo(1),Zr("ngIf",n.journeyEspecialModel<=n.journeySpecialEnum.CustomDay||n.journeyEspecialModel==n.journeySpecialEnum.CustomHour)}}function R7(e,t){if(1&e&&ns(0,"io-main-top",103),2&e){var n=fs(3);Zr("titleTop",n.journeyWeekModel==n.journeyWeekEnum.MondayFriday?n.journeyTitleText+" Semanal - Seg a Sex":n.journeyTitleText+" Semanal - Seg a S\xe1b")("textTop","D\xfavidas? Verifique os dados com a sua contabilidade.")}}function j7(e,t){if(1&e&&ns(0,"io-main-top",103),2&e){var n=fs(3);Zr("titleTop",n.journeyTitleText+" "+n.journeyEspecialModels[n.journeyEspecialModel-1].title)("textTop","D\xfavidas? Verifique os dados com a sua contabilidade.")}}function z7(e,t){if(1&e){var n=as();es(0,"div",104),es(1,"input",105),ls("keyup",(function(){return mn(n),fs(3).checkErrorField("description")})),ts(),es(2,"label",106),Gs(3,"Nome da escala"),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Xs("wdFull ",i.stateFields.description.class,""),Zr("formControlName","description")}}function V7(e,t){1&e&&ns(0,"div",109)}function H7(e,t){if(1&e&&(es(0,"div",107),es(1,"h3",73),Gs(2,"Entrada"),ts(),Jr(3,V7,1,0,"div",108),es(4,"h3",73),Gs(5,"Sa\xedda"),ts(),ts()),2&e){var n=fs(3);Bo(3),Zr("ngIf",n.journeyType==n.journeyEnum.Special)}}function Y7(e,t){1&e&&(es(0,"span",91),Gs(1,"Horas noturnas"),ts())}function q7(e,t){1&e&&(es(0,"span",110),Gs(1,"A\xe7\xe3o"),ts())}function U7(e,t){if(1&e){var n=as();es(0,"span"),es(1,"label",117),Gs(2,"DSR "),es(3,"input",118,119),ls("click",(function(){mn(n);var e=Gr(4),t=fs().index;return fs(3).verifyDsr(e.checked,t)})),ts(),ns(5,"span",39),ts(),ts()}if(2&e){var i=fs().index,o=fs(3);Bo(3),Zr("formControlName","dayDsr")("checked",o.days.at(i).get("dayDsr").value)}}function W7(e,t){1&e&&(es(0,"span",129),Gs(1,"*"),ts())}function J7(e,t){if(1&e){var n=as();es(0,"fa-icon",130),ls("click",(function(){mn(n);var e=fs().index,t=fs(2).index;return fs(3).removeTurn(t,e)})),ts()}2&e&&Zr("icon",fs(6).iconSolidService.faTrashAlt)}function G7(e,t){1&e&&(es(0,"span",129),Gs(1,"*"),ts())}function $7(e,t){if(1&e){var n=as();es(0,"div",124),es(1,"div",125),es(2,"input",126),ls("change",(function(){mn(n);var e=t.index,i=fs(2).index,o=fs(3);return o.verifyHour("in",e,i),o.verifyPreviewTime()})),ts(),Jr(3,W7,2,0,"span",127),ts(),Jr(4,J7,1,1,"fa-icon",128),es(5,"div",125),es(6,"input",126),ls("change",(function(){mn(n);var e=t.index,i=fs(2).index,o=fs(3);return o.verifyHour("out",e,i),o.verifyPreviewTime()})),ts(),Jr(7,G7,2,0,"span",127),ts(),ts()}if(2&e){var i=t.index,o=fs(2),a=o.$implicit,r=o.index,s=fs(3);Zr("formGroupName",i.toString()),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","in"),Bo(1),Zr("ngIf",i>0&&s.journeyForm.get("preassigned").value),Bo(1),Zr("ngIf",2==a.dayTurn.length&&r<5||s.journeyType==s.journeyEnum.Special),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","out"),Bo(1),Zr("ngIf",i+1<a.dayTurn.length&&s.journeyForm.get("preassigned").value)}}function Q7(e,t){if(1&e){var n=as();es(0,"div",131),es(1,"div",132),ls("click",(function(){mn(n);var e=fs(2).index;return fs(3).addTurn(e)})),ns(2,"fa-icon",133),es(3,"span",134),Gs(4,"Turno"),ts(),ts(),ts()}if(2&e){var i=fs(5);Bo(2),Zr("icon",i.iconRegularService.faTimesCircle)}}function K7(e,t){if(1&e&&(es(0,"div",120),es(1,"div",121),Jr(2,$7,8,8,"div",122),Jr(3,Q7,5,1,"div",123),ts(),ts()),2&e){var n=fs(),i=n.index,o=n.$implicit,a=fs(3);Zr("formGroupName",i.toString()),Bo(1),Zr("formArrayName","dayTurn"),Bo(1),Zr("ngForOf",o.dayTurn),Bo(1),Zr("ngIf",a.journeyType==a.journeyEnum.Special&&o.dayTurn.length<5||i<5&&1==o.dayTurn.length)}}function Z7(e,t){if(1&e){var n=as();es(0,"div",131),es(1,"div",137),ls("click",(function(){mn(n);var e=fs(2).index;return fs(3).addTurn(e)})),ns(2,"fa-icon",133),es(3,"span",134),Gs(4,"Turno"),ts(),ts(),ts()}if(2&e){var i=fs(5);Bo(2),Zr("icon",i.iconRegularService.faTimesCircle)}}function X7(e,t){if(1&e&&(es(0,"div",116),es(1,"div",92),es(2,"div",131),es(3,"div",135),es(4,"span",136),Gs(5,"Folga"),ts(),ts(),ts(),Jr(6,Z7,5,1,"div",123),ts(),ts()),2&e){var n=fs(4);Bo(6),Zr("ngIf",0!=n.journeyEspecialModel&&n.journeyEspecialModel<5||8==n.journeyEspecialModel)}}function eee(e,t){if(1&e){var n=as();es(0,"input",139),ls("change",(function(){mn(n);var e=fs(2).index;return fs(3).checkChangeOfShift("week",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","dayChangeOfShift")}function tee(e,t){if(1&e&&(es(0,"div",120),Jr(1,eee,1,2,"input",138),ts()),2&e){var n=fs(),i=n.$implicit;Zr("formGroupName",n.index.toString()),Bo(1),Zr("ngIf",!i.dayOff)}}function nee(e,t){if(1&e&&(es(0,"div",116),es(1,"span",140),Gs(2),ts(),ts()),2&e){var n=fs().index,i=fs(3);Bo(2),$s(i.nightTimeArray[n])}}function iee(e,t){if(1&e){var n=as();es(0,"fa-icon",142),ls("click",(function(){mn(n);var e=fs(2).index;return fs(3).removeDay(e)})),ts()}2&e&&Zr("icon",fs(5).iconSolidService.faTrashAlt)}function oee(e,t){if(1&e&&(es(0,"div",116),Jr(1,iee,1,1,"fa-icon",141),ts()),2&e){var n=fs(4);Bo(1),Zr("ngIf",n.days.length>1)}}function aee(e,t){1&e&&(es(0,"span",146),Gs(1,"*"),ts())}function ree(e,t){if(1&e){var n=as();es(0,"fa-icon",130),ls("click",(function(){mn(n);var e=fs().index,t=fs(2).index;return fs(5).removeSaturdayTurn(t,e)})),ts()}2&e&&Zr("icon",fs(8).iconSolidService.faTrashAlt)}function see(e,t){1&e&&(es(0,"span",146),Gs(1,"*"),ts())}function lee(e,t){if(1&e){var n=as();es(0,"div",124),es(1,"div",125),es(2,"input",144),ls("change",(function(){mn(n);var e=t.index,i=fs(2).index,o=fs(5);return o.verifySaturdayHour("in",e,i),o.verifyPreviewTime()})),ts(),Jr(3,aee,2,0,"span",145),ts(),Jr(4,ree,1,1,"fa-icon",128),es(5,"div",125),es(6,"input",144),ls("change",(function(){mn(n);var e=t.index,i=fs(2).index,o=fs(5);return o.verifySaturdayHour("out",e,i),o.verifyPreviewTime()})),ts(),Jr(7,see,2,0,"span",145),ts(),ts()}if(2&e){var i=t.index,o=fs(2),a=o.$implicit,r=o.index,s=fs(5);Zr("formGroupName",i.toString()),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","in"),Bo(1),Zr("ngIf",i>0&&s.journeyForm.get("preassigned").value),Bo(1),Zr("ngIf",a.dayTurn.length<=2&&r<5||s.journeyType==s.journeyEnum.Special),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","out"),Bo(1),Zr("ngIf",i+1<a.dayTurn.length&&s.journeyForm.get("preassigned").value)}}function cee(e,t){if(1&e){var n=as();es(0,"div",131),es(1,"div",132),ls("click",(function(){mn(n);var e=fs(2).index;return fs(5).addSaturdayTurn(e)})),ns(2,"fa-icon",133),es(3,"span",134),Gs(4,"Turno"),ts(),ts(),ts()}if(2&e){var i=fs(7);Bo(2),Zr("icon",i.iconRegularService.faTimesCircle)}}function uee(e,t){if(1&e&&(es(0,"div",120),es(1,"div",121),Jr(2,lee,8,8,"div",122),Jr(3,cee,5,1,"div",123),ts(),ts()),2&e){var n=fs(),i=n.$implicit;Zr("formGroupName",n.index.toString()),Bo(1),Zr("formArrayName","dayTurn"),Bo(1),Zr("ngForOf",i.dayTurn),Bo(1),Zr("ngIf",i.dayTurn.length<2)}}function dee(e,t){if(1&e){var n=as();es(0,"div",116),es(1,"div",92),es(2,"div",131),es(3,"div",135),es(4,"span",136),Gs(5,"Folga"),ts(),ts(),ts(),es(6,"div",131),es(7,"div",137),ls("click",(function(){mn(n);var e=fs().index;return fs(5).addSaturdayTurn(e)})),ns(8,"fa-icon",133),es(9,"span",134),Gs(10,"Turno"),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs(6);Bo(8),Zr("icon",i.iconRegularService.faTimesCircle)}}function hee(e,t){if(1&e&&(es(0,"div",116),es(1,"span",147),Gs(2),ts(),ts()),2&e){var n=fs().index,i=fs(5);Bo(2),$s(i.nightTimeArray[n])}}function fee(e,t){if(1&e){var n=as();es(0,"fa-icon",142),ls("click",(function(){mn(n);var e=fs(2).index;return fs(5).removeDay(e)})),ts()}2&e&&Zr("icon",fs(7).iconSolidService.faTrashAlt)}function mee(e,t){if(1&e&&(es(0,"div",116),Jr(1,fee,1,1,"fa-icon",141),ts()),2&e){var n=fs(6);Bo(1),Zr("ngIf",n.days.length>1)}}function pee(e,t){if(1&e&&(es(0,"div",111),es(1,"div",112),es(2,"span",113),Gs(3),ts(),ts(),Jr(4,uee,4,4,"div",114),Jr(5,dee,11,1,"div",115),es(6,"div",116),es(7,"span",82),Gs(8),ts(),ts(),Jr(9,hee,3,1,"div",115),Jr(10,mee,2,1,"div",115),ts()),2&e){var n=t.$implicit,i=t.index,o=fs(5);Zr("formArrayName","saturday_d_day"),Bo(1),Zr("formGroupName",i.toString()),Bo(1),Zr("ngClass",n.dayOff?"cl-gray":"cl-blue"),Bo(1),$s(n.dayName),Bo(1),Zr("ngIf",!n.dayOff),Bo(1),Zr("ngIf",n.dayOff),Bo(3),$s(n.dayHours),Bo(1),Zr("ngIf",o.nightTimeShow),Bo(1),Zr("ngIf",o.journeyEspecialModel==o.journeySpecialEnum.CustomHour)}}function gee(e,t){if(1&e&&(is(0),Jr(1,pee,11,9,"div",143),os()),2&e){var n=fs(4);Bo(1),Zr("ngForOf",n.saturdayDay)}}function vee(e,t){if(1&e&&(is(0),es(1,"div",111),es(2,"div",112),es(3,"span",113),Gs(4),ts(),Jr(5,U7,6,2,"span",1),ts(),Jr(6,K7,4,4,"div",114),Jr(7,X7,7,1,"div",115),Jr(8,tee,2,2,"div",114),es(9,"div",116),es(10,"span",82),Gs(11),ts(),ts(),Jr(12,nee,3,1,"div",115),Jr(13,oee,2,1,"div",115),ts(),Jr(14,gee,2,1,"ng-container",1),os()),2&e){var n=t.$implicit,i=t.index,o=fs(3);Bo(1),Zr("formArrayName","day"),Bo(1),Zr("formGroupName",i.toString()),Bo(1),Zr("ngClass",n.dayOff?"cl-gray":"cl-blue"),Bo(1),Qs(" ",o.journeyEspecialModel>o.journeySpecialEnum.Journey5x1&&o.journeyEspecialModel<o.journeySpecialEnum.Journey12x36||o.journeyType==o.journeyEnum.Weekly?n.dayName:"Dia "+n.dayNumber," "),Bo(1),Zr("ngIf",n.dayOff),Bo(1),Zr("ngIf",!n.dayOff),Bo(1),Zr("ngIf",n.dayOff),Bo(1),Zr("ngIf",!n.dayOff),Bo(3),$s(n.dayHours),Bo(1),Zr("ngIf",o.nightTimeShow),Bo(1),Zr("ngIf",o.journeyEspecialModel==o.journeySpecialEnum.CustomHour),Bo(1),Zr("ngIf",o.journeyForm.get("saturday_d").value&&o.journeyType<o.journeyEnum.Flex&&o.journeyEspecialModel<o.journeySpecialEnum.Journey12x36&&"S\xe1b"==n.dayName)}}function yee(e,t){if(1&e){var n=as();es(0,"div",148),ls("click",(function(){return mn(n),fs(3).addDay()})),ns(1,"fa-icon",133),es(2,"span",149),Gs(3,"Adicionar"),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Zr("icon",i.iconRegularService.faTimesCircle)}}function bee(e,t){if(1&e){var n=as();es(0,"div",156),es(1,"label",152),Gs(2,"Escala por exce\xe7\xe3o "),es(3,"input",153),ls("change",(function(){return mn(n),fs(4).checkPreAssignedException("exception")})),ts(),ns(4,"span",39),ts(),ts()}if(2&e){var i=fs(4);Bo(3),Zr("formControlName","exception")("checked",i.journeyForm.get("exception").value)}}function _ee(e,t){if(1&e&&(es(0,"div",157),es(1,"label",152),Gs(2,"S\xe1bado D "),ns(3,"input",158),ns(4,"span",39),ts(),ts()),2&e){var n=fs(4);Bo(3),Zr("formControlName","saturday_d")("checked",n.journeyForm.get("saturday_d").value)}}function kee(e,t){if(1&e){var n=as();es(0,"div",150),es(1,"div",151),es(2,"label",152),Gs(3,"Intervalo pr\xe9-assinalado "),es(4,"input",153),ls("change",(function(){return mn(n),fs(3).checkPreAssignedException("preassigned")})),ts(),ns(5,"span",39),ts(),ts(),Jr(6,bee,5,2,"div",154),Jr(7,_ee,5,2,"div",155),ts()}if(2&e){var i=fs(3);Bo(4),Zr("formControlName","preassigned")("checked",i.journeyForm.get("preassigned").value),Bo(2),Zr("ngIf",i.journeyEspecialModel<i.journeySpecialEnum.Journey12x36),Bo(1),Zr("ngIf",i.journeyEspecialModel<5)}}function Cee(e,t){1&e&&ns(0,"input",159),2&e&&Zr("dropSpecialCharacters",!1)("formControlName","change_of_shift")}function wee(e,t){if(1&e&&(es(0,"div",160),es(1,"span",101),Gs(2," Total de horas reduzidas: "),es(3,"span",24),Gs(4),ts(),ts(),ts()),2&e){var n=fs(3);Bo(4),$s(n.nightTimeTotal)}}function xee(e,t){if(1&e&&(es(0,"div",160),es(1,"span",101),Gs(2," Total de horas na semana + reduzidas: "),es(3,"span",24),Gs(4),ts(),ts(),ts()),2&e){var n=fs(3);Bo(4),$s(n.totalWeekTimePlusReduced)}}function Mee(e,t){if(1&e&&(es(0,"div",87),Jr(1,R7,1,2,"io-main-top",88),Jr(2,j7,1,2,"io-main-top",88),Jr(3,z7,4,4,"div",89),es(4,"div",90),es(5,"div"),es(6,"span",91),Gs(7,"Dia da Semana"),ts(),es(8,"div",72),es(9,"div",92),Jr(10,H7,6,1,"div",93),ts(),ts(),es(11,"span",91),Gs(12,"Virada de turno"),ts(),es(13,"span",91),Gs(14,"Total de horas"),ts(),Jr(15,Y7,2,0,"span",94),Jr(16,q7,2,0,"span",95),ts(),es(17,"div"),Jr(18,vee,15,12,"ng-container",96),Jr(19,yee,4,1,"div",97),ts(),Jr(20,kee,8,4,"div",98),es(21,"div",99),es(22,"div"),es(23,"span"),Jr(24,Cee,1,2,"input",100),ts(),es(25,"span",101),Gs(26,"Total de horas na semana: "),es(27,"span",24),Gs(28),ts(),ts(),ts(),Jr(29,wee,5,1,"div",102),Jr(30,xee,5,1,"div",102),ts(),ts(),ts()),2&e){var n=fs(2);Zr("ngClass",n.journeyType==n.journeyEnum.Weekly?"week":""),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Weekly),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Special),Bo(1),Zr("ngIf",1==n.updateOn),Bo(2),Xs("flex listHeader listAlign borderTop ",n.nightTimeShow?"nightTimeOn":"",""),Bo(5),Zr("ngForOf",n.dayTurn),Bo(5),Zr("ngIf",n.nightTimeShow),Bo(1),Zr("ngIf",n.journeyEspecialModel==n.journeySpecialEnum.CustomHour),Bo(1),Xs("listAlign slideMobItem pdgB2 mrgT2 mrgB2 ",n.nightTimeShow?"nightTimeOn":"",""),Bo(1),Zr("ngForOf",n.day),Bo(1),Zr("ngIf",n.journeyEspecialModel==n.journeySpecialEnum.CustomHour),Bo(1),Zr("ngIf",n.journeyType<n.journeyEnum.Flex&&n.journeyEspecialModel<=n.journeySpecialEnum.Journey12x36),Bo(2),Xs("flex ",n.journeyEspecialModel==n.journeySpecialEnum.Journey24x48||n.journeyEspecialModel==n.journeySpecialEnum.Journey24x72?"end":"",""),Bo(2),Zr("ngIf",n.journeyEspecialModel!=n.journeySpecialEnum.Journey24x48&&n.journeyEspecialModel!=n.journeySpecialEnum.Journey24x72),Bo(4),$s(n.totalWeekTime),Bo(1),Zr("ngIf",n.nightTimeShow),Bo(1),Zr("ngIf",n.nightTimeShow)}}function See(e,t){if(1&e){var n=as();es(0,"div",104),es(1,"input",173),ls("keyup",(function(){return mn(n),fs(3).checkErrorField("description")})),ts(),es(2,"label",174),Gs(3,"Nome da escala"),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Xs("wdFull mrgT2 ",i.stateFields.description.class,""),Zr("formControlName","description")}}function Pee(e,t){1&e&&(es(0,"div",175),es(1,"span",91),Gs(2,"Horas por dia"),ts(),es(3,"span",91),Gs(4,"Dias da semana"),ts(),es(5,"span",91),Gs(6,"Virada de turno"),ts(),es(7,"span",91),Gs(8,"Total de horas"),ts(),es(9,"span",176),Gs(10,"A\xe7\xe3o"),ts(),ts())}function Tee(e,t){1&e&&ns(0,"div",177)}function Oee(e,t){if(1&e&&(es(0,"div",182),es(1,"span",183),Gs(2,"Virada de turno da escala:"),ts(),ts()),2&e){var n=fs(4);Zr("ngClass",n.journeyFlexModel==n.journeyFlexEnum.Intermittent||n.journeyFlexModel==n.journeyFlexEnum.Free?"leftText":"")}}function Lee(e,t){if(1&e){var n=as();es(0,"div",184),es(1,"input",185),ls("change",(function(){mn(n);var e=fs(4);return e.verifyFlexWeekHour("change_of_shift"),e.verifyFlexDayTime()})),ts(),ts()}2&e&&(Zr("formGroup",fs(4).journeyForm),Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","change_of_shift"))}function Dee(e,t){if(1&e){var n=as();es(0,"div",186),es(1,"input",185),ls("change",(function(){mn(n);var e=fs().index,t=fs(3);return t.verifyHourFlex("in",e),t.verifyFlexDayTime()})),ts(),ts()}2&e&&(Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","in"))}function Iee(e,t){if(1&e){var n=as();es(0,"span",188),ls("click",(function(){mn(n);var e=t.index,i=fs(2).index;return fs(3).setFlexDay(i,e)})),Gs(1),ts()}if(2&e){var i=t.$implicit;Zr("ngClass",i.value?"cl-blue":"cl-gray"),Bo(1),$s(i.name)}}function Fee(e,t){if(1&e&&(es(0,"div",116),Jr(1,Iee,2,2,"span",187),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngForOf",n.day)}}function Aee(e,t){if(1&e){var n=as();es(0,"div",186),es(1,"input",189),ls("change",(function(){mn(n);var e=fs().index,t=fs(3);return t.verifyHourFlex("dayChangeOfShift",e),t.verifyFlexDayTime()})),ts(),ts()}2&e&&(Bo(1),Zr("dropSpecialCharacters",!1)("formControlName","dayChangeOfShift"))}function Eee(e,t){if(1&e&&(es(0,"div",186),es(1,"span",82),Gs(2),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),$s(n.total)}}function Bee(e,t){if(1&e){var n=as();es(0,"fa-icon",191),ls("click",(function(){mn(n);var e=fs(2).index;return fs(3).removeFlexArray(e)})),ts()}2&e&&Zr("icon",fs(5).iconSolidService.faTrashAlt)}function Nee(e,t){if(1&e&&(es(0,"div",186),Jr(1,Bee,1,1,"fa-icon",190),ts()),2&e){var n=fs(4);Bo(1),Zr("ngIf",n.flexArray.length>1)}}function Ree(e,t){if(1&e&&(es(0,"div",178),Jr(1,Oee,3,1,"div",179),Jr(2,Lee,2,3,"div",180),Jr(3,Dee,2,2,"div",181),Jr(4,Fee,2,1,"div",115),Jr(5,Aee,2,2,"div",181),Jr(6,Eee,3,1,"div",181),Jr(7,Nee,2,1,"div",181),ts()),2&e){var n=t.index,i=fs(3);Zr("formGroupName",n.toString()),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Intermittent||i.journeyFlexModel==i.journeyFlexEnum.Free),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Intermittent||i.journeyFlexModel==i.journeyFlexEnum.Free),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",i.journeyFlexModel==i.journeyFlexEnum.Daily)}}function jee(e,t){if(1&e){var n=as();es(0,"div",192),ls("click",(function(){return mn(n),fs(3).addFlexArray()})),ns(1,"fa-icon",133),es(2,"span",149),Gs(3,"Adicionar"),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Zr("icon",i.iconRegularService.faTimesCircle)}}function zee(e,t){1&e&&(es(0,"span",196),Gs(1,"Sem data fixa."),ts())}function Vee(e,t){if(1&e){var n=as();es(0,"span",197),ls("click",(function(){mn(n);var e=t.$implicit;return fs(4).verifyDsr(!0,e)})),Gs(1),ts()}if(2&e){var i=t.$implicit,o=fs(4);Zr("ngClass",i==o.flexArrayDsrSelected?"cl-blue":"cl-gray"),Bo(1),$s(o.arrayWeekDay[i])}}function Hee(e,t){if(1&e&&(es(0,"div",193),es(1,"span",101),Gs(2,"Selecione o DSR:"),ts(),Jr(3,zee,2,0,"span",194),Jr(4,Vee,2,2,"span",195),ts()),2&e){var n=fs(3);Bo(3),Zr("ngIf",0==n.flexArrayDsrSelect.length),Bo(1),Zr("ngForOf",n.flexArrayDsrSelect)}}function Yee(e,t){1&e&&(es(0,"div",198),es(1,"p",23),es(2,"span",24),Gs(3,"Escala flex\xedvel semanal: "),ts(),Gs(4," escala baseada no total de hora da semana. "),ts(),es(5,"p",23),es(6,"span",24),Gs(7,"M\xe1ximo de horas di\xe1rias: "),ts(),Gs(8," o m\xe1ximo de hora normal di\xe1ria \xe9 de 08 horas e 48 minutos. Todo tempo excedente ser\xe1 contado como hora extra. "),ts(),ts())}function qee(e,t){1&e&&(es(0,"div",22),es(1,"p",23),es(2,"span",24),Gs(3,"Escala intermitente:"),ts(),Gs(4," Na escala intermitente a presta\xe7\xe3o de servi\xe7os, com subordina\xe7\xe3o, n\xe3o \xe9 cont\xednua, ocorrendo com altern\xe2ncia de per\xedodos de presta\xe7\xe3o de servi\xe7os e de inatividade. "),ts(),es(5,"p",101),Gs(6,' A \xfanica configura\xe7\xe3o necess\xe1ria \xe9 a virada de turno. Para concluir, clique no bot\xe3o "Finalizar" e a escala ficar\xe1 dispon\xedvel na listagem. '),ts(),ts())}function Uee(e,t){1&e&&(es(0,"div",22),es(1,"p",101),Gs(2,'A \xfanica configura\xe7\xe3o necess\xe1ria \xe9 a virada de turno. Para concluir, clique no bot\xe3o "Finalizar" e a escala ficar\xe1 dispon\xedvel na listagem.'),ts(),ts())}function Wee(e,t){if(1&e&&(es(0,"span",101),Gs(1," Total de horas na semana: "),es(2,"span",24),Gs(3),ts(),ts()),2&e){var n=fs(3);Bo(3),$s(n.totalWeekTime)}}function Jee(e,t){if(1&e&&(es(0,"div",161),ns(1,"io-main-top",103),Jr(2,See,4,4,"div",89),es(3,"div",162),Jr(4,Pee,11,0,"div",163),Jr(5,Tee,1,0,"div",164),es(6,"div",165),Jr(7,Ree,8,8,"div",166),Jr(8,jee,4,1,"div",167),Jr(9,Hee,5,2,"div",168),Jr(10,Yee,9,0,"div",169),Jr(11,qee,7,0,"div",170),Jr(12,Uee,3,0,"div",170),ts(),es(13,"div",171),es(14,"div"),ns(15,"label"),Jr(16,Wee,4,1,"span",172),ts(),ts(),ts(),ts()),2&e){var n=fs(2);Bo(1),Zr("titleTop",n.journeyFlexModel==n.journeyFlexEnum.Intermittent?n.journeyTitleText+" Intermitente":n.journeyTitleText+" Flex\xedvel")("textTop","D\xfavidas? Verifique os dados com a sua contabilidade."),Bo(1),Zr("ngIf",1==n.updateOn),Bo(1),Zr("formGroup",n.flexForm),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Intermittent||n.journeyFlexModel==n.journeyFlexEnum.Free),Bo(1),Zr("ngClass",n.journeyFlexModel==n.journeyFlexEnum.Intermittent||n.journeyFlexModel==n.journeyFlexEnum.Free?"flexWeek":"")("formArrayName","line"),Bo(1),Zr("ngForOf",n.flexArray),Bo(1),Zr("ngIf",n.flexArray.length<7&&2==n.journeyFlexModel),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Daily),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Weekly),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Intermittent),Bo(1),Zr("ngIf",n.journeyFlexModel==n.journeyFlexEnum.Free),Bo(1),Zr("formGroup",n.journeyForm),Bo(1),Xs("flex ",n.journeyFlexModel!=n.journeyFlexEnum.Intermittent&&n.journeyFlexModel!=n.journeyFlexEnum.Free?"":"start",""),Bo(2),Zr("ngIf",n.journeyFlexModel!=n.journeyFlexEnum.Intermittent&&n.journeyFlexModel!=n.journeyFlexEnum.Free)}}function Gee(e,t){if(1&e){var n=as();es(0,"div",199),ls("click",(function(){return mn(n),fs(2).checkJourneyEditableMsg()})),ts()}}function $ee(e,t){if(1&e&&(es(0,"div",83),Jr(1,Mee,31,23,"div",84),Jr(2,Jee,17,19,"div",85),Jr(3,Gee,1,0,"div",86),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.journeyType!=n.journeyEnum.Flex),Bo(1),Zr("ngIf",n.journeyType==n.journeyEnum.Flex),Bo(1),Zr("ngIf",n.updateOn&&!n.journeyEditable)}}function Qee(e,t){1&e&&(es(0,"div"),es(1,"div",200),ns(2,"io-main-top",103),es(3,"div",12),es(4,"div",201),es(5,"span",202),Gs(6,"Carregando dados da escala."),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(2),Zr("titleTop","Edi\xe7\xe3o de Escala")("textTop",""))}function Kee(e,t){if(1&e){var n=as();es(0,"div",203),es(1,"io-btn",204),ls("btnClick",(function(){mn(n);var e=fs();return e.backStep(e.step)})),ts(),es(2,"io-btn",205),ls("btnClick",(function(){mn(n);var e=fs();return e.nextStep(e.step)})),ts(),ts()}if(2&e){var i=fs();Bo(1),Zr("moduleName","journey")("action","")("btnColor",1==i.step?"btn-red":"")("btnText",1==i.step?"Cancelar":"Anterior")("btnTitle",1==i.step?"Cancelar":"Anterior")("useValidation",!1),Bo(1),Zr("moduleName","journey")("action","create")("btnColor","btn-blue-bg")("btnText",4==i.step?"Finalizar":"Pr\xf3ximo")("btnTitle",4==i.step?"Finalizar":"Pr\xf3ximo")}}function Zee(e,t){if(1&e){var n=as();es(0,"io-btn",205),ls("btnClick",(function(){return mn(n),fs(2).verifyEditable()})),ts()}2&e&&Zr("moduleName","journey")("action","update")("btnColor","btn-blue-bg")("btnText","Habilitar edi\xe7\xe3o")("btnTitle","Habilitar edi\xe7\xe3o")}function Xee(e,t){if(1&e){var n=as();es(0,"io-btn",205),ls("btnClick",(function(){return mn(n),fs(2).sendJourney()})),ts()}2&e&&Zr("moduleName","journey")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")}function ete(e,t){if(1&e){var n=as();es(0,"div",203),es(1,"io-btn",204),ls("btnClick",(function(){mn(n);var e=fs();return e.backStep(e.step)})),ts(),Jr(2,Zee,1,5,"io-btn",206),Jr(3,Xee,1,5,"io-btn",206),ts()}if(2&e){var i=fs();Bo(1),Zr("moduleName","journey")("action","")("btnColor","btn-red")("btnText",1==i.journeyEditable?"Cancelar":"Voltar")("btnTitle",1==i.journeyEditable?"Cancelar":"Voltar")("useValidation",!1),Bo(1),Zr("ngIf",0==i.journeyEditable),Bo(1),Zr("ngIf",1==i.journeyEditable)}}var tte,nte,ite,ote,ate,rte,ste,lte,cte,ute=function(e){return e[e.Invalid=0]="Invalid",e[e.Weekly=1]="Weekly",e[e.Special=2]="Special",e[e.Flex=3]="Flex",e}({}),dte=function(e){return e[e.Invalid=0]="Invalid",e[e.MondayFriday=1]="MondayFriday",e[e.MondaySaturday=2]="MondaySaturday",e}({}),hte=function(e){return e[e.Invalid=0]="Invalid",e[e.Journey5x1=1]="Journey5x1",e[e.Journey5x2=2]="Journey5x2",e[e.Journey6x1=3]="Journey6x1",e[e.CustomDay=4]="CustomDay",e[e.Journey12x36=5]="Journey12x36",e[e.Journey24x48=6]="Journey24x48",e[e.Journey24x72=7]="Journey24x72",e[e.CustomHour=8]="CustomHour",e}({}),fte=function(e){return e[e.Invalid=0]="Invalid",e[e.Weekly=1]="Weekly",e[e.Daily=2]="Daily",e[e.Intermittent=3]="Intermittent",e[e.Free=4]="Free",e}({}),mte=((ote=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.journeyDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.validService=l,this.updateOn=!1,this.journeyId=null,this.journeyEnum=ute,this.journeyWeekEnum=dte,this.journeySpecialEnum=hte,this.journeyFlexEnum=fte,this.arrayWeekDay=["Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b","Dom"],this.changeJourneyMinDate="",this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.countDay=0,this.countSaturdayDay=0,this.countTurn=0,this.currentDay=0,this.currentSaturdayDay=0,this.flexArray=[],this.flexArrayDsrSelect=[5,6],this.flexArrayDsrSelected=null,this.journeyEditable=!1,this.journeyEditableCollaborators=0,this.journeyEspecialModel=0,this.journeyEspecialModels=[{title:"5x1",description:"5x1",value:"5x1"},{title:"5x2",description:"5x2",value:"5x2"},{title:"6x1",description:"6x1",value:"6x1"},{title:"personalizada por dia",description:"custom_day",value:"5x2"},{title:"12x36",description:"12x36",value:"1x1"},{title:"24x48",description:"24x48",value:"1x2"},{title:"24x72",description:"24x72",value:"1x3"},{title:"personalizada por hora",description:"custom_hour",value:"1x0"}],this.journeyFlexModel=0,this.journeyTitleText="Nova Escala",this.journeyType=0,this.journeyWeekModel=0,this.nightTimeArray=[],this.nightTimeTotal="00:00",this.nightTimeShow=!1,this.previewEnable=!0,this.modalBeginDate=!1,this.showModalException=!1,this.step=1,this.startTurn=!1,this.startSaturdayTurn=!1,this.stateFields={description:{class:""}},this.totalWeekTime="00:00",this.totalWeekTimePlusReduced="00:00",this.weekHours="00:00",this.defaultChangeOfShift="23:59",this.JourneyFlexModel=fte,this.Journey=ute,this.JourneyWeekModel=dte,this.JourneySpecialModel=hte,this.journeyForm=this.formBuilder.group({description:new Wm("",[Jf.required]),change_of_shift:new Wm("23:59",[Jf.required]),day:this.formBuilder.array([this.createDay()]),days:new Wm(1,[Jf.required]),flexible:new Wm(!1,[Jf.required]),model:new Wm(0,[Jf.required]),preassigned:new Wm(!1,[Jf.required]),exception:new Wm(!1,[Jf.required]),saturday_d:new Wm(!1,[Jf.required]),saturday_d_day:new Gm([this.createSaturdayDay()]),type:new Wm("",[Jf.required]),weekHours:new Wm("00:00",[Jf.required])}),this.journeyFormPut=this.formBuilder.group({begin_date:new Wm("",[Jf.required])}),this.weekForm=this.formBuilder.group({halfSaturday:new Wm(!1),inSaturday:new Wm("00:00"),outSaturday:new Wm("00:00")}),this.flexForm=this.formBuilder.group({line:this.formBuilder.array([this.createFlexLine()])})}),[{key:"ngOnInit",value:function(){this.resetJourneyForm(),this.addFlexArray(!0);for(var e=2;e<=5;e++)this.addSaturdayDay()}},{key:"createDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.arrayWeekDay[this.countDay];return this.countDay++,!e&&(this.startTurn=!0),this.formBuilder.group({dayName:new Wm(t,[Jf.required]),dayNumber:new Wm(this.countDay,[Jf.required]),dayTurns:new Wm(e?0:1,[Jf.required]),dayTurn:this.formBuilder.array([this.createTurn(e)]),dayHours:new Wm("",[Jf.required]),dayOff:new Wm(e,[Jf.required]),dayDsr:new Wm(!1,[Jf.required]),dayChangeOfShift:new Wm(this.defaultChangeOfShift,[Jf.required])})}},{key:"createTurn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return 0==this.startTurn?this.days.at(this.currentDay).get("dayTurns").setValue(parseInt(this.days.at(this.currentDay).get("dayTurns").value)+1):this.startTurn=!1,this.formBuilder.group({in:new Wm("00:00",[Jf.required]),out:new Wm("00:00",[Jf.required]),total:new Wm("00:00",[Jf.required]),nightTime:new Wm("00:00",[Jf.required])})}},{key:"createSaturdayDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.countSaturdayDay++,!e&&(this.startSaturdayTurn=!0),this.formBuilder.group({dayName:new Wm(this.countSaturdayDay+"\xba S\xe1b",[Jf.required]),dayNumber:new Wm(this.countSaturdayDay,[Jf.required]),dayTurns:new Wm(e?0:1,[Jf.required]),dayTurn:this.formBuilder.array([this.createSaturdayTurn(e)]),dayHours:new Wm("",[Jf.required]),dayOff:new Wm(e,[Jf.required]),dayDsr:new Wm(!1,[Jf.required]),dayChangeOfShift:new Wm(this.defaultChangeOfShift,[Jf.required])})}},{key:"createSaturdayTurn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return 0==this.startSaturdayTurn?this.saturdayDDays.at(this.currentSaturdayDay).get("dayTurns").setValue(parseInt(this.days.at(this.currentSaturdayDay).get("dayTurns").value)+1):this.startSaturdayTurn=!1,this.formBuilder.group({in:new Wm("00:00",[Jf.required]),out:new Wm("00:00",[Jf.required]),total:new Wm("00:00",[Jf.required])})}},{key:"j",get:function(){return this.journeyForm.controls}},{key:"days",get:function(){return this.j.day}},{key:"turns",get:function(){return this.days.at(this.currentDay).get("dayTurn")}},{key:"saturdayDDays",get:function(){return this.j.saturday_d_day}},{key:"saturdayDTurns",get:function(){return this.saturdayDDays.at(this.currentSaturdayDay).get("dayTurn")}},{key:"addDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.currentDay=this.days.length,this.days.push(this.createDay(e)),this.day=this.days.value,1==this.startTurn&&(this.dayTurn=this.turns.value),this.journeyForm.get("days").setValue(this.days.length),this.day=this.days.value,this.verifyPreviewTime(),this.verifyTurnTitle()}},{key:"removeDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;1!=this.days.length?(this.days.removeAt(e),this.countDay--,this.journeyForm.get("days").setValue(this.days.length),this.day=this.days.value,this.reloadDayList(),this.verifyTurnTitle()):this.functionsService.openSnackBar("journeyOneDay")}},{key:"addTurn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!=e&&(this.currentDay=e),0==this.turns.length&&(this.startTurn=!0,this.days.at(this.currentDay).get("dayDsr").setValue(!1),this.days.at(this.currentDay).get("dayOff").setValue(!1),this.days.at(this.currentDay).get("dayHours").setValue("00:00"),this.days.at(this.currentDay).get("dayTurns").setValue(1),this.days.at(this.currentDay).get("dayChangeOfShift").setValue(this.defaultChangeOfShift)),1==this.turns.length&&null==this.turns.at(0).value)return this.startTurn=!0,this.days.at(this.currentDay).get("dayDsr").setValue(!1),this.days.at(this.currentDay).get("dayOff").setValue(!1),this.days.at(this.currentDay).get("dayHours").setValue("00:00"),this.days.at(this.currentDay).get("dayTurns").setValue(1),this.days.at(this.currentDay).get("dayChangeOfShift").setValue(this.defaultChangeOfShift),this.turns.push(this.createTurn()),this.turns.removeAt(0),void this.verifyTurnTitle();5!=this.turns.length?(this.turns.push(this.createTurn()),this.verifyTurnTitle()):this.functionsService.openSnackBar("Limite de turnos atingido")}},{key:"removeTurn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.journeyEspecialModel>hte.CustomDay&&this.journeyEspecialModel<hte.CustomHour&&1==this.turns.length?this.functionsService.openSnackBar("Este turno n\xe3o pode ser removido"):(this.currentDay=e,this.turns.removeAt(t),this.days.at(this.currentDay).get("dayTurns").setValue(this.turns.length),0==this.turns.length&&(this.days.at(this.currentDay).get("dayOff").setValue(!0),this.days.at(this.currentDay).get("dayHours").setValue(""),this.days.at(this.currentDay).get("dayDsr").setValue(!1),this.days.at(this.currentDay).get("dayChangeOfShift").setValue(this.defaultChangeOfShift)),this.verifyPreviewTime(),this.verifyTurnTitle())}},{key:"addSaturdayDay",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.currentSaturdayDay=this.saturdayDDays.length,this.saturdayDDays.push(this.createSaturdayDay(e)),this.saturdayDay=this.saturdayDDays.value,1==this.startSaturdayTurn&&(this.saturdayDayTurn=this.saturdayDTurns.value),this.saturdayDay=this.saturdayDDays.value}},{key:"addSaturdayTurn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!=e&&(this.currentSaturdayDay=e),0==this.saturdayDTurns.length&&(this.startSaturdayTurn=!0,this.saturdayDDays.at(this.currentSaturdayDay).get("dayDsr").setValue(!1),this.saturdayDDays.at(this.currentSaturdayDay).get("dayOff").setValue(!1),this.saturdayDDays.at(this.currentSaturdayDay).get("dayHours").setValue("00:00"),this.saturdayDDays.at(this.currentSaturdayDay).get("dayTurns").setValue(1),this.saturdayDDays.at(this.currentSaturdayDay).get("dayChangeOfShift").setValue(this.defaultChangeOfShift)),1==this.saturdayDTurns.length&&null==this.saturdayDTurns.at(0).value)return this.startSaturdayTurn=!0,this.saturdayDDays.at(this.currentSaturdayDay).get("dayDsr").setValue(!1),this.saturdayDDays.at(this.currentSaturdayDay).get("dayOff").setValue(!1),this.saturdayDDays.at(this.currentSaturdayDay).get("dayHours").setValue("00:00"),this.saturdayDDays.at(this.currentSaturdayDay).get("dayTurns").setValue(1),this.saturdayDDays.at(this.currentSaturdayDay).get("dayChangeOfShift").setValue(this.defaultChangeOfShift),this.saturdayDTurns.push(this.createSaturdayTurn()),void this.saturdayDTurns.removeAt(0);5!=this.saturdayDTurns.length?(this.saturdayDTurns.push(this.createSaturdayTurn()),this.saturdayDay=this.saturdayDDays.value,this.verifySaturdayDTime(),this.verifyTurnTitle()):this.functionsService.openSnackBar("Limite de turnos atingido")}},{key:"removeSaturdayTurn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.currentSaturdayDay=e,this.saturdayDTurns.removeAt(t),this.saturdayDDays.at(e).get("dayTurns").setValue(parseInt(this.saturdayDDays.at(e).get("dayTurns").value)-1),0==this.saturdayDTurns.length&&(this.saturdayDDays.at(e).get("dayOff").setValue(!0),this.saturdayDDays.at(e).get("dayHours").setValue(""),this.saturdayDDays.at(e).get("dayDsr").setValue(!1),this.saturdayDDays.at(e).get("dayChangeOfShift").setValue(this.defaultChangeOfShift)),this.saturdayDay=this.saturdayDDays.value,this.verifySaturdayDTime()}},{key:"setJourneyType",value:function(e){e==ute.Weekly&&this.journeyForm.get("type").setValue("week"),e==ute.Flex&&this.journeyForm.get("flexible").setValue(!0),this.journeyType=e}},{key:"setJourneyWeekModel",value:function(e){this.journeyWeekModel=e,e==this.journeyEnum.Weekly&&this.weekForm.get("halfSaturday").setValue(!1)}},{key:"setJourneyEspecialModel",value:function(e){this.journeyForm.get("type").setValue(this.journeyEspecialModels[e-1].description.valueOf()),this.journeyForm.get("model").setValue(e),this.journeyEspecialModel=e}},{key:"setJourneyFlexModel",value:function(e){this.journeyForm.get("type").setValue(e==this.journeyFlexEnum.Weekly?"flex_week":"flex"),this.journeyFlexModel=e}},{key:"verifyWeekTime",value:function(){var e=this.turns.value,t=5,n=0,i=[];if(this.journeyEspecialModel==hte.Journey12x36){var o=parseInt(e[0].in.toString().split(":")[0])>=12?this.functionsService.removeSings(this.functionsService.subtractTime(e[0].in,"12:00")):this.functionsService.sumTime([e[0].in,"12:00"]);this.turns.at(0).get("out").setValue(o)}this.journeyEspecialModel!=hte.Journey24x48&&this.journeyEspecialModel!=hte.Journey24x72||this.turns.at(0).get("out").setValue(e[0].in);for(var a=0;a<this.turns.length;a++)5==e[a].in.length&&(n++,i[2*a]=e[a].in.toString()),5==e[a].out.length&&(n++,i[2*a+1]=e[a].out.toString());if(n==2*this.turns.length){var r=this.journeyEspecialModel>hte.Journey12x36?this.functionsService.diffTime(i,!0):this.functionsService.diffTime(i);if(this.days.at(this.currentDay).get("dayHours").setValue(r),"00:00"==this.weekForm.get("inSaturday").value&&this.weekForm.get("inSaturday").setValue(e[0].in),"00:00"==this.weekForm.get("outSaturday").value&&this.weekForm.get("outSaturday").setValue(e[0].out),this.journeyWeekModel==dte.MondaySaturday&&0==this.weekForm.get("halfSaturday").value&&(t=6),this.journeyEspecialModel==hte.Journey6x1&&(t=6),this.weekHours=this.functionsService.multiplyTime(r,t),1==this.weekForm.get("halfSaturday").value){var s=this.functionsService.diffTime([this.weekForm.get("inSaturday").value,this.weekForm.get("outSaturday").value]);this.weekHours=this.functionsService.sumTime([this.weekHours,s])}}}},{key:"generatePreview",value:function(){if(this.journeyType==ute.Weekly){var e=5,t=this.weekForm.get("halfSaturday").value;2==this.journeyWeekModel&&e++;for(var n=this.countDay+1;n<=e;n++)this.currentDay=n-1,this.addDay(),6==n&&t||this.addTurn();this.loadDayTurn(e-1),this.addDay(!0),5==e&&this.addDay(!0)}if(this.journeyType==ute.Special){for(var i=parseInt(this.journeyEspecialModels[this.journeyEspecialModel-1].value.toString().split("x")[0]),o=parseInt(this.journeyEspecialModels[this.journeyEspecialModel-1].value.toString().split("x")[1]),a=this.countDay+1;a<=i;a++)this.currentDay=a-1,this.addDay(),this.journeyEspecialModel<hte.CustomDay&&this.addTurn();this.loadDayTurn(i-1);for(var r=1;r<=o;r++)this.addDay(!0)}}},{key:"loadDayTurn",value:function(e){this.currentDay=0;for(var t=1;t<=e;t++){var n=this.days.at(t).get("dayTurn");n.at(0).get("in").setValue(this.turns.at(0).get("in").value),n.at(0).get("out").setValue(this.turns.at(0).get("out").value),this.days.at(t).get("dayHours").setValue(this.days.at(0).get("dayHours").value),n.length>1&&(n.at(1).get("in").setValue(this.turns.at(1).get("in").value),n.at(1).get("out").setValue(this.turns.at(1).get("out").value))}if(this.journeyWeekModel==dte.MondaySaturday&&1==this.weekForm.get("halfSaturday").value){var i=this.days.at(5).get("dayTurn");i.at(0).get("in").setValue(this.weekForm.get("inSaturday").value),i.at(0).get("out").setValue(this.weekForm.get("outSaturday").value);var o=this.functionsService.diffTime([this.weekForm.get("inSaturday").value,this.weekForm.get("outSaturday").value]);this.days.at(5).get("dayHours").setValue(o)}this.journeyEspecialModel>hte.Journey12x36&&this.journeyEspecialModel<hte.CustomHour&&(this.currentDay=0,this.journeyForm.get("change_of_shift").setValue(this.turns.at(0).get("out").value)),this.verifyTurnTitle()}},{key:"reloadDayList",value:function(){for(var e=0;e<this.days.length;e++)this.days.at(e).get("dayName").setValue(this.arrayWeekDay[e]),this.days.at(e).get("dayNumber").setValue(e+1),this.verifyPreviewTime()}},{key:"verifyPreviewTime",value:function(){for(var e="00:00",t=0;t<this.days.length;t++){var n="00:00",i=this.days.at(t).get("dayTurn");if(0==this.days.at(t).get("dayOff").value){for(var o=0;o<i.length;o++)this.journeyEspecialModel>hte.Journey12x36?(i.at(o).get("total").setValue(this.functionsService.diffTime([i.at(o).get("in").value,i.at(o).get("out").value],!0)),n=this.functionsService.sumTime([n,this.functionsService.diffTime([i.at(o).get("in").value,i.at(o).get("out").value],!0)])):(i.at(o).get("total").setValue(this.functionsService.diffTime([i.at(o).get("in").value,i.at(o).get("out").value])),n=this.functionsService.sumTime([n,this.functionsService.diffTime([i.at(o).get("in").value,i.at(o).get("out").value])]));this.days.at(t).get("dayHours").setValue(n),this.day[t].dayHours=n}else this.days.at(t).get("dayHours").setValue(""),this.day[t].dayHours="";e=this.functionsService.sumTime([e,n])}this.totalWeekTime=e,this.journeyForm.get("weekHours").setValue(this.totalWeekTime),this.verifyNightTime()}},{key:"verifyTurnTitle",value:function(){for(var e=0,t=0,n=0;n<this.days.length;n++){var i=this.days.at(n).get("dayTurn");i.length>e&&(e=i.length,t=n)}this.countTurn=e,4==this.step&&(this.currentDay=t),this.day=this.days.value,this.dayTurn=this.turns.value}},{key:"verifyDsr",value:function(e,t){if(e){if(this.journeyType==ute.Flex&&this.days.at(t).get("dayDsr").value)return this.days.at(t).get("dayDsr").setValue(!1),void(this.flexArrayDsrSelected=null);if(this.journeyEspecialModel<hte.CustomHour)for(var n=0;n<this.days.length;n++)this.days.at(n).get("dayDsr").setValue(!1);if(this.journeyEspecialModel==hte.CustomHour)for(var i=7*Math.floor(t/7),o=i+7<this.days.length?i+7:this.days.length,a=i;a<o;a++)this.days.at(a).get("dayDsr").setValue(!1);this.days.at(t).get("dayDsr").setValue(!0),this.flexArrayDsrSelected=t}}},{key:"verifyNightTime",value:function(){var e=[],t="00:00";this.nightTimeTotal="00:00";for(var n=0;n<this.days.length;n++)if(e.push("00:00"),0==this.days.at(n).get("dayOff").value)for(var i=this.days.at(n).get("dayTurn"),o=0;o<i.length;o++){var a=this.functionsService.calcTimeInsideInterval(i.at(o).get("in").value,i.at(o).get("out").value,"22:00","05:00",8==this.journeyEspecialModel),r=this.functionsService.convertNightTime(a);e[n]=this.functionsService.sumTime([e[n],r]),this.nightTimeTotal=this.functionsService.sumTime([r,this.nightTimeTotal]),i.at(o).get("nightTime").setValue(this.functionsService.diffTime([a,r])),t=this.functionsService.sumTime([t,this.functionsService.diffTime([a,r])])}this.nightTimeArray=e,this.totalWeekTimePlusReduced=this.functionsService.sumTime([t,this.totalWeekTime]),e.find((function(e){return"00:00"!=e}))?(this.nightTimeArray=e,this.nightTimeShow=!0):(this.nightTimeArray=[],this.nightTimeShow=!1)}},{key:"verifySaturdayDTime",value:function(){for(var e=0;e<5;e++){var t="00:00",n=this.saturdayDDays.at(e).get("dayTurn");if(this.saturdayDDays.at(e).get("dayHours").setValue(""),this.saturdayDay[e].dayHours="",0==this.saturdayDDays.at(e).get("dayOff").value){for(var i=0;i<n.length;i++)this.journeyEspecialModel>hte.Journey12x36?(n.at(i).get("total").setValue(this.functionsService.diffTime([n.at(i).get("in").value,n.at(i).get("out").value],!0)),t=this.functionsService.sumTime([t,this.functionsService.diffTime([n.at(i).get("in").value,n.at(i).get("out").value],!0)])):(n.at(i).get("total").setValue(this.functionsService.diffTime([n.at(i).get("in").value,n.at(i).get("out").value])),t=this.functionsService.sumTime([t,this.functionsService.diffTime([n.at(i).get("in").value,n.at(i).get("out").value])]));this.saturdayDDays.at(e).get("dayHours").setValue(t),this.saturdayDay[e].dayHours=t}}}},{key:"checkPreAssignedException",value:function(e){this.journeyForm.get({preassigned:"exception",exception:"preassigned"}[e]).setValue(!1),this.journeyForm.get("exception").value&&(this.showModalException=!0)}},{key:"hideModalException",value:function(){this.showModalException=!1}},{key:"setFlexArray",value:function(){for(var e=this.countDay+1;e<=7;e++)this.currentDay=e-1,this.addDay()}},{key:"f",get:function(){return this.flexForm.controls}},{key:"lines",get:function(){return this.f.line}},{key:"createFlexLine",value:function(){return this.formBuilder.group({in:new Wm("00:00",[Jf.required]),dayChangeOfShift:new Wm(this.defaultChangeOfShift,[Jf.required])})}},{key:"addFlexArray",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.lines.push(this.createFlexLine());for(var t=[],n=0;n<5;n++)t.push({name:this.arrayWeekDay[n],value:e});for(var i=5;i<7;i++)t.push({name:this.arrayWeekDay[i],value:!1});this.flexArray.push({hourDay:"00:00",day:t,total:"00:00",dayChangeOfShift:this.defaultChangeOfShift})}},{key:"removeFlexArray",value:function(e){this.lines.removeAt(e),this.flexArray.splice(e,1),this.verifyFlexDayTime()}},{key:"setFlexDay",value:function(e,t){var n=this;this.flexArray.forEach((function(i,o){o==e?(i.day[t].value=!i.day[t].value,i.day[t].value?(n.flexArrayDsrSelect=n.flexArrayDsrSelect.filter((function(e){return e!=t})),n.flexArrayDsrSelected==t&&(n.flexArrayDsrSelected=0)):(n.flexArrayDsrSelect.push(t),n.flexArrayDsrSelect=n.flexArrayDsrSelect.sort((function(e,t){return e>t?1:-1})))):i.day[t].value=!1})),this.verifyFlexDayTime()}},{key:"verifyFlexDayTime",value:function(){var e,t;this.totalWeekTime="00:00",this.flexArrayDsrSelected=null;for(var n=0;n<this.flexArray.length;n++){e=this.lines.at(n).get("in").value,t=this.lines.at(n).get("dayChangeOfShift").value;for(var i=0,o=0;o<7;o++)0==n&&(this.currentDay=o,this.days.at(o).get("dayHours").setValue(""),this.days.at(o).get("dayTurns").setValue(0),this.days.at(o).get("dayOff").setValue(!0),this.days.at(o).get("dayDsr").setValue(!1),this.days.at(o).get("dayChangeOfShift").setValue(t),this.turns.at(0).get("total").setValue("00:00")),1==this.flexArray[n].day[o].value&&(i++,this.currentDay=o,this.days.at(o).get("dayHours").setValue(e),this.days.at(o).get("dayTurns").setValue(1),this.days.at(o).get("dayOff").setValue(!1),this.days.at(o).get("dayDsr").setValue(!1),this.days.at(o).get("dayChangeOfShift").setValue(t),this.turns.at(0).get("total").setValue(e));if(this.journeyFlexModel==fte.Weekly)return void(this.totalWeekTime=this.journeyForm.get("weekHours").value);this.flexArray[n].total=this.functionsService.multiplyTime(e,i),this.totalWeekTime=this.functionsService.sumTime([this.totalWeekTime,this.flexArray[n].total])}this.journeyForm.get("weekHours").setValue(this.totalWeekTime)}},{key:"checkJourneyEditableMsg",value:function(){this.functionsService.openSnackBar('Para editar a escala clique no bot\xe3o "Habilitar edi\xe7\xe3o".')}},{key:"verifyEditable",value:function(){0==this.journeyEditableCollaborators?(this.journeyFormPut.get("begin_date").setValue(this.functionsService.currentDateEN("00/00/0000","min")),this.journeyEditable=!0):this.modalBeginDate=!0}},{key:"confirmEditable",value:function(){this.journeyEditable=!0,this.hideModalBeginDate()}},{key:"hideModalBeginDate",value:function(){this.modalBeginDate=!1}},{key:"validJourney",value:function(){for(var e=0,t=0,n=0,i=0,o=0,a=0;a<this.days.length;a++){this.currentDay=a,1==this.days.at(a).get("dayDsr").value&&n++,1==this.days.at(a).get("dayOff").value&&t++,""==this.days.at(a).get("dayHours").value&&i++,0!=this.days.at(a).get("dayTurns").value&&e++;for(var r=0;r<this.days.at(a).get("dayTurns").value;r++)"00:00"==this.turns.at(r).get("total").value&&o++}if(!0===this.journeyForm.get("saturday_d").value)for(var s=0;s<5;s++){this.currentSaturdayDay=s;for(var l=0;l<this.saturdayDDays.at(s).get("dayTurns").value;l++)"00:00"==this.saturdayDTurns.at(l).get("total").value&&o++}if(0==e)return this.functionsService.openSnackBar("journeyOneTurn"),!1;if("00:00"==this.totalWeekTime)return this.functionsService.openSnackBar("O total de horas da semana n\xe3o pode ser 0 (zero). Favor, verificar."),!1;if(i==this.days.length)return this.functionsService.openSnackBar("A escala deve ter ao menos um dia/turno de trabalho. Favor, verificar."),!1;if(o>0)return this.functionsService.openSnackBar("Os turnos n\xe3o podem ter hor\xe1rios zerados. Favor, verificar."),!1;if(this.journeyEspecialModel>=hte.Journey5x1&&this.journeyEspecialModel<=hte.Journey6x1){if(t!=parseInt(this.journeyEspecialModels[this.journeyEspecialModel-1].value.toString().split("x")[1]))return this.functionsService.openSnackBar("A quantidade de dias n\xe3o est\xe1 de acordo com o modelo selecionado. Favor, verificar."),!1;if(i!=parseInt(this.journeyEspecialModels[this.journeyEspecialModel-1].value.toString().split("x")[1]))return this.functionsService.openSnackBar("A sua escala possui dias com 0 (zero) horas de trabalho. Favor, verificar."),!1}return this.journeyType==ute.Flex&&n==t||0!=n||this.journeyEspecialModel==hte.CustomHour||!(this.journeyEspecialModel<hte.CustomDay||this.journeyEspecialModel==hte.CustomHour||this.journeyEspecialModel==hte.CustomDay&&t>0)||(this.functionsService.openSnackBar("Selecione um dia para ser o DSR."),!1)}},{key:"sendJourney",value:function(){if(this.journeyFlexModel!=fte.Intermittent&&this.journeyFlexModel!=fte.Free){if(this.validJourney()){this.journeyEspecialModel>hte.Journey12x36&&this.journeyEspecialModel<hte.CustomHour&&0==this.updateOn&&(this.currentDay=0,this.journeyForm.get("change_of_shift").setValue(this.turns.at(0).get("out").value));var e=this.journeyEspecialModel==hte.Journey5x1||this.journeyEspecialModel==hte.CustomHour,t=Object.assign(Object.assign({},this.journeyForm.value),{company_id:this.companyId,onlyDays:e});this.postJourney(t)}}else{var n={description:this.journeyForm.get("description").value,change_of_shift:this.journeyForm.get("change_of_shift").value,intermittent:this.journeyFlexModel==fte.Intermittent,free:this.journeyFlexModel==fte.Free};this.postIntermittentJourney(n)}}},{key:"postJourney",value:function(e){var t=this;this.journeyDatabase.postJourney(e,(function(e){e.error||t.router.navigate(["/journey"]).then((function(){return!1}))}))}},{key:"postIntermittentJourney",value:function(e){var t=this;this.journeyDatabase.postJourney(e,(function(e){e.error||t.router.navigate(["/journey"]).then((function(){return!1}))}))}},{key:"nextStep",value:function(e){switch(e){case 1:if(this.journeyType==ute.Invalid)return void this.functionsService.openSnackBar("journeyType");if(!this.checkErrorField("description"))return void this.functionsService.openSnackBar("Defina um nome para essa escala!");this.step=2;break;case 2:if(this.journeyType==ute.Weekly){if(this.journeyWeekModel==dte.Invalid)return void this.functionsService.openSnackBar("journeyModel");this.addTurn()}if(this.journeyType==ute.Flex&&this.journeyFlexModel==fte.Invalid)return void this.functionsService.openSnackBar("journeyModel");if(this.journeyType==ute.Special){if(this.journeyEspecialModel==hte.Invalid)return void this.functionsService.openSnackBar("journeyModel");if(this.journeyEspecialModel<hte.CustomDay&&this.addTurn(),this.journeyEspecialModel==hte.CustomHour)return this.verifyPreviewTime(),void(this.step=4);if(this.journeyEspecialModel>hte.CustomDay)return this.generatePreview(),this.verifyPreviewTime(),void(this.step=4)}if([3,4].includes(this.journeyType))return this.setFlexArray(),void(this.step=4);this.step=3;break;case 3:if("00:00"==this.weekHours)return void this.functionsService.openSnackBar("Os turnos n\xe3o podem estar zerados");this.generatePreview(),this.verifyPreviewTime(),this.step=4,this.verifyTurnTitle();break;case 4:this.sendJourney()}}},{key:"backStep",value:function(e){(1==e||this.updateOn)&&this.router.navigate(["/journey"]).then((function(){})),2==e&&(this.weekForm.reset(),this.journeyWeekModel=0,this.journeyEspecialModel=0,this.journeyFlexModel=0),3==e&&(this.resetJourneyForm(),this.resetFlex()),4==e&&(this.resetJourneyForm(),this.resetFlex(),this.step--),this.step--}},{key:"resetJourneyForm",value:function(){this.days.reset(),this.weekForm.get("inSaturday").setValue("00:00"),this.weekForm.get("outSaturday").setValue("00:00");for(var e=this.days.length;e>=0;e--)this.days.removeAt(e);this.countDay=0,this.countTurn=0,this.currentDay=0,this.weekHours="00:00",this.addDay()}},{key:"resetFlex",value:function(){this.lines.reset();for(var e=this.lines.length;e>=0;e--)this.lines.removeAt(e);this.flexArray=[],this.flexArrayDsrSelect=[5,6],this.flexArrayDsrSelected=null,this.addFlexArray(!0)}},{key:"checkErrorField",value:function(e){return this.journeyForm.get(e).valid?(this.stateFields[e]=Object.assign(Object.assign({},this.stateFields[e]),{class:""}),!0):(this.stateFields[e]=Object.assign(Object.assign({},this.stateFields[e]),{class:"emptyError"}),!1)}},{key:"verifyHour",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.currentDay=n,null==t?this.journeyForm.get(e).setValue(this.validService.validHour(this.journeyForm.get(e).value)):this.turns.at(t).get(e).setValue(this.validService.validHour(this.turns.at(t).get(e).value))}},{key:"verifySaturdayHour",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.currentSaturdayDay=n,this.saturdayDTurns.at(t).get(e).setValue(this.validService.validHour(this.saturdayDTurns.at(t).get(e).value)),this.verifySaturdayDTime()}},{key:"verifyHourWeek",value:function(e){this.weekForm.get(e).setValue(this.validService.validHour(this.weekForm.get(e).value))}},{key:"verifyHourFlex",value:function(e,t){this.lines.at(t).get(e).setValue(this.validService.validHour(this.lines.at(t).get(e).value))}},{key:"verifyFlexWeekHour",value:function(e){this.journeyForm.get(e).setValue(this.validService.validHour(this.journeyForm.get(e).value))}},{key:"checkChangeOfShift",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"week",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;"week"==e?this.days.at(t).get("dayChangeOfShift").setValue(this.validService.validHour(this.days.at(t).get("dayChangeOfShift").value)):(this.days.at(t).get("dayChangeOfShift").setValue(this.validService.validHour(this.days.at(t).get("dayChangeOfShift").value)),this.lines.at(t).get("dayChangeOfShift").setValue(this.validService.validHour(this.lines.at(t).get("dayChangeOfShift").value)))}}])}()).\u0275fac=function(e){return new(e||ote)($r(wp),$r(yM),$r(DN),$r(zP),$r(WO),$r(JO),$r(YP),$r(TN))},ote.\u0275cmp=Ot({type:ote,selectors:[["io-journey-form"]],inputs:{updateOn:"updateOn",journeyId:"journeyId"},decls:18,vars:23,consts:[[1,"formBox",3,"formGroup"],[4,"ngIf"],["class","relativePlace",4,"ngIf"],["class","flex pdgT2",4,"ngIf"],[3,"showModal","hideModal"],[1,"sizeA","fontBold","fontUp","cl-blue","mrgB2"],[1,"sizeC","pdgB2","mrgB2"],[1,"datepicker",3,"labelText","minDate","dateSelectedEN"],[1,"flex","mrgT2","pdgT2"],[1,"btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"titleTop","textTop3"],[1,"minHeightBox"],[1,"mrgB2"],[1,"form-group","inputAnimated"],["id","journeyDescription","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","journeyDescription",1,"form-label","required"],[1,"flex","selectTypeBox"],[1,"btn","center",3,"ngClass"],["size","3x",1,"iconItem","iconSizeF",3,"icon","ngClass"],["autocomplete","off","name","","type","checkbox",1,"hide",3,"click"],[1,"btn","center","mrgL1","mrgR1",3,"ngClass"],[1,"pdgT2","mrgT2","mrgB2"],[1,"sizeC","mrgB2"],[1,"fontBold"],[3,"titleTop","textTop","textTop3"],[1,"minHeightBox","pdgT2"],[1,"selectJourneyWeekBox","flex","top","pdgB1","mrgB2"],[1,"block"],[1,"weekTitle","borderBottom"],[1,"sizeB","fontBold"],[1,"weekSelectBox"],["autocomplete","off","name","dayOfWeek","type","checkbox",1,"hide",3,"click"],["autocomplete","off","name","journeyDay","type","checkbox",1,"hide",3,"click"],["class","saturdaySelect flex start pdgT2",4,"ngIf"],[1,"saturdaySelect","flex","start","pdgT2"],[1,"center","weekForm",3,"formGroup"],[1,"radioBox","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark"],[1,"flex","selectJourneyBox","pdgB1","borderBottom","mrgB2"],[1,"wdFull"],[1,"flex","center","pdgR1"],[1,"flex","center","pdgL1"],[1,"flex","selectJourneyBox"],[1,"flex","mrgB2"],["autocomplete","off","name","5x1","type","checkbox",1,"hide",3,"click"],["autocomplete","off","name","5x2","type","checkbox",1,"hide",3,"click"],["autocomplete","off","name","6x1","type","checkbox",1,"hide",3,"click"],[1,"wdFull","mrgL1"],[1,"flex","end","mrgB2"],["autocomplete","off","name","12x36","type","checkbox",1,"hide",3,"click"],["autocomplete","off","name","24x48","type","checkbox",1,"hide",3,"click"],["autocomplete","off","name","24x72","type","checkbox",1,"hide",3,"click"],[1,"flex","top","selectJourneyBox"],[1,"wdFull","pdgR1"],[1,"wdFull","pdgL1"],[1,"setHourBox"],[3,"titleTop","textTop","textTop3",4,"ngIf"],[1,"listBoxSlideMob","minHeightBox"],[1,"flex","listHeader","listAlign"],["class","flex item",4,"ngFor","ngForOf"],[1,"mrgT2","slideMobItem"],[3,"formArrayName"],[3,"formGroupName"],[1,"flex",3,"formArrayName"],["class","flex setHourInputBox",3,"formGroupName","ngClass",4,"ngFor","ngForOf"],[1,"flex","start","spacer","pdgT2"],["class","flex saturdayTitleBox borderBottom",4,"ngIf"],[1,"flex","mrgT2",3,"ngClass"],["class","flex saturdayTitleBox",4,"ngIf"],["class","flex boxWhite weekTimeBox",4,"ngIf"],[1,"flex","item"],[1,"sizeC","fontBold"],[1,"flex","setHourInputBox",3,"formGroupName","ngClass"],[1,"flex","center","boxWhite"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder","00:00","type","text",1,"center","item",3,"dropSpecialCharacters","formControlName","change"],[1,"flex","saturdayTitleBox","borderBottom"],[1,"flex","saturdayTitleBox"],[1,"flex","center","boxWhite",3,"formGroup"],[1,"flex","boxWhite","weekTimeBox"],["class","sizeB",4,"ngIf"],[1,"sizeB"],[1,"relativePlace"],["class","previewJourneyBox",3,"ngClass",4,"ngIf"],["class","previewJourneyBox flexible",4,"ngIf"],["class","blockPreview",3,"click",4,"ngIf"],[1,"previewJourneyBox",3,"ngClass"],[3,"titleTop","textTop",4,"ngIf"],["class","form-group inputAnimated mrgB1",4,"ngIf"],[1,"minHeightBox","listBoxSlideMob"],[1,"item","sizeC","fontBold"],[1,"flex","start","wdFull"],["class","flex subItem",4,"ngFor","ngForOf"],["class","item sizeC fontBold",4,"ngIf"],["class","item fontBold",4,"ngIf"],[4,"ngFor","ngForOf"],["class","flex start pdgT1 pdgB1 clickPlace addBtn","title","Adicionar dia",3,"click",4,"ngIf"],["class","journeyOptionBox mrgB2",4,"ngIf"],[1,"journeyInfoBox","slideMobItem","pdgT2"],["autocomplete","off","class","center fontBold inputBottom borderBottom","mask","00:00","maxlength","5","placeholder",":","type","hidden",3,"dropSpecialCharacters","formControlName",4,"ngIf"],[1,"sizeC"],["class","flex end nightTimeTotal",4,"ngIf"],[3,"titleTop","textTop"],[1,"form-group","inputAnimated","mrgB1"],["autocomplete","off","id","description2","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","description2",1,"form-label","required"],[1,"flex","subItem"],["class","spacer",4,"ngIf"],[1,"spacer"],[1,"item","fontBold"],[1,"day","boxWhite",3,"formArrayName"],[1,"item","flex","start",3,"formGroupName"],[1,"fontBold","mrgR1","dayNameBox",3,"ngClass"],["class","item",3,"formGroupName",4,"ngIf"],["class","item",4,"ngIf"],[1,"item"],[1,"radioBox","hd1","sizeC"],["type","checkbox",1,"radioBoxInput",3,"formControlName","checked","click"],["checkDay",""],[1,"item",3,"formGroupName"],[1,"flex","start","wdFull",3,"formArrayName"],["class","flex setHourInputBox subItem",3,"formGroupName",4,"ngFor","ngForOf"],["class","flex setHourInputBox subItem",4,"ngIf"],[1,"flex","setHourInputBox","subItem",3,"formGroupName"],[1,"flex","center","relativePlace"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center","pdgT1","pdgB1","time-edit",3,"dropSpecialCharacters","formControlName","change"],["class","intervalSign cl-blue",4,"ngIf"],["size","3x","class","iconItem iconSizeF cl-gray-dark clickPlace","title","Remover Turno",3,"icon","click",4,"ngIf"],[1,"intervalSign","cl-blue"],["size","3x","title","Remover Turno",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],[1,"flex","setHourInputBox","subItem"],["title","Adicionar Turno",1,"flex","center","clickPlace","addTurnBox",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue","fa-rotate-45",3,"icon"],[1,"mrgL1"],[1,"flex","center"],[1,"sizeC","cl-gray"],["title","Adicionar Turno",1,"flex","center","pdgT1","pdgB1","clickPlace","addTurnBox",3,"click"],["onClick","this.select();","autocomplete","off","class","center pdgT1 pdgB1 wdFull time-edit","mask","00:00","maxlength","5","placeholder",":","type","text",3,"dropSpecialCharacters","formControlName","change",4,"ngIf"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center","pdgT1","pdgB1","wdFull","time-edit",3,"dropSpecialCharacters","formControlName","change"],["title","Total de horas noturnas (reduzidas)",1,"sizeC","nightTimeTotal"],["size","3x","class","iconItem iconSizeF cl-gray-dark clickPlace","title","Remover dia",3,"icon","click",4,"ngIf"],["size","3x","title","Remover dia",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],["class","day boxWhite",3,"formArrayName",4,"ngFor","ngForOf"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center","pdgT1","pdgB1",3,"dropSpecialCharacters","formControlName","change"],["class","intervalSign",4,"ngIf"],[1,"intervalSign"],["title","total de horas noturnas",1,"sizeC","nightTimeTotal"],["title","Adicionar dia",1,"flex","start","pdgT1","pdgB1","clickPlace","addBtn",3,"click"],[1,"sizeC","mrgL1"],[1,"journeyOptionBox","mrgB2"],[1,"preassignedCheckBox","flex","start","boxWhite","mrgB1"],[1,"radioBox","shdwDark","hd2","sizeC"],["type","checkbox",1,"radioBoxInput",3,"formControlName","checked","change"],["class","exceptionCheckBox flex start boxWhite mrgB1",4,"ngIf"],["class","saturdayCheckBox flex start boxWhite",4,"ngIf"],[1,"exceptionCheckBox","flex","start","boxWhite","mrgB1"],[1,"saturdayCheckBox","flex","start","boxWhite"],["type","checkbox",1,"radioBoxInput",3,"formControlName","checked"],["autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","hidden",1,"center","fontBold","inputBottom","borderBottom",3,"dropSpecialCharacters","formControlName"],[1,"flex","end","nightTimeTotal"],[1,"previewJourneyBox","flexible"],[1,"minHeightBox","listBoxSlideMob",3,"formGroup"],["class","flex listHeader listAlign borderTop flexDay",4,"ngIf"],["class","pdgB2 mrgB2",4,"ngIf"],[1,"listAlign","pdgB2","mrgT2","mrgB2","flexDays",3,"ngClass","formArrayName"],["class","day boxWhite round5",3,"formGroupName",4,"ngFor","ngForOf"],["class","flex start pdgT1 pdgB1 clickPlace addBtn ","title","Adicionar",3,"click",4,"ngIf"],["class","flex start dsrSelector boxWhite round5",4,"ngIf"],["class","pdgT2 pdgB2 mrgB2",4,"ngIf"],["class","pdgT2 mrgT2 mrgB2",4,"ngIf"],[1,"journeyInfoBox","slideMobItem","pdgT2","mrgT2",3,"formGroup"],["class","sizeC",4,"ngIf"],["autocomplete","off","id","description3","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","description3",1,"form-label","required"],[1,"flex","listHeader","listAlign","borderTop","flexDay"],[1,"item","sizeC","fontBold","center"],[1,"pdgB2","mrgB2"],[1,"day","boxWhite","round5",3,"formGroupName"],["class","item",3,"ngClass",4,"ngIf"],["class","item",3,"formGroup",4,"ngIf"],["class","item center",4,"ngIf"],[1,"item",3,"ngClass"],[1,"fontBold","flexDays","clickPlace","cl-blue"],[1,"item",3,"formGroup"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center",3,"dropSpecialCharacters","formControlName","change"],[1,"item","center"],["class","fontBold flexDays clickPlace",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"fontBold","flexDays","clickPlace",3,"ngClass","click"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text",1,"center","wdFull",3,"dropSpecialCharacters","formControlName","change"],["size","2x","class","iconItem iconSizeF cl-gray-dark clickPlace","title","Remover",3,"icon","click",4,"ngIf"],["size","2x","title","Remover",1,"iconItem","iconSizeF","cl-gray-dark","clickPlace",3,"icon","click"],["title","Adicionar",1,"flex","start","pdgT1","pdgB1","clickPlace","addBtn",3,"click"],[1,"flex","start","dsrSelector","boxWhite","round5"],["class","noDsrMsg",4,"ngIf"],["class","fontBold fontUp clickPlace",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"noDsrMsg"],[1,"fontBold","fontUp","clickPlace",3,"ngClass","click"],[1,"pdgT2","pdgB2","mrgB2"],[1,"blockPreview",3,"click"],[1,"previewJourneyBox"],[1,"flex","center","pgdT2","mrgT2"],[1,"flex","center","pgdT2","mrgT2","sizeC"],[1,"flex","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick",4,"ngIf"]],template:function(e,t){1&e&&(es(0,"div",0),Jr(1,C7,43,15,"div",1),Jr(2,P7,4,3,"div",1),Jr(3,N7,17,11,"div",1),Jr(4,$ee,4,3,"div",2),Jr(5,Qee,7,2,"div",1),Jr(6,Kee,3,11,"div",3),Jr(7,ete,4,8,"div",3),ts(),es(8,"io-modal-default",4),ls("hideModal",(function(){return t.hideModalBeginDate()})),es(9,"h2",5),Gs(10,"Aten\xe7\xe3o!"),ts(),es(11,"p",6),Gs(12,"Esta escala possui funcion\xe1rios vinculados! Selecione o dia de inicio de vig\xeancia desta edi\xe7\xe3o de escala "),ts(),es(13,"io-datepicker",7),ls("dateSelectedEN",(function(e){return t.journeyFormPut.get("begin_date").setValue(e)})),ts(),es(14,"div",8),es(15,"io-btn",9),ls("btnClick",(function(){return t.hideModalBeginDate()})),ts(),es(16,"io-btn",10),ls("btnClick",(function(){return t.confirmEditable()})),ts(),ts(),ts(),es(17,"io-journey-modal-exception-info",4),ls("hideModal",(function(){return t.hideModalException()})),ts()),2&e&&(Zr("formGroup",t.journeyForm),Bo(1),Zr("ngIf",1==t.step),Bo(1),Zr("ngIf",2==t.step),Bo(1),Zr("ngIf",3==t.step),Bo(1),Zr("ngIf",4==t.step&&t.previewEnable),Bo(1),Zr("ngIf",4==t.step&&!t.previewEnable),Bo(1),Zr("ngIf",0==t.updateOn),Bo(1),Zr("ngIf",1==t.updateOn),Bo(1),Zr("showModal",t.modalBeginDate),Bo(5),Zr("labelText","Data Inicial da escala")("minDate",t.changeJourneyMinDate),Bo(2),Zr("moduleName","journey")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","journey")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar Data")("btnTitle","Confirmar Data"),Bo(1),Zr("showModal",t.showModalException))},directives:[Hf,ip,sh,CE,UA,jD,k7,eI,If,bp,Vf,vp,ih,FD,Of,ah,sp,ap,DE,kp],styles:[".minHeightBox[_ngcontent-%COMP%]{margin:0 0 20px}.weekForm[_ngcontent-%COMP%]{padding:20px 0 0;width:300px}.weekHours[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{border-color:#424242;justify-content:center;padding:17px 0 3px}.selectJourneyWeekBox[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%;max-width:50%}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .weekTitle[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{max-width:300px;text-align:center;margin:auto}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .weekSelectBox[_ngcontent-%COMP%]{padding-top:20px}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .weekTitle[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-left:0}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .weekTitle[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-right:0}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .weekSelectBox[_ngcontent-%COMP%]{text-align:right;margin-left:10px}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .saturdaySelect[_ngcontent-%COMP%]{max-width:300px;margin:0 0 0 auto}.selectJourneyBox[_ngcontent-%COMP%]   .wdFull[_ngcontent-%COMP%]{max-width:260px;min-width:0}.selectJourneyBox[_ngcontent-%COMP%]   .wdFull.bigger[_ngcontent-%COMP%]{max-width:300px}.setHourBox[_ngcontent-%COMP%]   .listHeader[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.setHourBox[_ngcontent-%COMP%]   .listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.setHourBox[_ngcontent-%COMP%]   .listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:50%;text-align:center}.setHourBox[_ngcontent-%COMP%]   .listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{width:50%}.setHourBox[_ngcontent-%COMP%]   .boxWhite.center[_ngcontent-%COMP%]{width:49%}.setHourBox[_ngcontent-%COMP%]   .boxWhite[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;padding:11px}.setHourBox[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]{width:100%}.setHourBox[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]:nth-child(2){max-width:49.5%;margin-left:1%}.setHourBox[_ngcontent-%COMP%]   .setHourInputBox.wider[_ngcontent-%COMP%]   .boxWhite[_ngcontent-%COMP%]{width:49.5%}.setHourBox[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{min-height:40px}.setHourBox[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]   .saturdayTitleBox[_ngcontent-%COMP%]{height:40px}.setHourBox[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]   .saturdayTitleBox[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:50%;text-align:center}.setHourBox[_ngcontent-%COMP%]   .saturdayTitleBox[_ngcontent-%COMP%]{width:49.5%}.setHourBox[_ngcontent-%COMP%]   .weekTimeBox[_ngcontent-%COMP%]{max-width:49.5%}.setHourBox[_ngcontent-%COMP%]   .weekTimeBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:50%}.setHourBox[_ngcontent-%COMP%]   .weekTimeBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{padding-left:10px}.setHourBox[_ngcontent-%COMP%]   .weekTimeBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:last-child{text-align:center}.setHourBox[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-block}.setHourBox[_ngcontent-%COMP%]   div.center[_ngcontent-%COMP%]{width:24%}.setHourBox[_ngcontent-%COMP%]:nth-child(2), .setHourBox[_ngcontent-%COMP%]:nth-child(3){padding:20px 0 0;align-items:center}.setHourBox[_ngcontent-%COMP%]:nth-child(2)   label.sizeC[_ngcontent-%COMP%], .setHourBox[_ngcontent-%COMP%]:nth-child(3)   label.sizeC[_ngcontent-%COMP%]{height:32px;display:block}.setHourBox[_ngcontent-%COMP%]   .setShitFlexible[_ngcontent-%COMP%]{padding:20px 0 0;height:77px;margin:0;border-bottom:1px solid}.setHourBox[_ngcontent-%COMP%]   .setShitFlexible[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding-bottom:10px}.setHourBox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-align:center;margin-bottom:0}input.time-edit[_ngcontent-%COMP%]{border-bottom:1px solid var(--cl-gray-dark);margin-bottom:5px;padding-bottom:5px}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:140px;align-items:center}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]{position:relative;width:30px;text-align:right}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]{position:absolute;top:100%;left:50%;transform:translateX(-50%);display:none;width:45px;background:#fff;padding:0 0 5px;box-shadow:0 1px 5px rgba(0,0,0,.08)}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;width:100%;padding:5px 5px 0;cursor:pointer;text-align:center;border-bottom:1px solid #ccc}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{background-color:#ddd}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop.active[_ngcontent-%COMP%]   .turnDrop[_ngcontent-%COMP%]{display:block}.previewJourneyBox[_ngcontent-%COMP%]   .turnBox[_ngcontent-%COMP%]   .turnBoxDrop[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:25px;cursor:pointer}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 10px 10px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:130px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:65px;text-align:center;padding:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .spacer[_ngcontent-%COMP%]{width:20px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:130px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   .dayNameBox[_ngcontent-%COMP%]{min-width:51px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:65px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{width:50%;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{width:100%;max-width:125px;margin-right:15px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]:last-child{margin-right:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%], .previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .setHourInputBox[_ngcontent-%COMP%]   .intervalSign[_ngcontent-%COMP%]{position:absolute;top:1px;right:50%;width:8px;transform:translateX(30px);text-align:right}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]{justify-content:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize;width:auto}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .addTurnBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:5px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .nightTimeTotal[_ngcontent-%COMP%]{margin-top:5px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]{display:flex;align-items:center;margin:0 0 10px;min-width:40px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:130px;margin-right:0;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child.leftText{text-align:left}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-last-child(-n+2)   input[_ngcontent-%COMP%], .previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-last-child(-n+3)   input[_ngcontent-%COMP%]{max-width:65px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .day[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:65px}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6){max-width:65px;text-align:center;padding:0}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5), .previewJourneyBox[_ngcontent-%COMP%]   .listAlign.nightTimeOn[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6){max-width:65px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .journeyOptionBox[_ngcontent-%COMP%]   .exceptionCheckBox[_ngcontent-%COMP%], .previewJourneyBox[_ngcontent-%COMP%]   .journeyOptionBox[_ngcontent-%COMP%]   .preassignedCheckBox[_ngcontent-%COMP%], .previewJourneyBox[_ngcontent-%COMP%]   .journeyOptionBox[_ngcontent-%COMP%]   .saturdayCheckBox[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.week[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]{max-width:200px}.previewJourneyBox.week[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .subItem[_ngcontent-%COMP%]   img.active[_ngcontent-%COMP%]{margin:0 -15px;z-index:1}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 10px 10px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:130px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.listHeader.flexDay[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:65px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:120px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:100%;text-align:left}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   .flexDays[_ngcontent-%COMP%]{min-width:40px;margin-left:10px}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible[_ngcontent-%COMP%]   .listAlign.flexWeek[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;justify-content:flex-end}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]{padding:20px 0 10px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign.listHeader[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:150px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:150px}.previewJourneyBox.flexible.flexLineBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   input[_ngcontent-%COMP%]{max-width:60px;text-align:center}.previewJourneyBox[_ngcontent-%COMP%]   .addBtn[_ngcontent-%COMP%]{max-width:100px}.previewJourneyBox[_ngcontent-%COMP%]   .inputBottom[_ngcontent-%COMP%]{max-width:45px}.previewJourneyBox[_ngcontent-%COMP%]   input.borderless[_ngcontent-%COMP%]{border:none}.dsrSelector[_ngcontent-%COMP%]{padding:0 10px;margin:30px 0 0;font-size:16px}.dsrSelector[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:100%;max-width:31px;margin-left:10px}.dsrSelector[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:first-child{max-width:130px;margin-left:0}.dsrSelector[_ngcontent-%COMP%]   span.noDsrMsg[_ngcontent-%COMP%]{max-width:150px}.blockPreview[_ngcontent-%COMP%]{position:absolute;top:40px;left:0;display:flex;align-items:center;width:100%;height:95%;z-index:1}.blockPreview[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{width:20px;height:50px;margin:0 auto}@media (max-width:550px){.selectJourneyWeekBox[_ngcontent-%COMP%]{display:block;text-align:left}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{max-width:100%;margin:0 0 20px}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .weekSelectBox[_ngcontent-%COMP%]   .weekTitle[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{max-width:100%}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .weekTitle[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-left:auto}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .weekSelectBox[_ngcontent-%COMP%]{text-align:center;margin-left:auto}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .weekTitle[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-right:auto}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child   .weekSelectBox[_ngcontent-%COMP%]{text-align:center;margin-left:auto}.selectJourneyWeekBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .saturdaySelect[_ngcontent-%COMP%]{margin:0 auto}}@media (max-width:480px){.selectTypeBox[_ngcontent-%COMP%]{display:block;text-align:center}.selectTypeBox[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{width:100%;margin:0 auto 10px}.selectJourneyBox[_ngcontent-%COMP%]   .wdFull[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:first-child{margin-right:5px}}@media (max-width:365px){.selectJourneyBox[_ngcontent-%COMP%]   .wdFull[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]:nth-child(4)   .btn[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]:first-child{display:none}}"]}),ote),pte=((ite=function(){return d((function e(){c(this,e)}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||ite)},ite.\u0275cmp=Ot({type:ite,selectors:[["io-journey-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-journey-form"),ts(),ts())},directives:[mte],styles:[""]}),ite),gte=((nte=function(){return d((function e(t,n,i){var o=this;c(this,e),this.activatedRoute=t,this.storageService=n,this.databaseService=i,this.activatedRoute.params.subscribe((function(e){o.journeyId=e.journey_id}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||nte)($r(lx),$r(YP),$r(tT))},nte.\u0275cmp=Ot({type:nte,selectors:[["io-update-journey"]],decls:3,vars:2,consts:[[1,"container"],[1,"main"],[3,"updateOn","journeyId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-journey-form",2),ts(),ts()),2&e&&(Bo(2),Zr("updateOn",!0)("journeyId",t.journeyId))},directives:[mte],styles:[""]}),nte),vte=((tte=function(){return d((function e(t,n,i){c(this,e),this.router=t,this.databaseService=n,this.titleService=i,this.titleService.setTitle("Logout"),this.databaseService.logout()}),[{key:"ngOnInit",value:function(){this.databaseService.logout()}}])}()).\u0275fac=function(e){return new(e||tte)($r(yM),$r(tT),$r(hL))},tte.\u0275cmp=Ot({type:tte,selectors:[["io-login-page-logout"]],decls:0,vars:0,template:function(e,t){},encapsulation:2}),tte),yte=function(){return["/form"]},bte=((ste=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.loginDatabase=n,this.storageService=i,this.functionsService=o,this.router=a,this.validService=r,this.emailError="",this.stateFields={email:{class:""}},this.passwordResetForm=this.formBuilder.group({email:new Wm("",[Jf.required])})}),[{key:"validForm",value:function(){return this.checkErrorField("email")?!!this.validService.validEmail(this.passwordResetForm.get("email").value)||void this.functionsService.openSnackBar("invalidEmail"):(this.functionsService.openSnackBar("emptyField"),!1)}},{key:"passwordReset",value:function(){var e=this;this.validForm()&&this.loginDatabase.getPasswordReset(this.passwordResetForm.controls.email.value,(function(t){t.error?e.functionsService.openSnackBar("E-mail n\xe3o encontrado e/ou dados invalidos"):t.data.success&&e.functionsService.openSnackBar("Enviadas as instru\xe7\xf5es de redefini\xe7\xe3o de senha para seu e-mail.","default",15e3)}))}},{key:"checkErrorField",value:function(e){return this.passwordResetForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}}])}()).\u0275fac=function(e){return new(e||ste)($r(wp),$r($0),$r(YP),$r(zP),$r(yM),$r(TN))},ste.\u0275cmp=Ot({type:ste,selectors:[["io-login-page-password-reset"]],decls:21,vars:10,consts:[[1,"main","firstAccess"],[1,"bg-firstAccess"],["src","assets/img/bg-login.jpg","alt","bg"],[1,"container"],[1,"topBlock"],["href","https://iopoint.com.br/","title","iopoint.com.br",1,"logoBox","clickPlace"],["src","assets/img/iopoint-branca-ponto.png","alt","iopoint tecnologia",1,"img-logo"],[1,"middleBlock","login","shdw1"],[1,"contentBlock","login"],[1,"formBox",3,"formGroup"],[1,"form-group","inputAnimated"],["autocomplete","off","id","email","placeholder","","required","","type","text",3,"formControlName"],["for","email",1,"form-label"],[1,"sizeC","pdgB1","mrgT1","mrgB2"],[1,"flex"],[1,"btnWide",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"registerText","mrgT2"],[1,"sizeD","linkDefault","clickPlace",3,"routerLink"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"img",2),ts(),es(3,"div",3),es(4,"div",4),es(5,"a",5),ns(6,"img",6),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"div",9),es(10,"div",10),ns(11,"input",11),es(12,"label",12),Gs(13,"E-mail"),ts(),ts(),es(14,"p",13),Gs(15,"Informe o e-mail utilizado no cadastro"),ts(),es(16,"div",14),es(17,"io-btn",15),ls("btnClick",(function(){return t.passwordReset()})),ts(),ts(),es(18,"div",16),es(19,"span",17),Gs(20,"Retornar para o login"),ts(),ts(),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(9),Zr("formGroup",t.passwordResetForm),Bo(2),Zr("formControlName","email"),Bo(6),Zr("moduleName","login")("action","")("btnColor","btn-blue-bg")("btnText","Recuperar Senha")("btnTitle","Recuperar")("useValidation",!1),Bo(2),Zr("routerLink",mc(9,yte)))},directives:[Hf,ip,If,bp,Vf,vp,jD,bM],styles:[""]}),ste),_te=((rte=function(){return d((function e(t,n,i,o,a,r,s,l){var u=this;c(this,e),this.activatedRoute=t,this.formBuilder=n,this.router=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.loginDatabase=s,this.storageService=l,this.passwordType=!0,this.stateFields={password:{class:""},passwordConfirm:{class:""}},this.activatedRoute.params.subscribe((function(e){u.hash=e.hash})),this.passwordRecoverForm=this.formBuilder.group({password:new Wm("",[Jf.required]),passwordConfirm:new Wm("",[Jf.required])})}),[{key:"validForm",value:function(){return this.checkErrorField("password")&&this.checkErrorField("passwordConfirm")?this.passwordRecoverForm.controls.password.value==this.passwordRecoverForm.controls.passwordConfirm.value||(this.functionsService.openSnackBar("As senhas n\xe3o correspondem","error"),!1):(this.functionsService.openSnackBar("emptyField"),!1)}},{key:"recoverPassword",value:function(){var e=this;this.validForm()&&this.loginDatabase.putPasswordRecover({hash:this.hash,password:this.passwordRecoverForm.controls.password.value},(function(t){t.error?e.functionsService.openSnackBar("Erro ao redefinir senha."):e.router.navigate(["/login"]).then((function(){return!1}))}))}},{key:"changeType",value:function(){this.passwordType=!this.passwordType}},{key:"checkErrorField",value:function(e){return this.passwordRecoverForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}}])}()).\u0275fac=function(e){return new(e||rte)($r(lx),$r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r($0),$r(YP))},rte.\u0275cmp=Ot({type:rte,selectors:[["io-login-page-password-recover"]],decls:28,vars:19,consts:[[1,"main","firstAccess"],[1,"bg-firstAccess"],["src","assets/img/bg-login.jpg","alt","bg"],[1,"container"],[1,"topBlock"],["href","https://iopoint.com.br/","title","iopoint.com.br",1,"logoBox","clickPlace"],["src","assets/img/iopoint-branca-ponto.png","alt","logo-Iopoint",1,"img-logo"],[1,"middleBlock","login","shdw1"],[1,"contentBlock","login"],[1,"formBox"],[3,"formGroup"],[1,"sizeA","mrgB1","center"],[1,"sizeD","center"],[1,"inputBox"],[1,"form-group","inputAnimated"],["id","password","placeholder","","required","",3,"formControlName","type","keyup"],["for","password",1,"form-label"],["size","3x","title","Mostrar senha",1,"iconItem","iconSizeG","clickPlace","iconPasswordField",3,"icon","ngClass","click"],["id","passwordConfirm","placeholder","","required","",3,"formControlName","type","keyup"],["for","passwordConfirm",1,"form-label"],[1,"flex"],[1,"btnWide",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"img",2),ts(),es(3,"div",3),es(4,"div",4),es(5,"a",5),ns(6,"img",6),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"div",9),es(10,"form",10),es(11,"div"),es(12,"h3",11),Gs(13,"Redefini\xe7\xe3o de senha"),ts(),es(14,"p",12),Gs(15,"Dica: Uma senha boa, bem elaborada, \xe9 aquela que \xe9 dif\xedcil de ser descoberta (forte) e f\xe1cil de ser lembrada."),ts(),ts(),es(16,"div",13),es(17,"div",14),es(18,"input",15),ls("keyup",(function(){return t.checkErrorField("password")})),ts(),es(19,"label",16),Gs(20,"Nova senha"),ts(),es(21,"fa-icon",17),ls("click",(function(){return t.changeType()})),ts(),ts(),es(22,"div",14),es(23,"input",18),ls("keyup",(function(){return t.checkErrorField("passwordConfirm")})),ts(),es(24,"label",19),Gs(25,"Confirme a senha"),ts(),ts(),ts(),es(26,"div",20),es(27,"io-btn",21),ls("btnClick",(function(){return t.recoverPassword()})),ts(),ts(),ts(),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(10),Zr("formGroup",t.passwordRecoverForm),Bo(8),Es(t.stateFields.password.class),Zr("formControlName","password")("type",t.passwordType?"password":"text"),Bo(3),Zr("icon",t.iconRegularService.faEye)("ngClass",t.passwordType?"cl-gray-dark":"cl-blue"),Bo(2),Es(t.stateFields.passwordConfirm.class),Zr("formControlName","passwordConfirm")("type",t.passwordType?"password":"text"),Bo(4),Zr("moduleName","login")("action","")("btnColor","btn-blue-bg")("btnText","Redefinir Senha")("btnTitle","Redefinir Senha")("useValidation",!1))},directives:[ep,Hf,ip,If,bp,Vf,vp,FD,ih,jD],styles:[""]}),rte),kte=((ate=function(){return d((function e(t){var n=this;c(this,e),this.companyDatabase=t,this.showFilter=!1,this.hideFilter=new Mc,this.selectedFilters=new Mc,this.departmentList=[],this.departmentListSelected=[],this.unitList=[],this.unitListSelected=[],this.resetFilterEmitter=new Mc,this.companyDatabase.getSelectList({listRequired:JSON.stringify(["department","unit"])},(function(e){e.error||(n.departmentList=e.data.department,n.unitList=e.data.unit)}))}),[{key:"ngOnChanges",value:function(){}},{key:"resetFilter",value:function(){this.departmentListSelected=[],this.unitListSelected=[],this.resetFilterEmitter.emit()}},{key:"setDepartmentList",value:function(e){var t=this;this.departmentListSelected=[],e.forEach((function(e){t.departmentListSelected.push(e)}))}},{key:"setUnitList",value:function(e){var t=this;this.unitListSelected=[],e.forEach((function(e){t.unitListSelected.push(e)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){this.selectedFilters.emit({departmentIdList:this.departmentListSelected,unitIdList:this.unitListSelected})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||ate)($r(Mz))},ate.\u0275cmp=Ot({type:ate,selectors:[["io-modal-filter-department-unit"]],inputs:{showFilter:"showFilter"},outputs:{hideFilter:"hideFilter",selectedFilters:"selectedFilters"},features:[dl],decls:13,vars:17,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"io-multiselect",5),ls("listSelectedId",(function(e){return t.setDepartmentList(e)})),ts(),ns(8,"div",4),es(9,"io-multiselect",5),ls("listSelectedId",(function(e){return t.setUnitList(e)})),ts(),ns(10,"div",4),ts(),es(11,"div",6),es(12,"io-btn",7),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(7),Zr("title","Departamento")("list",t.departmentList)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("title","Unidade")("list",t.unitList)("listItemIdField","id")("listItemNameField","name")("reset",t.resetFilterEmitter),Bo(3),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}.listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:600px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:auto;padding:0 15px;margin-bottom:10px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox.hd1[_ngcontent-%COMP%]{height:auto}"]}),ate),Cte=["adBanner"],wte=((cte=function(){return d((function e(){c(this,e),this.timer=1e3,this.adblockDetected=new Mc}),[{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout((function(t){return e.adblockDetected.emit(0===e.adBanner.nativeElement.offsetHeight)}),this.timer)}}])}()).\u0275fac=function(e){return new(e||cte)},cte.\u0275cmp=Ot({type:cte,selectors:[["ng-adblock-detect"]],viewQuery:function(e,t){var n;1&e&&Rc(Cte,!0),2&e&&Bc(n=Yc())&&(t.adBanner=n.first)},inputs:{timer:"timer"},outputs:{adblockDetected:"adblockDetected"},decls:3,vars:0,consts:[["id","wrapfabtest"],[1,"adBanner"],["adBanner",""]],template:function(e,t){1&e&&(es(0,"div",0),ns(1,"div",1,2),ts())},styles:[".adBanner[_ngcontent-%COMP%] {\n    background-color: transparent;\n    height: 1px;\n    width: 1px;\n}"]}),cte),xte=((lte=d((function e(){c(this,e)}))).\u0275mod=Ft({type:lte}),lte.\u0275inj=Pe({factory:function(e){return new(e||lte)},imports:[[]]}),lte);function Mte(e,t){if(1&e){var n=as();es(0,"fa-icon",38),ls("click",(function(){return mn(n),fs().downloadMirrorCollaboratorList()})),ts()}2&e&&Zr("icon",fs().iconRegularService.faFilePdf)}function Ste(e,t){if(1&e){var n=as();es(0,"fa-icon",39),ls("click",(function(){return mn(n),fs().showModalConfirmation()})),ts()}2&e&&Zr("icon",fs().iconSolidService.faShareSquare)}function Pte(e,t){if(1&e){var n=as();es(0,"fa-icon",40),ls("click",(function(){return mn(n),fs().showModalRequestSignature("")})),ts()}2&e&&Zr("icon",fs().iconSolidService.faPen)}function Tte(e,t){if(1&e){var n=as();es(0,"label",41),es(1,"input",42),ls("change",(function(){return mn(n),fs().selectAll()})),ts(),ns(2,"span",43),ts()}2&e&&(Zr("formGroup",fs().searchForm),Bo(1),Zr("formControlName","allSelected"))}function Ote(e,t){if(1&e&&(es(0,"option",15),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.description),Bo(1),Qs("",n.description," ")}}function Lte(e,t){if(1&e&&(es(0,"span",57),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Dte(e,t){1&e&&ns(0,"fa-icon",58),2&e&&Zr("icon",fs(2).iconSolidService.faCheck)}function Ite(e,t){1&e&&ns(0,"fa-icon",59),2&e&&Zr("icon",fs(2).iconSolidService.faExclamation)}function Fte(e,t){if(1&e){var n=as();es(0,"fa-icon",60),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalRequestSignature(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faPen)}function Ate(e,t){if(1&e){var n=as();es(0,"li",44),es(1,"span",45),es(2,"label",46),es(3,"input",47),ls("change",(function(){mn(n);var e=t.$implicit;return fs().addCollaboratorId(e.id)})),ts(),ns(4,"span",43),ts(),ts(),es(5,"span",22),es(6,"label",48),Jr(7,Lte,2,1,"span",49),es(8,"span",50),Gs(9),ts(),Jr(10,Dte,1,1,"fa-icon",51),Jr(11,Ite,1,1,"fa-icon",52),ts(),ts(),es(12,"span",45),Gs(13),ts(),es(14,"span",53),Gs(15),ts(),es(16,"span",53),Gs(17),ts(),es(18,"span",22),es(19,"fa-icon",54),ls("click",(function(){mn(n);var e=t.$implicit;return fs().downloadMirrorCollaborator(e.id,!0)})),ts(),es(20,"fa-icon",55),ls("click",(function(){mn(n);var e=t.$implicit;return fs().downloadMirrorCollaborator(e.id)})),ts(),Jr(21,Fte,1,1,"fa-icon",56),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),ys("id","coll",i.id,""),Zr("checked",o.collaboratorSelectedIdList.indexOf(i.id)>=0),Bo(3),ys("for","coll",i.id,""),Bo(1),Zr("ngIf",o.userSupport||o.isDev),Bo(2),$s(i.name),Bo(1),Zr("ngIf",!1===i.has_pending_signature),Bo(1),Zr("ngIf",!0===i.has_pending_signature),Bo(2),$s(i.journey_description),Bo(2),$s(null!=i.dismissal_date?"Inativo":"Ativo"),Bo(2),Qs("",null===i.has_pending_signature?"N\xe3o requer assinatura":!1===i.has_pending_signature?"Assinado":"Assinatura pendente"," "),Bo(2),Zr("icon",o.iconRegularService.faEye),Bo(1),Zr("icon",o.iconSolidService.faDownload),Bo(1),Zr("ngIf",null===i.has_pending_signature)}}function Ete(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Bte(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum funcion\xe1rio encontrado."),ts())}function Nte(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 pontos registrados no per\xedodo."),ts())}function Rte(e,t){if(1&e&&(es(0,"li"),Jr(1,Ete,2,0,"p",33),Jr(2,Bte,2,0,"p",33),Jr(3,Nte,2,0,"p",33),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.mirrorList.length>0&&n.mirrorList[0].loading),Bo(1),Zr("ngIf",n.mirrorList.length>0&&!n.mirrorList[0].loading&&!n.mirrorList[0].select&&0==n.mirrorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.mirrorList.length)}}var jte,zte,Vte=((zte=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.mirrorDatabase=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.journeyDatabase=r,this.storageService=s,this.titleService=l,this.unitDatabase=u,this.adblock=!1,this.beginDate=null,this.bankTimeRangeEndDate="",this.collaboratorSelectedIdList=[],this.collaboratorSelected="",this.collaboratorSelectedIdListDownload=[],this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.endDate=null,this.filterCollaboratorStatusList=["1"],this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterContractSelected=[],this.journeyFields=[],this.mirrorList=[{loading:!0}],this.mirrorListFilteredActive=[],this.mirrorListFilteredSignature=[],this.mirrorListFilteredJourney=[],this.mirrorListFilteredSearch=[],this.modalConfirmation=!1,this.modalMirrorWarningBankTimeRange=!1,this.modalRequestSignature=!1,this.modalFilter=!1,this.onlyView=!1,this.unitFields=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.userSupport="31"==this.storageService.decodeFromLocalStorage("userId"),this.isDev="4"==this.storageService.decodeFromLocalStorage("userId"),this.titleService.setTitle("Espelho"),this.mirrorForm=this.formBuilder.group({all_collaborators:new Wm(!1,[Jf.required]),collaborators:this.formBuilder.array([])}),this.mirrorTypeForm=this.formBuilder.group({mirrorType:new Wm("",[Jf.required])}),this.searchForm=this.formBuilder.group({allSelected:new Wm(!1,[Jf.required]),collaboratorStatus:new Wm("all",[Jf.required]),collaboratorSignature:new Wm("all",[Jf.required]),journey:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])}),this.unitDatabase.getUnitList((function(e){e.error||(d.unitFields=e.data.unitList)})),this.journeyDatabase.getJourneyList((function(e){e.error||(d.journeyFields=e.data.journey)}))}),[{key:"setAdblockTrue",value:function(e){this.adblock=e}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"setFilter",value:function(e){this.filterCollaboratorStatusList=e.collaboratorStatusList,this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterContractSelected=e.contractIdList,this.getList()}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"setBeginDate",value:function(e){this.beginDate=e,this.getList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.getList()}},{key:"getList",value:function(){var e=this;null!=this.beginDate&&null!=this.endDate&&(clearTimeout(this.interval),this.interval=setTimeout((function(){e.getMirrorList()}),200))}},{key:"getParams",value:function(){return{beginDate:this.beginDate,endDate:this.endDate,collaboratorStatusList:JSON.stringify(this.filterCollaboratorStatusList),departmentIdList:JSON.stringify(this.filterDepartmentSelected),regimeIdList:JSON.stringify(this.filterRegimeSelected),unitIdList:JSON.stringify(this.filterUnitSelected),contractIdList:JSON.stringify(this.filterContractSelected)}}},{key:"getMirrorList",value:function(){var e=this;this.mirrorList=[{loading:!0}],this.mirrorListFilteredSearch=[],this.mirrorDatabase.getMirrorList(this.getParams(),(function(t){t.error||(e.mirrorList=t.data.listPointControl,e.bankTimeRangeEndDate=t.data.bankTimeRangeEndDate,e.filterCollaboratorJourney())}))}},{key:"filterCollaboratorJourney",value:function(){var e=this.searchForm.controls.journey.value;this.mirrorListFilteredJourney=this.mirrorList.filter((function(t){return t.journey_description==e})),"all"==e&&(this.mirrorListFilteredJourney=this.mirrorList),this.filterSignatureStatus()}},{key:"filterSignatureStatus",value:function(){var e=this.searchForm.controls.collaboratorSignature.value;"all"==e&&(this.mirrorListFilteredSignature=this.mirrorListFilteredJourney),"signed"==e&&(this.mirrorListFilteredSignature=this.mirrorListFilteredJourney.filter((function(e){return 0==e.has_pending_signature}))),"pending"==e&&(this.mirrorListFilteredSignature=this.mirrorListFilteredJourney.filter((function(e){return 1==e.has_pending_signature}))),"not_requested"==e&&(this.mirrorListFilteredSignature=this.mirrorListFilteredJourney.filter((function(e){return null==e.has_pending_signature}))),this.filterCollaboratorActive()}},{key:"filterCollaboratorActive",value:function(){var e=this.searchForm.controls.collaboratorStatus.value;"all"==e&&(this.mirrorListFilteredActive=this.mirrorListFilteredSignature),"active"==e&&(this.mirrorListFilteredActive=this.mirrorListFilteredSignature.filter((function(e){return null==e.dismissal_date}))),"inactive"==e&&(this.mirrorListFilteredActive=this.mirrorListFilteredSignature.filter((function(e){return null!=e.dismissal_date}))),this.filterMirrorSearch(this.searchForm.controls.search.value)}},{key:"filterMirrorSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.mirrorListFilteredSearch=this.functionsService.arrayFilterWords(this.mirrorListFilteredActive,e,"name"),this.searchForm.get("allSelected").setValue(!1),this.selectAll()}},{key:"addCollaboratorId",value:function(e){this.collaboratorSelectedIdList.find((function(t){return t==e}))?this.collaboratorSelectedIdList=this.collaboratorSelectedIdList.filter((function(t){return t!=e})):this.collaboratorSelectedIdList.push(e),this.validAllSelected()}},{key:"validAllSelected",value:function(){this.searchForm.get("allSelected").setValue(this.collaboratorSelectedIdList.length==this.mirrorList.length)}},{key:"selectAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.collaboratorSelectedIdList=[],this.mirrorListFilteredSearch.forEach((function(t){e.collaboratorSelectedIdList.push(t.id)}))):this.collaboratorSelectedIdList=[]}},{key:"downloadMirrorCollaborator",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.getMirror([e],t)}},{key:"downloadMirrorCollaboratorList",value:function(){var e=[];this.collaboratorSelectedIdList.forEach((function(t){e.push(t)})),this.getMirror(e)}},{key:"requestSignature",value:function(){this.mirrorTypeForm.controls.mirrorType.setValue("request_signature");var e=[];this.collaboratorSelectedIdList.forEach((function(t){e.push(t)})),this.getMirror(e)}},{key:"getMirror",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.collaboratorSelectedIdListDownload=e,this.onlyView=t,null==this.bankTimeRangeEndDate||""==this.bankTimeRangeEndDate?this.downloadMirror():this.showModalMirrorWarningBankTimeRange()}},{key:"showModalMirrorWarningBankTimeRange",value:function(){this.modalMirrorWarningBankTimeRange=!0}},{key:"showModalRequestSignature",value:function(e){e&&this.collaboratorSelectedIdList.push(e),this.modalRequestSignature=!0}},{key:"downloadMirror",value:function(){var e=this,t=this.collaboratorSelectedIdListDownload,n=this.onlyView;if(this.adblock&&1==n)this.functionsService.openSnackBar("adBlockViewDoc");else if(null!=t&&0!=t.length){var i={company_id:this.companyId,all_collaborators:"0",preview:"0",pdf:"1",beginDate:this.beginDate,endDate:this.endDate,collaborator_id:JSON.stringify(t)};if("send_email"==this.mirrorTypeForm.controls.mirrorType.value&&(i.pdf=0,i=Object.assign(Object.assign({},i),{send_email:1})),"abstract_hours"==this.mirrorTypeForm.controls.mirrorType.value&&(i.pdf=0,i=Object.assign(Object.assign({},i),{abstract_hours:1})),"send_email"!=this.mirrorTypeForm.controls.mirrorType.value)return"request_signature"==this.mirrorTypeForm.controls.mirrorType.value?(i=Object.assign(Object.assign({},i),{request_signature:1}),void this.mirrorDatabase.getMirror(i,(function(t){if(!t.error)return e.collaboratorSelectedIdList=[],e.modalRequestSignature=!1,e.getList(),e.mirrorTypeForm.controls.mirrorType.setValue(""),e.functionsService.openSnackBar("Assinatura solicitada com sucesso")}))):void this.mirrorDatabase.getMirror(i,(function(t){t.error||(e.functionsService.downloadFile(t.data,"pdf","Espelho Ponto",n),e.hideModalMirrorWarningBankTimeRange())}));this.mirrorDatabase.getMirror(i,(function(t){t.error||(e.modalConfirmation=!1)}))}else this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio")}},{key:"hideModalMirrorWarningBankTimeRange",value:function(){this.modalMirrorWarningBankTimeRange=!1}},{key:"hideModalRequestSignature",value:function(){this.collaboratorSelectedIdList=[],this.modalRequestSignature=!1}},{key:"showModalConfirmation",value:function(){this.modalConfirmation=!0}},{key:"hideModalConfirmation",value:function(){this.modalConfirmation=!1}},{key:"getDateBR",value:function(e){return e?this.functionsService.dateENtoBR(e):""}}])}()).\u0275fac=function(e){return new(e||zte)($r(wp),$r(dQ),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(hL),$r(FN))},zte.\u0275cmp=Ot({type:zte,selectors:[["io-mirror-page-list"]],decls:68,vars:47,consts:[[1,"container"],[1,"main","listBoxfour"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[3,"showCollaboratorStatusList","selectedFilters"],[1,"flex","mrgB2"],[1,"flex","start",3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"wdFull"],[1,"wdMax50"],[3,"onKeyPress"],[1,"flex","start","relativePlace"],[1,"downloadMirrorBox","flex","end"],[1,"form-group","inputAnimated","clickPlace",3,"formGroup"],["id","mirrorType","required","",1,"fontBold","clickPlace",3,"formControlName"],["selected","",3,"value"],[3,"value"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["size","3x","class","iconItem iconSizeG cl-blue mrgL1 clickPlace","title","Gerar espelho dos funcion\xe1rios listados",3,"icon","click",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-blue mrgL1 clickPlace","title","Enviar espelho dos funcion\xe1rios listados",3,"icon","click",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-blue mrgL1 clickPlace","title","Solicitar assinatura para os funcion\xe1rios selecionados",3,"icon","click",4,"ngIf"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","spcDesk","listAlign","listHeader"],[1,"item"],["class","radioBox hd1 sizeC",3,"formGroup",4,"ngIf"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","journey","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],["id","collaboratorStatus","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["id","collaboratorSignature","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showFilter","selectedFilters","hideFilter"],[3,"showModal","title","text","btnTextConfirm","confirmClick","hideModal"],[3,"showModal","title","text","btnTextConfirm","hideModal","confirmClick"],["timer","100",3,"adblockDetected"],["size","3x","title","Gerar espelho dos funcion\xe1rios listados",1,"iconItem","iconSizeG","cl-blue","mrgL1","clickPlace",3,"icon","click"],["size","3x","title","Enviar espelho dos funcion\xe1rios listados",1,"iconItem","iconSizeG","cl-blue","mrgL1","clickPlace",3,"icon","click"],["size","3x","title","Solicitar assinatura para os funcion\xe1rios selecionados",1,"iconItem","iconSizeG","cl-blue","mrgL1","clickPlace",3,"icon","click"],[1,"radioBox","hd1","sizeC",3,"formGroup"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"checked","id","change"],[1,"clickPlace",3,"for"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"sizeC"],["class","iconItem iconSizeG cl-blue mrgL1","title","Espelho ponto assinado",3,"icon",4,"ngIf"],["class","iconItem iconSizeA cl-yellow mrgL1","title","Assinatura de espelho ponto pendente",3,"icon",4,"ngIf"],[1,"item","sizeC","pdgL1"],["size","3x","title","Visualizar espelho Ponto",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],["title","Baixar espelho Ponto",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"],["class","iconItem iconSizeG cl-gray-dark clickPlace mrgL1","title","Solicitar assinatura",3,"icon","click",4,"ngIf"],[1,"sizeB","internal","mrgR1"],["title","Espelho ponto assinado",1,"iconItem","iconSizeG","cl-blue","mrgL1",3,"icon"],["title","Assinatura de espelho ponto pendente",1,"iconItem","iconSizeA","cl-yellow","mrgL1",3,"icon"],["title","Solicitar assinatura",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilter(e)})),ts(),ts(),es(5,"div",5),es(6,"io-interval-selector",6),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ns(7,"div",7),ts(),es(8,"div",8),es(9,"io-search-line",9),ls("onKeyPress",(function(e){return t.filterMirrorSearch(e)})),ts(),ts(),es(10,"div",10),es(11,"div",11),es(12,"div",12),es(13,"select",13),es(14,"option",14),Gs(15,"Baixar Espelho"),ts(),es(16,"option",15),Gs(17,"Enviar Espelho (email)"),ts(),es(18,"option",15),Gs(19,"Relat\xf3rio de horas"),ts(),es(20,"option",15),Gs(21,"Solicitar assinatura"),ts(),ts(),ns(22,"fa-icon",16),ts(),Jr(23,Mte,1,1,"fa-icon",17),Jr(24,Ste,1,1,"fa-icon",18),Jr(25,Pte,1,1,"fa-icon",19),ts(),ts(),es(26,"div",20),es(27,"div",21),es(28,"div",22),Jr(29,Tte,3,2,"label",23),ts(),es(30,"h3",24),Gs(31,"Funcion\xe1rios"),ts(),es(32,"div",25),es(33,"select",26),ls("change",(function(){return t.filterCollaboratorJourney()})),es(34,"option",14),Gs(35,"Escala"),ts(),Jr(36,Ote,2,2,"option",27),ts(),ns(37,"fa-icon",28),ts(),es(38,"div",25),es(39,"select",29),ls("change",(function(){return t.filterCollaboratorActive()})),es(40,"option",14),Gs(41,"Todos"),ts(),es(42,"option",14),Gs(43,"Ativos"),ts(),es(44,"option",14),Gs(45,"Inativos"),ts(),ts(),ns(46,"fa-icon",28),ts(),es(47,"div",25),es(48,"select",30),ls("change",(function(){return t.filterSignatureStatus()})),es(49,"option",14),Gs(50,"Todos"),ts(),es(51,"option",14),Gs(52,"Assinado"),ts(),es(53,"option",14),Gs(54,"Assinatura pendente"),ts(),es(55,"option",14),Gs(56,"Assinatura n\xe3o requerida"),ts(),ts(),ns(57,"fa-icon",28),ts(),es(58,"h3",24),Gs(59,"A\xe7\xe3o"),ts(),ts(),es(60,"ul",31),Jr(61,Ate,22,13,"li",32),Jr(62,Rte,4,3,"li",33),ts(),ts(),ts(),ts(),es(63,"io-modal-filter-department-unit",34),ls("selectedFilters",(function(e){return t.setFilter(e)}))("hideFilter",(function(){return t.hideModalFilter()})),ts(),es(64,"io-modal-confirm",35),ls("confirmClick",(function(){return t.downloadMirrorCollaboratorList()}))("hideModal",(function(){return t.hideModalConfirmation()})),ts(),es(65,"io-modal-confirm",35),ls("confirmClick",(function(){return t.requestSignature()}))("hideModal",(function(){return t.hideModalRequestSignature()})),ts(),es(66,"io-modal-confirm",36),ls("hideModal",(function(){return t.hideModalMirrorWarningBankTimeRange()}))("confirmClick",(function(){return t.downloadMirror()})),ts(),es(67,"ng-adblock-detect",37),ls("adblockDetected",(function(e){return t.setAdblockTrue(e)})),ts()),2&e&&(Bo(3),Zr("moduleName","mirror")("titleTop","Espelho de ponto"),Bo(1),Zr("showCollaboratorStatusList",!0),Bo(2),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(6),Zr("formGroup",t.mirrorTypeForm),Bo(1),Zr("formControlName","mirrorType"),Bo(1),Zr("value",""),Bo(2),Zr("value","send_email"),Bo(2),Zr("value","abstract_hours"),Bo(2),Zr("value","request_signature"),Bo(2),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("ngIf","send_email"!=t.mirrorTypeForm.controls.mirrorType.value&&"request_signature"!=t.mirrorTypeForm.controls.mirrorType.value),Bo(1),Zr("ngIf","send_email"==t.mirrorTypeForm.controls.mirrorType.value),Bo(1),Zr("ngIf","request_signature"==t.mirrorTypeForm.controls.mirrorType.value),Bo(1),Zr("formGroup",t.searchForm),Bo(3),Zr("ngIf",t.mirrorList.length>0),Bo(4),Zr("formControlName","journey"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.journeyFields),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(2),Zr("formControlName","collaboratorStatus"),Bo(1),Zr("value","all"),Bo(2),Zr("value","active"),Bo(2),Zr("value","inactive"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(2),Zr("formControlName","collaboratorSignature"),Bo(1),Zr("value","all"),Bo(2),Zr("value","signed"),Bo(2),Zr("value","pending"),Bo(2),Zr("value","not_requested"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.mirrorListFilteredSearch),Bo(1),Zr("ngIf",0==t.mirrorListFilteredSearch.length),Bo(1),Zr("showFilter",t.modalFilter),Bo(1),Zr("showModal",t.modalConfirmation)("title","Enviar espelho ponto por email")("text","Deseja enviar o espelho ponto para o e-mail de todos os funcion\xe1rios listado atualmente?")("btnTextConfirm","Enviar"),Bo(1),Zr("showModal",t.modalRequestSignature)("title","Solicitar a assinatura do espelho ponto para os funcion\xe1rios selecionados?")("text","Ao solicitar a assinatura, o sistema gerar\xe1 um fechamento para esse periodo, inviabilizando qualquer altera\xe7\xe3o nos pontos destes funcion\xe1rios")("btnTextConfirm","Solicitar"),Bo(1),Zr("showModal",t.modalMirrorWarningBankTimeRange)("title","Fim da vig\xeancia do banco horas")("text","O per\xedodo selecionado inclui um fim de vig\xeancia do banco de horas no dia "+t.getDateBR(t.bankTimeRangeEndDate)+". O espelho ponto ser\xe1 gerado at\xe9 essa data.")("btnTextConfirm","Gerar"))},directives:[eI,qV,ZA,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,sh,ah,kte,UB,wte,Of],styles:["io-search-line[_ngcontent-%COMP%]{width:100%}.downloadMirrorBox[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;width:auto}.downloadMirrorBox[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{min-width:170px;padding:1px 0 2px;margin:0}.downloadMirrorBox[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{top:0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:2%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:43%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}@media (max-width:450px){.downloadMirrorBox[_ngcontent-%COMP%]{right:auto;bottom:45px;width:100%}}"]}),zte),Hte=((jte=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deletNews",value:function(e,t){this.databaseService.delete("/news/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getNews",value:function(e,t){this.databaseService.get("/news/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getNewsList",value:function(e){this.databaseService.get("/news",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postNews",value:function(e,t){this.databaseService.post("/news",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||jte)(ut(tT))},jte.\u0275prov=Se({token:jte,factory:jte.\u0275fac,providedIn:"root"}),jte);function Yte(e,t){if(1&e){var n=as();es(0,"img",13),ls("error",(function(){return mn(n),fs().$implicit.image=null})),ts()}if(2&e){var i=fs().$implicit;Zr("src",fs().currentDatabaseUrl+"/storage/news/"+i.image,mo)}}var qte=function(e){return{newsId:e}};function Ute(e,t){if(1&e&&(es(0,"div",7),es(1,"div",8),Jr(2,Yte,1,1,"img",9),es(3,"span",10),Gs(4),ts(),ts(),es(5,"h2",11),Gs(6),ts(),es(7,"h3",12),Gs(8),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(1),Zr("routerLink","/news-open")("state",pc(8,qte,n.id)),Bo(1),Zr("ngIf",null!=n.image),Bo(2),$s(n.type),Bo(2),Ks("",n.title," - ",n.version,""),Bo(2),Ks("",i.functionsService.getDayName(n.date)," - ",n.date.split("-").reverse().join("/"),"")}}function Wte(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Jte(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma novidade/atualiza\xe7\xe3o encontrada."),ts())}function Gte(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 novidade/atualiza\xe7\xe3o cadastrada."),ts())}function $te(e,t){if(1&e&&(es(0,"div",14),Jr(1,Wte,2,0,"p",15),Jr(2,Jte,2,0,"p",15),Jr(3,Gte,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.newsList.length>0&&n.newsList[0].loading),Bo(1),Zr("ngIf",n.newsList.length>0&&!n.newsList[0].loading&&0==n.newsListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.newsList.length)}}var Qte,Kte=((Qte=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.newsDatabase=s,this.storageService=l,this.titleService=u,this.currentDatabaseUrl=this.databaseService.currentDatabaseUrl(),this.newsList=[{loading:!0}],this.newsListFilteredSearch=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.titleService.setTitle("Novidades e atualiza\xe7\xf5es"),this.newsDatabase.getNewsList((function(e){e.error||(d.newsList=e.data.newsList,d.newsListFilteredSearch=d.newsList)}))}),[{key:"ngOnInit",value:function(){}},{key:"filterNewsSearch",value:function(e){this.newsListFilteredSearch=this.functionsService.arrayFilterWords(this.newsList,e,"title")}}])}()).\u0275fac=function(e){return new(e||Qte)($r(wp),$r(yM),$r(tT),$r(zP),$r(WO),$r(JO),$r(Hte),$r(YP),$r(hL))},Qte.\u0275cmp=Ot({type:Qte,selectors:[["io-news-page-list"]],decls:7,vars:7,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","textTop","showBtn","btnDataUrl"],[3,"onKeyPress"],[1,"cardBox","pdgT2"],["class","card",4,"ngFor","ngForOf"],["class","pdg2",4,"ngIf"],[1,"card"],[1,"cardImgBox","center","shdwHover","bg-gray-light","clickPlace","mrgB2",3,"routerLink","state"],[3,"src","error",4,"ngIf"],[1,"typeCard","sizeC","bg-white","round2"],[1,"sizeA","fontCap","fontBold","mrgB1"],[1,"sizeC"],[3,"src","error"],[1,"pdg2"],[4,"ngIf"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterNewsSearch(e)})),ts(),es(4,"div",4),Jr(5,Ute,9,10,"div",5),Jr(6,$te,4,3,"div",6),ts(),ts(),ts()),2&e&&(Bo(2),Zr("moduleName","news")("titleTop","Novidades e atualiza\xe7\xf5es")("textTop","Aqui s\xe3o listadas as ultimas atualiza\xe7\xe3oes e novidades do sistema")("showBtn","31"==t.userId||"4"==t.userId)("btnDataUrl","31"==t.userId||"4"==t.userId?"news-register":""),Bo(3),Zr("ngForOf",t.newsListFilteredSearch),Bo(1),Zr("ngIf",0==t.newsListFilteredSearch.length))},directives:[eI,oE,ah,sh,bM],styles:[".card[_ngcontent-%COMP%]{display:inline-block;width:300px;margin:0 20px 30px}.card[_ngcontent-%COMP%]   .cardImgBox[_ngcontent-%COMP%]{position:relative;height:168px}.card[_ngcontent-%COMP%]   .cardImgBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:100%}.card[_ngcontent-%COMP%]   .cardImgBox[_ngcontent-%COMP%]   .typeCard[_ngcontent-%COMP%]{position:absolute;left:10px;bottom:10px;padding:2px 5px}.card[_ngcontent-%COMP%]   .cardBottom[_ngcontent-%COMP%]{margin-top:5px}"]}),Qte),Zte=function(e){return[e]};function Xte(e,t){if(1&e){var n=as();es(0,"div",4),es(1,"div",5),es(2,"div",6),es(3,"img",7),ls("error",(function(){return mn(n),fs().resetNewsImg()})),ts(),ts(),es(4,"div",8),es(5,"div",9),es(6,"span",10),Gs(7),ts(),ts(),es(8,"h3",11),Gs(9),ts(),es(10,"h3",11),Gs(11),ts(),es(12,"h3",12),Gs(13,"Visualizar"),ts(),ns(14,"div",13),ns(15,"div",13),ns(16,"div",13),es(17,"div",14),es(18,"img",15),ls("error",(function(){return mn(n),fs().resetUserImg()})),ts(),es(19,"span",16),Gs(20),ts(),ts(),ts(),ts(),ns(21,"div",13),es(22,"div",17),ns(23,"div",18),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("src",i.newsImageUrl,mo),Bo(4),$s(i.newsData.type),Bo(2),Ks("",i.functionsService.getDayName(i.newsData.date)," - ",i.newsData.date.split("-").reverse().join("/"),""),Bo(2),Qs("Vers\xe3o - ",i.newsData.version,""),Bo(1),Zr("routerLink",pc(9,Zte,"/"+i.newsData.url)),Bo(6),Zr("src",i.userImageUrl,mo),Bo(2),$s(i.newsData.userName),Bo(3),Zr("innerHTML",i.newsData.details,fo)}}function ene(e,t){1&e&&(es(0,"div",4),es(1,"div",19),ns(2,"div",20),es(3,"div",8),es(4,"h2",21),Gs(5,"Carregando..."),ts(),ts(),ts(),ts())}var tne,nne=((tne=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.newsDatabase=s,this.storageService=l,this.titleService=u,this.newsId="",this.newsData={},this.newsPreview=!1,this.newsImageUrl="assets/img/photo-user.png",this.userId=this.storageService.decodeFromLocalStorage("userId"),this.userImageUrl="assets/img/photo-user.png",this.titleService.setTitle("Novidade");var h=this.router.getCurrentNavigation();h.extras.state?this.newsId=h.extras.state.newsId:this.router.navigate(["/news"]).then((function(){return!1})),this.newsDatabase.getNews(this.newsId,(function(e){e.error||(d.titleService.setTitle(e.data.news.title),d.userImageUrl=d.databaseService.currentDatabaseUrl()+"/storage/user_"+e.data.news.userId+"/"+e.data.news.userImage,d.newsImageUrl=d.databaseService.currentDatabaseUrl()+"/storage/news/"+e.data.news.image,d.newsData=e.data.news,d.newsPreview=!0)}))}),[{key:"resetNewsImg",value:function(){this.newsImageUrl="assets/img/photo-user.png"}},{key:"resetUserImg",value:function(){this.userImageUrl="assets/img/photo-user.png"}},{key:"deleteNews",value:function(){var e=this;this.newsDatabase.deletNews(this.newsId,(function(t){t.error||e.router.navigate(["/news"]).then((function(){return!1}))}))}}])}()).\u0275fac=function(e){return new(e||tne)($r(wp),$r(yM),$r(tT),$r(zP),$r(WO),$r(JO),$r(Hte),$r(YP),$r(hL))},tne.\u0275cmp=Ot({type:tne,selectors:[["io-news-page-open"]],decls:5,vars:6,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],["class","newsBox",4,"ngIf"],[1,"newsBox"],[1,"newsBoxTop","flexDesk","fullHeight","mrgB2"],[1,"newsImgBox","center","bg-gray-light"],[3,"src","error"],[1,"newsDataBox"],[1,"mrgB2"],[1,"typeCard","sizeB","bg-blue","cl-white","round2"],[1,"sizeC","mrgB2"],[1,"sizeD","cl-blue","mrgB2","clickPlace",3,"routerLink"],[1,"pdgB2","mrgB2"],[1,"flex","start","newsUserBox"],["alt","",1,"imgBorder",3,"src","error"],[1,"size","mrgL1"],[1,"newsTextBox"],[1,"sizeC",3,"innerHTML"],[1,"newsBoxTop","mrgB2"],[1,"newsImgBox"],[1,"sizeA","fontCap","fontBold","mrgB1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.deleteNews()})),ts(),Jr(3,Xte,24,11,"div",3),Jr(4,ene,6,0,"div",3),ts(),ts()),2&e&&(Bo(2),Zr("moduleName","news")("titleTop",t.newsData.title)("showBtn","31"==t.userId||"4"==t.userId)("btnDataText","Excluir"),Bo(1),Zr("ngIf",t.newsPreview),Bo(1),Zr("ngIf",!t.newsPreview))},directives:[eI,sh,bM],styles:[".newsBox[_ngcontent-%COMP%]   .newsBoxTop[_ngcontent-%COMP%]   .newsImgBox[_ngcontent-%COMP%]{width:512px;max-width:50%;max-height:288px}.newsBox[_ngcontent-%COMP%]   .newsBoxTop[_ngcontent-%COMP%]   .newsImgBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:512px;max-height:100%}.newsBox[_ngcontent-%COMP%]   .newsBoxTop[_ngcontent-%COMP%]   .newsDataBox[_ngcontent-%COMP%]{width:100%;max-width:50%;padding:0 20px 20px}.newsBox[_ngcontent-%COMP%]   .newsBoxTop[_ngcontent-%COMP%]   .newsDataBox[_ngcontent-%COMP%]   .typeCard[_ngcontent-%COMP%]{display:inline-block;padding:5px}.newsBox[_ngcontent-%COMP%]   .newsBoxTop[_ngcontent-%COMP%]   .newsDataBox[_ngcontent-%COMP%]   .cardImgBox[_ngcontent-%COMP%]{position:relative;height:180px;text-align:center;background-color:var(--cl-gray-light)}.newsBox[_ngcontent-%COMP%]   .newsBoxTop[_ngcontent-%COMP%]   .newsDataBox[_ngcontent-%COMP%]   .newsUserBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:30px}"]}),tne);l("3hpD");var ine=l("+z1p");function one(e,t,n,i){return new(n||(n=Promise))((function(o,a){function r(e){try{l(i.next(e))}catch(Dwe){a(Dwe)}}function s(e){try{l(i.throw(e))}catch(Dwe){a(Dwe)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;var ane=function(){return h5.a.Date.now()},rne=/\s/,sne=/^\s+/,lne=/^[-+]0x[0-9a-f]+$/i,cne=/^0b[01]+$/i,une=/^0o[0-7]+$/i,dne=parseInt,hne=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||W5(e)&&"[object Symbol]"==_5(e)}(e))return NaN;if(k5(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=k5(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,function(e){for(var t=e.length;t--&&rne.test(e.charAt(t)););return t}(n)+1).replace(sne,""):n;var i=cne.test(e);return i||une.test(e)?dne(e.slice(2),i?2:8):lne.test(e)?NaN:+e},fne=Math.max,mne=Math.min,pne=Function.prototype.toString,gne=Object.prototype.hasOwnProperty,vne=pne.call(Object);function yne(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,n=[e],i=new Set;n.length>0;){var a=n.shift();if(!(i.has(a)||bne(a)||t.has(a)))if(i.add(a),a[Symbol.iterator])try{var r,s=o(a);try{for(s.s();!(r=s.n()).done;){var l=r.value;n.push(l)}}catch(u){s.e(u)}finally{s.f()}}catch(u){}else for(var c in a)"defaultValue"!==c&&n.push(a[c])}return i}function bne(e){var t=Object.prototype.toString.call(e),n=typeof e;return"number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==e||e instanceof EventTarget||e instanceof Event}var _ne=function(e){function n(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,n),(t=f(this,n,[i]))._editor=null,t._throttledSave=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return k5(void 0)&&(i="leading"in void 0?!!(void 0).leading:i,o="trailing"in void 0?!!(void 0).trailing:o),function(e,t,n){var i,o,a,r,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,a=o;return i=o=void 0,c=t,r=e.apply(a,n)}function m(e){return c=e,s=setTimeout(g,t),u?f(e):r}function p(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function g(){var e=ane();if(p(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?mne(n,a-(e-c)):n}(e))}function v(e){return s=void 0,h&&i?f(e):(i=o=void 0,r)}function y(){var e=ane(),n=p(e);if(i=arguments,o=this,l=e,n){if(void 0===s)return m(l);if(d)return clearTimeout(s),s=setTimeout(g,t),f(l)}return void 0===s&&(s=setTimeout(g,t)),r}return t=hne(t)||0,k5(n)&&(u=!!n.leading,a=(d="maxWait"in n)?fne(hne(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=o=s=void 0},y.flush=function(){return void 0===s?r:v(ane())},y}(e,t,{leading:i,maxWait:t,trailing:o})}(t._save.bind(m(t)),"number"==typeof i.saveInterval?i.saveInterval:5e3),t._creator=function(t,n){return e.create(t,n)},t._destructor=function(e){return e.destroy()},t}return p(n,e),d(n,[{key:"editor",get:function(){return this._editor}},{key:"_item",get:function(){return this._editor}},{key:"_restart",value:function(){var e=this;return Promise.resolve().then((function(){return e.state="initializing",e._fire("stateChange"),e._destroy()})).catch((function(e){console.error("An error happened during the editor destroying.",e)})).then((function(){if("string"==typeof e._elementOrData)return e.create(e._data,e._config,e._config.context);var t=Object.assign({},e._config,{initialData:e._data});return e.create(e._elementOrData,t,t.context)})).then((function(){e._fire("restart")}))}},{key:"create",value:function(){var e=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._elementOrData,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._config,a=arguments.length>2?arguments[2]:void 0;return Promise.resolve().then((function(){return t(_(n.prototype),"_startErrorHandling",e).call(e),e._elementOrData=i,e._config=e._cloneEditorConfiguration(o)||{},e._config.context=a,e._creator(i,e._config)})).then((function(t){e._editor=t,t.model.document.on("change:data",e._throttledSave),e._lastDocumentVersion=t.model.document.version,e._data=e._getData(),e.state="ready",e._fire("stateChange")}))}},{key:"destroy",value:function(){var e=this;return Promise.resolve().then((function(){return e.state="destroyed",e._fire("stateChange"),t(_(n.prototype),"destroy",e).call(e),e._destroy()}))}},{key:"_destroy",value:function(){var e=this;return Promise.resolve().then((function(){e._stopErrorHandling(),e._throttledSave.flush();var t=e._editor;return e._editor=null,e._destructor(t)}))}},{key:"_save",value:function(){var e=this._editor.model.document.version;if(e!==this._lastDocumentVersion)try{this._data=this._getData(),this._lastDocumentVersion=e}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}},{key:"_setExcludedProperties",value:function(e){this._excludedProps=e}},{key:"_getData",value:function(){var e,t={},n=o(this._editor.model.document.getRootNames());try{for(n.s();!(e=n.n()).done;){var i=e.value;t[i]=this._editor.data.get({rootName:i})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"_isErrorComingFromThisItem",value:function(e){return function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(e===t&&"object"==typeof(n=e)&&null!==n)return!0;var a,r=yne(e,i),s=yne(t,i),l=o(r);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(s.has(c))return!0}}catch(u){l.e(u)}finally{l.f()}return!1}(this._editor,e.context,this._excludedProps)}},{key:"_cloneEditorConfiguration",value:function(e){return function(e,t){return e8(e,5,t="function"==typeof t?t:void 0)}(e,(function(e,t){return function(e){return W5(e)&&1===e.nodeType&&!function(e){if(!W5(e)||"[object Object]"!=_5(e))return!1;var t=M6(e);if(null===t)return!0;var n=gne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&pne.call(n)==vne}(e)}(e)||"context"===t?e:void 0}))}}])}(function(){return d((function e(t){var n=this;if(c(this,e),this.crashes=[],this.state="initializing",this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._now=Date.now,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=function(e){var t=e.error||e.reason;t instanceof Error&&n._handleError(t,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}),[{key:"setCreator",value:function(e){this._creator=e}},{key:"setDestructor",value:function(e){this._destructor=e}},{key:"destroy",value:function(){this._stopErrorHandling(),this._listeners={}}},{key:"on",value:function(e,t){this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t)}},{key:"off",value:function(e,t){this._listeners[e]=this._listeners[e].filter((function(e){return e!==t}))}},{key:"_fire",value:function(e){for(var t=this._listeners[e]||[],n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var r,s=o(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;l.apply(this,[null].concat(i))}}catch(c){s.e(c)}finally{s.f()}}},{key:"_startErrorHandling",value:function(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}},{key:"_stopErrorHandling",value:function(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}},{key:"_handleError",value:function(e,t){if(this._shouldReactToError(e)){this.crashes.push({message:e.message,stack:e.stack,filename:t.filename,lineno:t.lineno,colno:t.colno,date:this._now()});var n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:e,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}},{key:"_shouldReactToError",value:function(e){return e.is&&e.is("CKEditorError")&&null!=e.context&&"ready"===this.state&&this._isErrorComingFromThisItem(e)}},{key:"_shouldRestart",value:function(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}])}());function kne(e,t){}var Cne,wne,xne,Mne,Sne,Pne=new Array(256).fill(0).map((function(e,t){return("0"+t.toString(16)).slice(-2)})),Tne=((Sne=function(){return d((function e(t,n){var i,o,a,r;c(this,e),this.config={},this.data="",this.tagName="div",this.ready=new Mc,this.change=new Mc,this.blur=new Mc,this.focus=new Mc,this.error=new Mc,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=(i=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0,a=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,"e"+Pne[i>>0&255]+Pne[i>>8&255]+Pne[i>>16&255]+Pne[i>>24&255]+Pne[o>>0&255]+Pne[o>>8&255]+Pne[o>>16&255]+Pne[o>>24&255]+Pne[a>>0&255]+Pne[a>>8&255]+Pne[a>>16&255]+Pne[a>>24&255]+Pne[r>>0&255]+Pne[r>>8&255]+Pne[r>>16&255]+Pne[r>>24&255]),this.ngZone=n,this.elementRef=t}),[{key:"disabled",get:function(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled},set:function(e){this.setDisabledState(e)}},{key:"editorInstance",get:function(){var e=this.editorWatchdog;return this.watchdog&&(e=this.watchdog._watchdogs.get(this.id)),e?e.editor:null}},{key:"ngAfterViewInit",value:function(){this.attachToWatchdog()}},{key:"ngOnDestroy",value:function(){return one(this,void 0,void 0,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.watchdog){e.next=5;break}return e.next=3,this.watchdog.remove(this.id);case 3:e.next=10;break;case 5:if(e.t0=this.editorWatchdog&&this.editorWatchdog.editor,!e.t0){e.next=10;break}return e.next=9,this.editorWatchdog.destroy();case 9:this.editorWatchdog=void 0;case 10:case"end":return e.stop()}}),e,this)})))}},{key:"writeValue",value:function(e){var t=this;null===e&&(e=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.setData(e),this.isEditorSettingData=!1):(this.data=e,this.ready.pipe(UC()).subscribe((function(e){e.setData(t.data)})))}},{key:"registerOnChange",value:function(e){this.cvaOnChange=e}},{key:"registerOnTouched",value:function(e){this.cvaOnTouched=e}},{key:"setDisabledState",value:function(e){this.editorInstance&&(this.editorInstance.isReadOnly=e),this.initiallyDisabled=e}},{key:"attachToWatchdog",value:function(){var e=this,t=function(t,n){return one(e,void 0,void 0,a().mark((function e(){var i=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.ngZone.runOutsideAngular((function(){return one(i,void 0,void 0,a().mark((function e(){var i,o=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.elementRef.nativeElement.appendChild(t),e.next=3,this.editor.create(t,n);case 3:return i=e.sent,e.abrupt("return",(this.initiallyDisabled&&(i.isReadOnly=this.initiallyDisabled),this.ngZone.run((function(){o.ready.emit(i)})),this.setUpEditorEvents(i),i));case 5:case"end":return e.stop()}}),e,this)})))})));case 1:case"end":return e.stop()}}),e,this)})))},n=function(t){return one(e,void 0,void 0,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.destroy();case 2:this.elementRef.nativeElement.removeChild(this.editorElement);case 3:case"end":return e.stop()}}),e,this)})))},i=function(){e.ngZone.run((function(){e.error.emit()}))},o=document.createElement(this.tagName),r=this.getConfig();if(this.editorElement=o,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:t,destructor:n,sourceElementOrData:o,config:r}),this.watchdog.on("itemError",(function(t,n){n.itemId===e.id&&i()}));else{var s=new _ne(this.editor);s.setCreator(t),s.setDestructor(n),s.on("error",i),this.editorWatchdog=s,this.editorWatchdog.create(o,r)}}},{key:"getConfig",value:function(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");var e=Object.assign({},this.config),t=this.config.initialData||this.data;return t&&(e.initialData=t),e}},{key:"setUpEditorEvents",value:function(e){var t=this,n=e.editing.view.document;e.model.document.on("change:data",(function(n){t.ngZone.run((function(){if(t.cvaOnChange&&!t.isEditorSettingData){var i=e.getData();t.cvaOnChange(i)}t.change.emit({event:n,editor:e})}))})),n.on("focus",(function(n){t.ngZone.run((function(){t.focus.emit({event:n,editor:e})}))})),n.on("blur",(function(n){t.ngZone.run((function(){t.cvaOnTouched&&t.cvaOnTouched(),t.blur.emit({event:n,editor:e})}))}))}}])}()).\u0275fac=function(e){return new(e||Sne)($r(Ml),$r(gu))},Sne.\u0275cmp=Ot({type:Sne,selectors:[["ckeditor"]],inputs:{config:"config",data:"data",tagName:"tagName",disabled:"disabled",editor:"editor",watchdog:"watchdog"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[kl([{provide:Pf,useExisting:je((function(){return Sne})),multi:!0}])],decls:1,vars:0,template:function(e,t){1&e&&Jr(0,kne,0,0,"ng-template")},encapsulation:2}),Sne),One=((Mne=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Mne}),Mne.\u0275inj=Pe({factory:function(e){return new(e||Mne)},imports:[[xp,Ph]]}),Mne),Lne=((xne=function(){return d((function e(){c(this,e),this.editorData=new Mc,this.editor=ine,this.editoConfig={toolbar:{},placeholder:"Digite o texto aqui",heading:{options:[{model:"Titulo 1",view:"h2",title:"T\xedtulo 1",class:"sizeA"},{model:"T\xedtulo 2",view:"h2",title:"T\xedtulo 2",class:"sizeB"},{model:"T\xedtulo 3",view:"p",title:"Texto 1",class:"sizeC"},{model:"T\xedtulo 4",view:"p",title:"Texto 2",class:"sizeD"}]},language:{ui:"pt-br",content:"pt-br"}}}),[{key:"ngOnInit",value:function(){}},{key:"onChange",value:function(e){var t=e.editor.getData();this.editorData.emit(t)}}])}()).\u0275fac=function(e){return new(e||xne)},xne.\u0275cmp=Ot({type:xne,selectors:[["io-editor"]],outputs:{editorData:"editorData"},decls:1,vars:2,consts:[[1,"editor",3,"editor","config","change"]],template:function(e,t){1&e&&(es(0,"ckeditor",0),ls("change",(function(e){return t.onChange(e)})),ts()),2&e&&Zr("editor",t.editor)("config",t.editoConfig)},directives:[Tne],styles:[".editor[_ngcontent-%COMP%]{width:100%}"]}),xne),Dne=((wne=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.storageService=i,this.newsDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.validService=l,this.newsId=null,this.file=null,this.previewUrl="/assets/img/photo-user.png",this.updateOn=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.stateFields={title:{class:""},date:{class:""},image:{class:""},version:{class:""},details:{class:""},url:{class:""},type:{class:""}},this.newsForm=this.formBuilder.group({title:new Wm(null,[Jf.required]),date:new Wm(null,[Jf.required]),image:new Wm(null,[Jf.required]),version:new Wm(null,[Jf.required]),details:new Wm(null,[Jf.required]),url:new Wm(null,[Jf.required]),type:new Wm(null,[Jf.required])})}),[{key:"ngOnInit",value:function(){"31"!=this.userId&&"4"!=this.userId&&this.router.navigate(["/news"]).then((function(){return!1})),this.newsId&&(this.updateOn=!0,this.newsDatabase.getNews(this.newsId,(function(e){})))}},{key:"checkErrorField",value:function(e){return this.newsForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"setEditorData",value:function(e){this.newsForm.controls.details.setValue(e)}},{key:"resetUrlImg",value:function(){this.previewUrl="/assets/img/photo-user.png"}},{key:"handleFile",value:function(e){this.file=e,this.previewImg()}},{key:"previewImg",value:function(){var e=this,t=new FileReader;t.onload=function(t){return e.previewUrl=t.target.result},t.readAsDataURL(this.file)}},{key:"sendNews",value:function(){var e=this;if(null!=this.file){var t=new FormData;t.append("newsData",JSON.stringify(this.newsForm.value)),t.append("avatar",this.file),this.newsDatabase.postNews(t,(function(t){t.error||e.router.navigate(["/news"]).then((function(){return!1}))}))}else this.functionsService.openSnackBar("\xc9 necess\xe1rio anexar uma imagem")}},{key:"verifyDate",value:function(e){this.newsForm.controls[e].value&&this.newsForm.controls[e].setValue(this.validService.validDate(this.newsForm.controls[e].value))}}])}()).\u0275fac=function(e){return new(e||wne)($r(wp),$r(yM),$r(YP),$r(Hte),$r(zP),$r(WO),$r(JO),$r(TN))},wne.\u0275cmp=Ot({type:wne,selectors:[["io-news-form"]],inputs:{newsId:"newsId"},decls:35,vars:31,consts:[[3,"formGroup"],[1,"minHeightBox","pdgB2","mrgB2"],[1,"newFormBox","mrgB2"],[1,"newsInputBox"],[1,"flex","newsInputLine"],[1,"form-group","inputAnimated"],["autocomplete","off","id","title","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","title",1,"form-label","requierd"],[1,"datepicker","required","inputAnimated",3,"labelText","dateSelectedEN"],["autocomplete","off","id","type","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","type",1,"form-label","required"],["autocomplete","off","id","version","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","version",1,"form-label","required"],["autocomplete","off","id","url","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","url",1,"form-label","required"],[1,"uploadImgBox","bg-gray-light"],["type","file","accept","image/*",3,"change"],["alt","collaboratorImg",3,"src","error"],[1,"detailHover","anmtd2"],[1,"editorBox"],[3,"editorData"],[1,"flex"],[1,"btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation","useValidation"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div"),es(2,"div",1),es(3,"div",2),es(4,"div",3),es(5,"div",4),es(6,"div",5),es(7,"input",6),ls("keyup",(function(){return t.checkErrorField("title")})),ts(),es(8,"label",7),Gs(9,"Titulo"),ts(),ts(),ts(),es(10,"div",4),es(11,"io-datepicker",8),ls("dateSelectedEN",(function(e){return t.newsForm.controls.date.setValue(e)})),ts(),es(12,"div",5),es(13,"input",9),ls("keyup",(function(){return t.checkErrorField("type")})),ts(),es(14,"label",10),Gs(15,"Tipo"),ts(),ts(),ts(),es(16,"div",4),es(17,"div",5),es(18,"input",11),ls("keyup",(function(){return t.checkErrorField("version")})),ts(),es(19,"label",12),Gs(20,"Vers\xe3o"),ts(),ts(),es(21,"div",5),es(22,"input",13),ls("keyup",(function(){return t.checkErrorField("url")})),ts(),es(23,"label",14),Gs(24,"URL"),ts(),ts(),ts(),ts(),es(25,"div",15),es(26,"input",16),ls("change",(function(e){return t.handleFile(e.target.files[0])})),ts(),es(27,"img",17),ls("error",(function(){return t.resetUrlImg()})),ts(),es(28,"span",18),Gs(29,"+"),ts(),ts(),ts(),es(30,"div",19),es(31,"io-editor",20),ls("editorData",(function(e){return t.setEditorData(e)})),ts(),ts(),ts(),es(32,"div",21),ns(33,"io-btn",22),es(34,"io-btn",23),ls("btnClick",(function(){return t.sendNews()})),ts(),ts(),ts(),ts()),2&e&&(Zr("formGroup",t.newsForm),Bo(7),Es(t.stateFields.title.class),Zr("formControlName","title"),Bo(4),Zr("labelText","Data"),Bo(2),Es(t.stateFields.type.class),Zr("formControlName","type"),Bo(5),Es(t.stateFields.version.class),Zr("formControlName","version"),Bo(4),Es(t.stateFields.url.class),Zr("formControlName","url"),Bo(5),Zr("src",t.previewUrl,mo),Bo(6),Zr("moduleName","news")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("urlNavigation","news")("useValidation",!1),Bo(1),Zr("moduleName","news")("action",t.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",t.updateOn?"Salvar":"Cadastrar")("btnTitle",t.updateOn?"Salvar":"Cadastrar"))},directives:[Hf,ip,If,bp,Vf,vp,UA,Lne,jD],styles:[".newFormBox[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-between}.newFormBox[_ngcontent-%COMP%]   .newsInputBox[_ngcontent-%COMP%]{width:100%;max-width:500px;padding:30px 0 0}.newFormBox[_ngcontent-%COMP%]   .newsInputBox[_ngcontent-%COMP%]   .newsInputLine[_ngcontent-%COMP%]   .inputAnimated[_ngcontent-%COMP%]{width:100%;max-width:240px;margin:0 5px 20px}.newFormBox[_ngcontent-%COMP%]   .newsInputBox[_ngcontent-%COMP%]   .newsInputLine[_ngcontent-%COMP%]:first-child   .inputAnimated[_ngcontent-%COMP%]{max-width:490px}.newFormBox[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]{width:100%;max-width:512px;height:288px;margin:0 0 5px;border-radius:0}.newFormBox[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:100%;max-height:100%}.newFormBox[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]   .detailHover[_ngcontent-%COMP%]{border-radius:0}.newFormBox[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]:hover   .detailHover[_ngcontent-%COMP%]{opacity:1}"]}),wne),Ine=((Cne=function(){return d((function e(){c(this,e)}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Cne)},Cne.\u0275cmp=Ot({type:Cne,selectors:[["io-news-page-register"]],decls:4,vars:1,consts:[[1,"container"],[1,"main"],[3,"titleTop"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),ns(3,"io-news-form"),ts(),ts()),2&e&&(Bo(2),Zr("titleTop","Cadastro de novidades e atualiza\xe7\xf5es"))},directives:[eI,Dne],styles:[""]}),Cne);function Fne(e,t){if(1&e&&(es(0,"span",11),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),$s(n.total)}}var Ane=function(e){return[e]};function Ene(e,t){if(1&e&&(es(0,"div",6),es(1,"h2",7),Gs(2),ts(),Jr(3,Fne,2,1,"span",8),es(4,"div",9),ns(5,"fa-icon",10),ts(),ts()),2&e){var n=t.$implicit,i=fs();Zr("routerLink",pc(4,Ane,"/notification-"+n.url)),Bo(2),$s(n.name),Bo(1),Zr("ngIf",n.total>0),Bo(2),Zr("icon",i.iconSolidService.faChevronRight)}}var Bne,Nne=((Bne=function(){return d((function e(t,n,i,o,a,r){var s=this;c(this,e),this.router=t,this.functionsService=n,this.notificationDatabase=i,this.iconSolidService=o,this.permissionService=a,this.titleService=r,this.notificationTypeList=[{total:0,module:"absence",name:"Aus\xeancias",url:"absence-not-read"},{total:0,module:"point",name:"Desconsidera\xe7\xe3o de pontos recusadas",url:"point-disregard-recused"},{total:0,module:"absence",name:"Documentos expirando",url:"expiring-documents"},{total:0,module:"absence",name:"Inconsist\xeancias de horas",url:"inconsistency-comp-time"},{total:0,module:"barrier",name:"Pontos fora da Cerca Digital",url:"barrier-out"},{total:0,module:"journey",name:"Pontos fora da Escala",url:"journey-out"},{total:0,module:"absence",name:"Solicita\xe7\xe3o de f\xe9rias",url:"absence-vacation"}],this.notificationTypeListAllowed=[],this.titleService.setTitle("Notifica\xe7\xf5es"),this.notificationDatabase.getNotificationList((function(e){e.error||(s.notificationTypeList[0].total=e.data.absenceMedicalCertificateCount,s.notificationTypeList[1].total=e.data.pointDisregardRecusedCount,s.notificationTypeList[2].total=e.data.documentExpiringCount,s.notificationTypeList[3].total=e.data.inconsistencyCompTimeCount,s.notificationTypeList[4].total=e.data.pointOutBarrierCount,s.notificationTypeList[5].total=e.data.pointOutJourneyCount,s.notificationTypeList[6].total=e.data.absenceVacationCount,s.loadNotificationAllowed())}))}),[{key:"loadNotificationAllowed",value:function(){var e=this;this.notificationTypeList.forEach((function(t){e.permissionService.canAccess(t.module,"show")&&e.notificationTypeListAllowed.push(t)}))}}])}()).\u0275fac=function(e){return new(e||Bne)($r(yM),$r(zP),$r(jH),$r(JO),$r(iT),$r(hL))},Bne.\u0275cmp=Ot({type:Bne,selectors:[["io-notification-page-list"]],decls:6,vars:2,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"pdgB2","mrgB2","borderBottom"],[1,"cardBox"],["class","card bg-white pdg2 relativePlace clickPlace",3,"routerLink",4,"ngFor","ngForOf"],[1,"card","bg-white","pdg2","relativePlace","clickPlace",3,"routerLink"],[1,"sizeB","mrgB1","pdgR2"],["class","sizeB fontBold cl-white notificationTotal flex center",4,"ngIf"],[1,"flex","end"],[1,"iconItem","iconSizeG","cl-gray-dark",3,"icon"],[1,"sizeB","fontBold","cl-white","notificationTotal","flex","center"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),ns(3,"div",3),es(4,"div",4),Jr(5,Ene,6,6,"div",5),ts(),ts(),ts()),2&e&&(Bo(2),Zr("titleTop","Notifica\xe7\xf5es"),Bo(3),Zr("ngForOf",t.notificationTypeListAllowed))},directives:[eI,ah,bM,sh,FD],styles:[".cardBox[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-column-gap:20px}.card[_ngcontent-%COMP%]{margin:0 0 20px;border-radius:4px;border:1px solid var(--cl-gray-light)}.card[_ngcontent-%COMP%]:hover{border:1px solid var(--cl-gray)}.card[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{min-height:50px}.card[_ngcontent-%COMP%]   .cardBottom[_ngcontent-%COMP%]{margin-top:5px}.card[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:2px}.card[_ngcontent-%COMP%]   .notificationTotal[_ngcontent-%COMP%]{position:absolute;top:15px;right:15px;height:28px;width:28px;background-color:var(--cl-red);border-radius:50px}@media (max-width:400px){.card[_ngcontent-%COMP%]{width:100%;margin:0 auto 20px}}"]}),Bne);function Rne(e,t){if(1&e&&(es(0,"span",21),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" Dia ",n.begin_date.split(" ")[0]!=n.end_date.split(" ")[0]?i.getDate(n.begin_date)+" at\xe9 dia "+i.getDate(n.end_date):i.getDate(n.begin_date)," ")}}function jne(e,t){if(1&e&&(es(0,"span",21),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" Dia ",n.begin_date.split(" ")[0]!=n.end_date.split(" ")[0]?i.getDate(n.begin_date)+" \xe0s "+i.getHour(n.begin_date)+"h at\xe9 "+i.getDate(n.end_date)+" \xe0s "+i.getHour(n.end_date)+"h":i.getDate(n.begin_date)+" \xe0s "+i.getHour(n.begin_date)+"h at\xe9 "+i.getHour(n.end_date)+"h"," ")}}function zne(e,t){if(1&e){var n=as();es(0,"fa-icon",24),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalAbsence(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEye)}function Vne(e,t){if(1&e){var n=as();es(0,"li",17),es(1,"div"),es(2,"label",7),es(3,"input",18),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",9),ts(),ts(),es(5,"span",19),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),Gs(6),ts(),Jr(7,Rne,2,1,"span",20),Jr(8,jne,2,1,"span",20),es(9,"span",21),Gs(10),ts(),es(11,"span",21),Gs(12),ts(),es(13,"span",22),Jr(14,zne,1,1,"fa-icon",23),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Zr("formControlName","selectedId")("checked",o.absenceListSelected.indexOf(i.id)>=0),Bo(3),$s(i.description),Bo(1),Zr("ngIf",i.full_day),Bo(1),Zr("ngIf",!i.full_day),Bo(2),$s(o.getFullDate(i.created_at)),Bo(2),$s(i.type),Bo(2),Zr("ngIf",0==o.absenceListSelected.length)}}function Hne(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Yne(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma aus\xeancia encontrada."),ts())}function qne(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 aus\xeancias."),ts())}function Une(e,t){if(1&e&&(es(0,"li"),Jr(1,Hne,2,0,"p",13),Jr(2,Yne,2,0,"p",13),Jr(3,qne,2,0,"p",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.absenceList.length>0&&n.absenceList[0].loading),Bo(1),Zr("ngIf",n.absenceList.length>0&&!n.absenceList[0].loading&&0==n.absenceListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.absenceList.length)}}function Wne(e,t){if(1&e){var n=as();es(0,"div",25),es(1,"button",26),ls("click",(function(){return mn(n),fs().showModal("Reprovar aus\xeancias?")})),Gs(2,"Reprovar selecionados"),ts(),es(3,"button",27),ls("click",(function(){return mn(n),fs().showModal("Aprovar aus\xeancias?")})),Gs(4,"Aprovar selecionados"),ts(),ts()}}var Jne,Gne,$ne=((Gne=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.absenceDatabase=r,this.notificationDatabase=s,this.storageService=l,this.titleService=u,this.modalAbsence=!1,this.absenceList=[{loading:!0}],this.absenceListFilteredSearch=[],this.absenceSelectedId=null,this.selectedDate="",this.notificationScreen=!1,this.absenceListSelected=[],this.absenceListFiltered=[],this.modalConfirm=!1,this.modalTitle="",this.buttonText="",this.titleService.setTitle("Novos atestados"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getAbsenceRead()}},{key:"getAbsenceRead",value:function(){var e=this;this.notificationDatabase.getAbsenceNotRead((function(t){t.error||(e.absenceList=t.data.absenceNotReadList,e.filterAbsenseSearch(e.searchForm.controls.search.value))}))}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.absenceListSelected=[],this.absenceListFilteredSearch.forEach((function(t){e.absenceListSelected.push(t.id)}))):this.absenceListSelected=[]}},{key:"selectId",value:function(e){this.absenceListSelected.find((function(t){return t==e}))?this.absenceListSelected=this.absenceListSelected.filter((function(t){return t!=e})):this.absenceListSelected.push(e),this.absenceListFiltered.length!=this.absenceListSelected.length&&this.searchForm.controls.allSelected.setValue(!1)}},{key:"selectedAbsences",value:function(){var e=this;this.absenceListSelected.length>0&&(0==this.absenceStatus&&this.absenceDatabase.deleteAbsence(this.absenceListSelected,(function(t){t.error||e.resetPageList()})),1==this.absenceStatus&&this.absenceDatabase.putAbsencesApprove(this.absenceListSelected,(function(t){t.error||e.resetPageList()})))}},{key:"resetPageList",value:function(){this.hideModal(),this.absenceListSelected=[],this.searchForm.get("selectedId").setValue(!1),this.searchForm.get("allSelected").setValue(!1),this.getAbsenceRead()}},{key:"showModal",value:function(e){this.modalTitle=e,"Aprovar aus\xeancias?"==e?(this.absenceStatus=1,this.buttonText="Aprovar"):(this.absenceStatus=0,this.buttonText="Reprovar"),this.modalConfirm=!0}},{key:"hideModal",value:function(){this.modalConfirm=!1,this.absenceListSelected=[],this.searchForm.get("selectedId").setValue(!1),this.searchForm.get("allSelected").setValue(!1)}},{key:"filterAbsenseSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.absenceListFilteredSearch=this.functionsService.arrayFilterWords(this.absenceList,e,"description")}},{key:"showModalAbsence",value:function(e){this.absenceSelectedId=e,this.notificationScreen=!0,this.modalAbsence=!0}},{key:"removeMedicalCertificate",value:function(e){this.absenceList=this.absenceList.filter((function(t){return t.id!=e})),this.filterAbsenseSearch(this.searchForm.controls.search.value)}},{key:"hideModalAbsence",value:function(){this.modalAbsence=!1,this.notificationScreen=!1,this.absenceSelectedId=null}},{key:"getFullDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0]).slice(0,5)}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}}])}()).\u0275fac=function(e){return new(e||Gne)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(aT),$r(jH),$r(YP),$r(hL))},Gne.\u0275cmp=Ot({type:Gne,selectors:[["io-notification-page-list-medical-certificate"]],decls:26,vars:12,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","listAlign","listHeader"],[1,"sizeC","hd1","radioBox"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex mrgT2",4,"ngIf"],[3,"showModal","absenceId","notificationScreen","absenceAceppted","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","listAlign"],["type","checkbox",3,"formControlName","checked","change"],[1,"clickPlace","item","sizeC",3,"click"],["class","item sizeC",4,"ngIf"],[1,"item","sizeC"],[1,"item"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace","title","visualizar",3,"icon","click",4,"ngIf"],["size","3x","title","visualizar",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],[1,"flex","mrgT2"],[1,"btn","btn-red",3,"click"],[1,"btn","btn-blue-bg",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterAbsenseSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"label",7),es(8,"input",8),ls("change",(function(){return t.verifyAll()})),ts(),ns(9,"span",9),ts(),es(10,"h3",10),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",10),Gs(13,"Per\xedodo"),ts(),es(14,"h3",10),Gs(15,"Data da solicita\xe7\xe3o"),ts(),es(16,"h3",10),Gs(17,"Tipo da aus\xeancia"),ts(),es(18,"h3",10),Gs(19,"A\xe7\xe3o"),ts(),ts(),es(20,"ul",11),Jr(21,Vne,15,8,"li",12),Jr(22,Une,4,3,"li",13),ts(),ts(),Jr(23,Wne,5,0,"div",14),ts(),ts(),es(24,"io-absence-modal-view",15),ls("absenceAceppted",(function(){return t.removeMedicalCertificate(t.absenceSelectedId)}))("hideModal",(function(){return t.hideModalAbsence()})),ts(),es(25,"io-modal-confirm",16),ls("hideModal",(function(){return t.hideModal()}))("confirmClick",(function(){return t.selectedAbsences()})),ts()),2&e&&(Bo(2),Zr("titleTop","Novas Aus\xeancias"),Bo(3),Zr("formGroup",t.searchForm),Bo(3),Zr("formControlName","allSelected"),Bo(13),Zr("ngForOf",t.absenceListFilteredSearch),Bo(1),Zr("ngIf",0==t.absenceListFilteredSearch.length),Bo(1),Zr("ngIf",t.absenceListSelected.length>0),Bo(1),Zr("showModal",t.modalAbsence)("absenceId",t.absenceSelectedId)("notificationScreen",t.notificationScreen),Bo(1),Zr("title",t.modalTitle)("btnTextConfirm",t.buttonText)("showModal",t.modalConfirm))},directives:[eI,oE,Hf,ip,Of,Vf,vp,ah,sh,IB,UB,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),Gne),Qne=((Jne=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.pointService=o,this.showModal=!1,this.collaboratorName="",this.date="",this.pointId="",this.pointIds=[],this.hideModal=new Mc,this.updatePoint=new Mc,this.justificationForm=this.formBuilder.group({manager_justification:new Wm("",[Jf.required])})}),[{key:"sendDisregard",value:function(){var e=this,t=this.pointId;0!=this.justificationForm.controls.manager_justification.value.length?this.justificationForm.controls.manager_justification.value.length>255?this.functionsService.openSnackBar("maxTextLenght"):this.pointService.putPointDisregard([t],this.justificationForm.value,(function(n){n.error||(e.emitUpdatePoint(t),e.closeModal())})):this.functionsService.openSnackBar("A justificativa \xe9 obrigat\xf3ria para a desconsidera\xe7\xe3o do ponto")}},{key:"sendMultipleDisregard",value:function(){var e=this,t=this.pointIds;0!=this.justificationForm.controls.manager_justification.value.length?this.justificationForm.controls.manager_justification.value.length>255?this.functionsService.openSnackBar("maxTextLenght"):this.pointService.putPointDisregard(t,this.justificationForm.value,(function(t){t.error||(e.closeModal(),e.updatePoint.emit())})):this.functionsService.openSnackBar("A justificativa \xe9 obrigat\xf3ria para a desconsidera\xe7\xe3o do ponto")}},{key:"emitUpdatePoint",value:function(e){this.updatePoint.emit(e)}},{key:"closeModal",value:function(){this.hideModal.emit(),this.justificationForm.reset()}}])}()).\u0275fac=function(e){return new(e||Jne)($r(wp),$r(yM),$r(zP),$r(SK))},Jne.\u0275cmp=Ot({type:Jne,selectors:[["io-point-modal-disregard"]],inputs:{showModal:"showModal",collaboratorName:"collaboratorName",date:"date",pointId:"pointId",pointIds:"pointIds"},outputs:{hideModal:"hideModal",updatePoint:"updatePoint"},decls:14,vars:18,consts:[[3,"showModal","formGroup","hideModal"],[1,"modalBody","relativePlace","mrgB2"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"form-group","inputAnimated","mrgB2"],["placeholder","Coment\xe1rio ou justificativa...","autofocus","","required","",1,"sizeC",3,"formControlName"],[1,"detail","bg-gray","mrgB1"],[1,"sizeC","fontInit","mrgT2"],[1,"flex"],[3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"],[1,"mrgL2",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3),ts(),es(4,"div",3),ns(5,"textarea",4),ts(),ns(6,"div",5),es(7,"p",6),Gs(8),ts(),es(9,"p",6),Gs(10),ts(),ts(),es(11,"div",7),es(12,"io-btn",8),ls("btnClick",(function(){return t.closeModal()})),ts(),es(13,"io-btn",9),ls("btnClick",(function(){return""!=t.collaboratorName?t.sendDisregard():t.sendMultipleDisregard()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal)("formGroup",t.justificationForm),Bo(3),$s(""!=t.collaboratorName?"Desconsidera\xe7\xe3o do ponto":"Desconsidera\xe7\xe3o dos pontos"),Bo(2),Zr("formControlName","manager_justification"),Bo(3),$s(""!=t.collaboratorName?"O funcion\xe1rio ser\xe1 notificado pelo aplicativo.":"Os funcion\xe1rios ser\xe3o notificados pelo aplicativo."),Bo(2),$s(""!=t.collaboratorName?"A desconsidera\xe7\xe3o do ponto deve ser confirmada pelo funcion\xe1rio no aplicativo.":"A desconsidera\xe7\xe3o do(s) ponto(s) deve(m) ser confirmada pelo(s) funcion\xe1rio(s) no aplicativo."),Bo(2),Zr("moduleName","point")("action","update")("btnClassList","btnSmall")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar"),Bo(1),Zr("moduleName","point")("action","update")("btnClassList","btnSmall")("btnColor","btn-blue-bg")("btnText",""!=t.collaboratorName?"Enviar notifica\xe7\xe3o":"Enviar Notifica\xe7\xf5es")("btnTitle",""!=t.collaboratorName?"Enviar notifica\xe7\xe3o":"Enviar Notifica\xe7\xf5es"))},directives:[CE,Hf,ip,If,bp,Vf,vp,jD],styles:[".justificationText[_ngcontent-%COMP%]{padding:10px}.menuUserItem[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin:0 0 10px}.detail[_ngcontent-%COMP%]{height:1px}"]}),Jne);function Kne(e,t){if(1&e){var n=as();es(0,"fa-icon",26),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalPoint(e)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEye)}function Zne(e,t){if(1&e){var n=as();es(0,"li",20),es(1,"div"),es(2,"label",7),es(3,"input",21),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",9),ts(),ts(),es(5,"span",22),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),Gs(6),ts(),es(7,"span",23),Gs(8),ts(),es(9,"span",23),Gs(10),ts(),es(11,"span",24),Jr(12,Kne,1,1,"fa-icon",25),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Zr("formControlName","selectedId")("checked",o.pointListSelected.indexOf(i.id)>=0),Bo(3),$s(i.collaboratorName),Bo(2),Qs(" ",o.getDate(i.collaboratorPoint)," "),Bo(2),Qs(" ",o.getHour(i.collaboratorPoint)," "),Bo(2),Zr("ngIf",0==o.pointListSelected.length)}}function Xne(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function eie(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum ponto fora da cerca digital aguardando aprova\xe7\xe3o encontrado."),ts())}function tie(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto fora da cerca digital aguardando aprova\xe7\xe3o."),ts())}function nie(e,t){if(1&e&&(es(0,"li"),Jr(1,Xne,2,0,"p",13),Jr(2,eie,2,0,"p",13),Jr(3,tie,2,0,"p",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].loading),Bo(1),Zr("ngIf",n.pointList.length>0&&!n.pointList[0].loading&&0==n.pointListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.pointList.length)}}function iie(e,t){if(1&e){var n=as();es(0,"div",27),es(1,"button",28),ls("click",(function(){return mn(n),fs().showModalDisregardPoints()})),Gs(2,"Reprovar selecionados"),ts(),es(3,"button",29),ls("click",(function(){return mn(n),fs().showModalPointsApprove()})),Gs(4,"Aprovar selecionados"),ts(),ts()}}var oie,aie=((oie=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.titleService=t,this.formBuilder=n,this.notificationDatabase=i,this.functionsService=o,this.iconSolidService=a,this.iconRegularService=r,this.dateSelected="",this.modalDisregardPoint=!1,this.modalDisregardPoints=!1,this.modalNotification=!1,this.modalPoint=!1,this.modalPointApprove=!1,this.pointList=[{loading:!0}],this.pointListFilteredSearch=[],this.pointSelectedCollaboratorId="",this.pointSelectedCollaboratorName="",this.pointSelectedId=null,this.pointListSelected=[],this.modalPointsApprove=!1,this.pointsSelectedIds=[],this.titleService.setTitle("Pontos Fora da Cerca Digital"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getPointList()}},{key:"getPointList",value:function(){var e=this;this.notificationDatabase.getPointOutBarrierList((function(t){t.error||(e.pointList=t.data.pointOutBarrierList,e.filterPointApprovedSearch(e.searchForm.controls.search.value))}))}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.pointListSelected=[],this.pointListFilteredSearch.forEach((function(t){e.pointListSelected.push(t.id)}))):this.pointListSelected=[]}},{key:"selectId",value:function(e){this.pointListSelected.find((function(t){return t==e}))?this.pointListSelected=this.pointListSelected.filter((function(t){return t!=e})):this.pointListSelected.push(e),this.pointListFilteredSearch.length!=this.pointListSelected.length&&this.searchForm.controls.allSelected.setValue(!1)}},{key:"showModalPointsApprove",value:function(){if(0==this.pointListSelected.length)return this.functionsService.openSnackBar("Selecione pelo menos um ponto"),!1;this.modalPointsApprove=!0,this.pointApproved=1}},{key:"hideModalPointsApprove",value:function(){this.modalPointsApprove=!1}},{key:"confirmPointsApprove",value:function(){var e=this;this.notificationDatabase.putPointsApproved(this.pointListSelected,(function(t){t.error||(e.pointListSelected=[],e.searchForm.get("selectedId").setValue(!1),e.searchForm.get("allSelected").setValue(!1),e.getPointList(),e.hideModalPointsApprove(),e.hideModalPoint())}))}},{key:"filterPointApprovedSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.pointListFilteredSearch=this.functionsService.arrayFilterWords(this.pointList,e,"collaboratorName")}},{key:"showModalDisregardPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.dateSelected=e,this.modalDisregardPoint=!0,this.modalPoint=!1}},{key:"pointDisregarded",value:function(){this.getPointList(),this.hideModalDisregardPoint()}},{key:"pointsDisregarded",value:function(){this.getPointList(),this.hideModalDisregardPoints(),this.searchForm.get("selectedId").setValue(!1),this.searchForm.get("allSelected").setValue(!1)}},{key:"hideModalDisregardPoint",value:function(){this.modalDisregardPoint=!1,this.pointSelectedId=null,this.dateSelected=null,this.pointSelectedCollaboratorName=null,this.pointSelectedCollaboratorId=null,this.pointSelectedId=null}},{key:"showModalDisregardPoints",value:function(e){if(this.pointsSelectedIds=this.pointListSelected,this.dateSelected=e,this.modalPoint=!1,0==this.pointListSelected.length)return this.functionsService.openSnackBar("Selecione pelo menos um ponto"),!1;this.modalDisregardPoints=!0,this.pointApproved=0}},{key:"hideModalDisregardPoints",value:function(){this.modalDisregardPoints=!1,this.modalDisregardPoint=!1,this.pointSelectedId=null,this.dateSelected=null,this.pointSelectedCollaboratorName=null,this.pointSelectedCollaboratorId=null,this.pointSelectedId=null,this.pointListSelected=[]}},{key:"confirmPointApproved",value:function(){var e=this,t=this.pointSelectedId;this.notificationDatabase.putPointsApproved([t],(function(n){if(!n.error){var i=e.pointList.findIndex((function(e){return e.id==t}));e.pointList.splice(i,1),e.filterPointApprovedSearch(e.searchForm.controls.search.value),e.hideModalPointApproved(),e.searchForm.controls.selectedId.setValue(!1),e.searchForm.get("allSelected").setValue(!1),e.hideModalPoint()}}))}},{key:"hideModalPointApproved",value:function(){this.pointSelectedId=null,this.modalPointApprove=null}},{key:"showModalPoint",value:function(e){this.pointSelectedId=e.id,this.pointSelectedCollaboratorName=e.collaboratorName,this.pointSelectedCollaboratorId=e.collaboratorId,this.modalPoint=!0}},{key:"hideModalPoint",value:function(){this.modalPoint=!1,this.pointSelectedId=null,this.searchForm.get("selectedId").setValue(!1),this.searchForm.get("allSelected").setValue(!1)}},{key:"showModalNotification",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.dateSelected=e,this.modalNotification=!0,this.modalPoint=!1}},{key:"requestAdjustment",value:function(e){var t=this;this.notificationDatabase.putPointApprovedList(e,(function(n){if(!n.error){var i=t.pointList.findIndex((function(t){return t.id==e}));t.pointList.splice(i,1),t.pointListFilteredSearch=t.pointList,t.hideModalNotification()}}))}},{key:"hideModalNotification",value:function(){this.pointSelectedId=null,this.dateSelected=null,this.pointSelectedCollaboratorName=null,this.pointSelectedCollaboratorId=null,this.modalNotification=!1,this.pointSelectedId=null}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}}])}()).\u0275fac=function(e){return new(e||oie)($r(hL),$r(wp),$r(jH),$r(zP),$r(JO),$r(WO))},oie.\u0275cmp=Ot({type:oie,selectors:[["io-notification-page-list-point-out-barrier"]],decls:29,vars:27,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","listAlign","listHeader"],[1,"sizeC","hd1","radioBox"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex mrgT2",4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"showModal","pointId","canUpdatePointData","pointApproved","showModalDisregard","showModalNotification","hideModal"],[3,"pointId","showModal","collaboratorName","date","updatePoint","hideModal"],[3,"pointIds","showModal","date","updatePoint","hideModal"],[3,"pointId","showModal","collaboratorId","collaboratorName","dateNotification","notificationPost","hideModal"],[1,"flex","listAlign"],["type","checkbox",3,"formControlName","checked","change"],[1,"clickPlace","item","sizeC",3,"click"],[1,"item","sizeC"],[1,"item"],["size","3x","class","iconItem iconSizeG cl-grey-dark clickPlace mrgL1","title","Visualizar",3,"icon","click",4,"ngIf"],["size","3x","title","Visualizar",1,"iconItem","iconSizeG","cl-grey-dark","clickPlace","mrgL1",3,"icon","click"],[1,"flex","mrgT2"],[1,"btn","btn-red",3,"click"],[1,"btn","btn-blue-bg",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterPointApprovedSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"label",7),es(8,"input",8),ls("change",(function(){return t.verifyAll()})),ts(),ns(9,"span",9),ts(),es(10,"h3",10),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",10),Gs(13,"Data"),ts(),es(14,"h3",10),Gs(15,"Hora"),ts(),es(16,"h3",10),Gs(17,"A\xe7\xe3o"),ts(),ts(),es(18,"ul",11),Jr(19,Zne,13,6,"li",12),Jr(20,nie,4,3,"li",13),ts(),ts(),Jr(21,iie,5,0,"div",14),ts(),ts(),es(22,"io-modal-confirm",15),ls("confirmClick",(function(){return t.confirmPointApproved()}))("hideModal",(function(){return t.hideModalPointApproved()})),ts(),es(23,"io-modal-confirm",15),ls("confirmClick",(function(){return t.confirmPointsApprove()}))("hideModal",(function(){return t.hideModalPointsApprove()})),ts(),es(24,"io-point-modal-point",16),ls("pointApproved",(function(){return t.confirmPointApproved()}))("showModalDisregard",(function(e){return t.showModalDisregardPoint(e.date,e.pointId)}))("showModalNotification",(function(e){return t.showModalNotification(e.date,e.pointId)}))("hideModal",(function(){return t.hideModalPoint()})),Gs(25,"\n>"),ts(),es(26,"io-point-modal-disregard",17),ls("updatePoint",(function(){return t.pointDisregarded()}))("hideModal",(function(){return t.hideModalDisregardPoint()})),ts(),es(27,"io-point-modal-disregard",18),ls("updatePoint",(function(){return t.pointsDisregarded()}))("hideModal",(function(){return t.hideModalDisregardPoints()})),ts(),es(28,"io-point-modal-notification",19),ls("notificationPost",(function(){return t.requestAdjustment(t.pointSelectedId)}))("hideModal",(function(){return t.hideModalNotification()})),ts()),2&e&&(Bo(2),Zr("titleTop","Pontos Fora da Cerca Aguardando Aprova\xe7\xe3o"),Bo(3),Zr("formGroup",t.searchForm),Bo(3),Zr("formControlName","allSelected"),Bo(11),Zr("ngForOf",t.pointListFilteredSearch),Bo(1),Zr("ngIf",0==t.pointListFilteredSearch.length),Bo(1),Zr("ngIf",t.pointListSelected.length>0),Bo(1),Zr("showModal",t.modalPointApprove)("title","Deseja aprovar este ponto?")("btnTextConfirm","Aprovar"),Bo(1),Zr("showModal",t.modalPointsApprove)("title","Deseja aprovar os pontos?")("btnTextConfirm","Aprovar"),Bo(1),Zr("showModal",t.modalPoint)("pointId",t.pointSelectedId)("canUpdatePointData",!0),Bo(2),Zr("pointId",t.pointSelectedId)("showModal",t.modalDisregardPoint)("collaboratorName",t.pointSelectedCollaboratorName)("date",t.dateSelected),Bo(1),Zr("pointIds",t.pointListSelected)("showModal",t.modalDisregardPoints)("date",t.dateSelected),Bo(1),Zr("pointId",t.pointSelectedId)("showModal",t.modalNotification)("collaboratorId",t.pointSelectedCollaboratorId)("collaboratorName",t.pointSelectedCollaboratorName)("dateNotification",t.dateSelected))},directives:[eI,oE,Hf,ip,Of,Vf,vp,ah,sh,UB,nZ,Qne,MK,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:50%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),oie);function rie(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function sie(e,t){if(1&e){var n=as();es(0,"fa-icon",32),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalPoint(e)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEye)}function lie(e,t){if(1&e){var n=as();es(0,"li",21),es(1,"div"),es(2,"label",7),es(3,"input",22),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",9),ts(),ts(),es(5,"span",23),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),Jr(6,rie,2,1,"span",24),Gs(7),ts(),es(8,"span",25),Gs(9),ts(),es(10,"span",25),Gs(11),ts(),es(12,"span",26),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalJourney(e.journey_id,e.collaboratorId)})),ns(13,"fa-icon",27),es(14,"span",28),Gs(15),ts(),ts(),es(16,"span",29),Jr(17,sie,1,1,"fa-icon",30),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Zr("formControlName","selectedId")("checked",o.pointListSelected.indexOf(i.id)>=0),Bo(3),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.collaboratorName,""),Bo(2),Qs(" ",o.getDate(i.collaboratorPoint)," "),Bo(2),Qs(" ",o.getHour(i.collaboratorPoint)," "),Bo(2),Zr("icon",o.iconRegularService.faEye),Bo(2),$s(i.journey_description),Bo(2),Zr("ngIf",0==o.pointListSelected.length)}}function cie(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function uie(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum ponto fora da escala aguardando aprova\xe7\xe3o encontrado."),ts())}function die(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto fora da escala aguardando aprova\xe7\xe3o."),ts())}function hie(e,t){if(1&e&&(es(0,"li"),Jr(1,cie,2,0,"p",13),Jr(2,uie,2,0,"p",13),Jr(3,die,2,0,"p",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].loading),Bo(1),Zr("ngIf",n.pointList.length>0&&!n.pointList[0].loading&&0==n.pointListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.pointList.length)}}function fie(e,t){if(1&e){var n=as();es(0,"div",33),es(1,"button",34),ls("click",(function(){return mn(n),fs().showModalDisregardPoints()})),Gs(2,"Reprovar selecionados"),ts(),es(3,"button",35),ls("click",(function(){return mn(n),fs().showModalPointsApprove()})),Gs(4,"Aprovar selecionados"),ts(),ts()}}var mie,pie=((mie=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.notificationDatabase=r,this.storageService=s,this.titleService=l,this.collaboratorId="",this.dateSelected="",this.journeySelectedId="",this.modalDisregardPoint=!1,this.modalDisregardPoints=!1,this.modalJourney=!1,this.modalNotification=!1,this.modalPoint=!1,this.modalPointApprove=!1,this.modalPointsApprove=!1,this.pointList=[{loading:!0}],this.pointListFilteredSearch=[],this.pointSelectedCollaboratorId="",this.pointSelectedCollaboratorName="",this.pointSelectedId="",this.pointsSelectedIds=[],this.selectedDate="",this.pointListSelected=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Pontos Fora da Escala"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getPointList()}},{key:"getPointList",value:function(){var e=this;this.pointList=[{loading:!0}],this.pointListFilteredSearch=[],this.notificationDatabase.getPointOutJourneyList((function(t){t.error||(e.pointList=t.data.pointOutJourneyList,e.filterPointApprovedSearch(e.searchForm.controls.search.value))}))}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.pointListSelected=[],this.pointListFilteredSearch.forEach((function(t){e.pointListSelected.push(t.id)}))):this.pointListSelected=[]}},{key:"selectId",value:function(e){this.pointListSelected.find((function(t){return t==e}))?this.pointListSelected=this.pointListSelected.filter((function(t){return t!=e})):this.pointListSelected.push(e),this.pointListFilteredSearch.length!=this.pointListSelected.length&&this.searchForm.controls.allSelected.setValue(!1)}},{key:"filterPointApprovedSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.pointListFilteredSearch=this.functionsService.arrayFilterWords(this.pointList,e,"collaboratorName")}},{key:"showModalJourney",value:function(e,t){this.collaboratorId=t,this.journeySelectedId=e,this.modalJourney=!0}},{key:"hideModalJourney",value:function(){this.modalJourney=!1,this.collaboratorId=null,this.journeySelectedId=null}},{key:"showModalPoint",value:function(e){this.pointSelectedId=e.id,this.pointSelectedCollaboratorName=e.collaboratorName,this.pointSelectedCollaboratorId=e.collaboratorId,this.modalPoint=!0}},{key:"hideModalPoint",value:function(){this.pointSelectedId=null,this.modalPoint=!1}},{key:"showModalPointApprove",value:function(e){this.pointSelectedId=e.id,this.modalPointApprove=!0}},{key:"showModalPointsApprove",value:function(e){e&&this.pointListSelected.push(e),this.modalPointsApprove=!0,this.pointApproved=1}},{key:"hideModalPointsApprove",value:function(){this.modalPointsApprove=!1}},{key:"hideModalDisregardPoints",value:function(){this.modalDisregardPoints=!1,this.modalDisregardPoint=!1,this.pointSelectedId=null,this.dateSelected=null,this.pointSelectedCollaboratorName=null,this.pointSelectedCollaboratorId=null,this.pointSelectedId=null}},{key:"confirmPointsApprove",value:function(e){var t=this;e&&this.pointListSelected.push(e),this.notificationDatabase.putPointsApproved(this.pointListSelected,(function(e){e.error||(t.hideModalPointsApprove(),t.hideModalPoint(),t.searchForm.get("selectedId").setValue(!1),t.searchForm.get("allSelected").setValue(!1),t.pointListSelected=[],t.getPointList())}))}},{key:"showModalDisregardPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.dateSelected=e,this.modalDisregardPoint=!0,this.modalPoint=!1}},{key:"showModalDisregardPoints",value:function(e){if(this.pointsSelectedIds=this.pointListSelected,this.dateSelected=e,this.modalDisregardPoint=!0,this.modalPoint=!1,0==this.pointListSelected.length)return this.functionsService.openSnackBar("Selecione pelo menos um ponto"),!1;this.modalDisregardPoints=!0}},{key:"pointsDisregarded",value:function(){this.hideModalDisregardPoints(),this.pointListSelected=[],this.getPointList(),this.searchForm.controls.selectedId.setValue(!1),this.searchForm.get("allSelected").setValue(!1)}},{key:"showModalNotification",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.dateSelected=e,this.modalNotification=!0,this.modalPoint=!1}},{key:"requestAdjustment",value:function(e){var t=this;this.notificationDatabase.putPointApprovedList(e,(function(n){if(!n.error){var i=t.pointList.findIndex((function(t){return t.id==e}));t.pointList.splice(i,1),t.pointListFilteredSearch=t.pointList,t.hideModalNotification()}}))}},{key:"hideModalNotification",value:function(){this.modalNotification=!1,this.pointSelectedId=null,this.dateSelected=null,this.pointSelectedCollaboratorName=null,this.pointSelectedCollaboratorId=null,this.pointSelectedId=null}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}}])}()).\u0275fac=function(e){return new(e||mie)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(jH),$r(YP),$r(hL))},mie.\u0275cmp=Ot({type:mie,selectors:[["io-notification-page-list-point-out-journey"]],decls:31,vars:27,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","listAlign","listHeader"],[1,"sizeC","hd1","radioBox"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex mrgT2",4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"showModal","pointId","canUpdatePointData","pointApproved","showModalDisregard","showModalNotification","hideModal"],[3,"pointId","showModal","collaboratorName","date","updatePoint","hideModal"],[3,"pointIds","showModal","date","updatePoint","hideModal"],[3,"pointId","showModal","collaboratorId","collaboratorName","dateNotification","notificationPost","hideModal"],[3,"showModal","journeyId","collaboratorId","hideModal"],[1,"flex","listAlign"],["type","checkbox",3,"formControlName","checked","change"],[1,"clickPlace","item","sizeC",3,"click"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC"],[1,"item","flex","start","clickPlace",3,"click"],["size","3x","title","Visualizar escala",1,"iconItem","iconSizeH","cl-gray-dark",3,"icon"],[1,"sizeC","pdgL1","mrgR1"],[1,"item"],["size","3x","class","iconItem iconSizeG cl-grey-dark clickPlace mrgL1","title","Visualizar",3,"icon","click",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],["size","3x","title","Visualizar",1,"iconItem","iconSizeG","cl-grey-dark","clickPlace","mrgL1",3,"icon","click"],[1,"flex","mrgT2"],[1,"btn","btn-red",3,"click"],[1,"btn","btn-blue-bg",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterPointApprovedSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"label",7),es(8,"input",8),ls("change",(function(){return t.verifyAll()})),ts(),ns(9,"span",9),ts(),es(10,"h3",10),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",10),Gs(13,"Data"),ts(),es(14,"h3",10),Gs(15,"Hora"),ts(),es(16,"h3",10),Gs(17,"Escala"),ts(),es(18,"h3",10),Gs(19,"A\xe7\xe3o"),ts(),ts(),es(20,"ul",11),Jr(21,lie,18,9,"li",12),Jr(22,hie,4,3,"li",13),ts(),ts(),Jr(23,fie,5,0,"div",14),ts(),ts(),es(24,"io-modal-confirm",15),ls("confirmClick",(function(){return t.confirmPointsApprove()}))("hideModal",(function(){return t.hideModalPointsApprove()})),ts(),es(25,"io-point-modal-point",16),ls("pointApproved",(function(){return t.confirmPointsApprove(t.pointSelectedId)}))("showModalDisregard",(function(e){return t.showModalDisregardPoint(e.date,e.pointId)}))("showModalNotification",(function(e){return t.showModalNotification(e.date,e.pointId)}))("hideModal",(function(){return t.hideModalPoint()})),Gs(26,"\n>"),ts(),es(27,"io-point-modal-disregard",17),ls("updatePoint",(function(){return t.pointsDisregarded()}))("hideModal",(function(){return t.hideModalDisregardPoints()})),ts(),es(28,"io-point-modal-disregard",18),ls("updatePoint",(function(){return t.pointsDisregarded()}))("hideModal",(function(){return t.hideModalDisregardPoints()})),ts(),es(29,"io-point-modal-notification",19),ls("notificationPost",(function(){return t.requestAdjustment(t.pointSelectedId)}))("hideModal",(function(){return t.hideModalNotification()})),ts(),es(30,"io-journey-modal-view",20),ls("hideModal",(function(){return t.hideModalJourney()})),ts()),2&e&&(Bo(2),Zr("titleTop","Pontos Fora da escala"),Bo(3),Zr("formGroup",t.searchForm),Bo(3),Zr("formControlName","allSelected"),Bo(13),Zr("ngForOf",t.pointListFilteredSearch),Bo(1),Zr("ngIf",0==t.pointListFilteredSearch.length),Bo(1),Zr("ngIf",t.pointListSelected.length>0),Bo(1),Zr("showModal",t.modalPointsApprove)("title","Deseja aprovar os pontos selecionados?")("btnTextConfirm","Aprovar"),Bo(1),Zr("showModal",t.modalPoint)("pointId",t.pointSelectedId)("canUpdatePointData",!0),Bo(2),Zr("pointId",t.pointSelectedId)("showModal",t.modalDisregardPoint)("collaboratorName",t.pointSelectedCollaboratorName)("date",t.dateSelected),Bo(1),Zr("pointIds",t.pointListSelected)("showModal",t.modalDisregardPoints)("date",t.dateSelected),Bo(1),Zr("pointId",t.pointSelectedId)("showModal",t.modalNotification)("collaboratorId",t.pointSelectedCollaboratorId)("collaboratorName",t.pointSelectedCollaboratorName)("dateNotification",t.dateSelected),Bo(1),Zr("showModal",t.modalJourney)("journeyId",t.journeySelectedId)("collaboratorId",t.collaboratorId))},directives:[eI,oE,Hf,ip,Of,Vf,vp,ah,sh,UB,nZ,Qne,MK,jW,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),mie);function gie(e,t){1&e&&(es(0,"div",5),es(1,"h2",6),Gs(2,"Desconsidera\xe7\xe3o de ponto recusada"),ts(),es(3,"p",7),Gs(4,"Carregando..."),ts(),ts())}function vie(e,t){if(1&e&&(es(0,"div",5),es(1,"div",8),es(2,"h2",6),Gs(3,"Desconsidera\xe7\xe3o de ponto recusada"),ts(),es(4,"p",9),Gs(5,"Funcion\xe1rio: "),es(6,"span",10),Gs(7),ts(),ts(),es(8,"p",9),Gs(9,"Data: "),es(10,"span",10),Gs(11),ts(),ts(),es(12,"p",9),Gs(13,"hor\xe1rio: "),es(14,"span",10),Gs(15),ts(),ts(),ts(),es(16,"div",11),es(17,"p",12),Gs(18,"Solicita\xe7\xe3o do Gestor:"),ts(),es(19,"p",13),Gs(20),ts(),ts(),es(21,"div",11),es(22,"p",12),Gs(23,"Justificativa do funcion\xe1rio:"),ts(),es(24,"p",13),Gs(25),ts(),ts(),ts()),2&e){var n=fs();Bo(7),$s(n.pointData.collaboratorName),Bo(4),$s(n.getDateFull(n.pointData.punch_date_time)),Bo(4),$s(n.getHour(n.pointData.punch_date_time)),Bo(5),$s(n.pointData.manager_justification),Bo(5),$s(n.pointData.collaborator_justification)}}var yie,bie=((yie=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.notificationDatabase=o,this.pointDatabase=a,this.storageService=r,this.showModal=!1,this.pointId=null,this.hideModal=new Mc,this.pointData={loading:!0}}),[{key:"ngOnChanges",value:function(){var e=this;null!=this.pointId&&this.pointDatabase.getPointDisregardData(this.pointId,(function(t){t.error||(e.pointData=t.data.pointDisregardData,e.pointData.loading=!1)}))}},{key:"getDateFull",value:function(e){return this.functionsService.getFullDateBR(e.split(" ")[0])}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}},{key:"setRead",value:function(){var e=this;this.notificationDatabase.putDisregardRecused(this.pointData.id,(function(t){t.error||(e.hideModal.emit(e.pointData.id),e.closeModal())}))}},{key:"regardPoint",value:function(){var e=this;this.pointDatabase.putPointRegard(this.pointData.id,(function(t){t.error||(e.hideModal.emit(e.pointData.id),e.closeModal())}))}},{key:"closeModal",value:function(){this.hideModal.emit("0"),this.pointData={loading:!0}}}])}()).\u0275fac=function(e){return new(e||yie)($r(wp),$r(yM),$r(zP),$r(jH),$r(SK),$r(YP))},yie.\u0275cmp=Ot({type:yie,selectors:[["io-point-modal-disregard-recused"]],inputs:{showModal:"showModal",pointId:"pointId"},outputs:{hideModal:"hideModal"},features:[dl],decls:6,vars:13,consts:[[3,"showModal","hideModal"],["class","minHeightBox",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[1,"pdgT2","mrgT2","center"],[1,"block","borderBottom","mrgB2"],[1,"sizeC","mrgB1"],[1,"fontBold"],[1,"pdgB2"],[1,"sizeC","fontBold","mrgB1"],[1,"sizeC","textBox"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),Jr(1,gie,5,0,"div",1),Jr(2,vie,26,5,"div",1),es(3,"div",2),es(4,"io-btn",3),ls("btnClick",(function(){return t.setRead()})),ts(),es(5,"io-btn",4),ls("btnClick",(function(){return t.regardPoint()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("ngIf",t.pointData.loading),Bo(1),Zr("ngIf",!t.pointData.loading),Bo(2),Zr("moduleName","point")("action","update")("btnColor","btn-blue")("btnText","OK, entendi!")("btnTitle","OK, entendi!"),Bo(1),Zr("moduleName","point")("action","update")("btnColor","btn-blue-bg")("btnText","Reconsiderar o ponto")("btnTitle","Reconsiderar o ponto"))},directives:[CE,sh,jD],styles:[".textBox[_ngcontent-%COMP%]{min-height:40px;padding:10px;border:1px solid var(--terceary-color)}"]}),yie);function _ie(e,t){if(1&e){var n=as();es(0,"li",12),es(1,"span",13),Gs(2),ts(),es(3,"span",13),Gs(4),ts(),es(5,"span",14),es(6,"fa-icon",15),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalDisregardRecuse(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.collaboratorName),Bo(2),Ks("",o.getDate(i.punch_date_time)," - ",o.getHour(i.punch_date_time),""),Bo(2),Zr("icon",o.iconRegularService.faEye)}}function kie(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Cie(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma recusa encontrada."),ts())}function wie(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 desconsidera\xe7\xe3o de ponto recusada."),ts())}function xie(e,t){if(1&e&&(es(0,"li"),Jr(1,kie,2,0,"p",10),Jr(2,Cie,2,0,"p",10),Jr(3,wie,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.disregardRecuseList.length>0&&n.disregardRecuseList[0].loading),Bo(1),Zr("ngIf",n.disregardRecuseList.length>0&&!n.disregardRecuseList[0].loading&&0==n.disregardRecuseListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.disregardRecuseList.length)}}var Mie,Sie=((Mie=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.notificationDatabase=r,this.storageService=s,this.titleService=l,this.disregardRecuseList=[{loading:!0}],this.disregardRecuseListFilteredSearch=[],this.disregardRecuseSelectedId=null,this.modalDisregardRecuse=!1,this.selectedDate="",this.titleService.setTitle("Desconsidera\xe7\xe3o de ponto recusada"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.notificationDatabase.getDisregardRecusedList((function(t){t.error||(e.disregardRecuseList=t.data.disregardRecusedList,e.filterDisregarRecuseSearch(e.searchForm.controls.search.value))}))}},{key:"filterDisregarRecuseSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.disregardRecuseListFilteredSearch=this.functionsService.arrayFilterWords(this.disregardRecuseList,e,"collaboratorName")}},{key:"showModalDisregardRecuse",value:function(e){this.disregardRecuseSelectedId=e,this.modalDisregardRecuse=!0}},{key:"hideModalDisregardRecuse",value:function(e){this.modalDisregardRecuse=!1,this.disregardRecuseSelectedId=null,"0"!=e&&(this.disregardRecuseList=this.disregardRecuseList.filter((function(t){return t.id!=e})),this.filterDisregarRecuseSearch(this.searchForm.controls.search.value))}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}}])}()).\u0275fac=function(e){return new(e||Mie)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(jH),$r(YP),$r(hL))},Mie.\u0275cmp=Ot({type:Mie,selectors:[["io-notification-page-list-point-disregard-recused"]],decls:17,vars:6,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","pointId","hideModal"],[1,"flex","listAlign"],[1,"item","sizeC"],[1,"item"],["size","3x","title","visualizar",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterDisregarRecuseSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Funcion\xe1rio"),ts(),es(9,"h3",7),Gs(10,"Data do ponto"),ts(),es(11,"h3",7),Gs(12,"A\xe7\xe3o"),ts(),ts(),es(13,"ul",8),Jr(14,_ie,7,4,"li",9),Jr(15,xie,4,3,"li",10),ts(),ts(),ts(),ts(),es(16,"io-point-modal-disregard-recused",11),ls("hideModal",(function(e){return t.hideModalDisregardRecuse(e)})),ts()),2&e&&(Bo(2),Zr("titleTop","Desconsidera\xe7\xe3o de ponto recusada"),Bo(4),Zr("formGroup",t.searchForm),Bo(8),Zr("ngForOf",t.disregardRecuseListFilteredSearch),Bo(1),Zr("ngIf",0==t.disregardRecuseListFilteredSearch.length),Bo(1),Zr("showModal",t.modalDisregardRecuse)("pointId",t.disregardRecuseSelectedId))},directives:[eI,oE,Hf,ip,ah,sh,bie,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:50%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),Mie);function Pie(e,t){if(1&e){var n=as();es(0,"fa-icon",23),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalAbsence(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEye)}function Tie(e,t){if(1&e){var n=as();es(0,"li",17),es(1,"div"),es(2,"label",7),es(3,"input",18),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",9),ts(),ts(),es(5,"span",19),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),Gs(6),ts(),es(7,"span",20),Gs(8),ts(),es(9,"span",20),Gs(10),ts(),es(11,"span",21),Jr(12,Pie,1,1,"fa-icon",22),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),Zr("formControlName","selectedId")("checked",o.vacationListSelected.indexOf(i.id)>=0),Bo(3),$s(i.description),Bo(2),Qs(" Dia ",i.begin_date.split(" ")[0]!=i.end_date.split(" ")[0]?o.getDate(i.begin_date)+" at\xe9 dia "+o.getDate(i.end_date):o.getDate(i.begin_date)," "),Bo(2),$s(o.getFullDate(i.created_at)),Bo(2),Zr("ngIf",0==o.vacationListSelected.length)}}function Oie(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Lie(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma solicita\xe7\xe3o de f\xe9rias encontrada."),ts())}function Die(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 solicita\xe7\xe3o de f\xe9rias."),ts())}function Iie(e,t){if(1&e&&(es(0,"li"),Jr(1,Oie,2,0,"p",13),Jr(2,Lie,2,0,"p",13),Jr(3,Die,2,0,"p",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.absenceList.length>0&&n.absenceList[0].loading),Bo(1),Zr("ngIf",n.absenceList.length>0&&!n.absenceList[0].loading&&0==n.absenceListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.absenceList.length)}}function Fie(e,t){if(1&e){var n=as();es(0,"div",24),es(1,"button",25),ls("click",(function(){return mn(n),fs().showModal("Reprovar f\xe9rias?")})),Gs(2,"Reprovar selecionados"),ts(),es(3,"button",26),ls("click",(function(){return mn(n),fs().showModal("Aprovar f\xe9rias?")})),Gs(4,"Aprovar selecionados"),ts(),ts()}}var Aie,Eie,Bie,Nie=((Bie=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.absenceDatabase=r,this.notificationDatabase=s,this.storageService=l,this.titleService=u,this.modalAbsence=!1,this.absenceList=[{loading:!0}],this.absenceListFilteredSearch=[],this.absenceSelectedId=null,this.selectedDate="",this.vacationListSelected=[],this.absenceListFiltered=[],this.modalConfirm=!1,this.modalTitle="",this.buttonText="",this.titleService.setTitle("Solicita\xe7\xe3o de f\xe9rias"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),allSelected:new Wm(!1,[Jf.required]),selectedId:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getVacations()}},{key:"getVacations",value:function(){var e=this;this.notificationDatabase.getAbsenceVacationList((function(t){t.error||(e.absenceList=t.data.vacationList,e.filterAbsenseSearch(e.searchForm.controls.search.value),e.searchForm.get("selectedId").setValue(!1),e.searchForm.get("allSelected").setValue(!1))}))}},{key:"verifyAll",value:function(){var e=this;this.searchForm.controls.allSelected.value?(this.vacationListSelected=[],this.absenceListFilteredSearch.forEach((function(t){e.vacationListSelected.push(t.id)}))):this.vacationListSelected=[]}},{key:"selectId",value:function(e){this.vacationListSelected.find((function(t){return t==e}))?this.vacationListSelected=this.vacationListSelected.filter((function(t){return t!=e})):this.vacationListSelected.push(e),this.absenceListFiltered.length!=this.vacationListSelected.length&&this.searchForm.controls.allSelected.setValue(!1)}},{key:"selectedVacations",value:function(){var e=this;if(!(this.vacationListSelected.length>0))return this.functionsService.openSnackBar("Selecione pelo menos um colaborador");var t=this.vacationListSelected;0==this.absenceStatus&&this.absenceDatabase.deleteAbsence(t,(function(t){t.error||e.resetPageList()})),1==this.absenceStatus&&this.absenceDatabase.putAbsencesApprove(this.vacationListSelected,(function(t){t.error||e.resetPageList()}))}},{key:"resetPageList",value:function(){this.hideModal(),this.vacationListSelected=[],this.searchForm.get("selectedId").setValue(!1),this.searchForm.get("allSelected").setValue(!1),this.getVacations()}},{key:"showModal",value:function(e){this.modalTitle=e,"Aprovar f\xe9rias?"==e?(this.absenceStatus=1,this.buttonText="Aprovar"):(this.absenceStatus=0,this.buttonText="Reprovar"),this.modalConfirm=!0}},{key:"hideModal",value:function(){this.modalConfirm=!1,this.searchForm.get("selectedId").setValue(!1),this.searchForm.get("allSelected").setValue(!1)}},{key:"filterAbsenseSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.absenceListFilteredSearch=this.functionsService.arrayFilterWords(this.absenceList,e,"description")}},{key:"showModalAbsence",value:function(e){this.absenceSelectedId=e,this.modalAbsence=!0}},{key:"removeVacation",value:function(e){this.absenceList=this.absenceList.filter((function(t){return t.id!=e})),this.filterAbsenseSearch(this.searchForm.controls.search.value)}},{key:"hideModalAbsence",value:function(){this.modalAbsence=!1,this.absenceSelectedId=null}},{key:"getFullDate",value:function(e){return this.functionsService.getFullDateBR(e.split(" ")[0])}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0]).slice(0,5)}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}}])}()).\u0275fac=function(e){return new(e||Bie)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(aT),$r(jH),$r(YP),$r(hL))},Bie.\u0275cmp=Ot({type:Bie,selectors:[["io-notification-page-list-vacation"]],decls:24,vars:12,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob",3,"formGroup"],[1,"flex","listAlign","listHeader"],[1,"sizeC","radioBox","hd1"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex mrgT2",4,"ngIf"],[3,"showModal","absenceId","isRequested","absenceAceppted","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","listAlign"],["type","checkbox",3,"formControlName","checked","change"],[1,"clickPlace","item","sizeC",3,"click"],[1,"item","sizeC"],[1,"item"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace","title","Aprovar/recusar solicita\xe7\xe3o",3,"icon","click",4,"ngIf"],["size","3x","title","Aprovar/recusar solicita\xe7\xe3o",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],[1,"flex","mrgT2"],[1,"btn","btn-red",3,"click"],[1,"btn","btn-blue-bg",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterAbsenseSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"label",7),es(8,"input",8),ls("change",(function(){return t.verifyAll()})),ts(),ns(9,"span",9),ts(),es(10,"h3",10),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",10),Gs(13,"Per\xedodo"),ts(),es(14,"h3",10),Gs(15,"Data da solicita\xe7\xe3o"),ts(),es(16,"h3",10),Gs(17,"A\xe7\xe3o"),ts(),ts(),es(18,"ul",11),Jr(19,Tie,13,6,"li",12),Jr(20,Iie,4,3,"li",13),ts(),ts(),Jr(21,Fie,5,0,"div",14),ts(),ts(),es(22,"io-absence-modal-view",15),ls("absenceAceppted",(function(){return t.removeVacation(t.absenceSelectedId)}))("hideModal",(function(){return t.hideModalAbsence()})),ts(),es(23,"io-modal-confirm",16),ls("hideModal",(function(){return t.hideModal()}))("confirmClick",(function(){return t.selectedVacations()})),ts()),2&e&&(Bo(2),Zr("titleTop","Solicita\xe7\xe3o de f\xe9rias"),Bo(3),Zr("formGroup",t.searchForm),Bo(3),Zr("formControlName","allSelected"),Bo(11),Zr("ngForOf",t.absenceListFilteredSearch),Bo(1),Zr("ngIf",0==t.absenceListFilteredSearch.length),Bo(1),Zr("ngIf",t.vacationListSelected.length>0),Bo(1),Zr("showModal",t.modalAbsence)("absenceId",t.absenceSelectedId)("isRequested",!0),Bo(1),Zr("title",t.modalTitle)("btnTextConfirm",t.buttonText)("showModal",t.modalConfirm))},directives:[eI,oE,Hf,ip,Of,Vf,vp,ah,sh,IB,UB,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:15%;margin:0;text-align:right}"]}),Bie),Rie=((Eie=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteOccupation",value:function(e,t){this.databaseService.delete("/occupation/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOccupation",value:function(e,t){this.databaseService.get("/occupation/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOccupationList",value:function(e){this.databaseService.get("/occupation",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getDepartmentCollaboratorList",value:function(e,t){this.databaseService.get("/occupation/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUnitCollaboratorListOut",value:function(e,t){this.databaseService.get("/occupation/"+e+"/collaboratorListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postOccupationCollaboratorList",value:function(e,t,n){this.databaseService.post("/occupation/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postOccupation",value:function(e,t){this.databaseService.post("/occupation",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putOccupation",value:function(e,t,n){this.databaseService.put("/occupation/"+t,e).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Eie)(ut(tT))},Eie.\u0275prov=Se({token:Eie,factory:Eie.\u0275fac,providedIn:"root"}),Eie),jie=((Aie=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.functionsService=n,this.occupationDatabase=i,this.storageService=o,this.showModal=!0,this.hideModal=new Mc,this.occupationData=new Mc,this.occupationPosted=new Mc,this.occupationUpdated=new Mc,this.updateOn=!1,this.stateFields={description:{class:""}},this.occupationForm=this.formBuilder.group({description:new Wm("",[Jf.required]),number_cbo:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.occupationId&&this.showModal&&(this.updateOn=!0,this.occupationDatabase.getOccupation(this.occupationId,(function(t){t.error?e.closeModal():(e.occupationForm.controls.description.setValue((t=t.data).description),e.occupationForm.controls.number_cbo.setValue(t.number_cbo))})))}},{key:"sendOccupation",value:function(){if(this.checkErrorField("description")){var e=Object.assign({},this.occupationForm.value);this.updateOn?this.putOccupation(e,this.occupationId):this.postOccupation(e)}else this.functionsService.openSnackBar("Informe um nome para o cargo.")}},{key:"postOccupation",value:function(e){var t=this;this.occupationDatabase.postOccupation(e,(function(n){if(!n.error){var i=n.data.id;t.occupationPosted.emit(Object.assign(Object.assign({},e),{id:i})),t.closeModal()}}))}},{key:"putOccupation",value:function(e,t){var n=this;this.occupationDatabase.putOccupation(e,t,(function(i){if(!i.error){var o=n.occupationIndex,a=t;n.occupationUpdated.emit(Object.assign(Object.assign({},e),{id:a,index:o})),n.closeModal()}}))}},{key:"checkErrorField",value:function(e){return this.occupationForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"closeModal",value:function(){this.updateOn=!1,this.occupationForm.reset(),this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||Aie)($r(wp),$r(zP),$r(Rie),$r(YP))},Aie.\u0275cmp=Ot({type:Aie,selectors:[["io-occupation-modal-form"]],inputs:{showModal:"showModal",occupationId:"occupationId",occupationIndex:"occupationIndex"},outputs:{hideModal:"hideModal",occupationData:"occupationData",occupationPosted:"occupationPosted",occupationUpdated:"occupationUpdated"},features:[dl],decls:20,vars:19,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"mrgB2"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB1"],[1,"formBox"],[1,"minHeightBox","pdgT2","mrgT2"],[1,"flex","pdgB2","mrgB2"],[1,"form-group","inputAnimated"],["id","description","placeholder","","required","","type","text","autocomplete","off",3,"formControlName"],["for","description",1,"form-label","required"],[1,"flex"],["id","number_cbo","placeholder","","mask","0000-00","required","","type","text","autocomplete","off",3,"formControlName"],["for","number_cbo",1,"form-label"],[1,"btnSmall",3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4),ts(),ts(),es(5,"div",4),es(6,"div",5),es(7,"div",6),es(8,"div",7),ns(9,"input",8),es(10,"label",9),Gs(11,"Nome do cargo"),ts(),ts(),ts(),es(12,"div",10),es(13,"div",7),ns(14,"input",11),es(15,"label",12),Gs(16,"CBO (opcional)"),ts(),ts(),ts(),ts(),es(17,"div",10),es(18,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),ts(),es(19,"io-btn",14),ls("btnClick",(function(){return t.sendOccupation()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.occupationForm),Bo(3),Qs("",t.updateOn?"Editar":"Novo"," Cargo"),Bo(5),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(5),Zr("formControlName","number_cbo"),Bo(4),Zr("moduleName","occupation")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","occupation")("action",t.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",t.updateOn?"Salvar":"Cadastrar")("btnTitle",t.updateOn?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,DE,jD],styles:[""]}),Aie);function zie(e,t){if(1&e&&(es(0,"span",29),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Vie(e,t){if(1&e){var n=as();es(0,"io-icon",26),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}2&e&&Zr("moduleName","occupation")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir cargo")}function Hie(e,t){if(1&e){var n=as();es(0,"io-icon",30),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactive(e.id)})),ts()}2&e&&Zr("moduleName","occupation")("action","reactive")("iconTitle","Reativar departamento")("iconClassList","mrgL1")}function Yie(e,t){if(1&e){var n=as();es(0,"li",21),es(1,"span",22),Jr(2,zie,2,1,"span",23),Gs(3),ts(),es(4,"span",22),Gs(5),ts(),es(6,"span",22),Gs(7),_c(8,"mask"),ts(),es(9,"span",24),Gs(10),ts(),es(11,"span",25),es(12,"io-icon",26),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),es(13,"io-icon",26),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalOccupation(e.id)})),ts(),Jr(14,Vie,1,4,"io-icon",27),Jr(15,Hie,1,4,"io-icon",28),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),$s(i.description),Bo(2),$s(i.totalCollaborators),Bo(2),$s(Cc(8,15,i.number_cbo,"0000-00")),Bo(3),$s(1==i.active?"Ativo":"Inativo"),Bo(2),Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","occupation")("action","update")("iconClassList","mrgL1")("iconTitle","Atualizar cargo"),Bo(1),Zr("ngIf",0==i.totalCollaborators&&1==i.active),Bo(1),Zr("ngIf",!i.active)}}function qie(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Uie(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum cargo encontrado."),ts())}function Wie(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 cargos cadastrados."),ts())}function Jie(e,t){if(1&e&&(es(0,"li"),Jr(1,qie,2,0,"p",15),Jr(2,Uie,2,0,"p",15),Jr(3,Wie,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.occupationList.length>0&&n.occupationList[0].loading),Bo(1),Zr("ngIf",n.occupationList.length>0&&!n.occupationList[0].loading&&0==n.occupationListFiltered.length),Bo(1),Zr("ngIf",0==n.occupationList.length)}}var Gie,$ie,Qie=(($ie=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.occupationDatabase=r,this.storageService=s,this.titleService=l,this.modalDelete=!1,this.modalReactive=!1,this.modalOccupation=!1,this.modalCollaboratorList=!1,this.collaboratorListIn=[],this.collaboratorListOut=[],this.modalCollaboratorLink=!1,this.occupationList=[{loading:!0}],this.occupationListFilteredActive=[],this.occupationListFiltered=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Cargos"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),active:new Wm("1",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getOccupationList()}},{key:"getOccupationList",value:function(){var e=this;this.occupationDatabase.getOccupationList((function(t){t.error||(e.occupationList=t.data.occupation,e.filterOccupation(e.searchForm.controls.search.value),e.filterOccupationActive())}))}},{key:"filterOccupationActive",value:function(){var e=this.searchForm.get("active").value;this.occupationListFilteredActive=this.occupationList.filter((function(t){return t.active==e})),"all"==e&&(this.occupationListFilteredActive=this.occupationList),this.filterOccupation(this.searchForm.controls.search.value)}},{key:"filterOccupation",value:function(e){this.searchForm.controls.search.setValue(e),this.occupationListFiltered=this.functionsService.arrayFilterWords(this.occupationListFilteredActive,e,"description")}},{key:"showModalOccupation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.occupationSelectedId=e,this.modalOccupation=!0}},{key:"addToOccupationList",value:function(e){this.occupationList.push(e),this.filterOccupation(this.searchForm.controls.search.value),this.getOccupationList()}},{key:"updateOccupationList",value:function(e){var t=this.occupationList.findIndex((function(t){return t.id==e.id}));this.occupationList[t]=e,this.filterOccupation(this.searchForm.controls.search.value),this.getOccupationList()}},{key:"hideModalOccupation",value:function(){this.occupationSelectedId=null,this.modalOccupation=!1}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.occupationDatabase.getDepartmentCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.occupationSelectedId=e,this.modalCollaboratorList=!0}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.occupationDatabase.getUnitCollaboratorListOut(this.occupationSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.CollaboratorListOut||[])})),this.modalCollaboratorLink=!0,this.modalCollaboratorList=!1}},{key:"linkCollaboratorList",value:function(e){var t=this;this.occupationDatabase.postOccupationCollaboratorList(this.occupationSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.getOccupationList(),t.hideModalCollaboratorList())}))}},{key:"hideModalCollaboratorLink",value:function(){this.occupationSelectedId=null,this.modalCollaboratorLink=!1}},{key:"hideModalCollaboratorList",value:function(){this.occupationSelectedId=null,this.modalCollaboratorList=!1}},{key:"showModalDelete",value:function(e){this.occupationSelectedId=e,this.modalDelete=!0}},{key:"deleteOccupation",value:function(){var e=this,t=this.occupationSelectedId;this.occupationDatabase.deleteOccupation(t,(function(n){n.error||(e.occupationList=e.occupationList.filter((function(e){return e.id!=t})),e.filterOccupation(e.searchForm.controls.search.value),e.filterOccupationActive(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1}},{key:"showModalReactive",value:function(e){this.occupationSelectedId=e,this.modalReactive=!0}},{key:"reactive",value:function(e){var t=this;this.occupationDatabase.putOccupation({active:1},e,(function(n){if(!n.error){var i=t.occupationList.findIndex((function(t){return t.id==e}));t.occupationList[i].active=1,t.filterOccupationActive(),t.hideModalReactive()}}))}},{key:"hideModalReactive",value:function(){this.occupationSelectedId=null,this.modalReactive=!1}}])}()).\u0275fac=function(e){return new(e||$ie)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(Rie),$r(YP),$r(hL))},$ie.\u0275cmp=Ot({type:$ie,selectors:[["io-occupation-page-list"]],decls:32,vars:37,consts:[[1,"container"],[1,"main"],[3,"titleTop","showBtn","btnDataText","btnClick"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","occupationId","occupationPosted","occupationUpdated","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","departmentSelectedId","selectedId","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalOccupation()})),ts(),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterOccupation(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Cargos"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rios"),ts(),es(11,"h3",7),Gs(12,"CBO"),ts(),es(13,"div",8),es(14,"select",9),ls("change",(function(){return t.filterOccupationActive()})),es(15,"option",10),Gs(16,"Todos"),ts(),es(17,"option",11),Gs(18,"Ativos"),ts(),es(19,"option",10),Gs(20,"Inativos"),ts(),ts(),ns(21,"fa-icon",12),ts(),es(22,"h3",7),Gs(23,"A\xe7\xe3o"),ts(),ts(),es(24,"ul",13),Jr(25,Yie,16,18,"li",14),Jr(26,Jie,4,3,"li",15),ts(),ts(),ts(),ts(),es(27,"io-occupation-modal-form",16),ls("occupationPosted",(function(e){return t.addToOccupationList(e)}))("occupationUpdated",(function(e){return t.updateOccupationList(e)}))("hideModal",(function(){return t.hideModalOccupation()})),ts(),es(28,"io-modal-confirm",17),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteOccupation()})),ts(),es(29,"io-modal-confirm",18),ls("confirmClick",(function(){return t.reactive(t.occupationSelectedId)}))("hideModal",(function(){return t.hideModalReactive()})),ts(),es(30,"io-modal-multi-select-id",19),ls("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(31,"io-modal-multi-select-id",20),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(2),Zr("titleTop","Cargos")("showBtn",!0)("btnDataText","Cadastrar"),Bo(4),Zr("formGroup",t.searchForm),Bo(8),Zr("formControlName","active"),Bo(1),Zr("value","all"),Bo(2),Zr("value","1"),Bo(2),Zr("value","0"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.occupationListFiltered),Bo(1),Zr("ngIf",0==t.occupationListFiltered.length),Bo(1),Zr("showModal",t.modalOccupation)("occupationId",t.occupationSelectedId),Bo(1),Zr("title","Excluir Cargo?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("showModal",t.modalReactive)("title","Deseja Reativar este cargo?")("btnTextConfirm","Reativar"),Bo(1),Zr("title","Funcion\xe1rios vinculados a este cargo")("moduleName","collaborator")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a este cargo")("moduleName","collaborator")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink)("departmentSelectedId",t.occupationSelectedId))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,jie,UB,tR,BB],pipes:[IE],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:25%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}"]}),$ie),Kie=((Gie=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteOnDuty",value:function(e,t){this.databaseService.delete("/onDuty/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOnDuty",value:function(e,t){this.databaseService.get("/onDuty/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOnDutyList",value:function(e,t){this.databaseService.get("/onDuty",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOnDutyCollaboratorList",value:function(e,t){this.databaseService.get("/onDuty/"+e+"/collaborators",{}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postOnDuty",value:function(e,t){this.databaseService.post("/onDuty",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putOnDuty",value:function(e,t,n){this.databaseService.put("/onDuty/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putOnDutyDuplicate",value:function(e,t,n){this.databaseService.put("/onDuty/"+e+"/duplicate",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Gie)(ut(tT))},Gie.\u0275prov=Se({token:Gie,factory:Gie.\u0275fac,providedIn:"root"}),Gie);function Zie(e,t){if(1&e&&(es(0,"span",11),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs(" Dia ",n.onDutyData.begin_date!=n.onDutyData.end_date?n.getDate(n.onDutyData.begin_date)+" at\xe9 dia "+n.getDate(n.onDutyData.end_date):n.getDate(n.onDutyData.begin_date)," ")}}function Xie(e,t){if(1&e&&(es(0,"span",11),Gs(1),ts()),2&e){var n=fs(2);Bo(1),Qs(" Dia ",n.onDutyData.begin_date!=n.onDutyData.end_date?n.getDate(n.onDutyData.begin_date)+" \xe0s "+n.onDutyData.begin_hour.slice(0,5)+"h at\xe9 "+n.getDate(n.onDutyData.end_date)+" \xe0s "+n.onDutyData.end_hour.slice(0,5)+"h":n.getDate(n.onDutyData.begin_date)+" \xe0s "+n.onDutyData.begin_hour.slice(0,5)+"h at\xe9 "+n.onDutyData.end_hour.slice(0,5)+"h"," ")}}function eoe(e,t){if(1&e&&(es(0,"div",15),Jr(1,Zie,2,1,"span",16),Jr(2,Xie,2,1,"span",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf","00:00:00"==n.onDutyData.begin_hour&&"23:59:00"==n.onDutyData.end_hour),Bo(1),Zr("ngIf","00:00:00"!=n.onDutyData.begin_hour||"23:59:00"!=n.onDutyData.end_hour)}}var toe,noe=((toe=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.functionsService=n,this.onDutyDatabase=i,this.showModal=!1,this.onDutyId=null,this.onDutyData={},this.hideModal=new Mc,this.onDutyPosted=new Mc,this.collaboratorIdList=[],this.dateCheck="",this.dateForm=this.formBuilder.group({begin_date:new Wm("",[Jf.required]),end_date:new Wm("",[Jf.required]),description:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.dateForm.controls.description.setValue(""),this.dateCheck=this.onDutyData.begin_date,this.onDutyDatabase.getOnDuty(this.onDutyId,(function(t){if(!t.error){var n=[];(t.data.collaboratorList||[]).forEach((function(e){n.push(e.id)})),e.collaboratorIdList=n}}))}},{key:"setDate",value:function(e){var t=this;e&&(this.dateForm.controls.begin_date.setValue(e),this.onDutyDatabase.getOnDuty(this.onDutyId,(function(e){if(!e.error){var n=[];(e.data.collaboratorList||[]).forEach((function(e){n.push(e.id)})),t.collaboratorIdList=n}})),this.verifyTotalTime())}},{key:"verifyTotalTime",value:function(){this.onDutyData.begin_date=this.dateForm.controls.begin_date.value,this.onDutyData.end_date=this.functionsService.getDayAfter(this.dateForm.controls.begin_date.value),this.dateForm.controls.end_date.setValue(this.onDutyData.end_date)}},{key:"validDateSelected",value:function(){return""==this.dateForm.controls.begin_date.value?(this.functionsService.openSnackBar("Selecione uma data para o plant\xe3o"),!1):this.dateForm.controls.begin_date.value!=this.dateCheck||(this.functionsService.openSnackBar("A data do novo plant\xe3o deve ser diferente do plant\xe3o j\xe1 existente"),!1)}},{key:"sendOnDuty",value:function(){this.validDateSelected()&&this.postOnDuty(this.dateForm.value)}},{key:"postOnDuty",value:function(e){var t=this;this.onDutyDatabase.putOnDutyDuplicate(this.onDutyId,e,(function(e){e.error||(t.onDutyPosted.emit(),t.closeModal())}))}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.dateForm.reset(),this.onDutyData=null}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e).slice(0,5)}}])}()).\u0275fac=function(e){return new(e||toe)($r(wp),$r(zP),$r(Kie))},toe.\u0275cmp=Ot({type:toe,selectors:[["io-on-duty-modal-duplicate"]],inputs:{showModal:"showModal",onDutyId:"onDutyId",onDutyData:"onDutyData"},outputs:{hideModal:"hideModal",onDutyPosted:"onDutyPosted"},features:[dl],decls:21,vars:17,consts:[[3,"showModal","hideModal"],[1,"minHeightBox",3,"formGroup"],[1,"sizeA","cl-blue","fontBold","fontUp","mrgB2"],[1,"pdgB2","mrgB2"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","required","","type","text",3,"formControlName"],["for","description",1,"form-label"],[1,"sizeD"],[1,"flex"],[1,"datepicker","required",3,"labelText","collaboratorListId","validMinDateClosure","dateSelectedEN"],["class","mrgB2",4,"ngIf"],[1,"sizeC"],[1,"flex","mrgT2","pdgT2"],[1,"btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"mrgB2"],["class","sizeC",4,"ngIf"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Duplicar este plant\xe3o"),ts(),ns(4,"div",3),es(5,"div",4),ns(6,"input",5),es(7,"label",6),Gs(8,"Nome do grupo de funcion\xe1rios"),ts(),ts(),es(9,"p",7),Gs(10,"Se deseja manter a mesma descri\xe7\xe3o do plant\xe3o original, deixe este campo em branco"),ts(),ns(11,"div",3),es(12,"div",8),es(13,"io-datepicker",9),ls("dateSelectedEN",(function(e){return t.setDate(e)})),ts(),ts(),ns(14,"div",3),Jr(15,eoe,3,2,"div",10),es(16,"p",11),Gs(17,"Os demais dados do plant\xe3o ser\xe3o os mesmos do plant\xe3o selecionado."),ts(),ts(),es(18,"div",12),es(19,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),ts(),es(20,"io-btn",14),ls("btnClick",(function(){return t.sendOnDuty()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.dateForm),Bo(5),Zr("formControlName","description"),Bo(7),Zr("labelText","Data do plant\xe3o")("collaboratorListId",t.collaboratorIdList)("validMinDateClosure",!0),Bo(2),Zr("ngIf",null!=t.onDutyData),Bo(4),Zr("moduleName","on-duty")("action","update")("btnColor","btn-red")("btnText","Voltar")("btnTitle","Voltar"),Bo(1),Zr("moduleName","on-duty")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,UA,sh,jD],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}"]}),toe);function ioe(e,t){if(1&e&&ns(0,"fa-icon",32),2&e){var n=fs().$implicit,i=fs();Zr("icon",i.iconSolidService.faExclamation)("title","Data do \xfaltimo fechamento de um dos funcion\xe1rios desse plant\xe3o: "+i.getDate(n.closureEndDate))}}function ooe(e,t){if(1&e&&(es(0,"span",33),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("\xa0",n.id," ")}}function aoe(e,t){if(1&e&&(es(0,"span",34),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" Dia ",n.begin_date!=n.end_date?i.getDate(n.begin_date)+" at\xe9 dia "+i.getDate(n.end_date):i.getDate(n.begin_date)," ")}}function roe(e,t){if(1&e&&(es(0,"span",34),Gs(1),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Qs(" Dia ",n.begin_date!=n.end_date?i.getDate(n.begin_date)+" \xe0s "+n.begin_hour.slice(0,5)+"h at\xe9 "+i.getDate(n.end_date)+" \xe0s "+n.end_hour.slice(0,5)+"h":i.getDate(n.begin_date)+" \xe0s "+n.begin_hour.slice(0,5)+"h at\xe9 "+n.end_hour.slice(0,5)+"h"," ")}}function soe(e,t){if(1&e){var n=as();es(0,"io-icon",35),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDuplicate(e.id,e)})),ts()}2&e&&Zr("moduleName","on-duty")("action","copy")("iconClassList","mrgL1")("iconTitle","Duplicar plant\xe3o")}var loe=function(e){return{onDutyId:e}};function coe(e,t){if(1&e&&ns(0,"io-icon",36),2&e){var n=fs().$implicit;Zr("moduleName","on-duty")("action","update")("iconClassList","mrgL1")("iconTitle","Editar plant\xe3o")("urlNavigation","/on-duty-update")("urlStateData",pc(6,loe,n.id))}}function uoe(e,t){if(1&e){var n=as();es(0,"io-icon",35),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalRemoveOnDuty(e.id)})),ts()}2&e&&Zr("moduleName","on-duty")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir plant\xe3o")}function doe(e,t){if(1&e){var n=as();es(0,"li",22),es(1,"span",23),Jr(2,ioe,1,2,"fa-icon",24),Jr(3,ooe,2,1,"span",25),Gs(4),ts(),Jr(5,aoe,2,1,"span",26),Jr(6,roe,2,1,"span",26),es(7,"span",27),Gs(8),ts(),es(9,"span",28),es(10,"io-icon",29),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),Jr(11,soe,1,4,"io-icon",30),Jr(12,coe,1,8,"io-icon",31),Jr(13,uoe,1,4,"io-icon",30),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",i.closureEndDate),Bo(1),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description," "),Bo(1),Zr("ngIf","00:00:00"==i.begin_hour&&"23:59:00"==i.end_hour),Bo(1),Zr("ngIf","00:00:00"!=i.begin_hour||"23:59:00"!=i.end_hour),Bo(2),$s(1==i.type?"Prontid\xe3o":"Sobreaviso"),Bo(2),Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("ngIf",!i.closureEndDate),Bo(1),Zr("ngIf",!i.closureEndDate),Bo(1),Zr("ngIf",!i.closureEndDate)}}function hoe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function foe(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum plant\xe3o encontrado."),ts())}function moe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 plant\xe3o cadastrado."),ts())}function poe(e,t){if(1&e&&(es(0,"li"),Jr(1,hoe,2,0,"p",17),Jr(2,foe,2,0,"p",17),Jr(3,moe,2,0,"p",17),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.onDutyList.length>0&&n.onDutyList[0].loading),Bo(1),Zr("ngIf",n.onDutyList.length>0&&!n.onDutyList[0].loading&&0==n.onDutyListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.onDutyList.length)}}function goe(e,t){if(1&e){var n=as();es(0,"io-on-duty-modal-duplicate",37),ls("onDutyPosted",(function(){return mn(n),fs().getOnDutyList()}))("hideModal",(function(){return mn(n),fs().hideModalDuplicate()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalDuplicate)("onDutyId",i.onDutySelectedId)("onDutyData",i.onDutySelectedData)}}var voe,yoe=((voe=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.functionsService=n,this.iconRegularService=i,this.iconSolidService=o,this.onDutyDatabase=a,this.titleService=r,this.storageService=s,this.collaboratorListIn=[],this.modalDuplicate=!1,this.modalCollaboratorList=!1,this.modalRemoveOnDuty=!1,this.onDutyList=[{loading:!0}],this.onDutyListFilteredType=[],this.onDutyListFilteredSearch=[],this.onDutySelectedId=null,this.onDutySelectedData=null,this.getBeginDate=new Date((new Date).getFullYear(),(new Date).getMonth(),1),this.getEndDate=new Date((new Date).getFullYear(),(new Date).getMonth()+1,0),this.beginDate=this.getBeginDate.toISOString().split("T")[0],this.endDate=this.getEndDate.toISOString().split("T")[0],this.paginationData=null,this.currentPage=1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Sobreaviso e Prontid\xe3o"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),type:new Wm("all",[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"setBeginDate",value:function(e){this.beginDate=e,this.getOnDutyList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.getOnDutyList()}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getOnDutyList()}},{key:"getOnDutyList",value:function(){var e=this;this.onDutyList=[{loading:!0}];var t={begin_date:this.beginDate,end_date:this.endDate,page:this.currentPage.toString(),type:this.searchForm.controls.type.value};new Date(this.beginDate)<new Date(this.endDate)&&this.onDutyDatabase.getOnDutyList(t,(function(t){t.error||(e.onDutyList=t.data.onDutyList.data.length>0?t.data.onDutyList.data:[],e.paginationData=t.data.onDutyList,e.filterOnDutyType())}))}},{key:"filterOnDutyType",value:function(){var e=this.searchForm.controls.type.value;this.onDutyListFilteredType="all"==e?this.onDutyList:this.onDutyList.filter((function(t){return t.type==e})),this.filterOnDutySearch(this.searchForm.controls.search.value)}},{key:"filterOnDutySearch",value:function(e){this.searchForm.controls.search.setValue(e),this.onDutyListFilteredSearch=this.functionsService.arrayFilterWords(this.onDutyListFilteredType,e,"description")}},{key:"showModalDuplicate",value:function(e,t){this.onDutySelectedId=e,this.onDutySelectedData=t,this.modalDuplicate=!0}},{key:"hideModalDuplicate",value:function(){this.onDutySelectedId=null,this.onDutySelectedData=null,this.modalDuplicate=!1,this.getOnDutyList()}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.onDutyDatabase.getOnDutyCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.onDutySelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1,this.onDutySelectedId=null}},{key:"showModalRemoveOnDuty",value:function(e){this.onDutySelectedId=e,this.modalRemoveOnDuty=!0}},{key:"deleteOnDuty",value:function(){var e=this,t=this.onDutySelectedId;this.onDutyDatabase.deleteOnDuty(t,(function(n){n.error||(e.onDutyList=e.onDutyList.filter((function(e){return e.id!=t})),e.filterOnDutyType(),e.hideModalRemoveOnDuty())}))}},{key:"hideModalRemoveOnDuty",value:function(){this.modalRemoveOnDuty=!1,this.onDutySelectedId=null}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e).slice(0,5)}}])}()).\u0275fac=function(e){return new(e||voe)($r(wp),$r(zP),$r(WO),$r(JO),$r(Kie),$r(hL),$r(YP))},voe.\u0275cmp=Ot({type:voe,selectors:[["io-on-duty-page-list"]],decls:31,vars:27,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"wdMax25","mrgB2"],[1,"flex","mrgL2",3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[3,"showModal","onDutyId","onDutyData","onDutyPosted","hideModal",4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","flex","start","sizeC"],["size","3x","class","iconItem iconSizeH cl-red",3,"icon","title",4,"ngIf"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],["class","sizeC item",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","iconClassList","iconTitle","urlNavigation","urlStateData",4,"ngIf"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon","title"],[1,"sizeB","cl-magenta","mrgR1"],[1,"sizeC","item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","urlNavigation","urlStateData"],[3,"showModal","onDutyId","onDutyData","onDutyPosted","hideModal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-interval-selector",4),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterOnDutySearch(e)})),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"h3",9),Gs(10,"Descri\xe7\xe3o"),ts(),es(11,"h3",9),Gs(12,"Per\xedodo do plant\xe3o"),ts(),es(13,"div",10),es(14,"select",11),ls("change",(function(){return t.getOnDutyList()})),es(15,"option",12),Gs(16,"Todas"),ts(),es(17,"option",13),Gs(18,"Prontid\xe3o (2/3)"),ts(),es(19,"option",13),Gs(20,"Sobreaviso (1/3)"),ts(),ts(),ns(21,"fa-icon",14),ts(),es(22,"h3",9),Gs(23,"A\xe7\xe3o"),ts(),ts(),es(24,"ul",15),Jr(25,doe,14,12,"li",16),Jr(26,poe,4,3,"li",17),ts(),ts(),es(27,"io-pagination",18),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),Jr(28,goe,1,3,"io-on-duty-modal-duplicate",19),es(29,"io-modal-confirm",20),ls("confirmClick",(function(){return t.deleteOnDuty()}))("hideModal",(function(){return t.hideModalRemoveOnDuty()})),ts(),es(30,"io-modal-multi-select-id",21),ls("hideModal",(function(){return t.hideModalCollaboratorList()})),ts()),2&e&&(Bo(2),Zr("moduleName","on-duty")("titleTop","Plant\xe3o")("showBtn",!0)("btnDataUrl","on-duty-register"),Bo(2),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(4),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","type"),Bo(1),Zr("value","all"),Bo(2),Zr("value",1),Bo(2),Zr("value",2),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.onDutyListFilteredSearch),Bo(1),Zr("ngIf",0==t.onDutyListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("ngIf",t.modalDuplicate),Bo(1),Zr("showModal",t.modalRemoveOnDuty)("title","Deseja realmente excluir este plant\xe3o?")("btnTextConfirm","Excluir"),Bo(1),Zr("title","Funcion\xe1rios vinculados a este plant\xe3o")("moduleName","journey")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList))},directives:[eI,ZA,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,hE,UB,tR,BB,noe],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:20%;margin:0;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   .action[_ngcontent-%COMP%]{margin-left:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   .action[_ngcontent-%COMP%]:first-child{margin-left:0}"]}),voe);function boe(e,t){if(1&e){var n=as();es(0,"io-datepicker",38),ls("dateSelectedEN",(function(e){mn(n);var t=fs();return t.onDutyForm.get("begin_date").setValue(e),t.verifyTotalTime()})),ts()}if(2&e){var i=fs();Zr("labelText","")("startDate",i.startDate)("validMinDateClosure",!0)("collaboratorListId",i.collaboratorListSelectedId)}}function _oe(e,t){if(1&e){var n=as();es(0,"io-datepicker",39),ls("dateSelectedEN",(function(e){mn(n);var t=fs();return t.onDutyForm.get("begin_date").setValue(e),t.verifyTotalTime()})),ts()}if(2&e){var i=fs();Zr("labelText","")("validMinDateClosure",!0)("collaboratorListId",i.collaboratorListSelectedId)("startDate",i.onDutyForm.get("begin_date").value)}}function koe(e,t){1&e&&(es(0,"p",26),Gs(1," As horas de "),es(2,"span",40),Gs(3,"prontid\xe3o"),ts(),Gs(4," s\xe3o aquelas em que o funcion\xe1rio permanece nas depend\xeancias da empresa ou em lugar determinado pelo empregador, fora do hor\xe1rio habitual de trabalho, aguardando ordens. A remunera\xe7\xe3o das horas de prontid\xe3o \xe9 equivalente a 2/3 do valor da hora normal do funcion\xe1rio e n\xe3o deve ultrapassar o limite de "),es(5,"span",40),Gs(6,"12 horas"),ts(),Gs(7,". "),ts())}function Coe(e,t){1&e&&(es(0,"p",26),Gs(1," Nas horas de "),es(2,"span",40),Gs(3,"sobreaviso"),ts(),Gs(4," o funcion\xe1rio est\xe1 em casa ou em outro lugar qualquer, fora de sua jornada habitual de trabalho, aguardando por ordens do empregador, por um chamado da empresa. Neste tipo de jornada (horas de sobreaviso), o per\xedodo em que o funcion\xe1rio est\xe1 aguardando ordens do empregador \xe9 remunerado com o equivalente a 1/3 do valor de sua hora de trabalho normal e n\xe3o deve ultrapassar o limite de "),es(5,"span",40),Gs(6,"24 horas"),ts(),Gs(7,". "),ts())}var woe,xoe,Moe,Soe,Poe=((Soe=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.onDutyDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.validService=s,this.onDutyId=null,this.modalCollaborator=!1,this.updateOn=!1,this.onDutyType=0,this.collaboratorListSelectedId=[],this.startDate=this.functionsService.currentDateEN("00/00/0000","min"),this.finalDate=this.functionsService.currentDateBR("00/00/0000","min"),this.finalHour="00:00",this.onDutyForm=this.formBuilder.group({all_collaborators:new Wm(0,[Jf.required]),begin_date:new Wm("",[Jf.required]),begin_hour:new Wm("00:00",[Jf.required]),description:new Wm("",[Jf.required]),end_date:new Wm("",[Jf.required]),end_hour:new Wm("",[Jf.required]),details:new Wm("",[Jf.required]),total_hours:new Wm("00:00",[Jf.required]),type:new Wm(0,[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.onDutyId?(this.updateOn=!0,this.onDutyDatabase.getOnDuty(this.onDutyId,(function(t){if(!t.error){var n=t.data.onDuty[0];t.data.collaboratorListId.forEach((function(t){return e.collaboratorListSelectedId.push(t.id)})),Object.keys(e.onDutyForm.controls).forEach((function(t){e.onDutyForm.controls[t].setValue(n[t])})),e.onDutyType=n.type;var i=e.onDutyForm.get("begin_date").value,o=e.onDutyForm.get("end_date").value,a=e.onDutyForm.get("begin_hour").value,r=e.onDutyForm.get("end_hour").value;i==o?e.onDutyForm.get("total_hours").setValue(e.functionsService.diffTime([a,r])):e.onDutyForm.get("total_hours").setValue(e.functionsService.sumTime([e.functionsService.diffTime([a,"24:00"]),e.functionsService.diffTime(["00:00",r])])),e.verifyTotalTime()}}))):this.onDutyForm.get("begin_date").setValue(this.startDate)}},{key:"setOndutyType",value:function(e){this.onDutyType=parseInt(e)}},{key:"showModalCollaborator",value:function(){this.modalCollaborator=!0}},{key:"setCollaboratorListSelect",value:function(e){var t=this;this.collaboratorListSelectedId=[],e.forEach((function(e){t.collaboratorListSelectedId.push(e)}))}},{key:"hideModalCollaborator",value:function(){this.modalCollaborator=!1}},{key:"verifyTotalTime",value:function(){var e=this.onDutyForm.get("begin_date").value,t=this.onDutyForm.get("begin_hour").value,n=this.onDutyForm.get("total_hours").value;if(parseInt(this.functionsService.removeSings(this.functionsService.sumTime([t,n])))<2400)this.finalDate=this.functionsService.dateENtoBR(e),this.finalHour=this.functionsService.sumTime([t,n]),this.onDutyForm.get("end_date").setValue(e),this.onDutyForm.get("end_hour").setValue(this.finalHour);else{var i=Math.floor(parseInt(this.functionsService.removeSings(n))/2400),o=this.functionsService.diffTime([this.functionsService.multiplyTime("24:00",i),n]),a=this.functionsService.diffTime([t,"24:00"]);parseInt(this.functionsService.removeSings(o))-parseInt(this.functionsService.removeSings(a))>=0&&i++,this.finalDate=this.functionsService.dateENtoBR(this.functionsService.getDayAfter(e,i)),this.finalHour=this.functionsService.diffTime([a,o]),this.onDutyForm.get("end_date").setValue(this.functionsService.getDayAfter(e,i)),this.onDutyForm.get("end_hour").setValue(this.finalHour)}}},{key:"validOnDuty",value:function(){return""==this.onDutyForm.get("description").value?(this.functionsService.openSnackBar("Informe uma descri\xe7\xe3o para este plant\xe3o"),!1):0==this.onDutyType?(this.functionsService.openSnackBar("Selecione o tipo de plant\xe3o"),!1):0==this.collaboratorListSelectedId.length?(this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio para cadastrar"),!1):"00:00"==this.onDutyForm.get("total_hours").value?(this.functionsService.openSnackBar("O tempo em plant\xe3o n\xe3o pode ser 00:00"),!1):parseInt(this.functionsService.removeSings(this.onDutyForm.get("total_hours").value))>2400?(this.functionsService.openSnackBar("O tempo m\xe1ximo permitido \xe9 de 24:00"),!1):(this.onDutyForm.get("type").setValue(this.onDutyType),!0)}},{key:"sendOnDuty",value:function(){if(this.validOnDuty()){var e=JSON.stringify(this.collaboratorListSelectedId),t=Object.assign({collaborator_id:e},this.onDutyForm.value);this.updateOn?this.updateOnDuty(t):this.postOnDuty(t)}}},{key:"postOnDuty",value:function(e){var t=this;this.onDutyDatabase.postOnDuty(e,(function(e){e.error||t.router.navigate(["/on-duty"]).then((function(){return!1}))}))}},{key:"updateOnDuty",value:function(e){var t=this;this.onDutyDatabase.putOnDuty(this.onDutyId,e,(function(e){e.error||t.router.navigate(["/on-duty"]).then((function(){return!1}))}))}},{key:"verifyHour",value:function(e){this.onDutyForm.controls[e].setValue(this.validService.validHour(this.onDutyForm.controls[e].value))}},{key:"verifyHourJobTime",value:function(e){this.onDutyForm.controls[e].setValue(this.validService.validHour(this.onDutyForm.controls[e].value,!1))}}])}()).\u0275fac=function(e){return new(e||Soe)($r(wp),$r(yM),$r(Kie),$r(zP),$r(WO),$r(JO),$r(TN))},Soe.\u0275cmp=Ot({type:Soe,selectors:[["io-on-duty-form"]],inputs:{onDutyId:"onDutyId"},decls:60,vars:34,consts:[[1,"formBox"],[3,"titleTop"],[1,"minHeightBox","mrgB2",3,"formGroup"],[1,"flex","top","mrgB2"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","required","","type","text",3,"formControlName"],["for","description",1,"form-label","required"],[1,"form-group","inputAnimated","selectAbsenceType","mrgL2"],["id","type","required","",3,"formControlName","change"],["selectType",""],[3,"value"],["for","type",1,"form-label","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"listBoxSlideMob"],[1,"flex","alignBox","listHeader","mrgB2"],[1,"item","sizeC","fontBold"],[1,"flex","alignBox","boxWhite","border-gray-light","round2","mrgB2"],[1,"item"],[1,"flex","start","clickPlace",3,"click"],["size","3x",1,"iconItem","iconSizeF","cl-blue","fa-rotate-45",3,"icon"],[1,"sizeC","mrgL1"],["class","datepicker sizeC",3,"labelText","startDate","validMinDateClosure","collaboratorListId","dateSelectedEN",4,"ngIf"],["class","datepicker sizeC",3,"labelText","validMinDateClosure","collaboratorListId","startDate","dateSelectedEN",4,"ngIf"],[1,"item","sizeD"],["onClick","this.select();","autocomplete","off","id","begin_hour","mask","00:00","maxlength","5","placeholder","","type","text","required","",1,"borderBottom","sizeC",3,"dropSpecialCharacters","formControlName","change"],["onClick","this.select();","autocomplete","off","id","total_hours","mask","00:00","maxlength","5","placeholder","","type","text","required","",1,"borderBottom","sizeC",3,"dropSpecialCharacters","formControlName","change"],[1,"sizeC"],[1,"pdgB2","mrgB2"],[1,"flex","sizeC","pdgB1"],[1,"flexDesk","pdgB2","mrgB2"],[1,"form-group","wdFull","inputAnimated"],["placeholder","","required","",1,"sizeC","round2",3,"formControlName"],[1,"mrgB2"],["class","sizeC",4,"ngIf"],[1,"flex"],[1,"btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation","useValidation"],[1,"btnSmall","mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"moduleName","showModal","selectedListId","selectedId","hideModal"],[1,"datepicker","sizeC",3,"labelText","startDate","validMinDateClosure","collaboratorListId","dateSelectedEN"],[1,"datepicker","sizeC",3,"labelText","validMinDateClosure","collaboratorListId","startDate","dateSelectedEN"],[1,"fontBold"]],template:function(e,t){if(1&e){var n=as();es(0,"div",0),ns(1,"io-main-top",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),ns(5,"input",5),es(6,"label",6),Gs(7,"Descri\xe7\xe3o"),ts(),ts(),es(8,"div",7),es(9,"select",8,9),ls("change",(function(){mn(n);var e=Gr(10);return t.setOndutyType(e.value)})),es(11,"option",10),Gs(12,"Prontid\xe3o (2/3)"),ts(),es(13,"option",10),Gs(14,"Sobreaviso (1/3)"),ts(),ts(),es(15,"label",11),Gs(16,"Tipo de Plant\xe3o"),ts(),ns(17,"fa-icon",12),ts(),ts(),es(18,"div",13),es(19,"div",14),es(20,"h3",15),Gs(21,"Funcion\xe1rios"),ts(),es(22,"h3",15),Gs(23,"Data de in\xedcio"),ts(),es(24,"h3",15),Gs(25,"Hora de in\xedcio"),ts(),es(26,"h3",15),Gs(27,"Tempo em plant\xe3o"),ts(),es(28,"h3",15),Gs(29,"Fim do plant\xe3o"),ts(),ts(),es(30,"div",16),es(31,"div",17),es(32,"span",18),ls("click",(function(){return t.showModalCollaborator()})),ns(33,"fa-icon",19),es(34,"span",20),Gs(35,"Adicionar funcion\xe1rios"),ts(),ts(),ts(),es(36,"div",17),Jr(37,boe,1,4,"io-datepicker",21),Jr(38,_oe,1,4,"io-datepicker",22),ts(),es(39,"div",23),es(40,"input",24),ls("change",(function(){return t.verifyHour("begin_hour"),t.verifyTotalTime()})),ts(),ts(),es(41,"div",23),es(42,"input",25),ls("change",(function(){return t.verifyHourJobTime("total_hours"),t.verifyTotalTime()})),ts(),ts(),es(43,"div",17),es(44,"span",26),Gs(45),ts(),ts(),ts(),ts(),ns(46,"div",27),es(47,"span",28),Gs(48,"Detalhes:"),ts(),es(49,"div",29),es(50,"div",30),ns(51,"textarea",31),ts(),ts(),es(52,"div",32),Jr(53,koe,8,0,"p",33),Jr(54,Coe,8,0,"p",33),ts(),ns(55,"div",27),ts(),es(56,"div",34),ns(57,"io-btn",35),es(58,"io-btn",36),ls("btnClick",(function(){return t.sendOnDuty()})),ts(),ts(),ts(),es(59,"io-modal-multi-select-id",37),ls("selectedId",(function(e){return t.setCollaboratorListSelect(e)}))("hideModal",(function(){return t.hideModalCollaborator()})),ts()}2&e&&(Bo(1),Zr("titleTop",t.updateOn?"Edi\xe7\xe3o de Plant\xe3o":"Cadastro de Plant\xe3o"),Bo(1),Zr("formGroup",t.onDutyForm),Bo(3),Zr("formControlName","description"),Bo(4),Zr("formControlName","type"),Bo(2),Zr("value",1),Bo(2),Zr("value",2),Bo(4),Zr("icon",t.iconSolidService.faCaretDown),Bo(16),Zr("icon",t.iconRegularService.faTimesCircle),Bo(4),Zr("ngIf",!t.updateOn),Bo(1),Zr("ngIf",t.updateOn&&""!=t.onDutyForm.get("begin_date").value),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","begin_hour"),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","total_hours"),Bo(3),Ks("",t.finalDate," - ",t.finalHour,""),Bo(6),Zr("formControlName","details"),Bo(2),Zr("ngIf",1==t.onDutyType),Bo(1),Zr("ngIf",2==t.onDutyType),Bo(3),Zr("moduleName","on-duty")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("urlNavigation","on-duty")("useValidation",!1),Bo(1),Zr("moduleName","on-duty")("action",t.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",t.updateOn?"Salvar":"Finalizar")("btnTitle",t.updateOn?"Salvar":"Finalizar"),Bo(1),Zr("moduleName","on-duty")("showModal",t.modalCollaborator)("selectedListId",t.collaboratorListSelectedId))},directives:[eI,Hf,ip,If,bp,Vf,vp,vm,ym,xm,FD,sh,DE,kp,jD,tR,UA],styles:[".minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin:0}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:150px}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child   img[_ngcontent-%COMP%]{max-width:25px;height:25px;margin:0 5px 0 -5px;cursor:pointer}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:120px;overflow:hidden}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   io-datepicker[_ngcontent-%COMP%]{display:block;margin:0}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px;text-align:center}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3)   input[_ngcontent-%COMP%]{text-align:center;max-width:50px;padding-bottom:3px}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:140px;text-align:center}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   input[_ngcontent-%COMP%]{text-align:center;max-width:50px;padding-bottom:3px}.minHeightBox[_ngcontent-%COMP%]   .alignBox[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:150px;text-align:right}.minHeightBox[_ngcontent-%COMP%]   .alignBox.boxWhite[_ngcontent-%COMP%]{padding:0 20px 0 15px}.minHeightBox[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{margin:0;overflow:hidden;height:100px}.borderBottom[_ngcontent-%COMP%]{border-color:var(--cl-gray-dark)}"]}),Soe),Toe=((Moe=function(){return d((function e(t){c(this,e),this.titleService=t}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Plant\xe3o - Cadastro")}}])}()).\u0275fac=function(e){return new(e||Moe)($r(hL))},Moe.\u0275cmp=Ot({type:Moe,selectors:[["io-on-duty-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-on-duty-form"),ts(),ts())},directives:[Poe],styles:[""]}),Moe),Ooe=((xoe=function(){return d((function e(t,n){c(this,e),this.router=t,this.titleService=n,this.onDutyId="";var i=this.router.getCurrentNavigation();i.extras.state?this.onDutyId=i.extras.state.onDutyId:this.router.navigate(["/on-duty"]).then((function(){return!1}))}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Plant\xe3o - Edi\xe7\xe3o")}}])}()).\u0275fac=function(e){return new(e||xoe)($r(yM),$r(hL))},xoe.\u0275cmp=Ot({type:xoe,selectors:[["io-on-duty-page-update"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"onDutyId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-on-duty-form",2),ts(),ts()),2&e&&(Bo(2),Zr("onDutyId",t.onDutyId))},directives:[Poe],styles:[""]}),xoe),Loe=((woe=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteOverTimeRequest",value:function(e,t){this.databaseService.delete("/overTimeRequest/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOverTimeRequest",value:function(e,t){this.databaseService.get("/overTimeRequest/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getOverTimeRequestList",value:function(e,t){this.databaseService.get("/overTimeRequest/",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putOverTimeRequest",value:function(e,t,n){this.databaseService.put("/overTimeRequest/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||woe)(ut(tT))},woe.\u0275prov=Se({token:woe,factory:woe.\u0275fac,providedIn:"root"}),woe);function Doe(e,t){if(1&e){var n=as();es(0,"io-datepicker",1),ls("dateSelectedEN",(function(e){return mn(n),fs().setPeriod(e)})),Gs(1,"\n>"),ts()}if(2&e){var i=fs();Zr("labelText","Per\xedodo")("startDate",i.period)("minDate",i.minDate)("datepickerMonth",!0)}}var Ioe,Foe=((Ioe=function(){return d((function e(t,n,i,o){c(this,e),this.companyService=t,this.databaseService=n,this.storageService=i,this.functionsService=o,this.collaboratorId="",this.startDate="",this.period=this.storageService.decodeFromLocalStorage("periodSelected"),this.minDate=this.companyService.getMinDate(),this.dateSelected=new Mc,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),null==this.period&&(this.period=this.functionsService.currentDateEN("00/00/0000","min"))}),[{key:"ngOnInit",value:function(){var e=this;this.companyService.getMinDateEmitter().subscribe((function(t){return e.minDate=t}))}},{key:"setPeriod",value:function(e){this.period=e,this.storageService.encodeToLocalStorage("periodSelected",this.period),this.emitDateSelected(this.period)}},{key:"emitDateSelected",value:function(e){this.dateSelected.emit(e)}}])}()).\u0275fac=function(e){return new(e||Ioe)($r(tI),$r(tT),$r(YP),$r(zP))},Ioe.\u0275cmp=Ot({type:Ioe,selectors:[["io-period-selector"]],inputs:{collaboratorId:"collaboratorId"},outputs:{dateSelected:"dateSelected"},decls:1,vars:1,consts:[[3,"labelText","startDate","minDate","datepickerMonth","dateSelectedEN",4,"ngIf"],[3,"labelText","startDate","minDate","datepickerMonth","dateSelectedEN"]],template:function(e,t){1&e&&Jr(0,Doe,2,4,"io-datepicker",0),2&e&&Zr("ngIf",null!=t.period)},directives:[sh,UA],styles:[""]}),Ioe);function Aoe(e,t){1&e&&(es(0,"div",5),es(1,"div",6),es(2,"h2",7),Gs(3,"Carregando..."),ts(),ts(),ts())}function Eoe(e,t){if(1&e&&(es(0,"div",5),es(1,"h2",8),Gs(2),ts(),es(3,"h2",9),Gs(4,"Data: "),es(5,"span",7),Gs(6),ts(),ts(),es(7,"h2",9),Gs(8,"Horas extras solicitadas: "),es(9,"span",7),Gs(10),ts(),ts(),es(11,"h2",9),Gs(12,"Justificativa do funcion\xe1rio: "),es(13,"span",7),Gs(14),ts(),ts(),es(15,"h2",9),Gs(16,"Tipo de regime: "),es(17,"span",7),Gs(18),ts(),ts(),es(19,"h2",9),Gs(20,"Solicitado em: "),es(21,"span",7),Gs(22),ts(),ts(),ns(23,"div",10),es(24,"div",11),ns(25,"textarea",12),ts(),ts()),2&e){var n=fs();Bo(2),Qs("Funcion\xe1rio: ",n.overTimeRequestData.collaborator_name,""),Bo(4),$s(n.getDateBr(n.overTimeRequestData.requested_date)),Bo(4),$s(n.overTimeRequestData.requested_time.slice(0,5)),Bo(4),$s(n.overTimeRequestData.collaborator_justification),Bo(4),$s(n.overTimeRequestData.bank_time_description||"Horas extras"),Bo(4),$s(n.getCreatedAt(n.overTimeRequestData.created_at)),Bo(2),Zr("formGroup",n.overTimeRequestForm),Bo(1),Zr("formControlName","manager_justification")}}function Boe(e,t){if(1&e&&(es(0,"div",14),es(1,"span",15),Gs(2),ts(),ts()),2&e){var n=fs(2);Bo(2),Qs("\xdaltimo fechamento deste funcion\xe1rio: ",n.getDateBr(n.overTimeRequestData.lastClosureDate),"")}}function Noe(e,t){if(1&e){var n=as();es(0,"div",14),es(1,"io-btn",16),ls("btnClick",(function(){return mn(n),fs(2).setRequestApprove(0)})),ts(),es(2,"io-btn",17),ls("btnClick",(function(){return mn(n),fs(2).setRequestApprove(1)})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","comp-time")("action","update")("btnColor","btn-red-bg")("btnText","Recusar"),Bo(1),Zr("moduleName","comp-time")("action","update")("btnColor","btn-blue-bg")("btnText","Aceitar"))}function Roe(e,t){if(1&e&&(es(0,"div"),Jr(1,Boe,3,1,"div",13),Jr(2,Noe,3,8,"div",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",!n.requestedDateGreaterThanClosure()),Bo(1),Zr("ngIf",n.requestedDateGreaterThanClosure())}}var joe,zoe=((joe=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.overTimeDatabase=n,this.functionsService=i,this.overTimeRequestId=null,this.showModal=!0,this.hideModal=new Mc,this.overTimeUpdated=new Mc,this.overTimeRequestData=null,this.stateFields={manager_justification:{class:""}},this.updateOn=!1,this.overTimeRequestForm=this.formBuilder.group({manager_justification:new Wm("",[Jf.required]),is_approved:new Wm(null,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&this.overTimeRequestId&&this.overTimeDatabase.getOverTimeRequest(this.overTimeRequestId,(function(t){t.error||(e.overTimeRequestData=t.data.overTimeRequestData||null)}))}},{key:"setRequestApprove",value:function(e){this.overTimeRequestForm.get("is_approved").setValue(e),this.putOverTimeRequestForm()}},{key:"overTimeRequestFormIsValid",value:function(){return!!this.checkErrorField("manager_justification")||(this.functionsService.openSnackBar("Informe uma justificativa"),!1)}},{key:"putOverTimeRequestForm",value:function(){var e=this;this.overTimeRequestFormIsValid()&&this.overTimeDatabase.putOverTimeRequest(this.overTimeRequestId,this.overTimeRequestForm.value,(function(t){t.error||(e.emitUpdateList(),e.closeModal())}))}},{key:"emitUpdateList",value:function(){this.overTimeUpdated.emit()}},{key:"checkErrorField",value:function(e){return this.stateFields[e].class=this.overTimeRequestForm.controls[e].valid?"":"emptyError",""==this.stateFields[e].class}},{key:"getCreatedAt",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])+" \xe1s "+e.split(" ")[1].slice(0,5)}},{key:"getDateBr",value:function(e){return e?this.functionsService.dateENtoBR(e):""}},{key:"requestedDateGreaterThanClosure",value:function(){return!this.overTimeRequestData||!this.overTimeRequestData.lastClosureDate||this.functionsService.getDateAsInt(this.overTimeRequestData.requested_date)>this.functionsService.getDateAsInt(this.overTimeRequestData.lastClosureDate)}},{key:"closeModal",value:function(){this.hideModal.emit(),this.overTimeRequestForm.reset(),this.overTimeRequestId=null,this.overTimeRequestData=null}}])}()).\u0275fac=function(e){return new(e||joe)($r(wp),$r(Loe),$r(zP))},joe.\u0275cmp=Ot({type:joe,selectors:[["io-over-time-modal-approve-request"]],inputs:{overTimeRequestId:"overTimeRequestId",showModal:"showModal"},outputs:{hideModal:"hideModal",overTimeUpdated:"overTimeUpdated"},features:[dl],decls:7,vars:4,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],["class","requestDataBox",4,"ngIf"],[4,"ngIf"],[1,"requestDataBox"],[1,"center","pdg2","mrg2"],[1,"sizeC"],[1,"sizeB","mrgB2"],[1,"sizeC","mrgB1"],[1,"mrgB2"],[1,"form-group","inputAnimated",3,"formGroup"],["placeholder","justificativa","required","",1,"sizeC",3,"formControlName"],["class","flex",4,"ngIf"],[1,"flex"],[1,"sizeC","cl-red","fontBold"],[3,"moduleName","action","btnColor","btnText","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Solicita\xe7\xe3o de hora extra"),ts(),Jr(4,Aoe,4,0,"div",3),Jr(5,Eoe,26,8,"div",3),ts(),Jr(6,Roe,3,2,"div",4),ts()),2&e&&(Zr("showModal",t.showModal),Bo(4),Zr("ngIf",!t.overTimeRequestData),Bo(1),Zr("ngIf",t.overTimeRequestData),Bo(1),Zr("ngIf",t.overTimeRequestData))},directives:[CE,sh,Hf,ip,If,bp,Vf,vp,jD],styles:["textarea[_ngcontent-%COMP%]{height:80px}"]}),joe);function Voe(e,t){1&e&&(es(0,"span",28),Gs(1,"Pendente"),ts())}function Hoe(e,t){1&e&&(es(0,"span",29),Gs(1,"Aprovado"),ts())}function Yoe(e,t){1&e&&(es(0,"span",30),Gs(1,"Recusado"),ts())}function qoe(e,t){if(1&e){var n=as();es(0,"fa-icon",31),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalOverTimeRequest(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEdit)}function Uoe(e,t){if(1&e){var n=as();es(0,"li",20),es(1,"span",21),Gs(2),ts(),es(3,"span",21),Gs(4),ts(),es(5,"span",21),Gs(6),ts(),es(7,"span",21),Gs(8),ts(),es(9,"span",21),Gs(10),ts(),es(11,"span",21),Jr(12,Voe,2,0,"span",22),Jr(13,Hoe,2,0,"span",23),Jr(14,Yoe,2,0,"span",24),ts(),es(15,"span",25),Jr(16,qoe,1,1,"fa-icon",26),es(17,"io-icon",27),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.name),Bo(2),$s(o.getDateBr(i.requested_date)),Bo(2),$s(i.requested_time.slice(0,5)),Bo(2),$s(i.bankTimeDescription||"Hora Extra"),Bo(2),$s(o.getCreatedAt(i.created_at)),Bo(2),Zr("ngIf",null==i.is_approved),Bo(1),Zr("ngIf",1==i.is_approved),Bo(1),Zr("ngIf",0==i.is_approved),Bo(2),Zr("ngIf",null==i.is_approved),Bo(1),Zr("moduleName","comp-time")("action","delete")("iconTitle","Excluir solicita\xe7\xe3o de hora extra")}}function Woe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Joe(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma solicita\xe7\xe3o de hora extra encontrada."),ts())}function Goe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 solicita\xe7\xf5es de horas extras."),ts())}function $oe(e,t){if(1&e&&(es(0,"li"),Jr(1,Woe,2,0,"p",17),Jr(2,Joe,2,0,"p",17),Jr(3,Goe,2,0,"p",17),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.overTimeRequestList.length>0&&n.overTimeRequestList[0].loading),Bo(1),Zr("ngIf",n.overTimeRequestList.length>0&&!n.overTimeRequestList[0].loading&&0==n.overTimeRequestListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.overTimeRequestList.length)}}var Qoe,Koe,Zoe=((Koe=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.overTimeDatabase=r,this.storageService=s,this.titleService=l,this.modalOverTimeRequest=!1,this.dateSelected=null,this.modalDelete=!1,this.overTimeRequestList=[{loading:!0}],this.overTimeRequestListFilteredApproved=[],this.overTimeRequestListFilteredSearch=[],this.overTimeRequestSelectedId=null,this.titleService.setTitle("Solicita\xe7\xe3o de f\xe9rias"),this.searchForm=this.formBuilder.group({approved:new Wm(null,[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"setDate",value:function(e){this.dateSelected=e,this.getOverTimeRequestList()}},{key:"getOverTimeRequestList",value:function(){var e=this;null!=this.dateSelected&&this.overTimeDatabase.getOverTimeRequestList({date:this.dateSelected},(function(t){t.error||(e.overTimeRequestList=t.data.overTimeRequestList,e.filterOverTimeRequestApproved())}))}},{key:"filterOverTimeRequestApproved",value:function(){var e=this.searchForm.controls.approved.value;"null"==e&&(e=null),this.overTimeRequestListFilteredApproved=this.overTimeRequestList.filter((function(t){return t.is_approved==e})),"all"==e&&(this.overTimeRequestListFilteredApproved=this.overTimeRequestList),this.filterOverTimeRequestSearch(this.searchForm.get("search").value)}},{key:"filterOverTimeRequestSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.overTimeRequestListFilteredSearch=this.functionsService.arrayFilterWords(this.overTimeRequestListFilteredApproved,e,"name")}},{key:"showModalOverTimeRequest",value:function(e){this.overTimeRequestSelectedId=e,this.modalOverTimeRequest=!0}},{key:"hideModalOverTimeRequest",value:function(){this.modalOverTimeRequest=!1,this.overTimeRequestSelectedId=null}},{key:"showModalDelete",value:function(e){this.overTimeRequestSelectedId=e,this.modalDelete=!0}},{key:"deleteOverTimeRequest",value:function(){var e=this;this.overTimeDatabase.deleteOverTimeRequest(this.overTimeRequestSelectedId,(function(t){t.error||(e.getOverTimeRequestList(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.overTimeRequestSelectedId=null}},{key:"getCreatedAt",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0])+" \xe1s "+e.split(" ")[1].slice(0,5)}},{key:"getDateBr",value:function(e){return this.functionsService.dateENtoBR(e)}}])}()).\u0275fac=function(e){return new(e||Koe)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(Loe),$r(YP),$r(hL))},Koe.\u0275cmp=Ot({type:Koe,selectors:[["io-over-time-page-list-request"]],decls:37,vars:15,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax25","mrgB2"],[3,"dateSelected"],[1,"flexPad"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","statusFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex listAlign bg-white",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","overTimeRequestId","hideModal","overTimeUpdated"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","listAlign","bg-white"],[1,"item","sizeC"],["class","cl-tertiary",4,"ngIf"],["class","cl-primary",4,"ngIf"],["class","cl-red",4,"ngIf"],[1,"item"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace","title","Aprovar/recusar solicita\xe7\xe3o",3,"icon","click",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClick"],[1,"cl-tertiary"],[1,"cl-primary"],[1,"cl-red"],["size","3x","title","Aprovar/recusar solicita\xe7\xe3o",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-period-selector",4),ls("dateSelected",(function(e){return t.setDate(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterOverTimeRequestSearch(e)})),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"h3",9),Gs(10,"Funcion\xe1rio"),ts(),es(11,"h3",9),Gs(12,"Data de realiza\xe7\xe3o"),ts(),es(13,"h3",9),Gs(14,"Tempo solicitado"),ts(),es(15,"h3",9),Gs(16,"Regime"),ts(),es(17,"h3",9),Gs(18,"Data de solicita\xe7\xe3o"),ts(),es(19,"div",10),es(20,"select",11),ls("change",(function(){return t.filterOverTimeRequestApproved()})),es(21,"option",12),Gs(22,"Todos"),ts(),es(23,"option",13),Gs(24,"Pendentes"),ts(),es(25,"option",12),Gs(26,"Aprovado"),ts(),es(27,"option",12),Gs(28,"Recusados"),ts(),ts(),ns(29,"fa-icon",14),ts(),es(30,"h3",9),Gs(31,"A\xe7\xe3o"),ts(),ts(),es(32,"ul",15),Jr(33,Uoe,18,12,"li",16),Jr(34,$oe,4,3,"li",17),ts(),ts(),ts(),ts(),es(35,"io-over-time-modal-approve-request",18),ls("hideModal",(function(){return t.hideModalOverTimeRequest()}))("overTimeUpdated",(function(){return t.getOverTimeRequestList()})),ts(),es(36,"io-modal-confirm",19),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteOverTimeRequest()})),ts()),2&e&&(Bo(2),Zr("titleTop","Solicita\xe7\xe3o de hora extra"),Bo(6),Zr("formGroup",t.searchForm),Bo(12),Zr("formControlName","approved"),Bo(1),Zr("value","all"),Bo(2),Zr("value",null),Bo(2),Zr("value",1),Bo(2),Zr("value",0),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.overTimeRequestListFilteredSearch),Bo(1),Zr("ngIf",0==t.overTimeRequestListFilteredSearch.length),Bo(1),Zr("showModal",t.modalOverTimeRequest)("overTimeRequestId",t.overTimeRequestSelectedId),Bo(1),Zr("title","Excluir solicita\xe7\xe3o de hora extra?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[eI,Foe,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,zoe,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:250px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:80px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:80px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:140px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:50px;margin:0;text-align:right}"]}),Koe),Xoe=((Qoe=d((function e(t,n,i){c(this,e),this.router=t,this.functionsService=n,this.iconSolidService=i}))).\u0275fac=function(e){return new(e||Qoe)($r(yM),$r(zP),$r(JO))},Qoe.\u0275cmp=Ot({type:Qoe,selectors:[["io-partner-page-porto-seguro"]],decls:49,vars:1,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"spacer"],[1,"partnerTitle","mrgB2"],[1,"sizeB","fontBold"],[1,"partnerCardBox","flexDesk","fullHeight"],[1,"wdFullTab","shdw","bg-white","round2","pdg2"],[1,"cardTop","flex"],[1,"fontBold","giantNumber","cl-blue"],[1,"sizeB"],[1,"textBox"],["target","_blank","href","https://www.portoseguro.com.br/sinistros/vida-e-familia/sinistro-seguro-acidentes-pessoais/acidentes-pessoais",1,"cl-blue"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),ns(3,"div",3),es(4,"div",4),es(5,"h2",5),Gs(6,"Como acionar o sinistro Porto Seguro."),ts(),ts(),es(7,"div",6),es(8,"div",7),es(9,"div",8),es(10,"span",9),Gs(11,"1"),ts(),es(12,"span",10),Gs(13,"Separe os documentos necess\xe1rios"),ts(),ts(),es(14,"div",11),es(15,"p"),Gs(16,"Para a an\xe1lise do sinistro, voc\xea precisar\xe1 enviar para a Porto Seguro c\xf3pias dos seus documentos pessoais e alguns formul\xe1rios que comprovem o que aconteceu."),ts(),es(17,"p"),es(18,"a",12),Gs(19,"Clique aqui"),ts(),Gs(20," e veja os documentos necess\xe1rios."),ts(),ts(),ts(),es(21,"div",7),es(22,"div",8),es(23,"span",9),Gs(24,"2"),ts(),es(25,"span",10),Gs(26,"Entre em contato com a Corretora de seguro"),ts(),ts(),es(27,"div",11),es(28,"p"),Gs(29,"Envie os arquivos preenchidos para o e-mail:"),ts(),es(30,"p"),Gs(31,"sinistro@gambattoseguros.com.br"),ts(),es(32,"p"),Gs(33,"ou"),ts(),es(34,"p"),Gs(35,"sinistro1@gambattoseguros.com.br."),ts(),ts(),ts(),es(36,"div",7),es(37,"div",8),es(38,"span",9),Gs(39,"3"),ts(),es(40,"span",10),Gs(41,"Acompanhe a an\xe1lise do sinistro"),ts(),ts(),es(42,"div",11),es(43,"p"),Gs(44,"Saiba mais informa\xe7\xf5es sobre o pedido de abertura do seu sinistro."),ts(),es(45,"p"),Gs(46,"Entre em contato com a Central de Atendimento pelos telefones:"),ts(),es(47,"p"),Gs(48,"(49) 3631 0900 ou (49) 98419 7512."),ts(),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(2),Zr("titleTop","Porto Seguro"))},directives:[eI],styles:[".spacer[_ngcontent-%COMP%]{height:40px}.partnerCardBox[_ngcontent-%COMP%]   .wdFullTab[_ngcontent-%COMP%]{width:100%;max-width:32%}.partnerCardBox[_ngcontent-%COMP%]   .wdFullTab[_ngcontent-%COMP%]   .cardTop[_ngcontent-%COMP%]{padding:0 10px}.partnerCardBox[_ngcontent-%COMP%]   .wdFullTab[_ngcontent-%COMP%]   .cardTop[_ngcontent-%COMP%]   .giantNumber[_ngcontent-%COMP%]{font-size:75px;line-height:75px;margin-Right:10px}.partnerCardBox[_ngcontent-%COMP%]   .wdFullTab[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:30px}@media (max-width:860px){.flexDesk[_ngcontent-%COMP%]{display:block}.flexDesk[_ngcontent-%COMP%]   .wdFullTab[_ngcontent-%COMP%]{max-width:350px;margin:0 auto 20px}.partnerTitle[_ngcontent-%COMP%]{text-align:center}}"]}),Qoe);function eae(e,t){if(1&e&&(es(0,"span",21),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}var tae=function(){return["/permission-update"]},nae=function(e){return{permissionId:e}};function iae(e,t){if(1&e&&ns(0,"fa-icon",22),2&e){var n=fs().$implicit,i=fs();Zr("routerLink",mc(3,tae))("state",pc(4,nae,n.id))("icon",i.iconRegularService.faEdit)}}function oae(e,t){if(1&e){var n=as();es(0,"fa-icon",23),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faTrashAlt)}function aae(e,t){if(1&e){var n=as();es(0,"li",14),es(1,"span",15),Jr(2,eae,2,1,"span",16),Gs(3),ts(),es(4,"span",15),Gs(5),ts(),es(6,"span",15),Gs(7),ts(),es(8,"span",17),es(9,"fa-icon",18),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalUserList(e.id)})),ts(),Jr(10,iae,1,6,"fa-icon",19),Jr(11,oae,1,1,"fa-icon",20),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),$s(i.description),Bo(2),$s("adm"==i.type?"Administrador":"Personalizado"),Bo(2),$s(i.userTotalNumber),Bo(2),Zr("icon",o.iconSolidService.faUser),Bo(1),Zr("ngIf","adm"!=i.type),Bo(1),Zr("ngIf","adm"!=i.type)}}function rae(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function sae(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma permiss\xe3o encontrada."),ts())}function lae(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o permiss\xf5es cadastradas."),ts())}function cae(e,t){if(1&e&&(es(0,"li"),Jr(1,rae,2,0,"p",10),Jr(2,sae,2,0,"p",10),Jr(3,lae,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.permissionList.length>0&&n.permissionList[0].loading),Bo(1),Zr("ngIf",n.permissionList.length>0&&!n.permissionList[0].loading&&0==n.permissionListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.permissionList.length)}}var uae,dae,hae,fae=((uae=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.permissionDatabase=r,this.storageService=s,this.titleService=l,this.modalDelete=!1,this.modalUserLink=!1,this.modalUserList=!1,this.permissionList=[{loading:!0}],this.permissionListFilteredSearch=[],this.permissionSelectedId=null,this.userListIn=[],this.userListOut=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Permiss\xf5es"),this.getPermissionList()}),[{key:"getPermissionList",value:function(){var e=this;this.permissionList=[{loading:!0}],this.permissionListFilteredSearch=[],this.permissionDatabase.getPermissionList((function(t){e.permissionList=t.data.roleList,e.permissionListFilteredSearch=e.permissionList}))}},{key:"filterCollaboratorSearch",value:function(e){this.permissionListFilteredSearch=this.functionsService.arrayFilterWords(this.permissionList,e,"description")}},{key:"showModalDelete",value:function(e){this.permissionSelectedId=e,this.modalDelete=!0}},{key:"deletePermission",value:function(){var e=this,t=this.permissionSelectedId;this.permissionDatabase.deletePermission(t,(function(n){if(!n.error){var i=e.permissionList.findIndex((function(e){return e.id==t}));e.permissionList.splice(i,1),e.hideModalDelete(),e.getPermissionList()}}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.permissionSelectedId=null}},{key:"showModalUserList",value:function(e){var t=this;this.userListIn=[{loading:!0}],this.permissionDatabase.getPermissionUserList(e,(function(e){e.error||(t.userListIn=e.data.userList||[])})),this.permissionSelectedId=e,this.modalUserList=!0}},{key:"hideModalUserList",value:function(){this.modalUserList=!1,this.permissionSelectedId=null}},{key:"showModalUserLink",value:function(){var e=this;this.userListOut=[{loading:!0}],this.permissionDatabase.getPermissionUserListOut(this.permissionSelectedId,(function(t){t.error||(e.userListOut=t.data.userListOut||[])})),this.modalUserLink=!0,this.modalUserList=!1}},{key:"linkUserList",value:function(e){var t=this;0!=e.length&&this.permissionDatabase.putPermissionUserList(this.permissionSelectedId,{userListSelectedId:JSON.stringify(e)},(function(e){e.error||(t.hideModalUserLink(),t.getPermissionList())}))}},{key:"hideModalUserLink",value:function(){this.modalUserLink=!1,this.permissionSelectedId=null}}])}()).\u0275fac=function(e){return new(e||uae)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(nT),$r(YP),$r(hL))},uae.\u0275cmp=Ot({type:uae,selectors:[["io-permission-page-list"]],decls:21,vars:28,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex bg-white listAlign","title","Ver per\xedodo",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectionEnabled","selectUser","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectUser","selectedId","hideModal"],["title","Ver per\xedodo",1,"flex","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item"],["size","3x","title","Visualizar gestores",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace mrgL1","title","Editar",3,"routerLink","state","icon",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace mrgL1","title","Excluir",3,"icon","click",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],["size","3x","title","Editar",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"routerLink","state","icon"],["size","3x","title","Excluir",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterCollaboratorSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Nome"),ts(),es(9,"h3",7),Gs(10,"Tipo"),ts(),es(11,"h3",7),Gs(12,"Gestores"),ts(),es(13,"h3",7),Gs(14,"A\xe7\xe3o"),ts(),ts(),es(15,"ul",8),Jr(16,aae,12,7,"li",9),Jr(17,cae,4,3,"li",10),ts(),ts(),ts(),ts(),es(18,"io-modal-confirm",11),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deletePermission()})),ts(),es(19,"io-modal-multi-select-id",12),ls("btnAddClick",(function(){return t.showModalUserLink()}))("hideModal",(function(){return t.hideModalUserList()})),ts(),es(20,"io-modal-multi-select-id",13),ls("selectedId",(function(e){return t.linkUserList(e)}))("hideModal",(function(){return t.hideModalUserLink()})),ts()),2&e&&(Bo(2),Zr("moduleName","permission")("titleTop","Permiss\xf5es")("showBtn",!0)("btnDataUrl","permission-register"),Bo(14),Zr("ngForOf",t.permissionListFilteredSearch),Bo(1),Zr("ngIf",0==t.permissionListFilteredSearch.length),Bo(1),Zr("title","Excluir Permiss\xe3o?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("title","Gestores vinculados a esta permiss\xe3o")("moduleName","collaborator")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.userListIn)("getCollaboratorListFromDatabase",!1)("showModal",t.modalUserList)("selectionEnabled",!1)("selectUser",!0),Bo(1),Zr("title","Vincular gestores a esta permiss\xe3o")("moduleName","collaborator")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.userListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalUserLink)("selectUser",!0))},directives:[eI,oE,ah,sh,UB,tR,FD,bM],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:10%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:15%;text-align:right}"]}),uae),mae=d((function e(){c(this,e)})),pae=((dae=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"getTranslation",value:function(e){return Sp({})}}])}(mae)).\u0275fac=function(e){return gae(e||dae)},dae.\u0275prov=Se({token:dae,factory:dae.\u0275fac}),dae),gae=wi(pae),vae=d((function e(){c(this,e)})),yae=((hae=function(){return d((function e(){c(this,e)}),[{key:"handle",value:function(e){return e.key}}])}()).\u0275fac=function(e){return new(e||hae)},hae.\u0275prov=Se({token:hae,factory:hae.\u0275fac}),hae);function bae(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,o,a=typeof e;if(a==typeof t&&"object"==a){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in o=Object.create(null),e){if(!bae(e[i],t[i]))return!1;o[i]=!0}for(i in t)if(!(i in o)&&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(!bae(e[i],t[i]))return!1;return!0}}return!1}function _ae(e){return null!=e}function kae(e){return e&&"object"==typeof e&&!Array.isArray(e)}var Cae,wae,xae,Mae,Sae,Pae=d((function e(){c(this,e)})),Tae=((Cae=function(e){function t(){var e;return c(this,t),(e=f(this,t,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return p(t,e),d(t,[{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(),!_ae(e)||!_ae(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 o=n.getValue(t,i);return _ae(o)?o:e})):e}}])}(Pae)).\u0275fac=function(e){return Oae(e||Cae)},Cae.\u0275prov=Se({token:Cae,factory:Cae.\u0275fac}),Cae),Oae=wi(Tae),Lae=d((function e(){c(this,e)})),Dae=((wae=function(e){function t(){return c(this,t),f(this,t,arguments)}return p(t,e),d(t,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}])}(Lae)).\u0275fac=function(e){return Iae(e||wae)},wae.\u0275prov=Se({token:wae,factory:wae.\u0275fac}),wae),Iae=wi(Dae),Fae=d((function e(){c(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new Mc,this.onLangChange=new Mc,this.onDefaultLangChange=new Mc})),Aae=new tt("USE_STORE"),Eae=new tt("USE_DEFAULT_LANG"),Bae=new tt("DEFAULT_LANGUAGE"),Nae=new tt("USE_EXTEND"),Rae=((Sae=function(){return d((function e(t,n,i,o,a){var r=!(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;c(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=o,this.missingTranslationHandler=a,this.useDefaultLang=r,this.isolate=s,this.extend=l,this.pending=!1,this._onTranslationChange=new Mc,this._onLangChange=new Mc,this._onDefaultLangChange=new Mc,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}),[{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(Eg(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 Sp(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Eg(1)).subscribe((function(n){t.changeLang(e)})),n):(this.changeLang(e),Sp(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(_k(1),Eg(1));return this.loadingTranslations=n.pipe(Z((function(n){return t.compiler.compileTranslations(n,e)})),_k(1),Eg(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(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n=this.compiler.compileTranslations(n,t),this.translations[t]=(i||this.extend)&&this.translations[t]?function t(n,i){var o=Object.assign({},n);return kae(n)&&kae(i)&&Object.keys(i).forEach((function(a){kae(i[a])&&a in n?o[a]=t(n[a],i[a]):Object.assign(o,e({},a,i[a]))})),o}(this.translations[t],n):n,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{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 a,r={},s=!1,l=o(t);try{for(l.s();!(a=l.n()).done;){var c=a.value;r[c]=this.getParsedResult(e,c,n),XM(r[c])&&(s=!0)}}catch(d){l.e(d)}finally{l.f()}return s?kf(t.map((function(e){return XM(r[e])?r[e]:Sp(r[e])}))).pipe(Z((function(e){var n={};return e.forEach((function(e,i){n[t[i]]=e})),n}))):r}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 u={key:t,translateService:this};void 0!==n&&(u.interpolateParams=n),i=this.missingTranslationHandler.handle(u)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!_ae(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Pp((function(i){return XM(i=n.getParsedResult(i,e,t))?i:Sp(i)})));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return XM(i)?i:Sp(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!_ae(e)||!e.length)throw new Error('Parameter "key" required');return Yv(LC((function(){return n.get(e,t)})),this.onTranslationChange.pipe(vk((function(i){var o=n.getParsedResult(i.translations,e,t);return"function"==typeof o.subscribe?o:Sp(o)}))))}},{key:"stream",value:function(e,t){var n=this;if(!_ae(e)||!e.length)throw new Error('Parameter "key" required');return Yv(LC((function(){return n.get(e,t)})),this.onLangChange.pipe(vk((function(i){var o=n.getParsedResult(i.translations,e,t);return XM(o)?o:Sp(o)}))))}},{key:"instant",value:function(e,t){if(!_ae(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(XM(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}}}])}()).\u0275fac=function(e){return new(e||Sae)(ut(Fae),ut(mae),ut(Lae),ut(Pae),ut(vae),ut(Eae),ut(Aae),ut(Nae),ut(Bae))},Sae.\u0275prov=Se({token:Sae,factory:Sae.\u0275fac}),Sae),jae=((Mae=function(){return d((function e(t,n){c(this,e),this.translate=t,this._ref=n,this.value=""}),[{key:"updateValue",value:function(e,t,n){var i=this,o=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);XM(a.subscribe)?a.subscribe(o):o(a)}this.translate.get(e,t).subscribe(o)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(bae(e,this.lastKey)&&bae(o,this.lastParams))return this.value;if(_ae(o[0])&&o.length)if("string"==typeof o[0]&&o[0].length){var r=o[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(r)}catch(Dwe){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+o[0])}}else"object"!=typeof o[0]||Array.isArray(o[0])||(t=o[0]);return this.lastKey=e,this.lastParams=o,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()}}])}()).\u0275fac=function(e){return new(e||Mae)($r(Rae),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:we.Default,t=cr(!0);if(null!=t||e&we.Optional)return t;throw new Error("No provider for ChangeDetectorRef!")}())},Mae.\u0275pipe=Bt({name:"translate",type:Mae,pure:!1}),Mae.\u0275prov=Se({token:Mae,factory:Mae.\u0275fac}),Mae),zae=((xae=function(){function e(){c(this,e)}return d(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:mae,useClass:pae},t.compiler||{provide:Lae,useClass:Dae},t.parser||{provide:Pae,useClass:Tae},t.missingTranslationHandler||{provide:vae,useClass:yae},Fae,{provide:Aae,useValue:t.isolate},{provide:Eae,useValue:t.useDefaultLang},{provide:Nae,useValue:t.extend},{provide:Bae,useValue:t.defaultLanguage},Rae]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:mae,useClass:pae},t.compiler||{provide:Lae,useClass:Dae},t.parser||{provide:Pae,useClass:Tae},t.missingTranslationHandler||{provide:vae,useClass:yae},{provide:Aae,useValue:t.isolate},{provide:Eae,useValue:t.useDefaultLang},{provide:Nae,useValue:t.extend},{provide:Bae,useValue:t.defaultLanguage},Rae]}}}])}()).\u0275mod=Ft({type:xae}),xae.\u0275inj=Pe({factory:function(e){return new(e||xae)}}),xae);function Vae(e,t){if(1&e){var n=as();es(0,"div",15),es(1,"label",19),Gs(2),_c(3,"translate"),es(4,"input",20,21),ls("change",(function(){mn(n);var e=t.index,i=Gr(5),o=fs().index;return fs().setValue(o,e,i.checked)})),ts(),ns(6,"span",22),ts(),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs().index,r=fs();Bo(2),Qs("",kc(3,2,"module.permission."+i.type)," "),Bo(2),Zr("checked",r.permissionArraySelected[a].indexOf(o+1)>=0)}}function Hae(e,t){if(1&e){var n=as();es(0,"div",23),es(1,"io-multiselect",24),ls("listSelectedId",(function(e){return mn(n),fs(2).setDepartment(e)})),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("list",i.departmentList)("listSelectedLoad",i.departmentListSelectedId)("listItemIdField","id")("listItemNameField","description")("title","")}}function Yae(e,t){if(1&e){var n=as();es(0,"div",23),es(1,"io-multiselect",24),ls("listSelectedId",(function(e){return mn(n),fs(2).setUnit(e)})),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("list",i.unitList)("listSelectedLoad",i.unitListSelectedId)("listItemIdField","id")("listItemNameField","name")("title","")}}function qae(e,t){if(1&e){var n=as();es(0,"div",23),es(1,"io-multiselect",24),ls("listSelectedId",(function(e){return mn(n),fs(2).setCostCenter(e)})),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("list",i.costCenterList)("listSelectedLoad",i.costCenterSelectedId)("listItemIdField","id")("listItemNameField","name")("title","")}}function Uae(e,t){if(1&e&&(es(0,"div",13),es(1,"div",14),es(2,"div",15),es(3,"span",16),Gs(4),_c(5,"translate"),ts(),ts(),Jr(6,Vae,7,4,"div",17),ts(),Jr(7,Hae,2,5,"div",18),Jr(8,Yae,2,5,"div",18),Jr(9,qae,2,5,"div",18),ts()),2&e){var n=t.$implicit,i=t.index,o=fs();Bo(4),$s(kc(5,5,"module."+n.name+".title")),Bo(2),Zr("ngForOf",o.permissionList),Bo(1),Zr("ngIf","department"==n.name&&o.permissionArraySelected[i].indexOf(1)>=0),Bo(1),Zr("ngIf","unit"==n.name&&o.permissionArraySelected[i].indexOf(1)>=0),Bo(1),Zr("ngIf","cost-center"==n.name&&o.permissionArraySelected[i].indexOf(1)>=0)}}var Wae,Jae,Gae,$ae=((Gae=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.formBuilder=t,this.router=n,this.companyDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.permissionDatabase=s,this.storageService=l,this.validService=u,this.permissionId=null,this.departmentList=[],this.departmentListSelectedId=[],this.costCenterList=[],this.costCenterListSelectedId=[],this.moduleList=[],this.moduleListShow=[],this.moduleIndex=0,this.permissionList=[],this.permissionArraySelected=[],this.stateFields={description:{class:""}},this.unitList=[],this.unitListSelectedId=[],this.costCenterSelectedId=[],this.companyId=null,this.permissionForm=this.formBuilder.group({description:new Wm("",[Jf.required])}),this.companyDatabase.getSelectList({listRequired:JSON.stringify(["department","unit","costCenter"])},(function(e){e.error||(d.departmentList=e.data.department,d.unitList=e.data.unit,d.costCenterList=e.data.costCenter)}))}),[{key:"ngOnInit",value:function(){var e=this,t=["835","836"];this.companyId=this.storageService.decodeFromLocalStorage("companyId").toString(),this.permissionDatabase.getFormData((function(n){n.error||(e.moduleList=n.data.moduleList,e.permissionList=n.data.permissionList,t.includes(e.companyId)||e.moduleList.splice(21,1),e.setSelectArray(),e.permissionId&&e.permissionDatabase.getPermission(e.permissionId,(function(t){t.error||(e.permissionForm.get("description").setValue(t.data.role.description),e.loadPermission(t.data.role.permissionList,t.data.role.permissionListDepartment,t.data.role.permissionListUnit,t.data.role.permissionListCostCenter))})))}))}},{key:"setSelectArray",value:function(){var e=this;this.moduleListShow=this.moduleList.filter((function(e){return"department"==e.name||"unit"==e.name||"cost-center"==e.name})),this.moduleList.forEach((function(t){e.permissionArraySelected.push([0]),"unit"!=t.name&&"department"!=t.name&&"cost-center"!=t.name&&e.moduleListShow.push(t)}))}},{key:"loadPermission",value:function(e,t,n,i){var o=this;e.forEach((function(e){var t=o.moduleListShow.findIndex((function(t){return t.id==e.module_id})),n=o.permissionList.findIndex((function(t){return t.id==e.permission_id}));o.setValue(t,n,!0)})),this.setDepartment(t),this.setUnit(n),this.setCostCenter(i)}},{key:"setValue",value:function(e,t,n){if(n){this.permissionArraySelected[e]=[0];for(var i=0;i<=t;i++)this.permissionArraySelected[e].push(i+1)}else this.permissionArraySelected[e]=this.permissionArraySelected[e].filter((function(e){return e<t+1}))}},{key:"setDepartment",value:function(e){var t=this;this.departmentListSelectedId=[],e.forEach((function(e){return t.departmentListSelectedId.push(e)}))}},{key:"setUnit",value:function(e){var t=this;this.unitListSelectedId=[],e.forEach((function(e){return t.unitListSelectedId.push(e)}))}},{key:"setCostCenter",value:function(e){var t=this;this.costCenterSelectedId=[],e.forEach((function(e){return t.costCenterSelectedId.push(e)}))}},{key:"sendPermission",value:function(){var e=this;if(this.permissionFormIsValid()){var t=[];this.moduleListShow.forEach((function(n,i){var o=[];e.permissionArraySelected[i].forEach((function(e){return o.push(e)}));var a=o.reverse()[0];0!=a&&t.push({moduleId:n.id,permissionId:e.permissionList[a-1].id})}));var n={description:this.permissionForm.get("description").value,departmentListId:JSON.stringify(this.departmentListSelectedId),modulePermissionList:JSON.stringify(t),unitListId:JSON.stringify(this.unitListSelectedId),costCenterListId:JSON.stringify(this.costCenterSelectedId)};this.permissionId?this.putPermission(n):this.postPermission(n)}}},{key:"permissionFormIsValid",value:function(){return this.validField("description")?0==this.departmentListSelectedId.length?(this.functionsService.openSnackBar("Selecione ao menos um departamento!"),!1):0==this.unitListSelectedId.length?(this.functionsService.openSnackBar("Selecione ao menos uma unidade!"),!1):0!=this.costCenterSelectedId.length||(this.functionsService.openSnackBar("Selecione ao menos um centro de custo!"),!1):(this.functionsService.openSnackBar("Informe o nome para o conjunto de permiss\xf5es!"),!1)}},{key:"postPermission",value:function(e){var t=this;this.permissionDatabase.postPermission(e,(function(e){e.error||t.router.navigate(["/permission"]).then((function(){}))}))}},{key:"putPermission",value:function(e){var t=this;this.permissionDatabase.putPermission(this.permissionId,e,(function(e){e.error||t.router.navigate(["/permission"]).then((function(){}))}))}},{key:"validField",value:function(e){return this.permissionForm.controls[e].valid?(this.stateFields[e]=Object.assign(Object.assign({},this.stateFields[e]),{class:""}),!0):(this.stateFields[e]=Object.assign(Object.assign({},this.stateFields[e]),{class:"emptyError"}),!1)}}])}()).\u0275fac=function(e){return new(e||Gae)($r(wp),$r(yM),$r(Mz),$r(zP),$r(WO),$r(JO),$r(nT),$r(YP),$r(TN))},Gae.\u0275cmp=Ot({type:Gae,selectors:[["io-permission-form"]],inputs:{permissionId:"permissionId"},decls:14,vars:20,consts:[[1,"formBox",3,"formGroup"],[3,"moduleName","titleTop"],[1,"minHeightBox"],[1,"mrgB2"],[1,"form-group","inputAnimated"],["id","journeyDescription","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","journeyDescription",1,"form-label","required"],[1,"listBoxSlideMob"],[1,"permissionSelectBox"],["class","formItem",4,"ngFor","ngForOf"],[1,"flex","pdgT2"],[3,"moduleName","action","btnColor","btnText","btnTitle","urlNavigation","useValidation"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"formItem"],[1,"flex","formLine","round2","bg-white","pdg1"],[1,"item"],[1,"sizeC","fontBold"],["class","item",4,"ngFor","ngForOf"],["class","selectBox pdg2 mrgB1",4,"ngIf"],[1,"radioBox","hd2","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","change"],["checkInput",""],[1,"checkmark"],[1,"selectBox","pdg2","mrgB1"],[3,"list","listSelectedLoad","listItemIdField","listItemNameField","title","listSelectedId"]],template:function(e,t){1&e&&(es(0,"div",0),ns(1,"io-main-top",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),es(5,"input",5),ls("keyup",(function(){return t.validField("description")})),ts(),es(6,"label",6),Gs(7,"Nome para o conjunto de permiss\xf5es"),ts(),ts(),ts(),es(8,"div",7),es(9,"div",8),Jr(10,Uae,10,7,"div",9),ts(),ts(),ts(),es(11,"div",10),ns(12,"io-btn",11),es(13,"io-btn",12),ls("btnClick",(function(){return t.sendPermission()})),ts(),ts(),ts()),2&e&&(Zr("formGroup",t.permissionForm),Bo(1),Zr("moduleName","permission")("titleTop",t.permissionId?"Editar conjunto de permiss\xf5es":"Nova conjunto de permiss\xf5es"),Bo(4),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(5),Zr("ngForOf",t.moduleListShow),Bo(2),Zr("moduleName","permission")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("urlNavigation","permission")("useValidation",!1),Bo(1),Zr("moduleName","permission")("action","update")("btnColor","btn-blue-bg")("btnText",t.permissionId?"Salvar":"Cadastrar")("btnTitle",t.permissionId?"Salvar":"Cadastrar"))},directives:[Hf,ip,eI,If,bp,Vf,vp,ah,jD,sh,Fz],pipes:[jae],styles:[".permissionSelectBox[_ngcontent-%COMP%]{display:grid;grid-gap:10px;grid-template-columns:repeat(2,50%)}.selectBox[_ngcontent-%COMP%]{padding:0 20px;margin:20px 0 30px}.formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]{height:100%}.formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .radioBox[_ngcontent-%COMP%]{margin:0}.formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px}.formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .formItem[_ngcontent-%COMP%]   .formLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:70px}.formItem[_ngcontent-%COMP%]:first-child   .formLine[_ngcontent-%COMP%], .formItem[_ngcontent-%COMP%]:nth-child(2)   .formLine[_ngcontent-%COMP%], .formItem[_ngcontent-%COMP%]:nth-child(3)   .formLine[_ngcontent-%COMP%], .formItem[_ngcontent-%COMP%]:nth-child(4)   .formLine[_ngcontent-%COMP%]{height:auto}"]}),Gae),Qae=((Jae=function(){return d((function e(t){c(this,e),this.titleService=t}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Permiss\xf5es - Cadastro")}}])}()).\u0275fac=function(e){return new(e||Jae)($r(hL))},Jae.\u0275cmp=Ot({type:Jae,selectors:[["io-permission-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-permission-form"),ts(),ts())},directives:[$ae],styles:[""]}),Jae),Kae=((Wae=function(){return d((function e(t,n){c(this,e),this.router=t,this.titleService=n,this.permissionId="",this.titleService.setTitle("Permiss\xf5es - Edi\xe7\xe3o");var i=this.router.getCurrentNavigation();i.extras.state?this.permissionId=i.extras.state.permissionId:this.router.navigate(["/permission"]).then((function(){return!1}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Wae)($r(yM),$r(hL))},Wae.\u0275cmp=Ot({type:Wae,selectors:[["io-permission-page-update"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"permissionId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-permission-form",2),ts(),ts()),2&e&&(Bo(2),Zr("permissionId",t.permissionId))},directives:[$ae],styles:[""]}),Wae);function Zae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pg;return(!nk(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Pg),new E((function(n){return n.add(t.schedule(Xae,e,{subscriber:n,counter:0,period:e})),n}))}function Xae(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}function ere(e,t){if(1&e&&(es(0,"div",16),es(1,"span",17),Gs(2,"Data: "),ts(),es(3,"span"),Gs(4),ts(),ts()),2&e){var n=fs();Bo(4),$s(n.dateSelected.split("-").reverse().join("/"))}}function tre(e,t){1&e&&(es(0,"span"),Gs(1," | "),ts())}function nre(e,t){if(1&e&&(es(0,"span",21),Gs(1),Jr(2,tre,2,0,"span",5),ts()),2&e){var n=t.$implicit,i=t.last;Bo(1),Qs(" ",n.hours,""),Bo(1),Zr("ngIf",!i)}}function ire(e,t){if(1&e&&(es(0,"div"),es(1,"span",18),Gs(2,"Pontos j\xe1 registrados neste dia:"),ts(),es(3,"div",19),Jr(4,nre,3,2,"span",20),ts(),ts()),2&e){var n=fs();Bo(4),Zr("ngForOf",n.arrayToVerify)}}function ore(e,t){if(1&e&&(es(0,"div",22),Gs(1),ts()),2&e){var n=fs();Bo(1),Qs(" A virada de turno ocorre \xe0s ",n.changeOfShift,", antes deste hor\xe1rio o ponto ser\xe1 considerado no dia anterior. ")}}var are,rre,sre=((rre=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.router=n,this.pointDatabase=i,this.functionsService=o,this.validService=a,this.arrayToVerify=[],this.changeOfShift="",this.showChangeOfShift=!1,this.collaboratorId="",this.dateSelected="",this.showModal=!1,this.hideModal=new Mc,this.updateList=new Mc,this.selectedDate="",this.pointForm=this.formBuilder.group({hour:new Wm("00:00",[Jf.required]),manager_justification:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){}},{key:"setDate",value:function(e){this.selectedDate=e}},{key:"verifyValidPoint",value:function(){var e=0,t=this.pointForm.controls.hour.value;return this.arrayToVerify.forEach((function(n){var i=n.hours.split(":")[0],o=n.hours.split(":")[1],a=t.split(":")[0],r=t.split(":")[1];i==a&&o==r&&e++})),0!=e?(this.functionsService.openSnackBar("J\xe1 existe um ponto neste hor\xe1rio."),!1):""==this.pointForm.controls.manager_justification.value?(this.functionsService.openSnackBar("\xc9 necess\xe1rio adicionar uma justificativa."),!1):!(this.pointForm.controls.manager_justification.value.length<5&&(this.functionsService.openSnackBar("A justificativa deve conter, no m\xednimo, 5 caract\xe9res."),1))}},{key:"sendPoint",value:function(){var e=this;if(this.verifyValidPoint()){var t=this.pointForm.get("hour").value;this.pointDatabase.postPoint({collaborator_id:this.collaboratorId,punchDate:this.dateSelected,punchDateTime:this.dateSelected+" "+t,manager_justification:this.pointForm.controls.manager_justification.value},(function(t){t.error||(e.emitUpdateList(),e.closeModal())}))}}},{key:"emitUpdateList",value:function(){this.updateList.emit()}},{key:"closeModal",value:function(){this.hideModal.emit(),this.pointForm.controls.hour.setValue("00:00"),this.pointForm.controls.manager_justification.setValue("")}},{key:"validHour",value:function(e){this.pointForm.controls[e].setValue(this.validService.validHour(this.pointForm.controls[e].value))}}])}()).\u0275fac=function(e){return new(e||rre)($r(wp),$r(yM),$r(SK),$r(zP),$r(TN))},rre.\u0275cmp=Ot({type:rre,selectors:[["io-point-modal-form"]],inputs:{arrayToVerify:"arrayToVerify",changeOfShift:"changeOfShift",showChangeOfShift:"showChangeOfShift",collaboratorId:"collaboratorId",dateSelected:"dateSelected",showModal:"showModal"},outputs:{hideModal:"hideModal",updateList:"updateList"},features:[dl],decls:20,vars:19,consts:[[3,"showModal","hideModal"],[1,"modalBody","minHeightBox",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[1,"pdgB2","mrgB2"],["class","sizeC mrgB2",4,"ngIf"],[4,"ngIf"],["class","pdgB1 mrgB1 wdMax75 cl-red",4,"ngIf"],[1,"sizeC","fontBold","mrgB1"],[1,"flex","start","relativePlace","mrgB2"],["onClick","this.select();","autocomplete","off","id","hour","mask","00:00","maxlength","5","placeholder",":","type","text",1,"wdFull","sizeB","pdgT1","pdgB1","borderBottom",3,"dropSpecialCharacters","formControlName","change"],["for","hour",1,"textAux","sizeB"],[1,"form-group","inputAnimated","mrgB2"],["placeholder","Justificativa...","required","",1,"sizeC","round2",3,"formControlName"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"sizeC","mrgB2"],[1,"fontBold"],[1,"sizeC","fontBold"],[1,"flex","start","pdgB1"],["class","pointItem pdgR1",4,"ngFor","ngForOf"],[1,"pointItem","pdgR1"],[1,"pdgB1","mrgB1","wdMax75","cl-red"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Adicionar Ponto Ajuste"),ts(),ns(4,"div",3),Jr(5,ere,5,1,"div",4),Jr(6,ire,5,1,"div",5),Jr(7,ore,2,1,"div",6),es(8,"div"),es(9,"p",7),Gs(10,"Adicione o hor\xe1rio abaixo"),ts(),es(11,"div",8),es(12,"input",9),ls("change",(function(){return t.validHour("hour")})),ts(),es(13,"label",10),Gs(14,"Hor\xe1rio:"),ts(),ts(),es(15,"div",11),ns(16,"textarea",12),ts(),ts(),ts(),es(17,"div",13),es(18,"io-btn",14),ls("btnClick",(function(){return t.closeModal()})),ts(),es(19,"io-btn",15),ls("btnClick",(function(){return t.sendPoint()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.pointForm),Bo(4),Zr("ngIf",null!=t.dateSelected),Bo(1),Zr("ngIf",t.arrayToVerify.length>0),Bo(1),Zr("ngIf",t.showChangeOfShift),Bo(5),Zr("dropSpecialCharacters",!1)("formControlName","hour"),Bo(4),Zr("formControlName","manager_justification"),Bo(2),Zr("moduleName","point")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","point")("action","create")("btnColor","btn-blue-bg")("btnText","Adicionar")("btnTitle","Adicionar"))},directives:[CE,Hf,ip,sh,If,DE,kp,Vf,vp,bp,jD,ah],styles:[".relativePlace[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{text-align:right;padding-right:40px}.relativePlace[_ngcontent-%COMP%]   .textAux[_ngcontent-%COMP%]{position:absolute;top:10px;left:20px;color:#ccc}"]}),rre),lre=((are=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.databaseService=n,this.storageService=i,this.functionsService=o,this.router=a,this.showModal=!1,this.collaboratorName=null,this.collaboratorJustification=null,this.hideModal=new Mc}),[{key:"ngOnChanges",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit(),this.collaboratorJustification=""}}])}()).\u0275fac=function(e){return new(e||are)($r(wp),$r(tT),$r(YP),$r(zP),$r(yM))},are.\u0275cmp=Ot({type:are,selectors:[["io-point-modal-justification-view"]],inputs:{showModal:"showModal",collaboratorName:"collaboratorName",collaboratorJustification:"collaboratorJustification"},outputs:{hideModal:"hideModal"},features:[dl],decls:16,vars:9,consts:[[3,"showModal","hideModal"],[1,"modalBody","minHeightBox"],[1,"mrgB2"],[1,"sizeA","cl-blue","fontUp","fontBold"],[1,"sizeC","pdgT2","pdgB2"],[1,"fontBold"],[1,"pdgB2"],[1,"sizeC","mrgB1"],[1,"sizeC"],[1,"flex","center"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Justificativa do Funcion\xe1rio"),ts(),es(5,"p",4),Gs(6,"Funcion\xe1rio: "),es(7,"span",5),Gs(8),ts(),ts(),ts(),es(9,"div",6),es(10,"p",7),Gs(11,"Justificativa:"),ts(),es(12,"p",8),Gs(13),ts(),ts(),ts(),es(14,"div",9),es(15,"io-btn",10),ls("btnClick",(function(){return t.closeModal()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(8),$s(t.collaboratorName),Bo(5),$s(t.collaboratorJustification),Bo(2),Zr("moduleName","")("action","")("btnColor","btn-blue")("btnText","Fechar")("btnTitle","Fechar")("useValidation",!1))},directives:[CE,jD],styles:["textarea[_ngcontent-%COMP%]{height:150px}"]}),are);function cre(e,t){if(1&e){var n=as();es(0,"io-absence-form",3),ls("updateList",(function(){return mn(n),fs().updateList.emit()}))("hideModal",(function(){return mn(n),fs().closeModal()})),ts()}if(2&e){var i=fs();Zr("beginDateSelected",i.beginDateSelected)("collaboratorSelectedId",i.collaboratorSelectedId)("collaboratorSelectedName",i.collaboratorSelectedName)("showAsModal",!0)}}var ure,dre=((ure=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.absenceDatabase=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.router=l,this.showModal=!0,this.beginDateSelected="",this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.hideModal=new Mc,this.updateList=new Mc}),[{key:"ngOnChanges",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||ure)($r(wp),$r(aT),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r(yM))},ure.\u0275cmp=Ot({type:ure,selectors:[["io-absence-modal-register"]],inputs:{showModal:"showModal",beginDateSelected:"beginDateSelected",collaboratorSelectedId:"collaboratorSelectedId",collaboratorSelectedName:"collaboratorSelectedName"},outputs:{hideModal:"hideModal",updateList:"updateList"},features:[dl],decls:3,vars:2,consts:[[3,"showModal","hideModal"],[1,"modalBody","relativePlace"],[3,"beginDateSelected","collaboratorSelectedId","collaboratorSelectedName","showAsModal","updateList","hideModal",4,"ngIf"],[3,"beginDateSelected","collaboratorSelectedId","collaboratorSelectedName","showAsModal","updateList","hideModal"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),Jr(2,cre,1,4,"io-absence-form",2),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Zr("ngIf",t.showModal))},directives:[CE,sh,xR],styles:["@media (max-width:900px){.absenceBox[_ngcontent-%COMP%]{display:block}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:250px;margin:0 auto 20px 0}}@media (max-width:700px){.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]{display:block}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.absenceBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}}"]}),ure);function hre(e,t){1&e&&(es(0,"p",6),Gs(1,"Carregando..."),ts())}function fre(e,t){1&e&&(es(0,"p",6),Gs(1,"N\xe3o foi poss\xedvel carregar a imagem."),ts())}function mre(e,t){if(1&e){var n=as();es(0,"img",7),ls("error",(function(){mn(n);var e=fs();return e.image="/assets/img/photo-user.png",e.errorLoading=!0})),ts()}2&e&&vs("src",fs().image,mo)}var pre,gre=((pre=function(){return d((function e(t,n,i,o){c(this,e),this.router=t,this.functionsService=n,this.pointDatabase=i,this.storageService=o,this.pointId=null,this.showModal=!0,this.hideModal=new Mc,this.loading=!0,this.errorLoading=!1,this.image=null}),[{key:"ngOnChanges",value:function(){var e=this;this.loading=!0,this.showModal&&null!=this.pointId&&this.pointDatabase.getPointAuditImageByPointId(this.pointId,(function(t){t.error?e.errorLoading=!0:e.image=t.data.integration_image?"data:image/png;base64,"+t.data.integration_image:"data:image/png;base64,"+t.data.image,e.loading=!1}))}},{key:"closeModal",value:function(){this.hideModal.emit(),this.image=null,this.errorLoading=!1}}])}()).\u0275fac=function(e){return new(e||pre)($r(yM),$r(zP),$r(SK),$r(YP))},pre.\u0275cmp=Ot({type:pre,selectors:[["io-point-modal-photo-face-recognition"]],inputs:{pointId:"pointId",showModal:"showModal"},outputs:{hideModal:"hideModal"},features:[dl],decls:8,vars:4,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],["class","pdgT2 mrgT2 center",4,"ngIf"],[1,"center"],["alt","Captura do registro","width","480","height","320",3,"src","error",4,"ngIf"],[1,"pdgT2","mrgT2","center"],["alt","Captura do registro","width","480","height","320",3,"src","error"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"IMAGEM DO RECONHECIMENTO FACIAL"),ts(),Jr(4,hre,2,0,"p",3),Jr(5,fre,2,0,"p",3),es(6,"p",4),Jr(7,mre,1,1,"img",5),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(4),Zr("ngIf",t.loading),Bo(1),Zr("ngIf",t.errorLoading),Bo(2),Zr("ngIf",t.image))},directives:[CE,sh],styles:[".point-data[_ngcontent-%COMP%], .point-map[_ngcontent-%COMP%]{width:50%;float:left}.spacer[_ngcontent-%COMP%]{min-height:175px;margin:0 0 20px}h3.borderBottom[_ngcontent-%COMP%]{line-height:18px}.pointData[_ngcontent-%COMP%]{width:100%;max-width:50%}.pointData[_ngcontent-%COMP%]   .pointDataBox[_ngcontent-%COMP%]{min-height:230px;padding-right:20px}.pointData[_ngcontent-%COMP%]   .pointTitle[_ngcontent-%COMP%]{display:block;margin:0 0 5px}.pointMap[_ngcontent-%COMP%]{width:100%;max-width:50%}.pointMap[_ngcontent-%COMP%]   agm-map[_ngcontent-%COMP%]{width:300px;height:300px}.pointMap[_ngcontent-%COMP%]   .mrgHere[_ngcontent-%COMP%]{margin-bottom:5px}.pointMap[_ngcontent-%COMP%]   .pointTitle[_ngcontent-%COMP%]{display:block;margin:20px 0 5px}@media (max-width:800px){.pointData[_ngcontent-%COMP%], .pointMap[_ngcontent-%COMP%]{width:100%;max-width:50%}}"]}),pre);function vre(e,t){if(1&e&&(es(0,"h2",4),Gs(1,"Deseja atualizar os pontos registrados de "),es(2,"span",15),Gs(3),ts(),Gs(4," \xe0 "),es(5,"span",15),Gs(6),ts(),Gs(7," ? "),ts()),2&e){var n=fs();Bo(3),$s(n.getDateBR(n.beginDate)),Bo(3),$s(n.getDateBR(n.endDate))}}function yre(e,t){if(1&e&&(es(0,"h2",4),Gs(1,"Deseja atualizar todos os pontos registrados de "),es(2,"span",15),Gs(3),ts(),Gs(4," \xe0 "),es(5,"span",15),Gs(6),ts(),Gs(7," ? "),ts()),2&e){var n=fs();Bo(3),$s(n.getDateBR(n.beginDate)),Bo(3),$s(n.getDateBR(n.endDate))}}function bre(e,t){if(1&e&&(es(0,"div",16),es(1,"span",17),Gs(2),ts(),ts()),2&e){var n=fs();Bo(2),$s(n.reminder)}}var _re,kre,Cre=((kre=function(){return d((function e(t,n){c(this,e),this.formBuilder=t,this.functionService=n,this.reminder="ATEN\xc7\xc3O: Esse processo ser\xe1 realizado em segundo plano, podendo demorar at\xe9 20 minutos para que todas as revalida\xe7\xf5es sejam efetuadas.",this.showModal=!1,this.updateAll=!1,this.hideModal=new Mc,this.confirmClick=new Mc,this.lockedEmitter=new Mc,this.lockedCheckForm=this.formBuilder.group({locked:new Wm(!1,[Jf.required])})}),[{key:"closeModal",value:function(){this.hideModal.emit(!1)}},{key:"confirm",value:function(){this.lockedEmitter.emit(Object.assign({},this.lockedCheckForm.value)),this.confirmClick.emit()}},{key:"getDateBR",value:function(e){return null==e||""===e?"":this.functionService.dateENtoBR(e)}}])}()).\u0275fac=function(e){return new(e||kre)($r(wp),$r(zP))},kre.\u0275cmp=Ot({type:kre,selectors:[["io-point-modal-confirm-refresh-points"]],inputs:{showModal:"showModal",beginDate:"beginDate",endDate:"endDate",updateAll:"updateAll"},outputs:{hideModal:"hideModal",confirmClick:"confirmClick",lockedEmitter:"lockedEmitter"},decls:29,vars:17,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],["class","sizeC mrgB2",4,"ngIf"],[1,"sizeC","mrgB2"],[1,"sizeC"],[1,"bg-white","pdg1","round2"],[1,"form-group","flex",3,"formGroup"],[1,"radioBox","danger","hd2","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark","danger"],["class","bg-yellow-light mrgB2 pdg1 round2",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"fontBold"],[1,"bg-yellow-light","mrgB2","pdg1","round2"],[1,"sizeC","fontBold"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Atualizar pontos"),ts(),Jr(4,vre,8,2,"h2",3),Jr(5,yre,8,2,"h2",3),es(6,"p",4),Gs(7,"Ser\xe3o revalidados os seguintes itens:"),ts(),es(8,"ul",5),es(9,"li",5),Gs(10,"- Jornada di\xe1ria"),ts(),es(11,"li",5),Gs(12,"- Ordena\xe7\xe3o dos pontos"),ts(),es(13,"li",5),Gs(14,"- Pontos pr\xe9-assinalados"),ts(),es(15,"li",5),Gs(16,"- C\xe1lculo de horas"),ts(),ts(),es(17,"div",6),es(18,"div",7),es(19,"label",8),Gs(20," Sobrescrever altera\xe7\xf5es em banco de horas e horas extras."),ns(21,"br"),Gs(22," Cuidado: Esta a\xe7\xe3o n\xe3o pode ser desfeita! "),ns(23,"input",9),ns(24,"span",10),ts(),ts(),ts(),Jr(25,bre,3,1,"div",11),ts(),es(26,"div",12),es(27,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),ts(),es(28,"io-btn",14),ls("btnClick",(function(){return t.confirm()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(4),Zr("ngIf",0==t.updateAll),Bo(1),Zr("ngIf",1==t.updateAll),Bo(13),Zr("formGroup",t.lockedCheckForm),Bo(5),Zr("formControlName","locked"),Bo(2),Zr("ngIf",t.updateAll),Bo(2),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","point")("action","update")("btnColor","btn-blue-bg")("btnText","Atualizar")("btnTitle","Atualizar"))},directives:[CE,sh,Hf,ip,Of,Vf,vp,jD],styles:["ul[_ngcontent-%COMP%]{padding:0 0 0 40px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none;margin:0 0 10px}"]}),kre),wre=((_re=function(){return d((function e(t,n){c(this,e),this.formBuilder=t,this.functionService=n,this.reminder="ATEN\xc7\xc3O: Esse processo ser\xe1 realizado em segundo plano, podendo demorar at\xe9 20 minutos para que todas as revalida\xe7\xf5es sejam efetuadas.",this.showModal=!1,this.hideModal=new Mc,this.confirmClick=new Mc,this.lockedEmitter=new Mc,this.lockedCheckForm=this.formBuilder.group({locked:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}},{key:"confirm",value:function(){this.lockedEmitter.emit(Object.assign({},this.lockedCheckForm.value)),this.confirmClick.emit()}},{key:"getDateBR",value:function(e){return null==e||""===e?"":this.functionService.dateENtoBR(e)}}])}()).\u0275fac=function(e){return new(e||_re)($r(wp),$r(zP))},_re.\u0275cmp=Ot({type:_re,selectors:[["io-point-modal-confirm-refresh-points-collaborator"]],inputs:{showModal:"showModal",date:"date",collaboratorName:"collaboratorName"},outputs:{hideModal:"hideModal",confirmClick:"confirmClick",lockedEmitter:"lockedEmitter"},decls:34,vars:16,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC","mrgB2"],[1,"fontBold"],[1,"sizeC"],[1,"bg-white","pdg1","round2"],[1,"form-group","flex",3,"formGroup"],[1,"radioBox","danger","hd2","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark","danger"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Atualizar pontos"),ts(),es(4,"h2",3),Gs(5,"Deseja atualizar os pontos registrados de "),es(6,"span",4),Gs(7),ts(),Gs(8," do funcion\xe1rio "),es(9,"span",4),Gs(10),ts(),Gs(11,"? "),ts(),es(12,"p",3),Gs(13,"Ser\xe3o revalidados os seguintes itens:"),ts(),es(14,"ul",5),es(15,"li",5),Gs(16,"- Ordena\xe7\xe3o dos pontos"),ts(),es(17,"li",5),Gs(18,"- Pontos pr\xe9-assinalados"),ts(),es(19,"li",5),Gs(20,"- Jornada di\xe1ria"),ts(),es(21,"li",5),Gs(22,"- C\xe1lculo de horas"),ts(),ts(),es(23,"div",6),es(24,"div",7),es(25,"label",8),Gs(26," Sobrescrever altera\xe7\xf5es em banco de horas e horas extras."),ns(27,"br"),Gs(28," Cuidado: Esta a\xe7\xe3o n\xe3o pode ser desfeita! "),ns(29,"input",9),ns(30,"span",10),ts(),ts(),ts(),ts(),es(31,"div",11),es(32,"io-btn",12),ls("btnClick",(function(){return t.closeModal()})),ts(),es(33,"io-btn",13),ls("btnClick",(function(){return t.confirm()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),$s(t.getDateBR(t.date)),Bo(3),$s(t.collaboratorName),Bo(14),Zr("formGroup",t.lockedCheckForm),Bo(5),Zr("formControlName","locked"),Bo(3),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","point")("action","update")("btnColor","btn-blue-bg")("btnText","Confirmar")("btnTitle","Confirmar"))},directives:[CE,Hf,ip,Of,Vf,vp,jD],styles:["ul[_ngcontent-%COMP%]{padding:0 0 0 40px}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none;margin:0 0 10px}"]}),_re),xre=["pointOptionBox"],Mre=["absenceOptionBox"];function Sre(e,t){if(1&e){var n=as();es(0,"div",48),ls("click",(function(){return mn(n),fs().getMirror()})),es(1,"span",49),Gs(2,"Baixar espelho Ponto"),ts(),ns(3,"fa-icon",50),ts()}if(2&e){var i=fs();Bo(3),Zr("icon",i.iconSolidService.faDownload)}}function Pre(e,t){if(1&e&&(es(0,"span",58),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Tre(e,t){if(1&e){var n=as();es(0,"li",51),es(1,"span",52),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectCollaborator(e.id,e.name,e.dismissal_date)})),Jr(2,Pre,2,1,"span",53),Gs(3),ts(),ns(4,"span",54),es(5,"span",54),es(6,"io-icon",55),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().selectCollaborator(e.id,e.name,e.dismissal_date)})),ts(),es(7,"span",56),es(8,"fa-icon",57),ls("click",(function(){mn(n);var e=t.$implicit;return fs().showModalRefreshPoints(e.id,e.name)})),ts(),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Xs("flex listAlign ",o.collaboratorInconsistency[i.id]?"bg-orange-light":"bg-white",""),Bo(1),Xs("item sizeC clickPlace ",null!=i.dismissal_date?"cl-gray":"",""),Bo(1),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.name," "),Bo(3),Zr("moduleName","comp-time")("action","show")("iconTitle","Visualizar")("iconClassList","mrgL1"),Bo(2),Zr("icon",o.iconSolidService.faSyncAlt)}}function Ore(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Lre(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum funcion\xe1rio encontrado."),ts())}function Dre(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function Ire(e,t){if(1&e&&(es(0,"li"),Jr(1,Ore,2,0,"p",25),Jr(2,Lre,2,0,"p",25),Jr(3,Dre,2,0,"p",25),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}function Fre(e,t){if(1&e&&(es(0,"span",63),Gs(1),es(2,"span",65),Gs(3),ts(),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.date.split("-").reverse().join("/").slice(0,5)," "),Bo(2),$s(n.day_of_week)}}function Are(e,t){if(1&e&&(es(0,"span",66),es(1,"span"),Gs(2),es(3,"span",65),Gs(4),ts(),ts(),ns(5,"fa-icon",67),ts()),2&e){var n=fs().$implicit,i=fs();ys("title","Feriado: ",n.holiday,""),Bo(2),Qs("",n.date.split("-").reverse().join("/").slice(0,5)," "),Bo(2),$s(n.day_of_week),Bo(1),Zr("icon",i.iconSolidService.faExclamation)}}function Ere(e,t){if(1&e){var n=as();es(0,"span",73,74),es(2,"span",75),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(3).showModalAbsenceView(e.id)})),ns(3,"fa-icon",76),ts(),es(4,"span",77),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(3).showModalAbsenceRemove(e.id)})),ns(5,"fa-icon",76),ts(),ts()}if(2&e){var i=fs(4);Bo(3),Zr("icon",i.iconRegularService.faEye),Bo(2),Zr("icon",i.iconSolidService.faTrashAlt)}}function Bre(e,t){if(1&e){var n=as();es(0,"span",71),ls("click",(function(){mn(n);var e=t.index,i=fs(2).index;return fs().toogleAbsenceOptionsOpen(i,e)})),Gs(1),Jr(2,Ere,6,2,"span",72),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs(2).index,r=fs();Bo(1),Qs(" ",i.description," "),Bo(1),Zr("ngIf",1==r.absenceToggleIndex[a][o])}}function Nre(e,t){1&e&&(es(0,"span"),Gs(1," Faltante "),ts())}function Rre(e,t){1&e&&(es(0,"span"),Gs(1," DSR "),ts())}function jre(e,t){if(1&e&&(es(0,"span"),Gs(1),ts()),2&e){var n=fs(2).$implicit;Bo(1),Qs(" ",n.holiday," ")}}function zre(e,t){if(1&e&&(es(0,"span",86),ns(1,"fa-icon",87),ts()),2&e){var n=fs(4);Bo(1),Zr("icon",n.iconSolidService.faMoon)}}function Vre(e,t){1&e&&ns(0,"fa-icon",88),2&e&&Zr("icon",fs(4).iconSolidService.faArrowUp)}function Hre(e,t){1&e&&ns(0,"fa-icon",89),2&e&&Zr("icon",fs(4).iconSolidService.faArrowDown)}function Yre(e,t){if(1&e&&(es(0,"span",90),ns(1,"fa-icon",91),ts()),2&e){var n=fs(4);Bo(1),Zr("icon",n.iconSolidService.faMapMarkerAlt)}}function qre(e,t){if(1&e){var n=as();es(0,"span",101),es(1,"fa-icon",102),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs(3).showModalJustification(e.collaborator_justification)})),ts(),ts()}if(2&e){var i=fs(5);Bo(1),Zr("icon",i.iconRegularService.faEye)}}function Ure(e,t){if(1&e){var n=as();es(0,"span",103),ls("click",(function(){mn(n);var e=fs(2).$implicit,t=fs(2).$implicit;return fs().showModalNotification(t.date,e.id)})),Gs(1),ns(2,"fa-icon",76),ts()}if(2&e){var i=fs(2).$implicit,o=fs(3);Bo(1),Qs("",i.date," "),Bo(1),Zr("icon",o.iconSolidService.faBell)}}function Wre(e,t){if(1&e){var n=as();es(0,"span",104),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs(3).showModalDisregard(e.id)})),ns(1,"fa-icon",76),ts()}if(2&e){var i=fs(5);Bo(1),Zr("icon",i.iconSolidService.faTrashAlt)}}function Jre(e,t){if(1&e){var n=as();es(0,"span",105),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs(3).showModalRegard(e.id)})),ns(1,"fa-icon",106),ts()}if(2&e){var i=fs(5);Bo(1),Zr("icon",i.iconSolidService.faHistory)}}function Gre(e,t){1&e&&ns(0,"fa-icon",106),2&e&&Zr("icon",fs(6).iconSolidService.faLevelUpAlt)}function $re(e,t){1&e&&ns(0,"fa-icon",106),2&e&&Zr("icon",fs(6).iconSolidService.faLevelDownAlt)}function Qre(e,t){if(1&e){var n=as();es(0,"span",107),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs(3).changePunchDate(e,"up")})),Jr(1,Gre,1,1,"fa-icon",108),Jr(2,$re,1,1,"fa-icon",108),ts()}if(2&e){var i=fs(2).$implicit,o=fs(2).$implicit,a=fs();Bo(1),Zr("ngIf",a.dateIsEqualToPunchDateTimeUp(o.date,i)),Bo(1),Zr("ngIf",!a.dateIsEqualToPunchDateTimeUp(o.date,i))}}function Kre(e,t){1&e&&ns(0,"fa-icon",106),2&e&&Zr("icon",fs(6).iconSolidService.faLevelDownAlt)}function Zre(e,t){1&e&&ns(0,"fa-icon",106),2&e&&Zr("icon",fs(6).iconSolidService.faLevelUpAlt)}function Xre(e,t){if(1&e){var n=as();es(0,"span",107),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs(3).changePunchDate(e,"down")})),Jr(1,Kre,1,1,"fa-icon",108),Jr(2,Zre,1,1,"fa-icon",108),ts()}if(2&e){var i=fs(2).$implicit,o=fs(2).$implicit,a=fs();Bo(1),Zr("ngIf",a.dateIsEqualToPunchDateTimeUp(o.date,i)),Bo(1),Zr("ngIf",!a.dateIsEqualToPunchDateTimeUp(o.date,i))}}function ese(e,t){if(1&e){var n=as();es(0,"span",109),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs(3).showModalPhotoFaceRecognition(e.id)})),ns(1,"fa-icon",106),ts()}if(2&e){var i=fs(5);Bo(1),Zr("icon",i.iconSolidService.faPortrait)}}var tse=function(){return[21,23,24,404]},nse=function(){return[23,24,404]};function ise(e,t){if(1&e){var n=as();es(0,"span",73,92),Jr(2,qre,2,1,"span",93),es(3,"span",94),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(3).showModalPoint(e.id)})),ns(4,"fa-icon",76),ts(),es(5,"span",95),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(3).showModalProofOfPoint(e.id)})),ns(6,"fa-icon",76),ts(),Jr(7,Ure,3,2,"span",96),Jr(8,Wre,2,1,"span",97),Jr(9,Jre,2,1,"span",98),Jr(10,Qre,3,2,"span",99),Jr(11,Xre,3,2,"span",99),Jr(12,ese,2,1,"span",100),ts()}if(2&e){var i=fs().$implicit,o=fs(2).$implicit,a=fs();Bo(2),Zr("ngIf",4==i.status),Bo(2),Zr("icon",a.iconRegularService.faEye),Bo(2),Zr("icon",a.iconRegularService.faEnvelope),Bo(1),Zr("ngIf",a.canRequestAdjustment(i,o)),Bo(1),Zr("ngIf",!mc(9,tse).includes(i.status)&&!a.selectedDateLessThanClosure(o)&&a.iconDeleteAllowed),Bo(1),Zr("ngIf",mc(10,nse).includes(i.status)),Bo(1),Zr("ngIf",!a.selectedDateLessThanClosure(o)&&"removeDown"!=a.removeChangeButton&&a.iconUpdateAllowed),Bo(1),Zr("ngIf",!a.selectedDateLessThanClosure(o)&&"removeUp"!=a.removeChangeButton&&a.iconUpdateAllowed),Bo(1),Zr("ngIf",(i.type.includes("FaceRecognition")||i.type.includes("intelbras")||i.type.includes("hikvision"))&&0==i.is_ios)}}function ose(e,t){if(1&e){var n=as();es(0,"span",78),ls("click",(function(){mn(n);var e=t.index,i=fs(2).index;return fs().togglePointOptionsOpen(i,e)})),Gs(1),es(2,"span",79),ns(3,"io-point-component-icon",80),ts(),Jr(4,zre,2,1,"span",81),es(5,"span",82),Jr(6,Vre,1,1,"fa-icon",83),Jr(7,Hre,1,1,"fa-icon",84),ts(),Jr(8,Yre,2,1,"span",85),Jr(9,ise,13,11,"span",72),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs(2),r=a.$implicit,s=a.index,l=fs();el("pointItem relativePlace clickPlace ","pointColor"+i.status," ","pointColorBarrier"+i.barrier,""),bs("title","",l.pointTitle[i.status]," ",1==i.barrier?"":"- Registrado fora da cerca digital",""),Bo(1),Qs(" ",i.hours," "),Bo(2),Zr("pointCreatedAt",i.created_at)("integrationSync",i.created_at)("pointOnline",i.online)("pointType",i.type),Bo(1),Zr("ngIf",r.date!=i.punch_date_time.split(" ")[0]),Bo(2),Zr("ngIf",!i.in_out),Bo(1),Zr("ngIf",i.in_out),Bo(1),Zr("ngIf",i.mocked),Bo(1),Zr("ngIf",1==l.pointToggleIndex[s][o])}}function ase(e,t){if(1&e&&(es(0,"span",68),Jr(1,Bre,3,2,"span",69),Jr(2,Nre,2,0,"span",25),Jr(3,Rre,2,0,"span",25),Jr(4,jre,2,1,"span",25),Jr(5,ose,10,16,"span",70),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Zr("ngForOf",n.absence),Bo(1),Zr("ngIf","00:00:00"==n.worked_time&&"00:00:00"!=n.work_time&&0==n.absence&&""==n.holiday&&n.date!=i.dateFormatted),Bo(1),Zr("ngIf","00:00:00"!=n.dsr_time&&"00:00:00"==n.worked_time&&"00:00:00"==n.work_time&&0==n.absence),Bo(1),Zr("ngIf",0==n.absence&&""!=n.holiday),Bo(1),Zr("ngForOf",n.points)}}function rse(e,t){if(1&e){var n=as();es(0,"span",110),Gs(1,"Escala utilizada a partir deste dia: "),es(2,"span",111),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalJourney(e.journey_id)})),Gs(3),ns(4,"fa-icon",112),ts(),ts()}if(2&e){var i=fs().$implicit,o=fs();Bo(3),Qs("",i.description," "),Bo(1),Zr("icon",o.iconRegularService.faEye)}}function sse(e,t){if(1&e){var n=as();es(0,"span",116),es(1,"fa-icon",117),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs().showModalAdjustment(e.date)})),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Zr("icon",i.iconRegularService.faEdit)}}function lse(e,t){if(1&e){var n=as();es(0,"span",118),es(1,"fa-icon",119),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs().showModalRefreshPointCollaborator(e.date)})),ts(),ts()}if(2&e){var i=fs(3);Bo(1),Zr("icon",i.iconSolidService.faSyncAlt)}}function cse(e,t){if(1&e){var n=as();es(0,"span",123),ls("click",(function(){mn(n);var e=fs(3),t=e.$implicit,i=e.index;return fs().showModalForm(t.date,i)})),Gs(1,"Adicionar ponto"),ts()}}function use(e,t){if(1&e){var n=as();es(0,"span",123),ls("click",(function(){mn(n);var e=fs(3).$implicit;return fs().showModalNotification(e.date)})),Gs(1,"Solicitar ajuste"),ts()}}function dse(e,t){if(1&e){var n=as();es(0,"span",120),ns(1,"fa-icon",121),es(2,"span",122),es(3,"span",123),ls("click",(function(){mn(n);var e=fs(2).$implicit;return fs().showModalAbsenceForm(e.date)})),Gs(4,"Adicionar aus\xeancia"),ts(),Jr(5,cse,2,0,"span",124),Jr(6,use,2,0,"span",124),ts(),ts()}if(2&e){var i=fs(2).$implicit,o=fs();Bo(1),Zr("icon",o.iconRegularService.faTimesCircle),Bo(4),Zr("ngIf",o.validCurrentDate(i.date)),Bo(1),Zr("ngIf",null==o.collaboratorSelectedDismissalDate&&o.validCurrentDate(i.date))}}function hse(e,t){if(1&e&&(es(0,"span",54),Jr(1,sse,2,1,"span",113),Jr(2,lse,2,1,"span",114),Jr(3,dse,7,3,"span",115),ts()),2&e){var n=fs().$implicit,i=fs();Bo(1),Zr("ngIf",1==n.has_adjustment),Bo(1),Zr("ngIf",i.validCurrentDate(n.date)&&!i.selectedDateLessThanClosure(n)),Bo(1),Zr("ngIf",!i.selectedDateLessThanClosure(n))}}function fse(e,t){if(1&e&&(es(0,"li"),Jr(1,Fre,4,2,"span",59),Jr(2,Are,6,4,"span",60),Jr(3,ase,6,5,"span",61),Jr(4,rse,5,2,"span",62),es(5,"span",63),Gs(6),ts(),es(7,"span",63),Gs(8),ts(),Jr(9,hse,4,3,"span",64),ts()),2&e){var n=t.$implicit;"flex listAlign ",i="00:00:00"==n.work_time?"notWorkDay":""," ",o=n.is_inconsistent_day?"bg-orange-light":"bg-white","  ",a=n.journey?"journeyLine":""," ",r=n.holiday?"holidayLine":"","",Rs(kt,Bs,function(e,t,n,i,o,a,r,s,l,c){var u=Hr(e,Cn(),n,o,r,l);return xn(4),u?"flex listAlign "+ni(n)+" "+ni(o)+"  "+ni(r)+" "+ni(l):Do}(hn(),0,i,0,o,0,a,0,r),!0),Bo(1),Zr("ngIf",n.date&&!n.holiday),Bo(1),Zr("ngIf",n.date&&n.holiday),Bo(1),Zr("ngIf",n.points),Bo(1),Zr("ngIf",n.journey),Bo(2),$s(n.worked_time?n.worked_time.slice(0,5):""),Bo(2),$s(n.work_time?n.work_time.slice(0,5):""),Bo(1),Zr("ngIf",!n.journey)}var i,o,a,r}function mse(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o foi possivel carregar os dados."),ts())}function pse(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function gse(e,t){1&e&&(es(0,"p"),Gs(1,"Selecione as datas de in\xedcio e fim."),ts())}function vse(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function yse(e,t){if(1&e&&(es(0,"li"),Jr(1,mse,2,0,"p",25),Jr(2,pse,2,0,"p",25),Jr(3,gse,2,0,"p",25),Jr(4,vse,2,0,"p",25),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].error),Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].loading),Bo(1),Zr("ngIf",n.pointList.length>0&&n.pointList[0].notSelected),Bo(1),Zr("ngIf",0==n.pointList.length)}}function bse(e,t){if(1&e){var n=as();es(0,"io-point-modal-disregard",125),ls("updatePoint",(function(){return mn(n),fs().getPointList()}))("hideModal",(function(){return mn(n),fs().hideModalDisregard()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalDisregard)("pointIds",i.pointSelectedIds)}}function _se(e,t){if(1&e){var n=as();es(0,"io-point-modal-confirm-refresh-points",126),ls("lockedEmitter",(function(e){return mn(n),fs().setLocked(e)}))("confirmClick",(function(){mn(n);var e=fs();return e.refreshPoints(e.collaboratorId,e.collaboratorName,null)}))("hideModal",(function(){return mn(n),fs().hideModalRefreshPoints()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalRefreshPoints)("beginDate",i.beginDateSelected)("endDate",i.endDateSelected)("updateAll",!1)}}function kse(e,t){if(1&e){var n=as();es(0,"io-point-modal-confirm-refresh-points",126),ls("lockedEmitter",(function(e){return mn(n),fs().setLocked(e)}))("confirmClick",(function(){return mn(n),fs().refreshPointsAll()}))("hideModal",(function(){return mn(n),fs().hideModalRefreshPointsAll()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalRefreshPointsAll)("beginDate",i.beginDateSelected)("endDate",i.endDateSelected)("updateAll",!0)}}function Cse(e,t){if(1&e){var n=as();es(0,"io-point-modal-confirm-refresh-points-collaborator",127),ls("lockedEmitter",(function(e){return mn(n),fs().setLocked(e)}))("hideModal",(function(){return mn(n),fs().hideModalRefreshPointCollaborator()}))("confirmClick",(function(){return mn(n),fs().refreshPointsCollaborator()})),ts()}if(2&e){var i=fs();Zr("date",i.dateSelected)("collaboratorName",i.collaboratorSelectedName)("showModal",i.modalRefreshPointCollaborator)}}var wse,xse=((wse=function(){return d((function e(t,n,i,o,a,r,s,l,u,d,h,f,m){var p=this;c(this,e),this.formBuilder=t,this.renderer=n,this.router=i,this.absenceDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.mirrorDatabase=l,this.pointDatabase=u,this.journeyDatabase=d,this.storageService=h,this.titleService=f,this.permissionService=m,this.currentPage=1,this.inputText="",this.absenceSelectedId=null,this.absenceToggleIndex=[{notSelected:!0}],this.absenceToggleIndexCounter=[],this.absenceToggleVerify=0,this.inconsistency=0,this.bankTimeRangeEndDate="",this.beginDateCollaborator="",this.beginDateSelected="",this.beginDateStart="",this.collaboratorId="",this.collaboratorName="",this.getCollaboratorId="",this.collaboratorInconsistency=[],this.recalcOnQueue=[],this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredInconsistency=[],this.collaboratorListFilteredSearch=[],this.collaboratorSearch=!0,this.collaboratorSelected=!1,this.inconsistencyFileter=!1,this.collaboratorSelectedDismissalDate=null,this.collaboratorSelectedId="",this.collaboratorSelectedIdAdjustment="",this.collaboratorSelectedName="",this.collaboratorSkipData=null,this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.dateSelected=null,this.locked=!1,this.endDateSelected="",this.endDateStart="",this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.removeChangeButton="",this.recalcRunning=!0,this.timeToRefreshRecalc=15e3,this.today=new Date,this.year=this.today.getFullYear(),this.month=this.today.getMonth()+1,this.day=this.today.getDate(),this.monthFormatted=this.month<10?"0"+this.month:""+this.month,this.dayFormatted=this.day<10?"0"+this.day:""+this.day,this.dateFormatted="".concat(this.year,"-").concat(this.monthFormatted,"-").concat(this.dayFormatted),this.changeOfShift="23:59:00",this.showChangeOfShift=!1,this.journeyList=[{notSelected:!0}],this.journeySelectedId=null,this.modalAbsenceForm=!1,this.modalAbsenceRemove=!1,this.modalAbsenceView=!1,this.modalAdjustment=!1,this.modalMirrorWarningBankTimeRange=!1,this.modalJourney=!1,this.modalDisregard=!1,this.modalForm=!1,this.modalRefreshPointCollaborator=!1,this.modalRefreshPoints=!1,this.modalRefreshPointsAll=!1,this.modalJustification=!1,this.modalNotification=!1,this.modalPoint=!1,this.modalProofOfPoint=!1,this.modalRegard=!1,this.iconDeleteAllowed=!1,this.iconUpdateAllowed=!1,this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterContractSelected=[],this.filterJourneySelected=[],this.paginationData=null,this.pointList=[{notSelected:!0}],this.pointListShow=[],this.pointSelectedId=null,this.pointSelectedIds=[],this.pointSelectedJustification=null,this.pointSelectedSelectedLine=[],this.pointToggleIndex=[{notSelected:!0}],this.pointToggleIndexCounter=[],this.pointToggleVerify=0,this.pointTitle={0:"V\xe1lido",3:"Ajustado",4:"Desconsidera\xe7\xe3o reprovada pelo funcion\xe1rio",5:"Adicionado pelo funcion\xe1rio",21:"Ajuste aguardando aprova\xe7\xe3o",22:"Ajuste aguardando aprova\xe7\xe3o",23:"Adicionado pelo funcion\xe1rio reprovado",24:"Aguardando desconsidera\xe7\xe3o do funcion\xe1rio",25:"Aguardando aprova\xe7\xe3o do gestor",26:"Aguardando ajuste do funcion\xe1rio",404:"Desconsiderado"},this.actionEquivalent={show:"show",create:"create",update:"update",delete:"delete",reactive:"update",approve:"update",reprove:"update",change:"update",updatePayment:"update",faceRecognition:"update",copy:"show",showCollaboratorLinked:"show",info:"show",download:"show"},this.modalPhotoFaceRecognition=!1,this.titleService.setTitle("Controle de Ponto");var g=this.router.getCurrentNavigation();g.extras.state&&(this.inconsistency=g.extras.state.inconsistency),this.searchFormCollaborator=this.formBuilder.group({inconsistency:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required])}),this.searchFormPoint=this.formBuilder.group({status:new Wm(1,[Jf.required])});var v=this.router.getCurrentNavigation().extras.state;v&&(1==v.inconsistency&&this.searchFormCollaborator.controls.inconsistency.setValue(1),v.collaboratorId&&v.collaboratorName&&this.selectCollaborator(v.collaboratorId,v.collaboratorName,null),v.date&&(this.beginDateStart=this.functionsService.getFirstLastDay(v.date)[0],this.endDateStart=this.functionsService.getFirstLastDay(v.date)[1])),this.renderer.listen("window","click",(function(){p.absenceOptionBox.forEach((function(){p.toogleAbsenceOptionsOpen(0,0)})),p.pointOptionBox.forEach((function(){p.togglePointOptionsOpen(0,0)}))}))}),[{key:"ngOnInit",value:function(){this.iconDeleteAllowed=this.permissionService.canAccess("point",this.actionEquivalent.delete,""),this.iconUpdateAllowed=this.permissionService.canAccess("point",this.actionEquivalent.update,""),this.startListenerGetRecalcStatus()}},{key:"ngOnDestroy",value:function(){this.recalcInterval.unsubscribe()}},{key:"getRecalcStatus",value:function(){var e=this;this.pointDatabase.getRecalculateStatus((function(t){t.error?(e.recalcInterval.unsubscribe(),e.recalcOnQueue=[]):"OK"==t.data.action&&(e.recalcRunning=!1,e.recalcOnQueue=[],e.recalcInterval.unsubscribe())}))}},{key:"startListenerGetRecalcStatus",value:function(){var e=this;this.getRecalcStatus(),this.recalcInterval=Zae(this.timeToRefreshRecalc).subscribe((function(t){e.getRecalcStatus()}))}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e,this.getList()}},{key:"setEndDate",value:function(e){this.endDateSelected=e,this.getList()}},{key:"setFilterData",value:function(e){this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterContractSelected=e.contractIdList,this.filterJourneySelected=e.journeySelected,this.getList()}},{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getList(!0)}},{key:"validGetList",value:function(){return!(""==this.beginDateSelected||""==this.endDateSelected)}},{key:"getRequestParams",value:function(){return{departmentIdList:JSON.stringify(this.filterDepartmentSelected)||[],unitIdList:JSON.stringify(this.filterUnitSelected)||[],regimeIdList:JSON.stringify(this.filterRegimeSelected)||[],contractIdList:JSON.stringify(this.filterContractSelected)||[],journeyIdList:JSON.stringify(this.filterJourneySelected)||[],begin_date:this.beginDateSelected,end_date:this.endDateSelected,filterText:this.inputText,page:this.currentPage.toString(),inconsistency:this.inconsistency}}},{key:"getList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearTimeout(this.interval),this.interval=setTimeout((function(){if(e.collaboratorSelected&&!t)return e.inputText="",void e.getPointList();1==e.inconsistency&&e.getCollaboratorList(!1),1!=e.inconsistency&&e.getCollaboratorList()}),200)}},{key:"getCollaboratorList",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.validGetList&&(0==t&&(this.inconsistency=1),1==t&&(this.inconsistency=0),this.resetData(),this.pointDatabase.getPointListControlCollaborator(this.getRequestParams(),(function(t){t.error||(e.collaboratorList=t.data.collaborator.data||[],e.paginationData=t.data.collaborator||[],e.collaboratorInconsistency=t.data.arrayInconsistency,e.recalcOnQueue=t.data.recalcOnQueue,e.collaboratorListFilteredSearch=e.collaboratorList,1==e.inconsistencyFileter&&(e.collaboratorListFilteredSearch=e.collaboratorList.filter((function(t){return!e.collaboratorInconsistency[t.id]}))))})))}},{key:"resetData",value:function(){this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorSelected=!1,this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.collaboratorSkipData=null,this.pointList=[{loading:!0}],this.pointListShow=[]}},{key:"filterCollaboratorInconsistency",value:function(){var e=this.searchFormCollaborator.controls.inconsistency.value;1==e&&(this.inconsistencyFileter=!1,this.getCollaboratorList(!1)),0==e&&(this.inconsistencyFileter=!0,this.getCollaboratorList()),"all"==e&&(this.inconsistencyFileter=!1,this.getCollaboratorList(),this.collaboratorListFilteredInconsistency=this.collaboratorList),this.collaboratorListFilteredSearch=this.collaboratorListFilteredInconsistency}},{key:"setCollaboratorSelected",value:function(e){this.selectCollaborator(e.id,e.name,e.dismissalDate)}},{key:"selectCollaborator",value:function(e,t,n){this.collaboratorSelectedDismissalDate=n,this.collaboratorSelectedName=t,this.collaboratorSelectedId=e,this.getCollaboratorId=e,this.collaboratorSearch=!1,this.collaboratorSelected=!0,this.getList()}},{key:"getPointList",value:function(){var e=this;""!=this.collaboratorSelectedId&&this.validGetList&&(this.bankTimeRangeEndDate="",this.pointDatabase.getPointListControl(Object.assign(Object.assign({},this.getRequestParams()),{collaborator_id:this.collaboratorSelectedId}),(function(t){t.error?e.pointList=[{error:!0}]:(e.collaboratorSkipData=t.data.collaboratorSkipData||[],e.journeyList=t.data.journeys,e.bankTimeRangeEndDate=t.data.bankTimeRangeEndDate,e.loadPointList(t.data.points),t.data.points&&t.data.points.length>0&&(e.beginDateCollaborator=t.data.points[1].begin_date))})))}},{key:"loadPointList",value:function(e){this.pointList=e,this.setJourneyInList()}},{key:"setJourneyInList",value:function(){for(var e=this,t=this.journeyList.length,n=function(t){var n=e.pointList.findIndex((function(n){return n.date==e.journeyList[t].begin_date})),i=Object.assign({journey:!0},e.journeyList[t]);-1!=n&&e.pointList.splice(n,0,i)},i=0;i<t;i++)n(i);0!==this.pointList.length&&1!=this.pointList[0].journey&&this.pointList.splice(0,0,Object.assign({journey:!0},this.journeyList[0])),this.setTogglePointOptions()}},{key:"setTogglePointOptions",value:function(){for(var e=this.pointList.length,t=0;t<e;t++){for(var n=this.pointList[t].points?this.pointList[t].points.length:0,i=[],o=0;o<n;o++)i.push(0),this.pointToggleIndexCounter.push(0);this.pointToggleIndex.push(i);for(var a=this.pointList[t].absence?this.pointList[t].absence.length:0,r=[],s=0;s<a;s++)r.push(0),this.absenceToggleIndexCounter.push(0);this.absenceToggleIndex.push(r)}this.filterPointStatus()}},{key:"filterPointStatus",value:function(){var e=this,t=this.searchFormPoint.controls.status.value;this.pointListShow=[],this.pointList.forEach((function(n){if(n.points&&n.points.length>0){var i=[];if("all"==t)return void e.pointListShow.push(n);1==t&&(i=n.points.filter((function(e){return parseInt(e.status)<20}))),2==t&&(i=n.points.filter((function(e){return 24==parseInt(e.status)}))),3==t&&(i=n.points.filter((function(e){return 404==parseInt(e.status)}))),e.pointListShow.push({count_points:n.count_points,date:n.date,day_of_week:n.day_of_week,absence:0!=n.absence?n.absence:null,has_adjustment:n.has_adjustment,holiday:n.holiday,points:i,work_time:n.work_time,worked_time:n.worked_time,is_inconsistent_day:n.is_inconsistent_day,closure:n.closure})}else e.pointListShow.push(n)}))}},{key:"toogleAbsenceOptionsOpen",value:function(e,t){if(0!=e?this.absenceToggleVerify=1:this.absenceToggleVerify++,0==e||1!=this.absenceToggleIndex[e][t]){for(var n=2!=this.absenceToggleVerify?this.pointList.length:0,i=0;i<n;i++)for(var o=this.pointList[i].absence?this.pointList[i].absence.length:0,a=0;a<o;a++)this.absenceToggleIndex[i][a]=0;0!=e&&(this.absenceToggleIndex[e][t]=1)}else this.absenceToggleIndex[e][t]=0}},{key:"togglePointOptionsOpen",value:function(e,t){if(0!=e?this.pointToggleVerify=1:this.pointToggleVerify++,0==e||1!=this.pointToggleIndex[e][t]){for(var n=2!=this.pointToggleVerify?this.pointList.length:0,i=0;i<n;i++)for(var o=this.pointList[i].points?this.pointList[i].points.length:0,a=0;a<o;a++)this.pointToggleIndex[i][a]=0;0!=e&&(this.pointToggleIndex[e][t]=1)}else this.pointToggleIndex[e][t]=0}},{key:"getMirror",value:function(){if(this.collaboratorSelected&&""!=this.collaboratorSelectedId){if(null!=this.bankTimeRangeEndDate&&""!=this.bankTimeRangeEndDate&&""!==this.beginDateCollaborator&&new Date(this.beginDateCollaborator)<new Date(this.bankTimeRangeEndDate))return void this.showModalMirrorWarningBankTimeRange();this.downloadMirror()}else this.functionsService.openSnackBar("Selecione um funcion\xe1rio.")}},{key:"showModalMirrorWarningBankTimeRange",value:function(){this.modalMirrorWarningBankTimeRange=!0}},{key:"downloadMirror",value:function(){var e=this,t={company_id:this.companyId,preview:"0",pdf:"1",beginDate:this.beginDateSelected,endDate:this.endDateSelected,collaborator_id:JSON.stringify([this.collaboratorSelectedId])};this.mirrorDatabase.getMirror(t,(function(t){t.error||(e.hideModalMirrorWarningBankTimeRange(),e.functionsService.downloadFile(t.data,"pdf","Espelho Ponto"))}))}},{key:"hideModalMirrorWarningBankTimeRange",value:function(){this.modalMirrorWarningBankTimeRange=!1}},{key:"refreshPoints",value:function(e,t,n){var i=this,o={company_id:this.companyId,collaborator_name:this.collaboratorSelectedName,collaborator_id:this.collaboratorSelectedId,date:n,beginDate:this.beginDateSelected,endDate:this.endDateSelected,locked:this.locked};null!=n&&(o.beginDateSelected=null,o.endDateSelected=null),o.collaborator_id=null==e?this.collaboratorSelectedId:e,o.collaborator_name=null==t?this.collaboratorSelectedName:t,this.pointDatabase.postPointRefresh(o,(function(e){e.error||i.getPointList()})),this.hideModalRefreshPoints()}},{key:"refreshPointsCollaborator",value:function(){var e=this;this.pointDatabase.postPointRefresh({collaborator_id:this.collaboratorSelectedId,collaborator_name:this.collaboratorSelectedName,date:this.dateSelected,locked:this.locked},(function(t){t.error||e.getPointList()})),this.hideModalRefreshPointCollaborator()}},{key:"refreshPointsAll",value:function(){var e=this,t=this.getRequestParams();this.pointDatabase.postPointRefreshAll({company_id:this.companyId,beginDate:this.beginDateSelected,endDate:this.endDateSelected,locked:this.locked,journeyIdList:t.journeyIdList,departmentIdList:t.departmentIdList,unitIdList:t.unitIdList,regimeIdList:t.regimeIdList},(function(t){t.error||(e.getPointList(),e.recalcRunning=!0,e.startListenerGetRecalcStatus())})),this.getCollaboratorList(),this.hideModalRefreshPointsAll()}},{key:"showModalAbsenceForm",value:function(e){this.dateSelected=e,this.modalAbsenceForm=!0}},{key:"hideModalAbsenceForm",value:function(){this.modalAbsenceForm=!1,this.dateSelected=null}},{key:"showModalAbsenceRemove",value:function(e){this.absenceSelectedId=e,this.modalAbsenceRemove=!0}},{key:"removeAbsence",value:function(){var e=this;this.absenceDatabase.deleteAbsence([this.absenceSelectedId],(function(t){t.error||(e.getList(),e.modalAbsenceRemove=!1)}))}},{key:"hideModalAbsenceRemove",value:function(){this.modalAbsenceRemove=!1,this.absenceSelectedId=null}},{key:"showModalAbsenceView",value:function(e){this.absenceSelectedId=e,this.modalAbsenceView=!0}},{key:"hideModalAbsenceView",value:function(){this.modalAbsenceView=!1,this.absenceSelectedId=null}},{key:"showModalAdjustment",value:function(e){this.dateSelected=e,this.collaboratorSelectedIdAdjustment=this.collaboratorSelectedId,this.modalAdjustment=!0}},{key:"updateList",value:function(){this.getPointList()}},{key:"hideModalAdjustment",value:function(){this.dateSelected=null,this.collaboratorSelectedIdAdjustment=null,this.modalAdjustment=!1}},{key:"showModalDisregard",value:function(e){this.pointSelectedIds.push([e]),this.modalDisregard=!0}},{key:"hideModalDisregard",value:function(){this.modalDisregard=!1,this.pointSelectedIds=[]}},{key:"showModalForm",value:function(e,t){var n=this;this.journeyDatabase.getChangeOfShift({date:e,collaboratorId:this.collaboratorSelectedId},(function(e){if(!e.error){n.changeOfShift=e.data.change_of_shift.substring(0,5);var t=parseInt(e.data.change_of_shift.replaceAll(":","")),i=parseInt("235900");n.showChangeOfShift=t<i}})),this.dateSelected=e,this.pointSelectedSelectedLine=this.pointList[t].points,this.modalForm=!0}},{key:"hideModalForm",value:function(){this.modalForm=!1,this.dateSelected=null,this.pointSelectedSelectedLine=[]}},{key:"showModalJourney",value:function(e){this.journeySelectedId=e,this.modalJourney=!0}},{key:"hideModalJourney",value:function(){this.modalJourney=!1,this.journeySelectedId=null}},{key:"showModalJustification",value:function(e){this.pointSelectedJustification=e,this.modalJustification=!0}},{key:"hideModalJustification",value:function(){this.modalJustification=!1,this.pointSelectedJustification=null}},{key:"showModalNotification",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.pointSelectedId=t,this.dateSelected=e,this.modalNotification=!0,this.modalPoint=!1}},{key:"hideModalNotification",value:function(){this.modalNotification=!1,this.pointSelectedId=null}},{key:"showModalPoint",value:function(e){this.pointSelectedId=e,this.modalPoint=!0}},{key:"hideModalPoint",value:function(){this.modalPoint=!1,this.pointSelectedId=null}},{key:"showModalProofOfPoint",value:function(e){this.pointSelectedId=e,this.modalProofOfPoint=!0}},{key:"sendProofOfPointByEmail",value:function(){var e=this;this.pointDatabase.postProofOfPointByEmail(this.pointSelectedId,{collaboratorId:this.collaboratorSelectedId},(function(t){t.error||e.hideModalProofOfPoint()}))}},{key:"hideModalProofOfPoint",value:function(){this.modalProofOfPoint=!1,this.pointSelectedId=null}},{key:"showModalRegard",value:function(e){this.pointSelectedId=e,this.modalRegard=!0}},{key:"RegardPoint",value:function(){var e=this;this.pointDatabase.putPointRegard(this.pointSelectedId,(function(t){t.error||(e.getPointList(),e.hideModalRegard())}))}},{key:"hideModalRegard",value:function(){this.modalRegard=!1,this.pointSelectedId=null}},{key:"showModalRefreshPoints",value:function(e,t){this.collaboratorId=e,this.collaboratorName=t,this.modalRefreshPoints=!0}},{key:"hideModalRefreshPoints",value:function(){this.collaboratorId="",this.modalRefreshPoints=!1}},{key:"showModalRefreshPointsAll",value:function(){if(this.recalcOnQueue.length>0)return this.functionsService.openSnackBar("Por favor, aguarde a finaliza\xe7\xe3o do rec\xe1lculo antes de realizar novamente o processo!","error");this.modalRefreshPointsAll=!0}},{key:"hideModalRefreshPointsAll",value:function(){this.modalRefreshPointsAll=!1}},{key:"validCurrentDate",value:function(e){var t=this.functionsService.currentDateEN("0000-00-00","min"),n=parseInt(this.functionsService.removeSings(t));return parseInt(this.functionsService.removeSings(e))<=n}},{key:"selectedDateLessThanClosure",value:function(e){return!(!e.closure||""==e.closure)&&this.functionsService.getDateAsInt(e.date)<this.functionsService.getDateAsInt(e.closure)}},{key:"dateIsEqualToPunchDateTimeUp",value:function(e,t){return e<t.punch_date_time.split(" ")[0]&&(this.removeChangeButton="removeUp"),e>t.punch_date_time.split(" ")[0]&&(this.removeChangeButton="removeDown"),e===t.punch_date_time.split(" ")[0]&&(this.removeChangeButton=""),e===t.punch_date_time.split(" ")[0]}},{key:"changePunchDate",value:function(e,t){var n=this;this.pointDatabase.putPointPunchDate(e.id,{updatePunchDate:t},(function(e){e.error||n.getPointList()}))}},{key:"getDateBR",value:function(e){return null==e||""===e?"":this.functionsService.dateENtoBR(e)}},{key:"showModalPhotoFaceRecognition",value:function(e){this.pointSelectedId=e,this.modalPhotoFaceRecognition=!0}},{key:"hideModalPhotoFaceRecognition",value:function(){this.modalPhotoFaceRecognition=!1,this.pointSelectedId=null}},{key:"showModalRefreshPointCollaborator",value:function(e){this.dateSelected=e,this.modalRefreshPointCollaborator=!0}},{key:"hideModalRefreshPointCollaborator",value:function(){this.dateSelected=null,this.modalRefreshPointCollaborator=!1}},{key:"setLocked",value:function(e){this.locked=e.locked}},{key:"canRequestAdjustment",value:function(e,t){return"preAssigned"!=e.type&&"exception"!=e.type&&3!=e.status&&404!=e.status&&!this.selectedDateLessThanClosure(t)}}])}()).\u0275fac=function(e){return new(e||wse)($r(wp),$r(Ol),$r(yM),$r(aT),$r(zP),$r(WO),$r(JO),$r(dQ),$r(SK),$r(DN),$r(YP),$r(hL),$r(iT))},wse.\u0275cmp=Ot({type:wse,selectors:[["io-point-page-control"]],viewQuery:function(e,t){var n;1&e&&(Rc(xre,!0),Rc(Mre,!0)),2&e&&(Bc(n=Yc())&&(t.pointOptionBox=n),Bc(n=Yc())&&(t.absenceOptionBox=n))},decls:81,vars:92,consts:[[1,"container"],[1,"main"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[3,"showCollaboratorStatusList","filterJourneySelected","selectedFilters"],[1,"pointTop"],[1,"flexPad","top"],[1,"sizeC","mrgB1"],["class","flex start downloadMirrorBox mrgB2 border-gray-light btn w-auto clickPlace","title","Baixar espelho Ponto",3,"click",4,"ngIf"],[1,"flexDesk"],[1,"wdFull","wdMaxHere","mrgT1","mrgB1"],[3,"selectFull","searchValue","collaboratorSkipData","collaboratorSelectedData","resetText","onKeyPress"],[3,"firstDateLabel","firstDateStart","secondDateLabel","secondDateStart","firstDateSelected","secondDateSelected"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"iconBox","item"],["size","3x",1,"clickPlace","iconItem","iconSizeG","mrgL2",3,"icon","ngClass","title","click"],[1,"listBox"],["title","Ver per\xedodo",3,"class",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[1,"flex","listHeader","listAlign"],[1,"item","flex"],[1,"sizeC","fontBold"],[1,"item","selectFilter","form-group","inputAnimated","clickPlace",3,"formGroup"],["id","status","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"class",4,"ngFor","ngForOf"],[3,"showModal","pointIds","updatePoint","hideModal",4,"ngIf"],[3,"showChangeOfShift","dateSelected","showModal","collaboratorId","arrayToVerify","changeOfShift","updateList","hideModal"],[3,"showModal","collaboratorName","collaboratorJustification","hideModal"],[3,"showModal","collaboratorId","collaboratorName","dateNotification","pointId","hideModal"],[3,"showModal","pointId","showModalNotification","hideModal"],[3,"showModal","beginDateSelected","collaboratorSelectedId","collaboratorSelectedName","updateList","hideModal"],[3,"showModal","absenceId","hideModal"],[3,"showModal","collaboratorSelectedId","collaboratorSelectedDate","hideModal","updateList"],[3,"journeyId","showModal","collaboratorId","hideModal"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"showModal","title","text","btnTextConfirm","hideModal","confirmClick"],[3,"showModal","beginDate","endDate","updateAll","lockedEmitter","confirmClick","hideModal",4,"ngIf"],[3,"showModal","pointId","hideModal"],[3,"date","collaboratorName","showModal","lockedEmitter","hideModal","confirmClick",4,"ngIf"],["title","Baixar espelho Ponto",1,"flex","start","downloadMirrorBox","mrgB2","border-gray-light","btn","w-auto","clickPlace",3,"click"],[1,"sizeC","fontCap"],[1,"iconItem","iconSizeG","cl-gray-dark","mrgL1",3,"icon"],["title","Ver per\xedodo"],[3,"click"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[1,"iconBox"],["size","3x","title","Atualizar",1,"cl-gray-dark","clickPlace","iconItem","iconSizeG","mrgL1",3,"icon","click"],[1,"sizeB","internal","mrgR1"],["class","item sizeC",4,"ngIf"],["class","item flex sizeC clickPlace",3,"title",4,"ngIf"],["class","item pointBox",4,"ngIf"],["class","item flex start sizeC",4,"ngIf"],[1,"item","sizeC"],["class","item",4,"ngIf"],[1,"sizeD"],[1,"item","flex","sizeC","clickPlace",3,"title"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon"],[1,"item","pointBox"],["class","sizeC pointItem relativePlace clickPlace","title","Aus\xeancia",3,"click",4,"ngFor","ngForOf"],[3,"class","title","click",4,"ngFor","ngForOf"],["title","Aus\xeancia",1,"sizeC","pointItem","relativePlace","clickPlace",3,"click"],["class","optionBox round2 bg-white",4,"ngIf"],[1,"optionBox","round2","bg-white"],["absenceOptionBox",""],["title","Visualizar",1,"iconBox","bg-green","clickPlace",3,"click"],["size","3x",1,"iconItem","iconSizeH","cl-white",3,"icon"],["title","Excluir aus\xeancia",1,"iconBox","bg-red","clickPlace","mrgL1",3,"click"],[3,"title","click"],[1,"appIcon"],[3,"pointCreatedAt","integrationSync","pointOnline","pointType"],["class","dayShiftIcon",4,"ngIf"],[1,"inOutIcon"],["size","3x","class","iconItem iconSizeI cl-blue clickPlace","title","Entrada",3,"icon",4,"ngIf"],["size","3x","class","iconItem iconSizeI cl-red clickPlace","title","Sa\xedda",3,"icon",4,"ngIf"],["class","mockedIcon",4,"ngIf"],[1,"dayShiftIcon"],["size","3x","title","Troca de dia",1,"iconItem","iconSizeI","cl-blue","clickPlace",3,"icon"],["size","3x","title","Entrada",1,"iconItem","iconSizeI","cl-blue","clickPlace",3,"icon"],["size","3x","title","Sa\xedda",1,"iconItem","iconSizeI","cl-red","clickPlace",3,"icon"],[1,"mockedIcon"],["size","3x","title","Poss\xedvel altera\xe7\xe3o de GPS",1,"iconItem","iconSizeI","cl-red","clickPlace",3,"icon"],["pointOptionBox",""],["class","iconBox bg-red mrgR1",4,"ngIf"],["title","Visualizar dados",1,"iconBox","bg-green","clickPlace",3,"click"],["title","Enviar comprovante",1,"iconBox","bg-blue","clickPlace","mrgL1",3,"click"],["class","iconBox bg-blue clickPlace mrgL1","title","Solicitar ajuste",3,"click",4,"ngIf"],["class","iconBox bg-red clickPlace mrgL1","title","Desconsiderar",3,"click",4,"ngIf"],["class","iconBox bg-gray clickPlace mrgL1","title","Reconsiderar ponto",3,"click",4,"ngIf"],["class","iconBox bg-blue clickPlace mrgL1 w20px","title","Mover ponto",3,"click",4,"ngIf"],["class","iconBox bg-blue clickPlace mrgL1","title","Imagem do registro",3,"click",4,"ngIf"],[1,"iconBox","bg-red","mrgR1"],["size","3x","title","Ver justificativa",1,"iconItem","iconSizeH","cl-white","clickPlace",3,"icon","click"],["title","Solicitar ajuste",1,"iconBox","bg-blue","clickPlace","mrgL1",3,"click"],["title","Desconsiderar",1,"iconBox","bg-red","clickPlace","mrgL1",3,"click"],["title","Reconsiderar ponto",1,"iconBox","bg-gray","clickPlace","mrgL1",3,"click"],["size","3x",1,"iconItem","iconSizeG","cl-white",3,"icon"],["title","Mover ponto",1,"iconBox","bg-blue","clickPlace","mrgL1","w20px",3,"click"],["size","3x","class","iconItem iconSizeG cl-white",3,"icon",4,"ngIf"],["title","Imagem do registro",1,"iconBox","bg-blue","clickPlace","mrgL1",3,"click"],[1,"item","flex","start","sizeC"],["title","Visualizar escala",1,"flex","sizeC","fontBold","clickPlace","mrgL1",3,"click"],["size","3x",1,"iconItem","iconSizeG","cl-gray-dark","mrgL1",3,"icon"],["class","iconBox bg-orange mrgR1",4,"ngIf"],["class","iconBox mrgR1 bg-blue",4,"ngIf"],["class","optionPopBox iconBox bg-blue",4,"ngIf"],[1,"iconBox","bg-orange","mrgR1"],["size","3x","title","Aprovar/Reprovar ajustes",1,"iconItem","iconSizeH","cl-white","clickPlace",3,"icon","click"],[1,"iconBox","mrgR1","bg-blue"],["size","3x","title","Reordenar e recalcular pontos",1,"iconItem","iconSizeH","cl-white","clickPlace",3,"icon","click"],[1,"optionPopBox","iconBox","bg-blue"],["size","3x","title","Adicionar ponto",1,"iconItem","iconSizeH","cl-white","clickPlace","fa-rotate-45",3,"icon"],[1,"optionPop","bg-white","round2"],[1,"sizeC","cl-blue","clickPlace",3,"click"],["class","sizeC cl-blue clickPlace",3,"click",4,"ngIf"],[3,"showModal","pointIds","updatePoint","hideModal"],[3,"showModal","beginDate","endDate","updateAll","lockedEmitter","confirmClick","hideModal"],[3,"date","collaboratorName","showModal","lockedEmitter","hideModal","confirmClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilterData(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"p",7),Gs(8,"Selecione um funcion\xe1rio, a data inicial e a data final."),ts(),Jr(9,Sre,4,1,"div",8),ts(),es(10,"div",9),es(11,"div",10),es(12,"io-search-line",11),ls("collaboratorSelectedData",(function(e){return t.setCollaboratorSelected(e)}))("resetText",(function(){return t.getList(!0)}))("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(13,"io-interval-selector",12),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),ts(),es(14,"div"),es(15,"div",13),es(16,"div",14),es(17,"h3",15),Gs(18,"Funcion\xe1rio"),ts(),es(19,"div",16),es(20,"select",17),ls("change",(function(){return t.filterCollaboratorInconsistency()})),es(21,"option",18),Gs(22,"Todos"),ts(),es(23,"option",19),Gs(24,"Com inconsist\xeancia"),ts(),es(25,"option",19),Gs(26,"Sem inconsist\xeancia"),ts(),ts(),ns(27,"fa-icon",20),ts(),es(28,"div"),es(29,"span",21),es(30,"fa-icon",22),ls("click",(function(){return t.showModalRefreshPointsAll()})),ts(),ts(),ts(),ts(),es(31,"ul",23),Jr(32,Tre,9,13,"li",24),Jr(33,Ire,4,3,"li",25),ts(),es(34,"io-pagination",26),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),es(35,"div"),es(36,"div",13),es(37,"div",27),es(38,"h3",15),Gs(39,"Data"),ts(),es(40,"div",28),es(41,"h3",29),Gs(42,"Registro de ponto do per\xedodo"),ts(),es(43,"div",30),es(44,"select",31),ls("change",(function(){return t.filterPointStatus()})),es(45,"option",19),Gs(46,"Todos"),ts(),es(47,"option",18),Gs(48,"V\xe1lidos"),ts(),es(49,"option",19),Gs(50,"Aguardando desconsidera\xe7\xe3o"),ts(),es(51,"option",19),Gs(52,"Desconsiderados"),ts(),ts(),ns(53,"fa-icon",20),ts(),ts(),es(54,"h3",15),Gs(55,"Trabalhado"),ts(),es(56,"h3",15),Gs(57,"Carga hor\xe1ria"),ts(),es(58,"h3",15),Gs(59,"A\xe7\xe3o"),ts(),ts(),es(60,"ul",23),Jr(61,fse,10,13,"li",32),Jr(62,yse,5,4,"li",25),ts(),ts(),ts(),ts(),ts(),Jr(63,bse,1,2,"io-point-modal-disregard",33),es(64,"io-point-modal-form",34),ls("updateList",(function(){return t.getPointList()}))("hideModal",(function(){return t.hideModalForm()})),ts(),es(65,"io-point-modal-justification-view",35),ls("hideModal",(function(){return t.hideModalJustification()})),ts(),es(66,"io-point-modal-notification",36),ls("hideModal",(function(){return t.hideModalNotification()})),ts(),es(67,"io-point-modal-point",37),ls("showModalNotification",(function(e){return t.showModalNotification(e.date,e.pointId)}))("hideModal",(function(){return t.hideModalPoint()})),ts(),es(68,"io-absence-modal-register",38),ls("updateList",(function(){return t.getList()}))("hideModal",(function(){return t.hideModalAbsenceForm()})),ts(),es(69,"io-absence-modal-view",39),ls("hideModal",(function(){return t.hideModalAbsenceView()})),ts(),es(70,"io-adjustment-modal-form",40),ls("hideModal",(function(){return t.hideModalAdjustment()}))("updateList",(function(){return t.updateList()})),ts(),es(71,"io-journey-modal-view",41),ls("hideModal",(function(){return t.hideModalJourney()})),ts(),es(72,"io-modal-confirm",42),ls("hideModal",(function(){return t.hideModalRegard()}))("confirmClick",(function(){return t.RegardPoint()})),ts(),es(73,"io-modal-confirm",43),ls("confirmClick",(function(){return t.removeAbsence()}))("hideModal",(function(){return t.hideModalAbsenceRemove()})),ts(),es(74,"io-modal-confirm",42),ls("hideModal",(function(){return t.hideModalProofOfPoint()}))("confirmClick",(function(){return t.sendProofOfPointByEmail()})),ts(),es(75,"io-modal-confirm",44),ls("hideModal",(function(){return t.hideModalMirrorWarningBankTimeRange()}))("confirmClick",(function(){return t.downloadMirror()})),ts(),Jr(76,_se,1,4,"io-point-modal-confirm-refresh-points",45),Jr(77,kse,1,4,"io-point-modal-confirm-refresh-points",45),es(78,"io-point-modal-photo-face-recognition",46),ls("hideModal",(function(){return t.hideModalPhotoFaceRecognition()})),ts(),es(79,"io-modal-confirm",44),ls("hideModal",(function(){return t.hideModalMirrorWarningBankTimeRange()}))("confirmClick",(function(){return t.downloadMirror()})),ts(),Jr(80,Cse,1,3,"io-point-modal-confirm-refresh-points-collaborator",47)),2&e&&(Bo(3),Zr("moduleName","point")("titleTop","Controle de Ponto"),Bo(1),Zr("showCollaboratorStatusList",!1)("filterJourneySelected",!0),Bo(5),Zr("ngIf",t.collaboratorSelected),Bo(3),Zr("selectFull",!0)("searchValue",t.collaboratorSelectedName)("collaboratorSkipData",t.collaboratorSkipData),Bo(1),Zr("firstDateLabel","Data inicial")("firstDateStart",t.beginDateStart)("secondDateLabel","Data final")("secondDateStart",t.endDateStart),Bo(1),Xs("collaboratorListBox anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(2),Zr("formGroup",t.searchFormCollaborator),Bo(4),Zr("formControlName","inconsistency"),Bo(1),Zr("value","all"),Bo(2),Zr("value",1),Bo(2),Zr("value",0),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(3),Zr("icon",t.iconSolidService.faSyncAlt)("ngClass",t.recalcRunning?"cl-red":"cl-gray-dark")("title",t.recalcRunning?"Aguarde a finaliza\xe7\xe3o do rec\xe1lculo":"Atualizar todos"),Bo(2),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Xs("pointListBox anmtd4 ",t.collaboratorSelected?"collaboratorSelected":"",""),Bo(8),Zr("formGroup",t.searchFormPoint),Bo(1),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",1),Bo(2),Zr("value",2),Bo(2),Zr("value",3),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(8),Zr("ngForOf",t.pointListShow),Bo(1),Zr("ngIf",0==t.pointListShow.length),Bo(1),Zr("ngIf",t.modalDisregard),Bo(1),Zr("showChangeOfShift",t.showChangeOfShift)("dateSelected",t.dateSelected)("showModal",t.modalForm)("collaboratorId",t.collaboratorSelectedId)("arrayToVerify",t.pointSelectedSelectedLine)("changeOfShift",t.changeOfShift)("showChangeOfShift",t.showChangeOfShift)("dateSelected",t.dateSelected),Bo(1),Zr("showModal",t.modalJustification)("collaboratorName",t.collaboratorSelectedName)("collaboratorJustification",t.pointSelectedJustification),Bo(1),Zr("showModal",t.modalNotification)("collaboratorId",t.collaboratorSelectedId)("collaboratorName",t.collaboratorSelectedName)("dateNotification",t.dateSelected)("pointId",t.pointSelectedId),Bo(1),Zr("showModal",t.modalPoint)("pointId",t.pointSelectedId),Bo(1),Zr("showModal",t.modalAbsenceForm)("beginDateSelected",t.dateSelected)("collaboratorSelectedId",t.collaboratorSelectedId)("collaboratorSelectedName",t.collaboratorSelectedName),Bo(1),Zr("showModal",t.modalAbsenceView)("absenceId",t.absenceSelectedId),Bo(1),Zr("showModal",t.modalAdjustment)("collaboratorSelectedId",t.collaboratorSelectedIdAdjustment)("collaboratorSelectedDate",t.dateSelected),Bo(1),Zr("journeyId",t.journeySelectedId)("showModal",t.modalJourney)("collaboratorId",t.getCollaboratorId),Bo(1),Zr("showModal",t.modalRegard)("title","Deseja reconsiderar este ponto?")("btnTextConfirm","Reconsiderar"),Bo(1),Zr("showModal",t.modalAbsenceRemove)("title","Deseja realmente excluir essa aus\xeancia?")("btnTextConfirm","Excluir"),Bo(1),Zr("showModal",t.modalProofOfPoint)("title","Reenviar comprovante de ponto?")("btnTextConfirm","Enviar"),Bo(1),Zr("showModal",t.modalMirrorWarningBankTimeRange)("title","Fim da vig\xeancia do banco horas")("text","O per\xedodo selecionado inclui um fim de vig\xeancia do banco de horas no dia "+t.getDateBR(t.bankTimeRangeEndDate)+". O espelho ponto ser\xe1 gerado at\xe9 essa data.")("btnTextConfirm","Gerar"),Bo(1),Zr("ngIf",t.modalRefreshPoints),Bo(1),Zr("ngIf",t.modalRefreshPointsAll),Bo(1),Zr("showModal",t.modalPhotoFaceRecognition)("pointId",t.pointSelectedId),Bo(1),Zr("showModal",t.modalMirrorWarningBankTimeRange)("title","Fim da vig\xeancia do banco horas")("text","O per\xedodo selecionado inclui um fim de vig\xeancia do banco de horas no dia "+t.getDateBR(t.bankTimeRangeEndDate)+". O espelho ponto ser\xe1 gerado at\xe9 essa data.")("btnTextConfirm","Gerar"),Bo(1),Zr("ngIf",t.modalRefreshPointCollaborator))},directives:[eI,qV,sh,oE,ZA,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ih,ah,hE,sre,lre,MK,nZ,dre,IB,nj,jW,UB,gre,BB,LK,Qne,Cre,wre],styles:['.wdMaxHere[_ngcontent-%COMP%]{max-width:50%}io-interval-selector[_ngcontent-%COMP%]{padding-top:7px}.collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:570px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%;text-align:right}.pointListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:0}.pointListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:530px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]{min-height:48px;height:auto}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:6%}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100%}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2)   .selectFilter[_ngcontent-%COMP%]{max-width:240px;text-align:left;margin-left:10px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:12%;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:15%;text-align:right;overflow:visible}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   .iconBox[_ngcontent-%COMP%]{margin-left:3px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child   .iconBox[_ngcontent-%COMP%]:first-child{margin-left:0}.pointListBox[_ngcontent-%COMP%]   .listAlign.journeyLine[_ngcontent-%COMP%]{background-color:var(--background-color)}.pointListBox[_ngcontent-%COMP%]   .listAlign.journeyLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100%}.pointListBox[_ngcontent-%COMP%]   .listAlign.journeyLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]{position:relative}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]   .ioMenuDrop[_ngcontent-%COMP%]{height:0}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]{position:absolute;top:-5px;right:100%;display:none;width:160px;height:auto;padding:10px;text-align:left;transition:all .4s ease;border:1px solid var(--cl-gray-light)}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;height:20px;padding:5px 0;margin:0 0 5px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:hover{color:var(--primary-color);text-decoration:underline}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]:before{top:7px;left:100%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-left-color:var(--cl-gray-light);border-width:8px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .optionPopBox[_ngcontent-%COMP%]:hover   .optionPop[_ngcontent-%COMP%]{display:block}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]:last-child   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]{top:inherit;bottom:-5px}.pointListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]:last-child   .optionPopBox[_ngcontent-%COMP%]   .optionPop[_ngcontent-%COMP%]:before{top:inherit;bottom:7px}.w20px[_ngcontent-%COMP%]{width:20px}']}),wse);function Mse(e,t){if(1&e&&(es(0,"li",12),es(1,"span",13),Gs(2),ts(),es(3,"span",14),Gs(4),ts(),es(5,"span",14),Gs(6),ts(),es(7,"span",15),ns(8,"fa-icon",16),ts(),ts()),2&e){var n=t.$implicit,i=fs();Zr("routerLink","/point-list-month/"+n.id),Bo(1),Zr("routerLink","/point-list-month/"+n.id),Bo(1),$s(n.name),Bo(2),$s(n.department_name),Bo(2),$s(n.occupation_name),Bo(2),Zr("icon",i.iconRegularService.faEye)}}function Sse(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Pse(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function Tse(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function Ose(e,t){if(1&e&&(es(0,"li"),Jr(1,Sse,2,0,"p",11),Jr(2,Pse,2,0,"p",11),Jr(3,Tse,2,0,"p",11),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var Lse,Dse,Ise=((Dse=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.pointDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.period="",this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.titleService.setTitle("Pontos")}),[{key:"selectPeriod",value:function(e){this.period=e,this.getCollaboratorList()}},{key:"getCollaboratorList",value:function(){var e=this;this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.pointDatabase.getPointManage(this.companyId,this.period,(function(t){e.collaboratorList=t.data.listPointControl,e.collaboratorListFilteredSearch=e.collaboratorList}))}},{key:"filterCollaboratorSearch",value:function(e){this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name")}}])}()).\u0275fac=function(e){return new(e||Dse)($r(wp),$r(yM),$r(SK),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},Dse.\u0275cmp=Ot({type:Dse,selectors:[["io-point-page-list-collaborators-day"]],decls:19,vars:4,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"wdMax25","mrgB2"],[3,"dateSelected"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex clickPlace bg-white listAlign","title","Ver per\xedodo",3,"routerLink",4,"ngFor","ngForOf"],[4,"ngIf"],["title","Ver per\xedodo",1,"flex","clickPlace","bg-white","listAlign",3,"routerLink"],[1,"item","sizeC","clickPlace",3,"routerLink"],[1,"item","sizeC"],[1,"item"],["size","3x","title","Visualizar dados de acesso",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-period-selector",4),ls("dateSelected",(function(e){return t.selectPeriod(e)})),ts(),ts(),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterCollaboratorSearch(e)})),ts(),es(6,"div",6),es(7,"div",7),es(8,"h3",8),Gs(9,"Funcion\xe1rio"),ts(),es(10,"h3",8),Gs(11,"Departamento"),ts(),es(12,"h3",8),Gs(13,"Cargo"),ts(),es(14,"h3",8),Gs(15,"A\xe7\xe3o"),ts(),ts(),es(16,"ul",9),Jr(17,Mse,9,6,"li",10),Jr(18,Ose,4,3,"li",11),ts(),ts(),ts(),ts()),2&e&&(Bo(2),Zr("moduleName","user")("titleTop","Pontos"),Bo(15),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length))},directives:[eI,Foe,oE,ah,sh,bM,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:25%;text-align:right}"]}),Dse),Fse=((Lse=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deletePointRule",value:function(e,t){this.databaseService.delete("/pointRule/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointRule",value:function(e,t){this.databaseService.get("/pointRule/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointRuleList",value:function(e){this.databaseService.get("/pointRule",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getPointRuleCollaboratorList",value:function(e,t){this.databaseService.get("/pointRule/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getPointRuleCollaboratorListOut",value:function(e,t){this.databaseService.get("/pointRule/"+e+"/collaboratorListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postPointRule",value:function(e,t){this.databaseService.post("/pointRule",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"putPointRule",value:function(e,t,n){this.databaseService.put("/pointRule/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putPointRuleCollaboratorList",value:function(e,t,n){this.databaseService.put("/pointRule/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putPointRuleReactive",value:function(e,t){this.databaseService.put("/pointRule/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Lse)(ut(tT))},Lse.\u0275prov=Se({token:Lse,factory:Lse.\u0275fac,providedIn:"root"}),Lse);function Ase(e,t){if(1&e){var n=as();es(0,"io-datepicker",17),ls("dateSelectedEN",(function(e){return mn(n),fs().beginDate=e})),ts()}2&e&&Zr("labelText","Data de transfer\xeancia")}function Ese(e,t){if(1&e){var n=as();es(0,"li",18),es(1,"label",19),Gs(2),es(3,"input",20),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toCollaboratorList(e.id)})),ts(),ns(4,"span",9),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.name," "),Bo(1),Zr("checked",o.collaboratorListSelected.indexOf(i.id)>=0)}}function Bse(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Nse(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function Rse(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 funcion\xe1rio dispon\xedvel para ser vinculado a esta regra do ponto."),ts())}function jse(e,t){if(1&e&&(es(0,"li"),Jr(1,Bse,2,0,"p",13),Jr(2,Nse,2,0,"p",13),Jr(3,Rse,2,0,"p",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var zse,Vse=((zse=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.pointRuleDatabase=n,this.storageService=i,this.functionsService=o,this.showModal=!1,this.pointRuleId=null,this.hideModal=new Mc,this.reloadList=new Mc,this.coverAll=!1,this.datepickerEnable=!0,this.beginDate="",this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorListSelected=[],this.linkCollaboratorForm=this.formBuilder.group({all_collaborators:new Wm(null,[Jf.required]),allSelected:new Wm(!1,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.linkCollaboratorForm.controls.all_collaborators.setValue(null),this.datepickerEnable=!0,null!=this.pointRuleId&&1==this.showModal&&this.pointRuleDatabase.getPointRuleCollaboratorListOut(this.pointRuleId,(function(t){t.error||(e.collaboratorList=t.data.collaboratorListOut.length>0?t.data.collaboratorListOut:[],e.collaboratorListFilteredSearch=e.collaboratorList)}))}},{key:"filterCollaborator",value:function(e){this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorList,e,"name")}},{key:"toCollaboratorList",value:function(e){this.collaboratorListSelected.find((function(t){return t==e}))?this.collaboratorListSelected=this.collaboratorListSelected.filter((function(t){return t!=e})):this.collaboratorListSelected.push(e),this.validAllSelected()}},{key:"verifyAll",value:function(){var e=this;this.linkCollaboratorForm.controls.allSelected.value?(this.collaboratorListSelected=[],this.collaboratorList.forEach((function(t){e.collaboratorListSelected.push(t.id)}))):this.collaboratorListSelected=[]}},{key:"validAllSelected",value:function(){this.linkCollaboratorForm.get("allSelected").setValue(this.collaboratorListSelected.length==this.collaboratorList.length)}},{key:"validCollaboratorListSelected",value:function(){return""==this.beginDate?(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar uma data para a transf\xearencia."),!1):0!=this.collaboratorListSelected.length||(this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar ao menos um funcion\xe1rio"),!1)}},{key:"sendCollaboratorLink",value:function(){var e=this;if(this.validCollaboratorListSelected()){var t={collaborator_id:JSON.stringify(this.collaboratorListSelected),begin_date:this.beginDate};this.pointRuleDatabase.putPointRuleCollaboratorList(this.pointRuleId,t,(function(t){t.error||(e.closeModal(),e.emitReloadList())}))}}},{key:"emitReloadList",value:function(){this.reloadList.emit()}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.linkCollaboratorForm.reset(),this.beginDate="",this.coverAll=!1,this.datepickerEnable=!1,this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.collaboratorListSelected=[]}}])}()).\u0275fac=function(e){return new(e||zse)($r(wp),$r(Fse),$r(YP),$r(zP))},zse.\u0275cmp=Ot({type:zse,selectors:[["io-point-rule-modal-link-collaborator"]],inputs:{showModal:"showModal",pointRuleId:"pointRuleId"},outputs:{hideModal:"hideModal",reloadList:"reloadList"},features:[dl],decls:19,vars:18,consts:[[3,"showModal","hideModal"],[1,"minHeightBox","mrgB2",3,"formGroup"],[1,"sizeA","cl-blue","fontBold","fontUp"],[1,"flex","start","wdFull","mrgB1"],[3,"labelText","dateSelectedEN",4,"ngIf"],[3,"onKeyPress"],[1,"flex","start","wdFull","mrgT1",3,"formGroup"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"relativePlace"],[1,"listBox"],["class","flex start pdg0",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","modalUser"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"labelText","dateSelectedEN"],[1,"flex","start","pdg0"],[1,"radioBox","hd1","mrgR1","sizeC"],["type","checkbox",3,"checked","change"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Vincular funcion\xe1rios a esta regra do ponto"),ts(),es(4,"div",3),Jr(5,Ase,1,1,"io-datepicker",4),ts(),es(6,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterCollaborator(e)})),ts(),es(7,"div",6),es(8,"label",7),Gs(9,"Todos os funcion\xe1rios "),es(10,"input",8),ls("change",(function(){return t.verifyAll()})),ts(),ns(11,"span",9),ts(),ts(),es(12,"div",10),es(13,"ul",11),Jr(14,Ese,5,2,"li",12),Jr(15,jse,4,3,"li",13),ts(),ts(),ts(),es(16,"div",14),es(17,"io-btn",15),ls("btnClick",(function(){return t.closeModal()})),ts(),es(18,"io-btn",16),ls("btnClick",(function(){return t.sendCollaboratorLink()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.linkCollaboratorForm),Bo(4),Zr("ngIf",t.datepickerEnable),Bo(2),Zr("formGroup",t.linkCollaboratorForm),Bo(3),Zr("formControlName","allSelected"),Bo(4),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(2),Zr("moduleName","point-rule")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","point-rule")("action","update")("btnColor","btn-blue-bg")("btnText","Vincular")("btnTitle","Vincular"))},directives:[CE,Hf,ip,sh,oE,Of,Vf,vp,ah,jD,UA],styles:[".listBox[_ngcontent-%COMP%]{position:relative;padding-top:10px;max-height:220px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0 0 10px;padding:0 15px;height:20px}"]}),zse);function Hse(e,t){if(1&e&&(es(0,"span",27),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Yse(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalRemovePointRule(e.id)})),ts()}2&e&&Zr("moduleName","point-rule")("action","delete")("iconTitle","Excluir regra do ponto")("iconClassList","mrgL1")}function qse(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalInactivePointRule(e.id)})),ts()}2&e&&Zr("moduleName","point-rule")("action","delete")("iconTitle","Inativar regra do ponto")("iconClassList","mrgL1")}function Use(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactivePointRule(e.id)})),ts()}2&e&&Zr("moduleName","point-rule")("action","reactive")("iconTitle","Reativar regra do ponto")("iconClassList","mrgL1")}var Wse=function(e){return{pointRuleId:e}};function Jse(e,t){if(1&e){var n=as();es(0,"li",19),es(1,"span",20),Jr(2,Hse,2,1,"span",21),Gs(3),ts(),es(4,"span",20),Gs(5),ts(),es(6,"span",22),Gs(7),ts(),es(8,"span",23),es(9,"io-icon",24),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),ns(10,"io-icon",25),Jr(11,Yse,1,4,"io-icon",26),Jr(12,qse,1,4,"io-icon",26),Jr(13,Use,1,4,"io-icon",26),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description,""),Bo(2),$s(i.collaboratorCount),Bo(2),$s(i.active?"Ativa":"Inativa"),Bo(2),Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","point-rule")("action","update")("iconTitle","Editar regra do ponto")("iconClassList","mrgL1")("urlNavigation","point-rule-update")("urlStateData",pc(17,Wse,i.id)),Bo(1),Zr("ngIf",i.active&&!i.total_collaborators||0==i.total_collaborators),Bo(1),Zr("ngIf",i.active&&i.total_collaborators&&i.total_collaborators>0),Bo(1),Zr("ngIf",!i.active)}}function Gse(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function $se(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma regra do ponto encontrada."),ts())}function Qse(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 regra do ponto cadastrada."),ts())}function Kse(e,t){if(1&e&&(es(0,"li"),Jr(1,Gse,2,0,"p",15),Jr(2,$se,2,0,"p",15),Jr(3,Qse,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.pointRuleList.length>0&&n.pointRuleList[0].loading),Bo(1),Zr("ngIf",n.pointRuleList.length>0&&!n.pointRuleList[0].loading&&0==n.pointRuleListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.pointRuleList.length)}}function Zse(e,t){if(1&e){var n=as();es(0,"io-point-rule-modal-link-collaborator",29),ls("reloadList",(function(){return mn(n),fs().loadList()}))("hideModal",(function(){return mn(n),fs().hideModalCollaboratorLink()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalCollaboratorLink)("pointRuleId",i.pointRuleSelectedId)}}var Xse,ele=((Xse=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.pointRuleDatabase=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.titleService=r,this.storageService=s,this.collaboratorListIn=[],this.collaboratorListOut=[],this.modalReactivePointRule=!1,this.modalRemovePointRule=!1,this.modalInactivePointRule=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.pointRuleList=[{loading:!0}],this.pointRuleListFilteredStatus=[],this.pointRuleListFilteredSearch=[],this.pointRuleSelectedId=null,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Configura\xe7\xf5es - Edi\xe7\xe3o"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm(1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.loadList()}},{key:"loadList",value:function(){var e=this;this.pointRuleDatabase.getPointRuleList((function(t){t.error||(e.pointRuleList=t.data.pointRuleList.length>0?t.data.pointRuleList:[],e.filterPointRuleStatus())}))}},{key:"filterPointRuleStatus",value:function(){var e=this.searchForm.controls.status.value;this.pointRuleListFilteredStatus="all"==e?this.pointRuleList:this.pointRuleList.filter((function(t){return t.active==e})),this.filterPointRuleSearch(this.searchForm.controls.search.value)}},{key:"filterPointRuleSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.pointRuleListFilteredSearch=this.functionsService.arrayFilterWords(this.pointRuleListFilteredStatus,e,"description")}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.pointRuleDatabase.getPointRuleCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.pointRuleSelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.pointRuleSelectedId=null,this.modalCollaboratorList=!1}},{key:"showModalCollaboratorLink",value:function(){this.modalCollaboratorList=!1,this.modalCollaboratorLink=!0}},{key:"hideModalCollaboratorLink",value:function(){this.pointRuleSelectedId=null,this.modalCollaboratorLink=!1}},{key:"showModalRemovePointRule",value:function(e){this.pointRuleSelectedId=e,this.modalRemovePointRule=!0}},{key:"deletePointRule",value:function(e){var t=this;this.pointRuleDatabase.deletePointRule(e,(function(n){if(!n.error){var i=t.pointRuleList.findIndex((function(t){return t.id==e}));t.pointRuleList.splice(i,1),t.filterPointRuleStatus(),t.hideModalRemovePointRule()}}))}},{key:"hideModalRemovePointRule",value:function(){this.pointRuleSelectedId=null,this.modalRemovePointRule=!1}},{key:"showModalInactivePointRule",value:function(e){this.pointRuleSelectedId=e,this.modalInactivePointRule=!0}},{key:"inactivePointRule",value:function(e){var t=this;this.pointRuleDatabase.deletePointRule(e,(function(n){if(!n.error){var i=t.pointRuleList.findIndex((function(t){return t.id==e}));t.pointRuleList[i].active=0,t.hideModalInativePointRule()}}))}},{key:"hideModalInativePointRule",value:function(){this.pointRuleSelectedId=null,this.modalInactivePointRule=!1}},{key:"showModalReactivePointRule",value:function(e){this.pointRuleSelectedId=e,this.modalReactivePointRule=!0}},{key:"reactivePointRule",value:function(e){var t=this;this.pointRuleDatabase.putPointRuleReactive(e,(function(n){if(!n.error){var i=t.pointRuleList.findIndex((function(t){return t.id==e}));t.pointRuleList[i].active=1,t.hideModalReactivePointRule()}}))}},{key:"hideModalReactivePointRule",value:function(){this.pointRuleSelectedId=null,this.modalReactivePointRule=!1}}])}()).\u0275fac=function(e){return new(e||Xse)($r(wp),$r(Fse),$r(zP),$r(WO),$r(JO),$r(hL),$r(YP))},Xse.\u0275cmp=Ot({type:Xse,selectors:[["io-point-rule-page-list"]],decls:30,vars:32,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","pointRuleId","reloadList","hideModal",4,"ngIf"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","btnAddClick","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","urlNavigation","urlStateData"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[3,"showModal","pointRuleId","reloadList","hideModal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterPointRuleSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Regra do ponto"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rios"),ts(),es(11,"div",8),es(12,"select",9),ls("change",(function(){return t.filterPointRuleStatus()})),es(13,"option",10),Gs(14,"Todas"),ts(),es(15,"option",10),Gs(16,"Inativa"),ts(),es(17,"option",11),Gs(18,"Ativa"),ts(),ts(),ns(19,"fa-icon",12),ts(),es(20,"h3",7),Gs(21,"A\xe7\xe3o"),ts(),ts(),es(22,"ul",13),Jr(23,Jse,14,19,"li",14),Jr(24,Kse,4,3,"li",15),ts(),ts(),ts(),ts(),Jr(25,Zse,1,2,"io-point-rule-modal-link-collaborator",16),es(26,"io-modal-confirm",17),ls("confirmClick",(function(){return t.inactivePointRule(t.pointRuleSelectedId)}))("hideModal",(function(){return t.hideModalInativePointRule()})),ts(),es(27,"io-modal-confirm",17),ls("confirmClick",(function(){return t.deletePointRule(t.pointRuleSelectedId)}))("hideModal",(function(){return t.hideModalRemovePointRule()})),ts(),es(28,"io-modal-confirm",17),ls("confirmClick",(function(){return t.reactivePointRule(t.pointRuleSelectedId)}))("hideModal",(function(){return t.hideModalReactivePointRule()})),ts(),es(29,"io-modal-multi-select-id",18),ls("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts()),2&e&&(Bo(2),Zr("moduleName","point")("titleTop","Regra do ponto")("showBtn",!0)("btnDataUrl","point-rule-register"),Bo(4),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",0),Bo(2),Zr("value",1),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.pointRuleListFilteredSearch),Bo(1),Zr("ngIf",0==t.pointRuleListFilteredSearch.length),Bo(1),Zr("ngIf",t.modalCollaboratorLink),Bo(1),Zr("showModal",t.modalInactivePointRule)("title","Deseja inativar esta regra de ponto?")("btnTextConfirm","Inativar"),Bo(1),Zr("showModal",t.modalRemovePointRule)("title","Deseja excluir esta regra de ponto?")("btnTextConfirm","Excluir"),Bo(1),Zr("showModal",t.modalReactivePointRule)("title","Deseja Reativar esta regra de ponto?")("btnTextConfirm","Reativar"),Bo(1),Zr("title","Funcion\xe1rios vinculados a esta regra de ponto")("moduleName","unit")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,UB,tR,BB,Vse],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:35%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%;margin:0;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   .action[_ngcontent-%COMP%]{margin-left:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   .action[_ngcontent-%COMP%]:first-child{margin-left:0}"]}),Xse);function tle(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function nle(e,t){var n=t?"":"none";tle(e.style,{touchAction:t?"":"none",webkitUserDrag:t?"":"none",webkitTapHighlightColor:t?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function ile(e){var t=e.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(e)*t}function ole(e,t){return e.getPropertyValue(t).split(",").map((function(e){return e.trim()}))}function ale(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}}function rle(e,t,n){var i=e.top,o=e.bottom,a=e.left,r=e.right;return n>=i&&n<=o&&t>=a&&t<=r}function sle(e,t,n){e.top+=t,e.bottom=e.top+e.height,e.left+=n,e.right=e.left+e.width}function lle(e,t,n,i){var o=e.top,a=e.right,r=e.bottom,s=e.left,l=e.width*t,c=e.height*t;return i>o-c&&i<r+c&&n>s-l&&n<a+l}var cle=function(){return d((function e(t,n){c(this,e),this._document=t,this._viewportRuler=n,this.positions=new Map}),[{key:"clear",value:function(){this.positions.clear()}},{key:"cache",value:function(e){var t=this;this.clear(),this.positions.set(this._document,{scrollPosition:this._viewportRuler.getViewportScrollPosition()}),e.forEach((function(e){t.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ale(e)})}))}},{key:"handleScroll",value:function(e){var t=e.target,n=this.positions.get(t);if(!n)return null;var i,o,a=t===this._document?t.documentElement:t,r=n.scrollPosition;if(t===this._document){var s=this._viewportRuler.getViewportScrollPosition();i=s.top,o=s.left}else i=t.scrollTop,o=t.scrollLeft;var l=r.top-i,c=r.left-o;return this.positions.forEach((function(e,n){e.clientRect&&t!==n&&a.contains(n)&&sle(e.clientRect,l,c)})),r.top=i,r.left=o,{top:l,left:c}}}])}(),ule=Xg({passive:!0}),dle=Xg({passive:!1}),hle=function(){return d((function e(t,n,i,o,a,r){var s=this;c(this,e),this._config=n,this._document=i,this._ngZone=o,this._viewportRuler=a,this._dragDropRegistry=r,this._passiveTransform={x:0,y:0},this._activeTransform={x:0,y:0},this._moveEvents=new V,this._pointerMoveSubscription=M.EMPTY,this._pointerUpSubscription=M.EMPTY,this._scrollSubscription=M.EMPTY,this._resizeSubscription=M.EMPTY,this._boundaryElement=null,this._nativeInteractionsEnabled=!0,this._handles=[],this._disabledHandles=new Set,this._direction="ltr",this.dragStartDelay=0,this._disabled=!1,this.beforeStarted=new V,this.started=new V,this.released=new V,this.ended=new V,this.entered=new V,this.exited=new V,this.dropped=new V,this.moved=this._moveEvents.asObservable(),this._pointerDown=function(e){if(s.beforeStarted.next(),s._handles.length){var t=s._handles.find((function(t){var n=e.target;return!!n&&(n===t||t.contains(n))}));!t||s._disabledHandles.has(t)||s.disabled||s._initializeDragSequence(t,e)}else s.disabled||s._initializeDragSequence(s._rootElement,e)},this._pointerMove=function(e){e.preventDefault();var t=s._getPointerPositionOnPage(e);if(s._hasStartedDragging){s._boundaryElement&&(s._previewRect&&(s._previewRect.width||s._previewRect.height)||(s._previewRect=(s._preview||s._rootElement).getBoundingClientRect()));var n=s._getConstrainedPointerPosition(t);if(s._hasMoved=!0,s._updatePointerDirectionDelta(n),s._dropContainer)s._updateActiveDropContainer(n);else{var i=s._activeTransform;i.x=n.x-s._pickupPositionOnPage.x+s._passiveTransform.x,i.y=n.y-s._pickupPositionOnPage.y+s._passiveTransform.y,s._applyRootElementTransform(i.x,i.y),"undefined"!=typeof SVGElement&&s._rootElement instanceof SVGElement&&s._rootElement.setAttribute("transform","translate(".concat(i.x," ").concat(i.y,")"))}s._moveEvents.observers.length&&s._ngZone.run((function(){s._moveEvents.next({source:s,pointerPosition:n,event:e,distance:s._getDragDistance(n),delta:s._pointerDirectionDelta})}))}else if(Math.abs(t.x-s._pickupPositionOnPage.x)+Math.abs(t.y-s._pickupPositionOnPage.y)>=s._config.dragStartThreshold){if(!(Date.now()>=s._dragStartTime+s._getDragStartDelay(e)))return void s._endDragSequence(e);s._dropContainer&&s._dropContainer.isDragging()||(s._hasStartedDragging=!0,s._ngZone.run((function(){return s._startDragSequence(e)})))}},this._pointerUp=function(e){s._endDragSequence(e)},this.withRootElement(t),this._parentPositions=new cle(i,a),r.registerDragItem(this)}),[{key:"disabled",get:function(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)},set:function(e){var t=jg(e);t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions())}},{key:"getPlaceholderElement",value:function(){return this._placeholder}},{key:"getRootElement",value:function(){return this._rootElement}},{key:"getVisibleElement",value:function(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}},{key:"withHandles",value:function(e){return this._handles=e.map((function(e){return Yg(e)})),this._handles.forEach((function(e){return nle(e,!1)})),this._toggleNativeDragInteractions(),this}},{key:"withPreviewTemplate",value:function(e){return this._previewTemplate=e,this}},{key:"withPlaceholderTemplate",value:function(e){return this._placeholderTemplate=e,this}},{key:"withRootElement",value:function(e){var t=this,n=Yg(e);return n!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular((function(){n.addEventListener("mousedown",t._pointerDown,dle),n.addEventListener("touchstart",t._pointerDown,ule)})),this._initialTransform=void 0,this._rootElement=n),this}},{key:"withBoundaryElement",value:function(e){var t=this;return this._boundaryElement=e?Yg(e):null,this._resizeSubscription.unsubscribe(),e&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe((function(){return t._containInsideBoundaryOnResize()}))),this}},{key:"dispose",value:function(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&gle(this._rootElement),gle(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}},{key:"isDragging",value:function(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}},{key:"reset",value:function(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}},{key:"disableHandle",value:function(e){this._handles.indexOf(e)>-1&&this._disabledHandles.add(e)}},{key:"enableHandle",value:function(e){this._disabledHandles.delete(e)}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"_withDropContainer",value:function(e){this._dropContainer=e}},{key:"getFreeDragPosition",value:function(){var e=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:e.x,y:e.y}}},{key:"setFreeDragPosition",value:function(e){return this._activeTransform={x:0,y:0},this._passiveTransform.x=e.x,this._passiveTransform.y=e.y,this._dropContainer||this._applyRootElementTransform(e.x,e.y),this}},{key:"_sortFromLastPointerPosition",value:function(){var e=this._pointerPositionAtLastDirectionChange;e&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(e))}},{key:"_removeSubscriptions",value:function(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}},{key:"_destroyPreview",value:function(){this._preview&&gle(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}},{key:"_destroyPlaceholder",value:function(){this._placeholder&&gle(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}},{key:"_endDragSequence",value:function(e){var t=this;this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then((function(){t._cleanupDragArtifacts(e),t._cleanupCachedDimensions(),t._dragDropRegistry.stopDragging(t)}))):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run((function(){t.ended.next({source:t,distance:t._getDragDistance(t._getPointerPositionOnPage(e))})})),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}},{key:"_startDragSequence",value:function(e){this.started.next({source:this}),vle(e)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();var t,n=this._dropContainer;if(n){var i=this._rootElement,o=i.parentNode,a=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");o.insertBefore(s,i),i.style.display="none",this._document.body.appendChild(o.replaceChild(r,i)),(t=this._document,t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body).appendChild(a),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}},{key:"_initializeDragSequence",value:function(e,t){var n=this;t.stopPropagation();var i=this.isDragging(),o=vle(t),a=!o&&0!==t.button,r=this._rootElement,s=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(t.target&&t.target.draggable&&"mousedown"===t.type&&t.preventDefault(),!(i||a||s)){this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor,r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe((function(e){n._updateOnScroll(e)})),this._boundaryElement&&(this._boundaryRect=ale(this._boundaryElement));var l=this._previewTemplate;this._pickupPositionInElement=l&&l.template&&!l.matchSize?{x:0,y:0}:this._getPointerPositionInElement(e,t);var c=this._pickupPositionOnPage=this._getPointerPositionOnPage(t);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,t)}}},{key:"_cleanupDragArtifacts",value:function(e){var t=this;this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run((function(){var n=t._dropContainer,i=n.getItemIndex(t),o=t._getPointerPositionOnPage(e),a=t._getDragDistance(t._getPointerPositionOnPage(e)),r=n._isOverContainer(o.x,o.y);t.ended.next({source:t,distance:a}),t.dropped.next({item:t,currentIndex:i,previousIndex:t._initialIndex,container:n,previousContainer:t._initialContainer,isPointerOverContainer:r,distance:a}),n.drop(t,i,t._initialContainer,r,a,t._initialIndex),t._dropContainer=t._initialContainer}))}},{key:"_updateActiveDropContainer",value:function(e){var t=this,n=e.x,i=e.y,o=this._initialContainer._getSiblingContainerFromPosition(this,n,i);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,i)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run((function(){t.exited.next({item:t,container:t._dropContainer}),t._dropContainer.exit(t),t._dropContainer=o,t._dropContainer.enter(t,n,i,o===t._initialContainer&&o.sortingDisabled?t._initialIndex:void 0),t.entered.next({item:t,container:o,currentIndex:o.getItemIndex(t)})})),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,n,i,this._pointerDirectionDelta),this._preview.style.transform=fle(n-this._pickupPositionInElement.x,i-this._pickupPositionInElement.y)}},{key:"_createPreviewElement",value:function(){var e,t=this._previewTemplate,n=this.previewClass,i=t?t.template:null;if(i&&t){var o=t.matchSize?this._rootElement.getBoundingClientRect():null,a=t.viewContainer.createEmbeddedView(i,t.context);a.detectChanges(),e=yle(a,this._document),this._previewRef=a,t.matchSize?ble(e,o):e.style.transform=fle(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{var r=this._rootElement;ble(e=mle(r),r.getBoundingClientRect())}return tle(e.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),nle(e,!1),e.classList.add("cdk-drag-preview"),e.setAttribute("dir",this._direction),n&&(Array.isArray(n)?n.forEach((function(t){return e.classList.add(t)})):e.classList.add(n)),e}},{key:"_animatePreviewToPlaceholder",value:function(){var e=this;if(!this._hasMoved)return Promise.resolve();var t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=fle(t.left,t.top);var n=function(e){var t=getComputedStyle(e),n=ole(t,"transition-property"),i=n.find((function(e){return"transform"===e||"all"===e}));if(!i)return 0;var o=n.indexOf(i),a=ole(t,"transition-duration"),r=ole(t,"transition-delay");return ile(a[o])+ile(r[o])}(this._preview);return 0===n?Promise.resolve():this._ngZone.runOutsideAngular((function(){return new Promise((function(t){var i=function n(i){(!i||i.target===e._preview&&"transform"===i.propertyName)&&(e._preview.removeEventListener("transitionend",n),t(),clearTimeout(o))},o=setTimeout(i,1.5*n);e._preview.addEventListener("transitionend",i)}))}))}},{key:"_createPlaceholderElement",value:function(){var e,t=this._placeholderTemplate,n=t?t.template:null;return n?(this._placeholderRef=t.viewContainer.createEmbeddedView(n,t.context),this._placeholderRef.detectChanges(),e=yle(this._placeholderRef,this._document)):e=mle(this._rootElement),e.classList.add("cdk-drag-placeholder"),e}},{key:"_getPointerPositionInElement",value:function(e,t){var n=this._rootElement.getBoundingClientRect(),i=e===this._rootElement?null:e,o=i?i.getBoundingClientRect():n,a=vle(t)?t.targetTouches[0]:t,r=this._getViewportScrollPosition();return{x:o.left-n.left+(a.pageX-o.left-r.left),y:o.top-n.top+(a.pageY-o.top-r.top)}}},{key:"_getPointerPositionOnPage",value:function(e){var t=vle(e)?e.touches[0]||e.changedTouches[0]:e,n=this._getViewportScrollPosition();return{x:t.pageX-n.left,y:t.pageY-n.top}}},{key:"_getConstrainedPointerPosition",value:function(e){var t=this.constrainPosition?this.constrainPosition(e,this):e,n=this._dropContainer?this._dropContainer.lockAxis:null;if("x"===this.lockAxis||"x"===n?t.y=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==n||(t.x=this._pickupPositionOnPage.x),this._boundaryRect){var i=this._pickupPositionInElement,o=i.x,a=i.y,r=this._boundaryRect,s=this._previewRect,l=r.top+a,c=r.bottom-(s.height-a);t.x=ple(t.x,r.left+o,r.right-(s.width-o)),t.y=ple(t.y,l,c)}return t}},{key:"_updatePointerDirectionDelta",value:function(e){var t=e.x,n=e.y,i=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(t-o.x),r=Math.abs(n-o.y);return a>this._config.pointerDirectionChangeThreshold&&(i.x=t>o.x?1:-1,o.x=t),r>this._config.pointerDirectionChangeThreshold&&(i.y=n>o.y?1:-1,o.y=n),i}},{key:"_toggleNativeDragInteractions",value:function(){if(this._rootElement&&this._handles){var e=this._handles.length>0||!this.isDragging();e!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=e,nle(this._rootElement,e))}}},{key:"_removeRootElementListeners",value:function(e){e.removeEventListener("mousedown",this._pointerDown,dle),e.removeEventListener("touchstart",this._pointerDown,ule)}},{key:"_applyRootElementTransform",value:function(e,t){var n=fle(e,t);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}},{key:"_getDragDistance",value:function(e){var t=this._pickupPositionOnPage;return t?{x:e.x-t.x,y:e.y-t.y}:{x:0,y:0}}},{key:"_cleanupCachedDimensions",value:function(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}},{key:"_containInsideBoundaryOnResize",value:function(){var e=this._passiveTransform,t=e.x,n=e.y;if(!(0===t&&0===n||this.isDragging())&&this._boundaryElement){var i=this._boundaryElement.getBoundingClientRect(),o=this._rootElement.getBoundingClientRect();if(!(0===i.width&&0===i.height||0===o.width&&0===o.height)){var a=i.left-o.left,r=o.right-i.right,s=i.top-o.top,l=o.bottom-i.bottom;i.width>o.width?(a>0&&(t+=a),r>0&&(t-=r)):t=0,i.height>o.height?(s>0&&(n+=s),l>0&&(n-=l)):n=0,t===this._passiveTransform.x&&n===this._passiveTransform.y||this.setFreeDragPosition({y:n,x:t})}}}},{key:"_getDragStartDelay",value:function(e){var t=this.dragStartDelay;return"number"==typeof t?t:vle(e)?t.touch:t?t.mouse:0}},{key:"_updateOnScroll",value:function(e){var t=this._parentPositions.handleScroll(e);this._boundaryRect&&t&&sle(this._boundaryRect,t.top,t.left)}},{key:"_getViewportScrollPosition",value:function(){var e=this._parentPositions.positions.get(this._document);return e?e.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}])}();function fle(e,t){return"translate3d(".concat(Math.round(e),"px, ").concat(Math.round(t),"px, 0)")}function mle(e){var t=e.cloneNode(!0),n=t.querySelectorAll("[id]"),i=e.querySelectorAll("canvas");t.removeAttribute("id");for(var o=0;o<n.length;o++)n[o].removeAttribute("id");if(i.length)for(var a=t.querySelectorAll("canvas"),r=0;r<i.length;r++){var s=a[r].getContext("2d");s&&s.drawImage(i[r],0,0)}return t}function ple(e,t,n){return Math.max(t,Math.min(n,e))}function gle(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function vle(e){return"t"===e.type[0]}function yle(e,t){var n=e.rootNodes;if(1===n.length&&n[0].nodeType===t.ELEMENT_NODE)return n[0];var i=t.createElement("div");return n.forEach((function(e){return i.appendChild(e)})),i}function ble(e,t){e.style.width=t.width+"px",e.style.height=t.height+"px",e.style.transform=fle(t.left,t.top)}function _le(e,t,n){var i=kle(t,e.length-1),o=kle(n,e.length-1);if(i!==o){for(var a=e[i],r=o<i?-1:1,s=i;s!==o;s+=r)e[s]=e[s+r];e[o]=a}}function kle(e,t){return Math.max(0,Math.min(t,e))}var Cle=function(){return d((function e(t,n,i,o,a){var r=this;c(this,e),this._dragDropRegistry=n,this._ngZone=o,this._viewportRuler=a,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=function(){return!0},this.beforeStarted=new V,this.entered=new V,this.exited=new V,this.dropped=new V,this.sorted=new V,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=M.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new V,this._cachedShadowRoot=null,this._startScrollInterval=function(){r._stopScrolling(),Zae(0,ZM).pipe(kk(r._stopScrollTimers)).subscribe((function(){var e=r._scrollNode;1===r._verticalScrollDirection?xle(e,-2):2===r._verticalScrollDirection&&xle(e,2),1===r._horizontalScrollDirection?Mle(e,-2):2===r._horizontalScrollDirection&&Mle(e,2)}))},this.element=Yg(t),this._document=i,this.withScrollableParents([this.element]),n.registerDropContainer(this),this._parentPositions=new cle(i,a)}),[{key:"dispose",value:function(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"start",value:function(){var e=this,t=Yg(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach((function(t){return t._startReceiving(e)})),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}},{key:"enter",value:function(e,t,n,i){var o;this.start(),null==i?-1===(o=this.sortingDisabled?this._draggables.indexOf(e):-1)&&(o=this._getItemIndexFromPointerPosition(e,t,n)):o=i;var a=this._activeDraggables,r=a.indexOf(e),s=e.getPlaceholderElement(),l=a[o];if(l===e&&(l=a[o+1]),r>-1&&a.splice(r,1),l&&!this._dragDropRegistry.isDragging(l)){var c=l.getRootElement();c.parentElement.insertBefore(s,c),a.splice(o,0,e)}else{var u=Yg(this.element);this._shouldEnterAsFirstChild(t,n)?(u.insertBefore(s,a[0].getRootElement()),a.unshift(e)):(u.appendChild(s),a.push(e))}s.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:e,container:this,currentIndex:this.getItemIndex(e)})}},{key:"exit",value:function(e){this._reset(),this.exited.next({item:e,container:this})}},{key:"drop",value:function(e,t,n,i,o,a){this._reset(),null==a&&(a=n.getItemIndex(e)),this.dropped.next({item:e,currentIndex:t,previousIndex:a,container:this,previousContainer:n,isPointerOverContainer:i,distance:o})}},{key:"withItems",value:function(e){var t=this,n=this._draggables;return this._draggables=e,e.forEach((function(e){return e._withDropContainer(t)})),this.isDragging()&&(n.filter((function(e){return e.isDragging()})).every((function(t){return-1===e.indexOf(t)}))?this._reset():this._cacheItems()),this}},{key:"withDirection",value:function(e){return this._direction=e,this}},{key:"connectedTo",value:function(e){return this._siblings=e.slice(),this}},{key:"withOrientation",value:function(e){return this._orientation=e,this}},{key:"withScrollableParents",value:function(e){var t=Yg(this.element);return this._scrollableElements=-1===e.indexOf(t)?[t].concat(r(e)):e.slice(),this}},{key:"getScrollableParents",value:function(){return this._scrollableElements}},{key:"getItemIndex",value:function(e){return this._isDragging?wle("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,(function(t){return t.drag===e})):this._draggables.indexOf(e)}},{key:"isReceiving",value:function(){return this._activeSiblings.size>0}},{key:"_sortItem",value:function(e,t,n,i){if(!this.sortingDisabled&&lle(this._clientRect,.05,t,n)){var o=this._itemPositions,a=this._getItemIndexFromPointerPosition(e,t,n,i);if(!(-1===a&&o.length>0)){var r="horizontal"===this._orientation,s=wle(o,(function(t){return t.drag===e})),l=o[a],c=o[s].clientRect,u=l.clientRect,d=s>a?1:-1;this._previousSwap.drag=l.drag,this._previousSwap.delta=r?i.x:i.y;var h=this._getItemOffsetPx(c,u,d),f=this._getSiblingOffsetPx(s,o,d),m=o.slice();_le(o,s,a),this.sorted.next({previousIndex:s,currentIndex:a,container:this,item:e}),o.forEach((function(t,n){if(m[n]!==t){var i=t.drag===e,o=i?h:f,a=i?e.getPlaceholderElement():t.drag.getRootElement();t.offset+=o,r?(a.style.transform="translate3d(".concat(Math.round(t.offset),"px, 0, 0)"),sle(t.clientRect,0,o)):(a.style.transform="translate3d(0, ".concat(Math.round(t.offset),"px, 0)"),sle(t.clientRect,o,0))}}))}}}},{key:"_startScrollingIfNecessary",value:function(e,t){var n=this;if(!this.autoScrollDisabled){var o,a=0,r=0;if(this._parentPositions.positions.forEach((function(s,l){var c;l!==n._document&&s.clientRect&&!o&&lle(s.clientRect,.05,e,t)&&(c=i(function(e,t,n,i){var o=Sle(t,i),a=Ple(t,n),r=0,s=0;if(o){var l=e.scrollTop;1===o?l>0&&(r=1):e.scrollHeight-l>e.clientHeight&&(r=2)}if(a){var c=e.scrollLeft;1===a?c>0&&(s=1):e.scrollWidth-c>e.clientWidth&&(s=2)}return[r,s]}(l,s.clientRect,e,t),2),a=c[0],r=c[1],(a||r)&&(o=l))})),!a&&!r){var s=this._viewportRuler.getViewportSize(),l=s.width,c=s.height,u={width:l,height:c,top:0,right:l,bottom:c,left:0};a=Sle(u,t),r=Ple(u,e),o=window}!o||a===this._verticalScrollDirection&&r===this._horizontalScrollDirection&&o===this._scrollNode||(this._verticalScrollDirection=a,this._horizontalScrollDirection=r,this._scrollNode=o,(a||r)&&o?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}}},{key:"_stopScrolling",value:function(){this._stopScrollTimers.next()}},{key:"_cacheParentPositions",value:function(){var e=Yg(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(e).clientRect}},{key:"_cacheItemPositions",value:function(){var e="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map((function(e){var t=e.getVisibleElement();return{drag:e,offset:0,clientRect:ale(t)}})).sort((function(t,n){return e?t.clientRect.left-n.clientRect.left:t.clientRect.top-n.clientRect.top}))}},{key:"_reset",value:function(){var e=this;this._isDragging=!1;var t=Yg(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach((function(e){var t=e.getRootElement();t&&(t.style.transform="")})),this._siblings.forEach((function(t){return t._stopReceiving(e)})),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}},{key:"_getSiblingOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,o=t[e].clientRect,a=t[e+-1*n],r=o[i?"width":"height"]*n;if(a){var s=i?"left":"top",l=i?"right":"bottom";-1===n?r-=a.clientRect[s]-o[l]:r+=o[s]-a.clientRect[l]}return r}},{key:"_getItemOffsetPx",value:function(e,t,n){var i="horizontal"===this._orientation,o=i?t.left-e.left:t.top-e.top;return-1===n&&(o+=i?t.width-e.width:t.height-e.height),o}},{key:"_shouldEnterAsFirstChild",value:function(e,t){if(!this._activeDraggables.length)return!1;var n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){var o=n[n.length-1].clientRect;return i?e>=o.right:t>=o.bottom}var a=n[0].clientRect;return i?e<=a.left:t<=a.top}},{key:"_getItemIndexFromPointerPosition",value:function(e,t,n,i){var o=this,a="horizontal"===this._orientation;return wle(this._itemPositions,(function(r,s,l){var c=r.drag,u=r.clientRect;if(c===e)return l.length<2;if(i){var d=a?i.x:i.y;if(c===o._previousSwap.drag&&d===o._previousSwap.delta)return!1}return a?t>=Math.floor(u.left)&&t<Math.floor(u.right):n>=Math.floor(u.top)&&n<Math.floor(u.bottom)}))}},{key:"_cacheItems",value:function(){this._activeDraggables=this._draggables.slice(),this._cacheItemPositions(),this._cacheParentPositions()}},{key:"_isOverContainer",value:function(e,t){return rle(this._clientRect,e,t)}},{key:"_getSiblingContainerFromPosition",value:function(e,t,n){return this._siblings.find((function(i){return i._canReceive(e,t,n)}))}},{key:"_canReceive",value:function(e,t,n){if(!rle(this._clientRect,t,n)||!this.enterPredicate(e,this))return!1;var i=this._getShadowRoot().elementFromPoint(t,n);if(!i)return!1;var o=Yg(this.element);return i===o||o.contains(i)}},{key:"_startReceiving",value:function(e){var t=this._activeSiblings;t.has(e)||(t.add(e),this._cacheParentPositions(),this._listenToScrollEvents())}},{key:"_stopReceiving",value:function(e){this._activeSiblings.delete(e),this._viewportScrollSubscription.unsubscribe()}},{key:"_listenToScrollEvents",value:function(){var e=this;this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe((function(t){if(e.isDragging()){var n=e._parentPositions.handleScroll(t);n&&(e._itemPositions.forEach((function(e){sle(e.clientRect,n.top,n.left)})),e._itemPositions.forEach((function(t){var n=t.drag;e._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})))}else e.isReceiving()&&e._cacheParentPositions()}))}},{key:"_getShadowRoot",value:function(){if(!this._cachedShadowRoot){var e=ev(Yg(this.element));this._cachedShadowRoot=e||this._document}return this._cachedShadowRoot}}])}();function wle(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return n;return-1}function xle(e,t){e===window?e.scrollBy(0,t):e.scrollTop+=t}function Mle(e,t){e===window?e.scrollBy(t,0):e.scrollLeft+=t}function Sle(e,t){var n=e.top,i=e.bottom,o=.05*e.height;return t>=n-o&&t<=n+o?1:t>=i-o&&t<=i+o?2:0}function Ple(e,t){var n=e.left,i=e.right,o=.05*e.width;return t>=n-o&&t<=n+o?1:t>=i-o&&t<=i+o?2:0}var Tle,Ole,Lle,Dle,Ile,Fle,Ale=Xg({passive:!1,capture:!0}),Ele=((Tle=function(){return d((function e(t,n){var i=this;c(this,e),this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new V,this.pointerUp=new V,this.scroll=new V,this._preventDefaultWhileDragging=function(e){i._activeDragInstances.size&&e.preventDefault()},this._document=n}),[{key:"registerDropContainer",value:function(e){this._dropInstances.has(e)||this._dropInstances.add(e)}},{key:"registerDragItem",value:function(e){var t=this;this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular((function(){t._document.addEventListener("touchmove",t._preventDefaultWhileDragging,Ale)}))}},{key:"removeDropContainer",value:function(e){this._dropInstances.delete(e)}},{key:"removeDragItem",value:function(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._preventDefaultWhileDragging,Ale)}},{key:"startDragging",value:function(e,t){var n=this;if(!this._activeDragInstances.has(e)&&(this._activeDragInstances.add(e),1===this._activeDragInstances.size)){var i=t.type.startsWith("touch"),o=i?"touchend":"mouseup";this._globalListeners.set(i?"touchmove":"mousemove",{handler:function(e){return n.pointerMove.next(e)},options:Ale}).set(o,{handler:function(e){return n.pointerUp.next(e)},options:!0}).set("scroll",{handler:function(e){return n.scroll.next(e)},options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Ale}),this._ngZone.runOutsideAngular((function(){n._globalListeners.forEach((function(e,t){n._document.addEventListener(t,e.handler,e.options)}))}))}}},{key:"stopDragging",value:function(e){this._activeDragInstances.delete(e),0===this._activeDragInstances.size&&this._clearGlobalListeners()}},{key:"isDragging",value:function(e){return this._activeDragInstances.has(e)}},{key:"ngOnDestroy",value:function(){var e=this;this._dragInstances.forEach((function(t){return e.removeDragItem(t)})),this._dropInstances.forEach((function(t){return e.removeDropContainer(t)})),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}},{key:"_clearGlobalListeners",value:function(){var e=this;this._globalListeners.forEach((function(t,n){e._document.removeEventListener(n,t.handler,t.options)})),this._globalListeners.clear()}}])}()).\u0275fac=function(e){return new(e||Tle)(ut(gu),ut(Qu))},Tle.\u0275prov=Se({factory:function(){return new Tle(ut(gu),ut(Qu))},token:Tle,providedIn:"root"}),Tle),Ble={dragStartThreshold:5,pointerDirectionChangeThreshold:5},Nle=((Ole=function(){return d((function e(t,n,i,o){c(this,e),this._document=t,this._ngZone=n,this._viewportRuler=i,this._dragDropRegistry=o}),[{key:"createDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ble;return new hle(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}},{key:"createDropList",value:function(e){return new Cle(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}])}()).\u0275fac=function(e){return new(e||Ole)(ut(Qu),ut(gu),ut(lS),ut(Ele))},Ole.\u0275prov=Se({factory:function(){return new Ole(ut(Qu),ut(gu),ut(lS),ut(Ele))},token:Ole,providedIn:"root"}),Ole),Rle=new tt("CDK_DRAG_PARENT"),jle=((Ile=function(){return d((function e(t,n){c(this,e),this.element=t,this._stateChanges=new V,this._disabled=!1,this._parentDrag=n,nle(t.nativeElement,!1)}),[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=jg(e),this._stateChanges.next(this)}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}])}()).\u0275fac=function(e){return new(e||Ile)($r(Ml),$r(Rle,8))},Ile.\u0275dir=Et({type:Ile,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:["cdkDragHandleDisabled","disabled"]}}),Ile),zle=((Dle=d((function e(t){c(this,e),this.templateRef=t}))).\u0275fac=function(e){return new(e||Dle)($r($l))},Dle.\u0275dir=Et({type:Dle,selectors:[["ng-template","cdkDragPlaceholder",""]],inputs:{data:"data"}}),Dle),Vle=((Lle=function(){return d((function e(t){c(this,e),this.templateRef=t,this._matchSize=!1}),[{key:"matchSize",get:function(){return this._matchSize},set:function(e){this._matchSize=jg(e)}}])}()).\u0275fac=function(e){return new(e||Lle)($r($l))},Lle.\u0275dir=Et({type:Lle,selectors:[["ng-template","cdkDragPreview",""]],inputs:{matchSize:"matchSize",data:"data"}}),Lle),Hle=new tt("CDK_DRAG_CONFIG"),Yle=new tt("CDK_DROP_LIST"),qle=((Fle=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.element=t,this.dropContainer=n,this._document=i,this._ngZone=o,this._viewContainerRef=a,this._dir=s,this._changeDetectorRef=u,this._destroyed=new V,this.started=new Mc,this.released=new Mc,this.ended=new Mc,this.entered=new Mc,this.exited=new Mc,this.dropped=new Mc,this.moved=new E((function(e){var t=d._dragRef.moved.pipe(Z((function(e){return{source:d,pointerPosition:e.pointerPosition,event:e.event,delta:e.delta,distance:e.distance}}))).subscribe(e);return function(){t.unsubscribe()}})),this._dragRef=l.createDrag(t,{dragStartThreshold:r&&null!=r.dragStartThreshold?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&null!=r.pointerDirectionChangeThreshold?r.pointerDirectionChangeThreshold:5,zIndex:null==r?void 0:r.zIndex}),this._dragRef.data=this,r&&this._assignDefaults(r),n&&(this._dragRef._withDropContainer(n._dropListRef),n.addItem(this)),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}),[{key:"disabled",get:function(){return this._disabled||this.dropContainer&&this.dropContainer.disabled},set:function(e){this._disabled=jg(e),this._dragRef.disabled=this._disabled}},{key:"getPlaceholderElement",value:function(){return this._dragRef.getPlaceholderElement()}},{key:"getRootElement",value:function(){return this._dragRef.getRootElement()}},{key:"reset",value:function(){this._dragRef.reset()}},{key:"getFreeDragPosition",value:function(){return this._dragRef.getFreeDragPosition()}},{key:"ngAfterViewInit",value:function(){var e=this;this._ngZone.onStable.asObservable().pipe(Eg(1),kk(this._destroyed)).subscribe((function(){e._updateRootElement(),e._handles.changes.pipe(qv(e._handles),kg((function(t){var n=t.filter((function(t){return t._parentDrag===e})).map((function(e){return e.element}));e._dragRef.withHandles(n)})),vk((function(e){return le.apply(void 0,r(e.map((function(e){return e._stateChanges.pipe(qv(e))}))))})),kk(e._destroyed)).subscribe((function(t){var n=e._dragRef,i=t.element.nativeElement;t.disabled?n.disableHandle(i):n.enableHandle(i)})),e.freeDragPosition&&e._dragRef.setFreeDragPosition(e.freeDragPosition)}))}},{key:"ngOnChanges",value:function(e){var t=e.rootElementSelector,n=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}},{key:"ngOnDestroy",value:function(){this.dropContainer&&this.dropContainer.removeItem(this),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()}},{key:"_updateRootElement",value:function(){var e=this.element.nativeElement,t=this.rootElementSelector?Ule(e,this.rootElementSelector):e;if(t&&t.nodeType!==this._document.ELEMENT_NODE)throw Error('cdkDrag must be attached to an element node. Currently attached to "'.concat(t.nodeName,'".'));this._dragRef.withRootElement(t||e)}},{key:"_getBoundaryElement",value:function(){var e=this.boundaryElement;if(!e)return null;if("string"==typeof e)return Ule(this.element.nativeElement,e);var t=Yg(e);if(ji()&&!t.contains(this.element.nativeElement))throw Error("Draggable element is not inside of the node passed into cdkDragBoundary.");return t}},{key:"_syncInputs",value:function(e){var t=this;e.beforeStarted.subscribe((function(){if(!e.isDragging()){var n=t._dir,i=t.dragStartDelay,o=t._placeholderTemplate?{template:t._placeholderTemplate.templateRef,context:t._placeholderTemplate.data,viewContainer:t._viewContainerRef}:null,a=t._previewTemplate?{template:t._previewTemplate.templateRef,context:t._previewTemplate.data,matchSize:t._previewTemplate.matchSize,viewContainer:t._viewContainerRef}:null;e.disabled=t.disabled,e.lockAxis=t.lockAxis,e.dragStartDelay="object"==typeof i&&i?i:zg(i),e.constrainPosition=t.constrainPosition,e.previewClass=t.previewClass,e.withBoundaryElement(t._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a),n&&e.withDirection(n.value)}}))}},{key:"_handleEvents",value:function(e){var t=this;e.started.subscribe((function(){t.started.emit({source:t}),t._changeDetectorRef.markForCheck()})),e.released.subscribe((function(){t.released.emit({source:t})})),e.ended.subscribe((function(e){t.ended.emit({source:t,distance:e.distance}),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:e.container.data,item:t,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:e.container.data,item:t})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,isPointerOverContainer:e.isPointerOverContainer,item:t,distance:e.distance})}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.dragStartDelay,i=e.constrainPosition,o=e.previewClass,a=e.boundaryElement,r=e.draggingDisabled,s=e.rootElementSelector;this.disabled=null!=r&&r,this.dragStartDelay=n||0,t&&(this.lockAxis=t),i&&(this.constrainPosition=i),o&&(this.previewClass=o),a&&(this.boundaryElement=a),s&&(this.rootElementSelector=s)}}])}()).\u0275fac=function(e){return new(e||Fle)($r(Ml),$r(Yle,12),$r(Qu),$r(gu),$r(Kl),$r(Hle,8),$r(jv,8),$r(Nle),$r(ur))},Fle.\u0275dir=Et({type:Fle,selectors:[["","cdkDrag",""]],contentQueries:function(e,t,n){var i;1&e&&(zc(n,Vle,!0),zc(n,zle,!0),zc(n,jle,!0)),2&e&&(Bc(i=Yc())&&(t._previewTemplate=i.first),Bc(i=Yc())&&(t._placeholderTemplate=i.first),Bc(i=Yc())&&(t._handles=i))},hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(e,t){2&e&&Fs("cdk-drag-disabled",t.disabled)("cdk-drag-dragging",t._dragRef.isDragging())},inputs:{disabled:["cdkDragDisabled","disabled"],dragStartDelay:["cdkDragStartDelay","dragStartDelay"],lockAxis:["cdkDragLockAxis","lockAxis"],constrainPosition:["cdkDragConstrainPosition","constrainPosition"],previewClass:["cdkDragPreviewClass","previewClass"],boundaryElement:["cdkDragBoundary","boundaryElement"],rootElementSelector:["cdkDragRootElement","rootElementSelector"],data:["cdkDragData","data"],freeDragPosition:["cdkDragFreeDragPosition","freeDragPosition"]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[kl([{provide:Rle,useExisting:Fle}]),dl]}),Fle);function Ule(e,t){for(var n=e.parentElement;n;){if(n.matches?n.matches(t):n.msMatchesSelector(t))return n;n=n.parentElement}return null}var Wle,Jle,Gle,$le=((Gle=function(){return d((function e(){c(this,e),this._items=new Set,this._disabled=!1}),[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=jg(e)}},{key:"ngOnDestroy",value:function(){this._items.clear()}}])}()).\u0275fac=function(e){return new(e||Gle)},Gle.\u0275dir=Et({type:Gle,selectors:[["","cdkDropListGroup",""]],inputs:{disabled:["cdkDropListGroupDisabled","disabled"]},exportAs:["cdkDropListGroup"]}),Gle),Qle=0,Kle=((Jle=function(){function e(t,n,i,o,a,r,s){var l=this;c(this,e),this.element=t,this._changeDetectorRef=i,this._dir=o,this._group=a,this._scrollDispatcher=r,this._destroyed=new V,this.connectedTo=[],this.id="cdk-drop-list-"+Qle++,this.enterPredicate=function(){return!0},this.dropped=new Mc,this.entered=new Mc,this.exited=new Mc,this.sorted=new Mc,this._unsortedItems=new Set,this._dropListRef=n.createDropList(t),this._dropListRef.data=this,s&&this._assignDefaults(s),this._dropListRef.enterPredicate=function(e,t){return l.enterPredicate(e.data,t.data)},this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),e._dropLists.push(this),a&&a._items.add(this)}return d(e,[{key:"disabled",get:function(){return this._disabled||!!this._group&&this._group.disabled},set:function(e){this._dropListRef.disabled=this._disabled=jg(e)}},{key:"addItem",value:function(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"removeItem",value:function(e){this._unsortedItems.delete(e),this._dropListRef.isDragging()&&this._syncItemsWithRef()}},{key:"getSortedItems",value:function(){return Array.from(this._unsortedItems).sort((function(e,t){return e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}))}},{key:"ngOnDestroy",value:function(){var t=e._dropLists.indexOf(this);t>-1&&e._dropLists.splice(t,1),this._group&&this._group._items.delete(this),this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}},{key:"start",value:function(){this._dropListRef.start()}},{key:"drop",value:function(e,t,n,i){this._dropListRef.drop(e._dragRef,t,n._dropListRef,i,{x:0,y:0})}},{key:"enter",value:function(e,t,n){this._dropListRef.enter(e._dragRef,t,n)}},{key:"exit",value:function(e){this._dropListRef.exit(e._dragRef)}},{key:"getItemIndex",value:function(e){return this._dropListRef.getItemIndex(e._dragRef)}},{key:"_setupInputSyncSubscription",value:function(t){var n=this;this._dir&&this._dir.change.pipe(qv(this._dir.value),kk(this._destroyed)).subscribe((function(e){return t.withDirection(e)})),t.beforeStarted.subscribe((function(){var i=Vg(n.connectedTo).map((function(t){return"string"==typeof t?e._dropLists.find((function(e){return e.id===t})):t}));if(n._group&&n._group._items.forEach((function(e){-1===i.indexOf(e)&&i.push(e)})),!n._scrollableParentsResolved&&n._scrollDispatcher){var o=n._scrollDispatcher.getAncestorScrollContainers(n.element).map((function(e){return e.getElementRef().nativeElement}));n._dropListRef.withScrollableParents(o),n._scrollableParentsResolved=!0}t.disabled=n.disabled,t.lockAxis=n.lockAxis,t.sortingDisabled=jg(n.sortingDisabled),t.autoScrollDisabled=jg(n.autoScrollDisabled),t.connectedTo(i.filter((function(e){return e&&e!==n})).map((function(e){return e._dropListRef}))).withOrientation(n.orientation)}))}},{key:"_handleEvents",value:function(e){var t=this;e.beforeStarted.subscribe((function(){t._syncItemsWithRef(),t._changeDetectorRef.markForCheck()})),e.entered.subscribe((function(e){t.entered.emit({container:t,item:e.item.data,currentIndex:e.currentIndex})})),e.exited.subscribe((function(e){t.exited.emit({container:t,item:e.item.data}),t._changeDetectorRef.markForCheck()})),e.sorted.subscribe((function(e){t.sorted.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,container:t,item:e.item.data})})),e.dropped.subscribe((function(e){t.dropped.emit({previousIndex:e.previousIndex,currentIndex:e.currentIndex,previousContainer:e.previousContainer.data,container:e.container.data,item:e.item.data,isPointerOverContainer:e.isPointerOverContainer,distance:e.distance}),t._changeDetectorRef.markForCheck()}))}},{key:"_assignDefaults",value:function(e){var t=e.lockAxis,n=e.draggingDisabled,i=e.sortingDisabled,o=e.listAutoScrollDisabled,a=e.listOrientation;this.disabled=null!=n&&n,this.sortingDisabled=null!=i&&i,this.autoScrollDisabled=null!=o&&o,this.orientation=a||"vertical",t&&(this.lockAxis=t)}},{key:"_syncItemsWithRef",value:function(){this._dropListRef.withItems(this.getSortedItems().map((function(e){return e._dragRef})))}}])}()).\u0275fac=function(e){return new(e||Jle)($r(Ml),$r(Nle),$r(ur),$r(jv,8),$r($le,12),$r(sS),$r(Hle,8))},Jle.\u0275dir=Et({type:Jle,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(e,t){2&e&&(nl("id",t.id),Fs("cdk-drop-list-disabled",t.disabled)("cdk-drop-list-dragging",t._dropListRef.isDragging())("cdk-drop-list-receiving",t._dropListRef.isReceiving()))},inputs:{connectedTo:["cdkDropListConnectedTo","connectedTo"],id:"id",enterPredicate:["cdkDropListEnterPredicate","enterPredicate"],disabled:["cdkDropListDisabled","disabled"],sortingDisabled:["cdkDropListSortingDisabled","sortingDisabled"],autoScrollDisabled:["cdkDropListAutoScrollDisabled","autoScrollDisabled"],orientation:["cdkDropListOrientation","orientation"],lockAxis:["cdkDropListLockAxis","lockAxis"],data:["cdkDropListData","data"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[kl([{provide:$le,useValue:void 0},{provide:Yle,useExisting:Jle}])]}),Jle._dropLists=[],Jle),Zle=((Wle=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Wle}),Wle.\u0275inj=Pe({factory:function(e){return new(e||Wle)},providers:[Nle],imports:[cS]}),Wle);function Xle(e,t){if(1&e){var n=as();es(0,"span",84),Gs(1,"Fator BH "),es(2,"fa-icon",85),ls("click",(function(){return mn(n),fs(2).showQuestionCard(22)})),ts(),ts()}if(2&e){var i=fs(2);Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle)}}function ece(e,t){1&e&&ns(0,"span",67)}function tce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function nce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){mn(n);var e=fs().index;return fs(3).validOverTimeHour("over_time_1_tolerance",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_1_tolerance")}function ice(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function oce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){mn(n);var e=fs().index;return fs(3).validOverTimeHour("over_time_2_tolerance",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_2_tolerance")}function ace(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function rce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){mn(n);var e=fs().index;return fs(3).validOverTimeHour("over_time_3_tolerance",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_3_tolerance")}function sce(e,t){if(1&e){var n=as();es(0,"div",89),es(1,"span",67),Gs(2),ts(),es(3,"span",67),es(4,"label",60),es(5,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTime(e,"over_time_1")})),ts(),ns(6,"span",32),ts(),ts(),es(7,"span",67),Jr(8,tce,2,0,"span",90),Jr(9,nce,1,2,"input",91),ts(),es(10,"span",67),es(11,"label",60),es(12,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTime(e,"over_time_2")})),ts(),ns(13,"span",32),ts(),ts(),es(14,"span",67),Jr(15,ice,2,0,"span",90),Jr(16,oce,1,2,"input",91),ts(),es(17,"span",67),es(18,"label",60),es(19,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTime(e,"over_time_3")})),ts(),ns(20,"span",32),ts(),ts(),es(21,"span",67),Jr(22,ace,2,0,"span",90),Jr(23,rce,1,2,"input",91),ts(),es(24,"span",67),es(25,"label",60),es(26,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTime(e,"over_time_4")})),ts(),ns(27,"span",32),ts(),ts(),es(28,"span",67),ns(29,"input",92),ts(),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs(3);Zr("formGroupName",o.toString()),Bo(2),$s(i.description),Bo(3),Zr("checked",null!=a.overTimeFormArrayLines.at(o).get("over_time_1").value),Bo(3),Zr("ngIf",null==a.overTimeFormArrayLines.at(o).get("over_time_1_tolerance").value),Bo(1),Zr("ngIf",null!=a.overTimeFormArrayLines.at(o).get("over_time_1_tolerance").value),Bo(3),Zr("checked",null!=a.overTimeFormArrayLines.at(o).get("over_time_2").value),Bo(3),Zr("ngIf",null==a.overTimeFormArrayLines.at(o).get("over_time_2_tolerance").value),Bo(1),Zr("ngIf",null!=a.overTimeFormArrayLines.at(o).get("over_time_2_tolerance").value),Bo(3),Zr("checked",null!=a.overTimeFormArrayLines.at(o).get("over_time_3").value),Bo(3),Zr("ngIf",null==a.overTimeFormArrayLines.at(o).get("over_time_3_tolerance").value),Bo(1),Zr("ngIf",null!=a.overTimeFormArrayLines.at(o).get("over_time_3_tolerance").value),Bo(3),Zr("checked",null!=a.overTimeFormArrayLines.at(o).get("over_time_4").value),Bo(3),Zr("dropSpecialCharacters",!1)("formControlName","bank_time_factor")}}function lce(e,t){if(1&e&&(es(0,"div",86),es(1,"div",87),Jr(2,sce,30,14,"div",88),ts(),ts()),2&e){var n=fs(2);Zr("formGroup",n.overTimeForm),Bo(1),Zr("formArrayName","lines"),Bo(1),Zr("ngForOf",n.overTimeDaysListShow)}}function cce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function uce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){mn(n);var e=fs().index;return fs(3).validOverTimeWeekHour("over_time_1_tolerance",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_1_tolerance")}function dce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function hce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){mn(n);var e=fs().index;return fs(3).validOverTimeWeekHour("over_time_2_tolerance",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_2_tolerance")}function fce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function mce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){mn(n);var e=fs().index;return fs(3).validOverTimeWeekHour("over_time_3_tolerance",e)})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_3_tolerance")}function pce(e,t){if(1&e){var n=as();es(0,"div",89),es(1,"span",67),Gs(2),ts(),es(3,"span",67),es(4,"label",60),es(5,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTimeWeek(e,"over_time_1")})),ts(),ns(6,"span",32),ts(),ts(),es(7,"span",67),Jr(8,cce,2,0,"span",90),Jr(9,uce,1,2,"input",91),ts(),es(10,"span",67),es(11,"label",60),es(12,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTimeWeek(e,"over_time_2")})),ts(),ns(13,"span",32),ts(),ts(),es(14,"span",67),Jr(15,dce,2,0,"span",90),Jr(16,hce,1,2,"input",91),ts(),es(17,"span",67),es(18,"label",60),es(19,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTimeWeek(e,"over_time_3")})),ts(),ns(20,"span",32),ts(),ts(),es(21,"span",67),Jr(22,fce,2,0,"span",90),Jr(23,mce,1,2,"input",91),ts(),es(24,"span",67),es(25,"label",60),es(26,"input",61),ls("change",(function(){mn(n);var e=t.index;return fs(3).toggleOverTimeWeek(e,"over_time_4")})),ts(),ns(27,"span",32),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=t.index,a=fs(3);Zr("formGroupName",o.toString()),Bo(2),$s(i.description),Bo(3),Zr("checked",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_1").value),Bo(3),Zr("ngIf",null==a.overTimeWeekFormArrayLines.at(o).get("over_time_1_tolerance").value),Bo(1),Zr("ngIf",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_1_tolerance").value),Bo(3),Zr("checked",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_2").value),Bo(3),Zr("ngIf",null==a.overTimeWeekFormArrayLines.at(o).get("over_time_2_tolerance").value),Bo(1),Zr("ngIf",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_2_tolerance").value),Bo(3),Zr("checked",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_3").value),Bo(3),Zr("ngIf",null==a.overTimeWeekFormArrayLines.at(o).get("over_time_3_tolerance").value),Bo(1),Zr("ngIf",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_3_tolerance").value),Bo(3),Zr("checked",null!=a.overTimeWeekFormArrayLines.at(o).get("over_time_4").value)}}function gce(e,t){if(1&e&&(es(0,"div",86),es(1,"div",87),Jr(2,pce,28,12,"div",88),ts(),ts()),2&e){var n=fs(2);Zr("formGroup",n.overTimeWeekForm),Bo(1),Zr("formArrayName","lines"),Bo(1),Zr("ngForOf",n.overTimeWeekListShow)}}function vce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function yce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){return mn(n),fs(3).validOverTimeMonthHour("over_time_1_tolerance")})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_1_tolerance")}function bce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function _ce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){return mn(n),fs(3).validOverTimeMonthHour("over_time_2_tolerance")})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_2_tolerance")}function kce(e,t){1&e&&(es(0,"span"),Gs(1,"-"),ts())}function Cce(e,t){if(1&e){var n=as();es(0,"input",93),ls("change",(function(){return mn(n),fs(3).validOverTimeMonthHour("over_time_3_tolerance")})),ts()}2&e&&Zr("dropSpecialCharacters",!1)("formControlName","over_time_3_tolerance")}function wce(e,t){if(1&e&&(es(0,"option",101),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n),Bo(1),$s(n)}}function xce(e,t){if(1&e){var n=as();es(0,"div",86),es(1,"div",94),es(2,"div",63),es(3,"span",67),Gs(4,"M\xeas"),ts(),es(5,"span",67),es(6,"label",60),es(7,"input",61),ls("change",(function(){return mn(n),fs(2).toggleOverTimeMonthWeek("month","over_time_1")})),ts(),ns(8,"span",32),ts(),ts(),es(9,"span",67),Jr(10,vce,2,0,"span",90),Jr(11,yce,1,2,"input",91),ts(),es(12,"span",67),es(13,"label",60),es(14,"input",61),ls("change",(function(){return mn(n),fs(2).toggleOverTimeMonthWeek("month","over_time_2")})),ts(),ns(15,"span",32),ts(),ts(),es(16,"span",67),Jr(17,bce,2,0,"span",90),Jr(18,_ce,1,2,"input",91),ts(),es(19,"span",67),es(20,"label",60),es(21,"input",61),ls("change",(function(){return mn(n),fs(2).toggleOverTimeMonthWeek("month","over_time_3")})),ts(),ns(22,"span",32),ts(),ts(),es(23,"span",67),Jr(24,kce,2,0,"span",90),Jr(25,Cce,1,2,"input",95),ts(),es(26,"span",67),es(27,"label",60),es(28,"input",61),ls("change",(function(){return mn(n),fs(2).toggleOverTimeMonthWeek("month","over_time_4")})),ts(),ns(29,"span",32),ts(),ts(),ts(),ts(),es(30,"div",96),es(31,"div",10),es(32,"select",97),Jr(33,wce,2,2,"option",98),ts(),es(34,"label",99),Gs(35,"Dia"),ts(),ns(36,"fa-icon",100),ts(),ts(),ts()}if(2&e){var i=fs(2);Zr("formGroup",i.overTimeMonthForm),Bo(7),Zr("checked",null!=i.overTimeMonthForm.get("over_time_1").value),Bo(3),Zr("ngIf",null==i.overTimeMonthForm.get("over_time_1_tolerance").value),Bo(1),Zr("ngIf",null!=i.overTimeMonthForm.get("over_time_1_tolerance").value),Bo(3),Zr("checked",null!=i.overTimeMonthForm.get("over_time_2").value),Bo(3),Zr("ngIf",null==i.overTimeMonthForm.get("over_time_2_tolerance").value),Bo(1),Zr("ngIf",null!=i.overTimeMonthForm.get("over_time_2_tolerance").value),Bo(3),Zr("checked",null!=i.overTimeMonthForm.get("over_time_3").value),Bo(3),Zr("ngIf",null==i.overTimeMonthForm.get("over_time_3_tolerance").value),Bo(1),Zr("ngIf",null!=i.overTimeMonthForm.get("over_time_3_tolerance").value),Bo(3),Zr("checked",null!=i.overTimeMonthForm.get("over_time_4").value),Bo(4),Zr("formControlName","day"),Bo(1),Zr("ngForOf",i.dayList),Bo(3),Zr("icon",i.iconSolidService.faCaretDown)}}function Mce(e,t){if(1&e){var n=as();es(0,"div",102),es(1,"div",28),es(2,"label",60),Gs(3,"Perda de DSR na semana atual "),ns(4,"input",31),ns(5,"span",32),ts(),es(6,"fa-icon",33),ls("click",(function(){return mn(n),fs(2).showQuestionCard(30)})),ts(),ts(),es(7,"div",28),es(8,"label",60),Gs(9,"Descontar apenas faltas integrais "),es(10,"input",103),ls("click",(function(){return mn(n),fs(2).changeLoseDSRFullOnlyOrFaultTime("lose_dsr_full_only")})),ts(),ns(11,"span",32),ts(),es(12,"fa-icon",33),ls("click",(function(){return mn(n),fs(2).showQuestionCard(31)})),ts(),ts(),es(13,"div",28),es(14,"label",60),Gs(15,"N\xe3o descontar de feriados "),ns(16,"input",31),ns(17,"span",32),ts(),es(18,"fa-icon",33),ls("click",(function(){return mn(n),fs(2).showQuestionCard(41)})),ts(),ts(),es(19,"div",104),es(20,"label",105),Gs(21,"Descontar a partir de "),es(22,"input",106),ls("change",(function(){mn(n);var e=fs(2);return e.verifyHour("lose_dsr_fault_time"),e.changeLoseDSRFullOnlyOrFaultTime("lose_dsr_fault_time")})),ts(),Gs(23," horas faltantes por dia."),ts(),es(24,"fa-icon",33),ls("click",(function(){return mn(n),fs(2).showQuestionCard(42)})),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(4),Zr("formControlName","lose_dsr_current_week"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","lose_dsr_full_only"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","lose_dsr_not_holiday"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("dropSpecialCharacters",!1)("formControlName","lose_dsr_fault_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle)}}function Sce(e,t){if(1&e){var n=as();es(0,"div",102),es(1,"div",28),es(2,"label",60),Gs(3,"Descontar apenas das faltas parciais "),ns(4,"input",31),ns(5,"span",32),ts(),es(6,"fa-icon",33),ls("click",(function(){return mn(n),fs(2).showQuestionCard(49)})),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(4),Zr("formControlName","deduce_just_fault_partial_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle)}}function Pce(e,t){1&e&&ns(0,"div",121)}function Tce(e,t){if(1&e&&(es(0,"div",117),Jr(1,Pce,1,0,"div",118),es(2,"span",119),ns(3,"fa-icon",120),es(4,"span",55),Gs(5),ts(),ts(),ts()),2&e){var n=t.$implicit,i=fs(3);Bo(3),Zr("icon",i.iconSolidService.faGripLines),Bo(2),Qs("Hora extra ",n,"")}}function Oce(e,t){if(1&e){var n=as();es(0,"div",107),es(1,"span",55),Gs(2,"Ordem de prioridade para o d\xe9bito de horas:"),ts(),es(3,"div",108),ls("cdkDropListDropped",(function(e){return mn(n),fs(2).deduceOptionDrop(e)})),Jr(4,Tce,6,2,"div",109),ts(),es(5,"span",110),es(6,"span",111),es(7,"label",60),Gs(8,"Hora extra 1 "),es(9,"input",112,113),ls("change",(function(){mn(n);var e=Gr(10);return fs(2).toggleDeduceOption("1",e.checked)})),ts(),ns(11,"span",32),ts(),ts(),es(12,"span",111),es(13,"label",60),Gs(14,"Hora extra 2 "),es(15,"input",112,114),ls("change",(function(){mn(n);var e=Gr(16);return fs(2).toggleDeduceOption("2",e.checked)})),ts(),ns(17,"span",32),ts(),ts(),es(18,"span",111),es(19,"label",60),Gs(20,"Hora extra 3 "),es(21,"input",112,115),ls("change",(function(){mn(n);var e=Gr(22);return fs(2).toggleDeduceOption("3",e.checked)})),ts(),ns(23,"span",32),ts(),ts(),es(24,"span",111),es(25,"label",60),Gs(26,"Hora extra 4 "),es(27,"input",112,116),ls("change",(function(){mn(n);var e=Gr(28);return fs(2).toggleDeduceOption("4",e.checked)})),ts(),ns(29,"span",32),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(4),Zr("ngForOf",i.deduceList),Bo(5),Zr("checked",i.deduceList.indexOf("1")>=0),Bo(6),Zr("checked",i.deduceList.indexOf("2")>=0),Bo(6),Zr("checked",i.deduceList.indexOf("3")>=0),Bo(6),Zr("checked",i.deduceList.indexOf("4")>=0)}}var Lce=function(){return["/company-config"]};function Dce(e,t){if(1&e){var n=as();es(0,"div",8),es(1,"div",9),es(2,"div",10),ns(3,"input",11),es(4,"label",12),Gs(5,"Nome"),ts(),ts(),ts(),es(6,"div",13),es(7,"div",14),es(8,"h2",15),Gs(9,"Horas noturnas"),ts(),es(10,"p",16),Gs(11,"Defina a configura\xe7\xe3o das horas noturnas."),ts(),ns(12,"div",17),es(13,"div",18),es(14,"div",19),es(15,"label",20),Gs(16,"Porcentagem da hora noturna"),ts(),es(17,"div",21),es(18,"input",22),ls("focusout",(function(){return mn(n),fs().verifyPercent("night_time_percent")})),ts(),ts(),ts(),ns(19,"div",23),ts(),es(20,"div",18),es(21,"div",19),es(22,"label",24),Gs(23,"In\xedcio da hora noturna"),ts(),es(24,"div",21),es(25,"input",25),ls("change",(function(){return mn(n),fs().verifyHour("night_time_begin")})),ts(),ts(),ts(),es(26,"div",23),es(27,"label",26),Gs(28,"Fim da hora noturna"),ts(),es(29,"div",21),es(30,"input",27),ls("change",(function(){return mn(n),fs().verifyHour("night_time_end")})),ts(),ts(),ts(),ts(),es(31,"div",28),es(32,"div",29),es(33,"label",30),Gs(34,"Hora noturna estendida "),ns(35,"input",31),ns(36,"span",32),ts(),es(37,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(1)})),ts(),ts(),ns(38,"div",34),es(39,"div",29),es(40,"label",30),Gs(41,"Hora noturna reduzida "),ns(42,"input",35),ns(43,"span",32),ts(),es(44,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(2)})),ts(),ts(),ts(),es(45,"div",36),es(46,"div",37),es(47,"label",30),Gs(48,"Adicionar hora noturna \xe0s horas totais "),ns(49,"input",31),ns(50,"span",32),ts(),es(51,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(18)})),ts(),ts(),ns(52,"div",34),ns(53,"div",37),ts(),ts(),es(54,"div",14),es(55,"h2",15),Gs(56,"Toler\xe2ncia"),ts(),es(57,"p",16),Gs(58,"Defina as toler\xe2ncias que ser\xe3o consideradas para os registros de ponto. "),es(59,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(5)})),ts(),ts(),ns(60,"div",17),es(61,"div",18),es(62,"div",19),es(63,"label",38),Gs(64,"Toler\xe2ncia por turno em minutos"),ts(),es(65,"div",21),ns(66,"input",39),ts(),ts(),es(67,"div",23),es(68,"label",40),Gs(69,"Toler\xe2ncia por dia em minutos"),ts(),es(70,"div",21),ns(71,"input",41),ts(),ts(),ts(),es(72,"div",18),es(73,"div",19),es(74,"label",42),Gs(75,"Tempo de intrajornada em minutos "),es(76,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(6)})),ts(),ts(),es(77,"div",21),ns(78,"input",43),ts(),ts(),es(79,"div",23),es(80,"label",44),Gs(81,"Per\xedodo de lanche "),es(82,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(21)})),ts(),ts(),es(83,"div",21),ns(84,"input",45),ts(),ts(),ts(),es(85,"div",36),es(86,"div",29),es(87,"label",30),Gs(88,"Escala 12x36 com intrajornada "),ns(89,"input",35),ns(90,"span",32),ts(),es(91,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(8)})),ts(),ts(),ns(92,"div",34),ts(),ts(),ts(),es(93,"div",13),es(94,"div",14),es(95,"h2",15),Gs(96,"Regime de horas"),ts(),es(97,"div",19),es(98,"h3",16),Gs(99,"Defina o regime padr\xe3o para esta regra. "),es(100,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(4)})),ts(),ts(),es(101,"div",46),es(102,"div",47),es(103,"h3",48),Gs(104,"Banco de horas"),ts(),es(105,"div",49),es(106,"label",50),es(107,"input",51),ls("click",(function(){return mn(n),fs().setRegimeValue(0)})),ts(),es(108,"span",52),es(109,"span",53),Gs(110,"Sim"),ts(),es(111,"span",54),Gs(112,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(113,"div",47),es(114,"h3",48),Gs(115,"H\xedbrido (BH)"),ts(),es(116,"div",49),es(117,"label",50),es(118,"input",51),ls("click",(function(){return mn(n),fs().setRegimeValue(2)})),ts(),es(119,"span",52),es(120,"span",53),Gs(121,"Sim"),ts(),es(122,"span",54),Gs(123,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(124,"div",47),es(125,"h3",48),Gs(126,"H\xedbrido (HE)"),ts(),es(127,"div",49),es(128,"label",50),es(129,"input",51),ls("click",(function(){return mn(n),fs().setRegimeValue(3)})),ts(),es(130,"span",52),es(131,"span",53),Gs(132,"Sim"),ts(),es(133,"span",54),Gs(134,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),es(135,"div",47),es(136,"h3",48),Gs(137,"Hora extra"),ts(),es(138,"div",49),es(139,"label",50),es(140,"input",51),ls("click",(function(){return mn(n),fs().setRegimeValue(1)})),ts(),es(141,"span",52),es(142,"span",53),Gs(143,"Sim"),ts(),es(144,"span",54),Gs(145,"N\xe3o"),ts(),ts(),ts(),ts(),ts(),ts(),ts(),es(146,"p",55),es(147,"b"),Gs(148,"Obs.:"),ts(),Gs(149," A vig\xeancia do banco de horas pode ser configurada na p\xe1gina de "),es(150,"span",56),Gs(151,"configura\xe7\xe3o da empresa."),ts(),ts(),ts(),es(152,"div",14),es(153,"div",57),es(154,"h2",58),Gs(155,"Horas Extras"),ts(),es(156,"div",59),es(157,"label",60),Gs(158,"Dia "),es(159,"input",61),ls("change",(function(){return mn(n),fs().setOverTimeRule("day")})),ts(),ns(160,"span",32),ts(),es(161,"label",62),Gs(162,"Semana "),es(163,"input",61),ls("change",(function(){return mn(n),fs().setOverTimeRule("week")})),ts(),ns(164,"span",32),ts(),es(165,"label",62),Gs(166,"M\xeas "),es(167,"input",61),ls("change",(function(){return mn(n),fs().setOverTimeRule("month")})),ts(),ns(168,"span",32),ts(),ts(),ts(),es(169,"p",16),Gs(170,"Defina as toler\xe2ncias e porcentagens para c\xe1lculo das horas extras."),ts(),es(171,"div"),es(172,"div",63),es(173,"span",64),Gs(174),ts(),es(175,"span",64),Gs(176,"HE 1"),ts(),es(177,"span",64),Gs(178,"Toler\xe2ncia"),ts(),es(179,"span",64),Gs(180,"HE 2"),ts(),es(181,"span",64),Gs(182,"Toler\xe2ncia"),ts(),es(183,"span",64),Gs(184,"HE 3"),ts(),es(185,"span",64),Gs(186,"Toler\xe2ncia"),ts(),es(187,"span",64),Gs(188,"HE 4"),ts(),Jr(189,Xle,3,1,"span",65),ts(),es(190,"div",66),es(191,"div",63),ns(192,"span",67),es(193,"span",67),es(194,"input",68),ls("focusout",(function(){return mn(n),fs().verifyPercentLabel("over_time_1_label")})),ts(),ts(),ns(195,"span",64),es(196,"span",67),es(197,"input",68),ls("focusout",(function(){return mn(n),fs().verifyPercentLabel("over_time_2_label")})),ts(),ts(),ns(198,"span",64),es(199,"span",67),es(200,"input",68),ls("focusout",(function(){return mn(n),fs().verifyPercentLabel("over_time_3_label")})),ts(),ts(),ns(201,"span",64),es(202,"span",67),es(203,"input",68),ls("focusout",(function(){return mn(n),fs().verifyPercentLabel("over_time_4_label")})),ts(),ts(),Jr(204,ece,1,0,"span",69),ts(),ts(),Jr(205,lce,3,3,"div",70),Jr(206,gce,3,3,"div",70),Jr(207,xce,37,14,"div",70),ts(),ns(208,"div",2),ts(),ts(),es(209,"div",13),es(210,"div",14),es(211,"h2",15),Gs(212,"C\xe1lculo de horas"),ts(),es(213,"p",16),Gs(214,"Marque as regras que deseja aplicar no c\xe1lculo de horas."),ts(),ns(215,"div",17),es(216,"div",71),es(217,"label",30),Gs(218,"Compensa\xe7\xe3o de tempo no mesmo dia "),ns(219,"input",31),ns(220,"span",32),ts(),es(221,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(10)})),ts(),ts(),es(222,"div",71),es(223,"label",30),Gs(224,"Calcular horas faltantes "),ns(225,"input",31),ns(226,"span",32),ts(),es(227,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(15)})),ts(),ts(),es(228,"div",71),es(229,"label",30),Gs(230,"Calcular hora extra intrajornada "),ns(231,"input",31),ns(232,"span",32),ts(),es(233,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(40)})),ts(),ts(),es(234,"div",71),es(235,"label",30),Gs(236,"Aplicar toler\xe2ncia di\xe1ria na hora noturna "),ns(237,"input",31),ns(238,"span",32),ts(),es(239,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(28)})),ts(),ts(),es(240,"div",71),es(241,"label",30),Gs(242,"Perda de DSR "),ns(243,"input",31),ns(244,"span",32),ts(),es(245,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(14)})),ts(),ts(),Jr(246,Mce,25,9,"div",72),es(247,"div",71),es(248,"label",30),Gs(249,"Separar horas extras noturnas de horas noturnas "),ns(250,"input",31),ns(251,"span",32),ts(),es(252,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(44)})),ts(),ts(),es(253,"div",71),es(254,"label",30),Gs(255,"Separar horas extras em feriado/DSR de horas extras 100% "),ns(256,"input",31),ns(257,"span",32),ts(),es(258,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(45)})),ts(),ts(),es(259,"div",71),es(260,"label",30),Gs(261,"Separar horas negativas em diurnas e noturnas "),ns(262,"input",31),ns(263,"span",32),ts(),es(264,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(47)})),ts(),ts(),es(265,"div",71),es(266,"label",30),Gs(267,"Separar horas de intrajornada em diurna ou noturna "),ns(268,"input",31),ns(269,"span",32),ts(),es(270,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(46)})),ts(),ts(),es(271,"div",71),es(272,"label",30),Gs(273,"Calcular horas extras excedentes na jornada 12x36 "),ns(274,"input",31),ns(275,"span",32),ts(),es(276,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(48)})),ts(),ts(),es(277,"div",73),es(278,"label",30),Gs(279,"Debitar horas faltantes das horas extras "),es(280,"input",74),ls("change",(function(){return mn(n),fs().validMirrorDeduce()})),ts(),ns(281,"span",32),ts(),es(282,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(26)})),ts(),ts(),Jr(283,Sce,7,2,"div",72),Jr(284,Oce,30,5,"div",75),ts(),es(285,"div",14),es(286,"h2",15),Gs(287,"Espelho ponto"),ts(),es(288,"p",16),Gs(289,"Marque os itens a serem exibidos no espelho ponto."),ts(),ns(290,"div",17),es(291,"div",76),es(292,"div",77),es(293,"div",71),es(294,"label",30),Gs(295,"Hora extra intrajornada "),ns(296,"input",35),ns(297,"span",32),ts(),es(298,"fa-icon",78),ls("click",(function(){return mn(n),fs().showQuestionCard(9)})),ts(),ts(),es(299,"div",71),es(300,"label",30),Gs(301,"Hora extra interjornada "),ns(302,"input",35),ns(303,"span",32),ts(),es(304,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(27)})),ts(),ts(),es(305,"div",71),es(306,"label",30),Gs(307,"Hora real trabalhada "),ns(308,"input",31),ns(309,"span",32),ts(),es(310,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(13)})),ts(),ts(),es(311,"div",71),es(312,"label",30),Gs(313,"Saldo de horas "),ns(314,"input",31),ns(315,"span",32),ts(),es(316,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(24)})),ts(),ts(),es(317,"div",71),es(318,"label",30),Gs(319,"Banco de horas original "),ns(320,"input",31),ns(321,"span",32),ts(),es(322,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(25)})),ts(),ts(),es(323,"div",57),es(324,"label",30),Gs(325,"Separar horas faltantes "),ns(326,"input",31),ns(327,"span",32),ts(),es(328,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(29)})),ts(),ts(),es(329,"div",57),es(330,"label",30),Gs(331,"Total de horas "),ns(332,"input",31),ns(333,"span",32),ts(),es(334,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(32)})),ts(),ts(),es(335,"div",57),es(336,"label",30),Gs(337,"Horas normais "),ns(338,"input",31),ns(339,"span",32),ts(),es(340,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(34)})),ts(),ts(),es(341,"div",36),es(342,"label",30),Gs(343,"Horas reduzidas "),ns(344,"input",31),ns(345,"span",32),ts(),es(346,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(35)})),ts(),ts(),ts(),es(347,"div",79),es(348,"div",71),es(349,"label",30),Gs(350,"Separar horas extras (noturnas e diurnas) "),ns(351,"input",31),ns(352,"span",32),ts(),es(353,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(19)})),ts(),ts(),es(354,"div",71),es(355,"label",30),Gs(356,'Exibir "Falta" nas faltas integrais '),ns(357,"input",31),ns(358,"span",32),ts(),es(359,"fa-icon",33),ls("click",(function(){return mn(n),fs().showQuestionCard(39)})),ts(),ts(),ts(),ts(),ts(),ts(),es(360,"div",80),es(361,"div",81),es(362,"label",82),Gs(363,"Verifiquei minha conven\xe7\xe3o sindical e estou de acordo com as configura\xe7\xf5es. "),ns(364,"input",31),ns(365,"span",83),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("formControlName","description"),Bo(15),Zr("formControlName","night_time_percent"),Bo(7),Zr("dropSpecialCharacters",!1)("formControlName","night_time_begin"),Bo(5),Zr("dropSpecialCharacters",!1)("formControlName","night_time_end"),Bo(5),Zr("formControlName","night_time_extended"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(5),Zr("formControlName","night_time_reduced"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(5),Zr("formControlName","night_time_plus_worked_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(8),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(7),Zr("dropSpecialCharacters",!1)("formControlName","tolerance"),Bo(5),Zr("dropSpecialCharacters",!1)("formControlName","tolerance_day"),Bo(5),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","intrajourney"),Bo(4),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(2),Zr("dropSpecialCharacters",!1)("formControlName","interval_time_2"),Bo(5),Zr("formControlName","work_time_1236"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(9),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(1),Zr("formGroup",i.regimeCheckForm),Bo(6),Zr("formControlName","bankTime"),Bo(11),Zr("formControlName","hybridBankTime"),Bo(11),Zr("formControlName","hybridOverTime"),Bo(11),Zr("formControlName","overTime"),Bo(10),Zr("routerLink",mc(99,Lce)),Bo(9),Zr("checked","day"==i.overTimeRuleCurrent),Bo(4),Zr("checked","week"==i.overTimeRuleCurrent),Bo(4),Zr("checked","month"==i.overTimeRuleCurrent),Bo(4),Xs("over-time-form ","day"!=i.overTimeRuleCurrent?"month-week":"",""),Bo(3),$s("day"==i.overTimeRuleCurrent?"Dia":""),Bo(15),Zr("ngIf","day"==i.overTimeRuleCurrent),Bo(1),Zr("formGroup",i.overTimeLabelForm),Bo(4),Zr("formControlName","over_time_1_label"),Bo(3),Zr("formControlName","over_time_2_label"),Bo(3),Zr("formControlName","over_time_3_label"),Bo(3),Zr("formControlName","over_time_4_label"),Bo(1),Zr("ngIf","day"==i.overTimeRuleCurrent),Bo(1),Zr("ngIf","day"==i.overTimeRuleCurrent),Bo(1),Zr("ngIf","week"==i.overTimeRuleCurrent),Bo(1),Zr("ngIf","month"==i.overTimeRuleCurrent),Bo(12),Zr("formControlName","daily_time_compensation"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","calc_negative_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","calc_intrajourney"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","apply_tolerance_day_to_night_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","lose_dsr"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(1),Zr("ngIf",i.pointRuleForm.get("lose_dsr").value),Bo(4),Zr("formControlName","split_over_night_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","split_holiday_dsr_over_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","split_negative_day_night"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","split_intrajourney"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","calc_over_time_1236"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(1),Zr("formGroup",i.pointRuleCheckForm),Bo(3),Zr("formControlName","mirrorDeduceExtraTime"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(1),Zr("ngIf",i.pointRuleForm.get("mirror_deduce_extra_time_order").value),Bo(1),Zr("ngIf",i.pointRuleCheckForm.controls.mirrorDeduceExtraTime.value),Bo(12),Zr("formControlName","intrajourney_in_mirror"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","interjourney_in_mirror"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","actual_worked_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","mirror_balance"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","mirror_bank_time_original"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","split_fault_in_mirror"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","mirror_total_hour_sum"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","mirror_show_normal_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","mirror_show_reduced_time"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(5),Zr("formControlName","mirror_split_extra_hours"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(4),Zr("formControlName","mirror_set_fault_description"),Bo(2),Zr("icon",i.iconRegularService.faQuestionCircle),Bo(1),Zr("formGroup",i.pointRuleCheckForm),Bo(4),Zr("formControlName","aware")}}function Ice(e,t){if(1&e){var n=as();es(0,"div",36),ns(1,"io-btn",122),es(2,"io-btn",123),ls("btnClick",(function(){return mn(n),fs().sendPointRule()})),ts(),ts()}2&e&&(Bo(1),Zr("moduleName","point-rule")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("urlNavigation","point-rule")("useValidation",!1),Bo(1),Zr("moduleName","point-rule")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar"))}var Fce,Ace,Ece,Bce,Nce,Rce=((Nce=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.pointRuleService=r,this.validService=s,this.pointRuleId=null,this.overTimeDaysList=[{code:1,priority:"1",description:"Seg"},{code:2,priority:"2",description:"Ter"},{code:3,priority:"3",description:"Qua"},{code:4,priority:"4",description:"Qui"},{code:5,priority:"5",description:"Sex"},{code:6,priority:"6",description:"S\xe1b"},{code:7,priority:"7",description:"Dom"},{code:8,priority:"8",description:"DSR"},{code:9,priority:"9",description:"Fer"}],this.overTimeWeekList=[{code:1,priority:"1",description:"Semana"},{code:2,priority:"2",description:"Dom/DSR/Fer"}],this.dayList=this.functionsService.getDayListForSelect(),this.deduceList=["1","2","3","4"],this.overTimeDaysListShow=[],this.overTimeWeekListShow=[],this.previewEnable=!1,this.questionCard=!1,this.questionCardType=0,this.overTimeRuleCurrent="day",this.overTimeForm=this.formBuilder.group({lines:new Gm([this.overTimeLine()])}),this.overTimeWeekForm=this.formBuilder.group({lines:new Gm([this.overTimeWeekLine()])}),this.overTimeMonthForm=this.overTimeSpecialForm(),this.overTimeLabelForm=this.formBuilder.group({over_time_1_label:new Wm("50%",[Jf.required]),over_time_2_label:new Wm("100%",[Jf.required]),over_time_3_label:new Wm("0%",[Jf.required]),over_time_4_label:new Wm("0%",[Jf.required])}),this.pointRuleForm=this.formBuilder.group({active:new Wm(1,[Jf.required]),actual_worked_time:new Wm(!1,[Jf.required]),apply_tolerance_day_to_night_time:new Wm(!1,[Jf.required]),bank_time_factor:new Wm("0",[Jf.required]),comp_time:new Wm("6",[Jf.required]),calc_extra_time:new Wm(!0,[Jf.required]),calc_negative_time:new Wm(!0,[Jf.required]),calc_paid_extra_time:new Wm(!1,[Jf.required]),daily_time_compensation:new Wm(!0,[Jf.required]),deduce_just_fault_partial_time:new Wm(!0,[Jf.required]),description:new Wm("",[Jf.required]),extra_time:new Wm(1,[Jf.required]),holiday_paid:new Wm(!0,[Jf.required]),interjourney_in_mirror:new Wm(!1,[Jf.required]),intrajourney:new Wm("60",[Jf.required]),interval_time_2:new Wm("00",[Jf.required]),intrajourney_in_mirror:new Wm(!1,[Jf.required]),lose_dsr:new Wm(!0,[Jf.required]),lose_dsr_current_week:new Wm(!1,[Jf.required]),lose_dsr_full_only:new Wm(!1,[Jf.required]),lose_dsr_not_holiday:new Wm(!1,[Jf.required]),lose_dsr_fault_time:new Wm(null,[Jf.required]),mirror_balance:new Wm(!1,[Jf.required]),mirror_bank_time_original:new Wm(!1,[Jf.required]),mirror_deduce_extra_time_order:new Wm(null,[Jf.required]),mirror_set_fault_description:new Wm(null,[Jf.required]),mirror_split_extra_hours:new Wm(!1,[Jf.required]),mirror_split_negative_time:new Wm(null,[Jf.required]),mirror_total_hour_sum:new Wm(!0,[Jf.required]),mirror_show_normal_time:new Wm(null,[Jf.required]),night_time_begin:new Wm("22:00",[Jf.required]),night_time_end:new Wm("05:00",[Jf.required]),night_time_extended:new Wm(!1,[Jf.required]),night_time_percent:new Wm("20%",[Jf.required]),night_time_plus_worked_time:new Wm(!0,[Jf.required]),night_time_reduced:new Wm(!0,[Jf.required]),over_time_label:new Wm("50,100,0",[Jf.required]),over_time_rule:new Wm("day",[Jf.required]),over_time_holiday_after_midnight:new Wm(!1,[Jf.required]),regime_type_for_register:new Wm(1,[Jf.required]),split_fault_in_mirror:new Wm(!1,[Jf.required]),split_holiday_dsr_over_time:new Wm(!1,[Jf.required]),calc_over_time_1236:new Wm(1,[Jf.required]),split_over_night_time:new Wm(!1,[Jf.required]),split_negative_day_night:new Wm(!1,[Jf.required]),split_intrajourney:new Wm(!1,[Jf.required]),sunday_extra:new Wm(!0,[Jf.required]),tolerance:new Wm("5",[Jf.required]),tolerance_day:new Wm("10",[Jf.required]),work_time_1236:new Wm(!0,[Jf.required]),mirror_show_reduced_time:new Wm(!1,[Jf.required]),calc_intrajourney:new Wm(!1,[Jf.required])}),this.pointRuleCheckForm=this.formBuilder.group({aware:new Wm(!1,[Jf.required]),mirrorDeduceExtraTime:new Wm(!1,[Jf.required])}),this.regimeCheckForm=this.formBuilder.group({bankTime:new Wm(!1,[Jf.required]),overTime:new Wm(!1,[Jf.required]),hybridBankTime:new Wm(!1,[Jf.required]),hybridOverTime:new Wm(!1,[Jf.required])})}),[{key:"overTimeLine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Seg";return this.formBuilder.group({code:new Wm(e,[Jf.required]),priority:new Wm(t,[Jf.required]),description:new Wm(n,[Jf.required]),over_time_1:new Wm(e<7?"50":null,[Jf.required]),over_time_1_tolerance:new Wm(null,[Jf.required]),over_time_2:new Wm(e>6?"100":null,[Jf.required]),over_time_2_tolerance:new Wm(null,[Jf.required]),over_time_3:new Wm(null,[Jf.required]),over_time_3_tolerance:new Wm(null,[Jf.required]),over_time_4:new Wm(null,[Jf.required]),bank_time_factor:new Wm("0",[Jf.required])})}},{key:"overTimeWeekLine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Semana";return this.formBuilder.group({code:new Wm(e,[Jf.required]),priority:new Wm(t,[Jf.required]),description:new Wm(n,[Jf.required]),over_time_1:new Wm(1!=e?null:"50",[Jf.required]),over_time_1_tolerance:new Wm(null,[Jf.required]),over_time_2:new Wm(null,[Jf.required]),over_time_2_tolerance:new Wm(null,[Jf.required]),over_time_3:new Wm(null,[Jf.required]),over_time_3_tolerance:new Wm(null,[Jf.required]),over_time_4:new Wm(null,[Jf.required]),bank_time_factor:new Wm("0",[Jf.required])})}},{key:"overTimeSpecialForm",value:function(){return this.formBuilder.group({over_time_1:new Wm("50",[Jf.required]),over_time_1_tolerance:new Wm(null,[Jf.required]),over_time_2:new Wm(null,[Jf.required]),over_time_2_tolerance:new Wm(null,[Jf.required]),over_time_3:new Wm(null,[Jf.required]),over_time_3_tolerance:new Wm(null,[Jf.required]),over_time_4:new Wm(null,[Jf.required]),day:new Wm(null,[Jf.required])})}},{key:"overTimeFormControls",get:function(){return this.overTimeForm.controls}},{key:"overTimeWeekFormControls",get:function(){return this.overTimeWeekForm.controls}},{key:"ngOnInit",value:function(){var e=this;if(this.setupOverTimeForm(),!this.pointRuleId)return this.resetFormToCLT(),void(this.previewEnable=!0);this.pointRuleService.getPointRule(this.pointRuleId,(function(t){t.error?(e.pointRuleForm.get("description").setValue("Erro ao carregar"),e.router.navigate(["/point-rule"]).then((function(){return!1}))):e.loadPointRuleData(t.data.pointRuleData),e.previewEnable=!0}))}},{key:"setupOverTimeForm",value:function(){var e=this;this.overTimeFormArrayLines=this.overTimeFormControls.lines,this.overTimeWeekFormArrayLines=this.overTimeWeekFormControls.lines,this.overTimeFormArrayLines.reset(),this.overTimeFormArrayLines.removeAt(0),this.overTimeDaysList.forEach((function(t){e.overTimeFormArrayLines.push(e.overTimeLine(t.code,t.priority,t.description)),e.overTimeDaysListShow.push({description:t.description})})),this.overTimeWeekFormArrayLines.reset(),this.overTimeWeekFormArrayLines.removeAt(0),this.overTimeWeekList.forEach((function(t){e.overTimeWeekFormArrayLines.push(e.overTimeWeekLine(t.code,t.priority,t.description)),e.overTimeWeekListShow.push({description:t.description})}))}},{key:"resetFormToCLT",value:function(){this.pointRuleForm.get("active").setValue(1),this.pointRuleForm.get("actual_worked_time").setValue(!1),this.pointRuleForm.get("apply_tolerance_day_to_night_time").setValue(!1),this.pointRuleForm.get("bank_time_factor").setValue("0"),this.pointRuleForm.get("comp_time").setValue("6"),this.pointRuleForm.get("calc_extra_time").setValue(!0),this.pointRuleForm.get("calc_negative_time").setValue(!0),this.pointRuleForm.get("calc_paid_extra_time").setValue(!1),this.pointRuleForm.get("daily_time_compensation").setValue(!0),this.pointRuleForm.get("deduce_just_fault_partial_time").setValue(!1),this.pointRuleForm.get("extra_time").setValue(1),this.pointRuleForm.get("holiday_paid").setValue(!0),this.pointRuleForm.get("interjourney_in_mirror").setValue(!1),this.pointRuleForm.get("intrajourney").setValue("60"),this.pointRuleForm.get("interval_time_2").setValue("00"),this.pointRuleForm.get("intrajourney_in_mirror").setValue(!1),this.pointRuleForm.get("lose_dsr").setValue(!0),this.pointRuleForm.get("lose_dsr_current_week").setValue(!1),this.pointRuleForm.get("lose_dsr_full_only").setValue(!1),this.pointRuleForm.get("lose_dsr_fault_time").setValue(""),this.pointRuleForm.get("lose_dsr_not_holiday").setValue(!1),this.pointRuleForm.get("mirror_balance").setValue(!1),this.pointRuleForm.get("mirror_bank_time_original").setValue(!1),this.pointRuleForm.get("mirror_deduce_extra_time_order").setValue(null),this.pointRuleForm.get("mirror_set_fault_description").setValue(null),this.pointRuleForm.get("mirror_split_extra_hours").setValue(!1),this.pointRuleForm.get("mirror_split_negative_time").setValue(!1),this.pointRuleForm.get("mirror_total_hour_sum").setValue(!0),this.pointRuleForm.get("mirror_show_normal_time").setValue(0),this.pointRuleForm.get("night_time_begin").setValue("22:00"),this.pointRuleForm.get("night_time_end").setValue("05:00"),this.pointRuleForm.get("night_time_extended").setValue(!1),this.pointRuleForm.get("night_time_percent").setValue("20%"),this.pointRuleForm.get("night_time_plus_worked_time").setValue(!0),this.pointRuleForm.get("night_time_reduced").setValue(!0),this.pointRuleForm.get("over_time_holiday_after_midnight").setValue(!1),this.pointRuleForm.get("over_time_label").setValue("50,100,0,0"),this.pointRuleForm.get("sunday_extra").setValue(!0),this.pointRuleForm.get("split_fault_in_mirror").setValue(!1),this.pointRuleForm.get("split_holiday_dsr_over_time").setValue(!1),this.pointRuleForm.get("calc_over_time_1236").setValue(1),this.pointRuleForm.get("split_over_night_time").setValue(!1),this.pointRuleForm.get("split_intrajourney").setValue(!1),this.pointRuleForm.get("split_negative_day_night").setValue(!1),this.pointRuleForm.get("tolerance").setValue("5"),this.pointRuleForm.get("tolerance_day").setValue("10"),this.pointRuleForm.get("work_time_1236").setValue(!0),this.pointRuleForm.get("mirror_show_reduced_time").setValue(!1),this.pointRuleForm.get("calc_intrajourney").setValue(!0),this.pointRuleCheckForm.get("mirrorDeduceExtraTime").setValue(!1),this.setRegimeValue(1)}},{key:"setRegimeValue",value:function(e){var t=this;this.pointRuleForm.get("regime_type_for_register").setValue(e);var n=["bankTime","overTime","hybridBankTime","hybridOverTime"];n.forEach((function(e){return t.regimeCheckForm.get(e).setValue(!1)})),this.regimeCheckForm.get(n[e]).setValue(!0)}},{key:"loadPointRuleData",value:function(e){var t=this;this.overTimeRuleCurrent=e.over_time_rule,Object.keys(this.pointRuleForm.controls).forEach((function(n){t.pointRuleForm.get(n).setValue(e[n])})),null!=this.pointRuleForm.get("mirror_deduce_extra_time_order").value&&(this.pointRuleCheckForm.get("mirrorDeduceExtraTime").setValue(!0),this.deduceList=this.pointRuleForm.get("mirror_deduce_extra_time_order").value.split(",")),this.pointRuleForm.get("lose_dsr_fault_time").setValue("00:00:00"==this.pointRuleForm.get("lose_dsr_fault_time").value?null:this.pointRuleForm.get("lose_dsr_fault_time").value),this.pointRuleForm.get("work_time_1236").setValue("11:00:00"==e.work_time_1236),this.verifyPercent("night_time_percent"),this.setRegimeValue(e.regime_type_for_register),this.loadOverTimeLabel(),this.loadOverTimeData(e.overTimeData),this.loadOverTimeMonthData(e.overTimeMonthData),this.loadOverTimeWeekData(e.overTimeWeekData)}},{key:"verifyPercent",value:function(e){var t=this.functionsService.removeSings(this.pointRuleForm.get(e).value.toString());""==t&&(t="0"),this.pointRuleForm.get(e).setValue(t+"%")}},{key:"loadOverTimeLabel",value:function(){var e=this;this.pointRuleForm.get("over_time_label").value.split(",").forEach((function(t,n){var i="over_time_"+(n+1)+"_label";e.overTimeLabelForm.get(i).setValue(t),e.verifyPercentLabel(i)}))}},{key:"verifyPercentLabel",value:function(e){var t=this.functionsService.removeSings(this.overTimeLabelForm.get(e).value.toString());""==t&&(t="0"),this.overTimeLabelForm.get(e).setValue(t+"%"),this.setPointRuleOverTimeLabel(),this.setPercentageValueForColumn(e)}},{key:"setPointRuleOverTimeLabel",value:function(){var e=this.functionsService.removeSings(this.overTimeLabelForm.get("over_time_1_label").value.toString()),t=this.functionsService.removeSings(this.overTimeLabelForm.get("over_time_2_label").value.toString()),n=this.functionsService.removeSings(this.overTimeLabelForm.get("over_time_3_label").value.toString()),i=this.functionsService.removeSings(this.overTimeLabelForm.get("over_time_4_label").value.toString());this.pointRuleForm.get("over_time_label").setValue(e+","+t+","+n+","+i)}},{key:"setPercentageValueForColumn",value:function(e){for(var t=this.functionsService.removeSings(this.overTimeLabelForm.get(e).value.toString()),n=e.split("_label")[0],i=0;i<=8;i++)null!=this.overTimeFormArrayLines.at(i).get(n).value&&this.overTimeFormArrayLines.at(i).get(n).setValue(t)}},{key:"loadOverTimeData",value:function(e){var t=this,n=this.overTimeFormArrayLines.controls[0];e.forEach((function(e,i){Object.keys(n.controls).forEach((function(n){t.overTimeFormArrayLines.at(i).get(n).setValue(e[n])}))}))}},{key:"loadOverTimeMonthData",value:function(e){var t=this;null!=e&&Object.keys(this.overTimeMonthForm.controls).forEach((function(n){t.overTimeMonthForm.get(n).setValue(e[n]||null)}))}},{key:"loadOverTimeWeekData",value:function(e){var t=this;if(null!=e){var n=this.overTimeFormArrayLines.controls[0];e.forEach((function(e,i){Object.keys(n.controls).forEach((function(n){t.overTimeWeekFormArrayLines.at(i).get(n).setValue(e[n])}))}))}}},{key:"setOverTimeRule",value:function(e){this.pointRuleForm.get("over_time_rule").setValue(e),this.overTimeRuleCurrent=e}},{key:"toggleOverTime",value:function(e,t){var n=null!=this.overTimeFormArrayLines.at(e).get(t).value?null:this.functionsService.removeSings(this.overTimeLabelForm.get(t+"_label").value);this.overTimeFormArrayLines.at(e).get(t).setValue(n),this.toggleTolerance(e)}},{key:"toggleOverTimeWeek",value:function(e,t){var n=null!=this.overTimeWeekFormArrayLines.at(e).get(t).value?null:this.functionsService.removeSings(this.overTimeLabelForm.get(t+"_label").value);this.overTimeWeekFormArrayLines.at(e).get(t).setValue(n),this.toggleToleranceWeek(e)}},{key:"toggleTolerance",value:function(e){var t=null!=this.overTimeFormArrayLines.at(e).get("over_time_1").value,n=null!=this.overTimeFormArrayLines.at(e).get("over_time_2").value,i=null!=this.overTimeFormArrayLines.at(e).get("over_time_3").value,o=null!=this.overTimeFormArrayLines.at(e).get("over_time_4").value,a=this.overTimeFormArrayLines.at(e).get("over_time_1_tolerance").value||"00:00",r=this.overTimeFormArrayLines.at(e).get("over_time_2_tolerance").value||"00:00",s=this.overTimeFormArrayLines.at(e).get("over_time_3_tolerance").value||"00:00",l=!0,c=!0,u=!0;t&&(n||i||o)&&(l=!1),n&&(i||o)&&(c=!1),i&&o&&(u=!1),this.overTimeFormArrayLines.at(e).get("over_time_1_tolerance").setValue(l?null:a),this.overTimeFormArrayLines.at(e).get("over_time_2_tolerance").setValue(c?null:r),this.overTimeFormArrayLines.at(e).get("over_time_3_tolerance").setValue(u?null:s)}},{key:"toggleToleranceWeek",value:function(e){var t=null!=this.overTimeWeekFormArrayLines.at(e).get("over_time_1").value,n=null!=this.overTimeWeekFormArrayLines.at(e).get("over_time_2").value,i=null!=this.overTimeWeekFormArrayLines.at(e).get("over_time_3").value,o=null!=this.overTimeWeekFormArrayLines.at(e).get("over_time_4").value,a=this.overTimeWeekFormArrayLines.at(e).get("over_time_1_tolerance").value||"00:00",r=this.overTimeWeekFormArrayLines.at(e).get("over_time_2_tolerance").value||"00:00",s=this.overTimeWeekFormArrayLines.at(e).get("over_time_3_tolerance").value||"00:00",l=!0,c=!0,u=!0;t&&(n||i||o)&&(l=!1),n&&(i||o)&&(c=!1),i&&o&&(u=!1),this.overTimeWeekFormArrayLines.at(e).get("over_time_1_tolerance").setValue(l?null:a),this.overTimeWeekFormArrayLines.at(e).get("over_time_2_tolerance").setValue(c?null:r),this.overTimeWeekFormArrayLines.at(e).get("over_time_3_tolerance").setValue(u?null:s)}},{key:"toggleOverTimeMonthWeek",value:function(e,t){var n=null!=("week"==e?this.overTimeWeekForm.value:this.overTimeMonthForm.value)[t]?null:this.functionsService.removeSings(this.overTimeLabelForm.get(t+"_label").value);"month"==e&&this.overTimeMonthForm.get(t).setValue(n),"week"==e&&this.overTimeWeekForm.get(t).setValue(n),this.toggleToleranceMonthWeek(e)}},{key:"toggleToleranceMonthWeek",value:function(e){var t="week"==e?this.overTimeWeekForm.value:this.overTimeMonthForm.value,n=null!=t.over_time_2,i=null!=t.over_time_3,o=null!=t.over_time_4,a=t.over_time_1_tolerance||"00:00",r=t.over_time_2_tolerance||"00:00",s=t.over_time_3_tolerance||"00:00",l=!0,c=!0,u=!0;null!=t.over_time_1&&(n||i||o)&&(l=!1),n&&(i||o)&&(c=!1),i&&o&&(u=!1),"month"==e&&(this.overTimeMonthForm.get("over_time_1_tolerance").setValue(l?null:a),this.overTimeMonthForm.get("over_time_2_tolerance").setValue(c?null:r),this.overTimeMonthForm.get("over_time_3_tolerance").setValue(u?null:s))}},{key:"validMirrorDeduce",value:function(){this.pointRuleCheckForm.controls.mirrorDeduceExtraTime.value?this.setMirrorDeduceValue():this.pointRuleForm.get("mirror_deduce_extra_time_order").setValue(null)}},{key:"deduceOptionDrop",value:function(e){_le(this.deduceList,e.previousIndex,e.currentIndex),this.setMirrorDeduceValue()}},{key:"setMirrorDeduceValue",value:function(){var e="";this.deduceList.forEach((function(t){return e=e+","+t})),this.pointRuleForm.get("mirror_deduce_extra_time_order").setValue(e.slice(1))}},{key:"toggleDeduceOption",value:function(e,t){var n=this.deduceList.findIndex((function(t){return t==e}));t?this.deduceList.push(e):this.deduceList.splice(n,1),this.setMirrorDeduceValue()}},{key:"validConfiguration",value:function(){var e=this;if(""==this.pointRuleForm.get("description").value)return this.functionsService.openSnackBar("Informe um nome para a regra do ponto!"),!1;""!=this.pointRuleForm.get("lose_dsr_fault_time").value&&null!=this.pointRuleForm.get("lose_dsr_fault_time").value||this.pointRuleForm.get("lose_dsr_fault_time").setValue("00:00:00");var t=0;if(["tolerance","tolerance_day","intrajourney"].forEach((function(n){""!=e.pointRuleForm.get(n).value&&0!=e.pointRuleForm.get(n).value.length||t++})),0!=t)return this.functionsService.openSnackBar("emptyField"),!1;if("month"==this.overTimeRuleCurrent&&("null"==this.overTimeMonthForm.get("day").value||null==this.overTimeMonthForm.get("day").value||""==this.overTimeMonthForm.get("day").value||0==this.overTimeMonthForm.get("day").value.length))return this.functionsService.openSnackBar("\xc9 necess\xe1rio informar o dia do m\xeas para Horas Extras.","default",4e3),!1;if(!this.pointRuleCheckForm.controls.aware.value)return this.functionsService.openSnackBar("\xc9 necess\xe1rio o aceite da conven\xe7\xe3o sindical.","default",4e3),!1;if(this.pointRuleCheckForm.controls.mirrorDeduceExtraTime.value){if(0==this.deduceList.length)return this.functionsService.openSnackBar("Selecione, ao menos, um tipo de hora extra para o d\xe9bito de horas"),!1}else this.pointRuleForm.get("mirror_deduce_extra_time_order").setValue(null);return this.pointRuleForm.get("lose_dsr").value||(this.pointRuleForm.get("lose_dsr_current_week").setValue(!1),this.pointRuleForm.get("lose_dsr_full_only").setValue(!1)),this.overTimeFormIsValid()}},{key:"overTimeFormIsValid",value:function(){var e=this,t=!1;return this.overTimeDaysList.forEach((function(n,i){"00:00"!=e.overTimeFormArrayLines.at(i).get("over_time_1_tolerance").value&&"00:00"!=e.overTimeFormArrayLines.at(i).get("over_time_2_tolerance").value&&"00:00"!=e.overTimeFormArrayLines.at(i).get("over_time_3_tolerance").value||(t=!0)})),this.overTimeWeekList.forEach((function(n,i){"00:00"!=e.overTimeWeekFormArrayLines.at(i).get("over_time_1_tolerance").value&&"00:00"!=e.overTimeWeekFormArrayLines.at(i).get("over_time_2_tolerance").value&&"00:00"!=e.overTimeWeekFormArrayLines.at(i).get("over_time_3_tolerance").value||(t=!0)})),"00:00"!=this.overTimeMonthForm.get("over_time_1_tolerance").value&&"00:00"!=this.overTimeMonthForm.get("over_time_2_tolerance").value&&"00:00"!=this.overTimeMonthForm.get("over_time_3_tolerance").value||(t=!0),t&&this.functionsService.openSnackBar('A toler\xe2ncia entre os tipos de horas extras n\xe3o pode ser "00:00"'),!t}},{key:"sendPointRule",value:function(){if(this.validConfiguration()){var e={overTimeForm:JSON.stringify(this.overTimeFormArrayLines.value),overTimeFormLabel:this.overTimeLabelForm.value,overTimeWeekForm:JSON.stringify(this.overTimeWeekFormArrayLines.value),overTimeMonthForm:this.overTimeMonthForm.value,pointRuleForm:this.pointRuleForm.value};this.pointRuleId?this.putPointRule(e):this.postPointRule(e)}}},{key:"postPointRule",value:function(e){var t=this;this.pointRuleService.postPointRule(e,(function(e){e.error||t.router.navigate(["/point-rule"]).then((function(){return!1}))}))}},{key:"putPointRule",value:function(e){var t=this;this.pointRuleService.putPointRule(this.pointRuleId,e,(function(e){e.error||t.router.navigate(["/point-rule"]).then((function(){return!1}))}))}},{key:"validOverTimeHour",value:function(e,t){this.overTimeFormArrayLines.at(t).get(e).setValue(this.validService.validHour(this.overTimeFormArrayLines.at(t).get(e).value))}},{key:"validOverTimeWeekHour",value:function(e,t){this.overTimeWeekFormArrayLines.at(t).get(e).setValue(this.validService.validHour(this.overTimeWeekFormArrayLines.at(t).get(e).value,!1))}},{key:"validOverTimeMonthHour",value:function(e){this.overTimeMonthForm.get(e).setValue(this.validService.validHour(this.overTimeMonthForm.get(e).value,!1))}},{key:"verifyHour",value:function(e){null!=e&&("lose_dsr_fault_time"!=e||""!=this.pointRuleForm.get(e).value&&null!=this.pointRuleForm.get(e).value?this.pointRuleForm.get(e).setValue(this.validService.validHour(this.pointRuleForm.get(e).value)):this.pointRuleForm.get("lose_dsr_fault_time").setValue(null))}},{key:"showQuestionCard",value:function(e){this.questionCardType=e,this.questionCard=!0}},{key:"hideQuestionCard",value:function(){this.questionCard=!1}},{key:"changeLoseDSRFullOnlyOrFaultTime",value:function(e){"lose_dsr_fault_time"==e?this.pointRuleForm.get("lose_dsr_full_only").setValue(!1):this.pointRuleForm.get("lose_dsr_fault_time").setValue("")}}])}()).\u0275fac=function(e){return new(e||Nce)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(Fse),$r(TN))},Nce.\u0275cmp=Ot({type:Nce,selectors:[["io-point-rule-form"]],inputs:{pointRuleId:"pointRuleId"},decls:8,vars:15,consts:[[1,"formBox","mrgB2",3,"formGroup"],[3,"moduleName","titleTop","textTop2"],[1,"mrgB2"],[1,"flex","end","pointRuleTop","mrgB2"],[1,"btnSmall","btnShort",3,"moduleName","action","btnClassList","btnColor","btnText","btnTitle","useValidation","btnClick"],["class","fieldBox",4,"ngIf"],["class","flex",4,"ngIf"],[3,"showCard","questionCardType","hideCard"],[1,"fieldBox"],[1,"wdMax50"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","required","","type","text",1,"",3,"formControlName"],["for","description",1,"form-label","required"],[1,"flexDesk","cardBox","fullHeight"],[1,"card","border-gray-light","bg-white","round2"],[1,"sizeA","cl-blue","mrgB2","fontBold"],[1,"sizeB","mrgB2"],[1,"pdgB2"],[1,"flex","pdgB1","mrgB2"],[1,"wdFull"],["for","night_time_percent",1,"form-label"],[1,"flex","start","relativePlace"],["onClick","this.select();","autocomplete","off","id","night_time_percent","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"formControlName","focusout"],[1,"wdFull","mrgL2"],["for","night_time_begin",1,"form-label"],["onClick","this.select();","autocomplete","off","id","night_time_begin","mask","00:00","maxlength","5","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName","change"],["for","night_time_end",1,"form-label"],["onClick","this.select();","autocomplete","off","id","night_time_end","mask","00:00","maxlength","5","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName","change"],[1,"flex","mrgB1"],[1,"flex","left","pdgB1"],[1,"radioBox","hd2","sizeC"],["type","checkbox",3,"formControlName"],[1,"checkmark"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL1",3,"icon","click"],[1,"mrgL2","mrgR2"],["type","checkbox","checked","",3,"formControlName"],[1,"flex"],[1,"flex","left"],["for","tolerance",1,"form-label"],["autocomplete","off","id","tolerance","mask","000","maxlength","3","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName"],["for","tolerance_day",1,"form-label"],["autocomplete","off","id","tolerance_day","mask","000","maxlength","3","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName"],["for","intrajourney",1,"form-label"],["autocomplete","off","id","intrajourney","mask","000","maxlength","3","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName"],["for","interval_time_2",1,"form-label"],["autocomplete","off","id","interval_time_2","mask","000","maxlength","3","placeholder","","type","text","required","",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName"],[1,"compTimeSwapLine","flexPad","top","mrgB2",3,"formGroup"],[1,"compTimeSwapItem"],[1,"sizeC","center","mrgB1"],[1,"compTimeSwapSwitchBox","center"],[1,"switchBox","switchOnOff"],["type","checkbox",1,"switchInput",3,"formControlName","click"],[1,"switch"],[1,"switchTextOn"],[1,"switchTextOff"],[1,"sizeC"],[1,"fontBold","clickPlace","cl-blue",3,"routerLink"],[1,"flex","mrgB2"],[1,"sizeA","cl-blue","fontBold"],[1,"over-time-type-box","flex"],[1,"radioBox","hd1","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","change"],[1,"radioBox","hd1","sizeC","mrgL1"],[1,"flex","over-time-line"],[1,"over-time-item","fontBold"],["class","over-time-item fontBold center",4,"ngIf"],[1,"over-time-form","label-form",3,"formGroup"],[1,"over-time-item"],["onClick","this.select();","autocomplete","off","placeholder","","type","text","required","",3,"formControlName","focusout"],["class","over-time-item",4,"ngIf"],["class","",3,"formGroup",4,"ngIf"],[1,"flex","pdgB1","mrgB1"],["class","pdgL1 mrgB2",4,"ngIf"],[1,"flex","mrgB2",3,"formGroup"],["type","checkbox",3,"formControlName","change"],["class","",4,"ngIf"],[1,"flex","top"],[1,"left-part"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeG","cl-blue","clickPlace","mrgL2",3,"icon","click"],[1,"right-part"],[1,"border-gray-light","bg-white","pdgT2","pdgB2","round2",3,"formGroup"],[1,"form-group","flex","center"],[1,"radioBox","danger","hd2","sizeC"],[1,"checkmark","danger"],[1,"over-time-item","fontBold","center"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeH","cl-blue","clickPlace",3,"icon","click"],[1,"",3,"formGroup"],[1,"over-time-grid",3,"formArrayName"],["class","flex over-time-line",3,"formGroupName",4,"ngFor","ngForOf"],[1,"flex","over-time-line",3,"formGroupName"],[4,"ngIf"],["onClick","this.select();","autocomplete","off","class","center ","mask","00:00","maxlength","5","placeholder",":","type","text","required","",3,"dropSpecialCharacters","formControlName","change",4,"ngIf"],["onClick","this.select();","suffix","%","autocomplete","off","mask","000","maxlength","4","placeholder","","type","text","required","",1,"center",3,"dropSpecialCharacters","formControlName"],["onClick","this.select();","autocomplete","off","mask","00:00","maxlength","5","placeholder",":","type","text","required","",1,"center",3,"dropSpecialCharacters","formControlName","change"],[1,"over-time-grid","month-week"],["onClick","this.select();","autocomplete","off","class","center","mask","00:00","maxlength","5","placeholder",":","type","text","required","",3,"dropSpecialCharacters","formControlName","change",4,"ngIf"],[1,"over-time-month","flex","pdgT1","wdMax25"],["id","day","required","",1,"scrollbarEnable",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],["for","day",1,"form-label","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[3,"value"],[1,"pdgL1","mrgB2"],["type","checkbox",3,"formControlName","click"],[1,"flex","mrgB1","sub-field-space"],[1,"hd1","sizeC"],["onClick","this.select();","autocomplete","off","id","lose_dsr_fault_time","mask","00:00","maxlength","5","placeholder","","type","text",1,"pdgB1","borderBottom","wdFull",3,"dropSpecialCharacters","formControlName","change"],[1,""],["cdkDropList","",1,"io-drag-list","mrgT1",3,"cdkDropListDropped"],["class","io-drag-item","cdkDrag","",4,"ngFor","ngForOf"],[1,"deduce-option-box","flex","pdgT2"],[1,"deduce-option-item"],["type","checkbox",3,"checked","change"],["deduceOption1",""],["deduceOption2",""],["deduceOption3",""],["deduceOption4",""],["cdkDrag","",1,"io-drag-item"],["class","io-drag-placeholder",4,"cdkDragPlaceholder"],[1,"flex","start"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","mrgR1",3,"icon"],[1,"io-drag-placeholder"],[3,"moduleName","action","btnText","btnColor","btnTitle","urlNavigation","useValidation"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"div",0),ns(1,"io-main-top",1),es(2,"div",2),es(3,"div",3),es(4,"io-btn",4),ls("btnClick",(function(){return t.resetFormToCLT()})),ts(),ts(),Jr(5,Dce,366,100,"div",5),ts(),Jr(6,Ice,3,12,"div",6),ts(),es(7,"io-point-rule-modal-question-card",7),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Zr("formGroup",t.pointRuleForm),Bo(1),Zr("moduleName","point-rule")("titleTop",(null==t.pointRuleId?"Nova":"Editar")+" Regra do Ponto")("textTop2","Configure as horas noturnas, toler\xe2ncias, regime de horas, horas extras, op\xe7\xf5es de c\xe1lculo as horas e visualiza\xe7\xe3o do espelho ponto."),Bo(3),Zr("moduleName","point-rule")("action","")("btnClassList","btnSmall btnShort")("btnColor","btn-blue-bg")("btnText","Redefinir")("btnTitle","Redefinir")("useValidation",!1),Bo(1),Zr("ngIf",t.previewEnable),Bo(1),Zr("ngIf",t.previewEnable),Bo(1),Zr("showCard",t.questionCard)("questionCardType",t.questionCardType))},directives:[Hf,ip,eI,jD,sh,XQ,If,bp,Vf,vp,DE,kp,Of,FD,bM,sp,ah,ap,vm,ym,xm,Kle,qle,zle],styles:[".iconItem[_ngcontent-%COMP%]{z-index:1}.paddHere[_ngcontent-%COMP%]{padding-bottom:5px}.pointRuleTop[_ngcontent-%COMP%]{margin:0 0 30px}.pointRuleTop[_ngcontent-%COMP%]   .configName[_ngcontent-%COMP%]{width:100%;margin-right:40px}.pointRuleTop[_ngcontent-%COMP%]   .configName[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%}.pointRuleTop[_ngcontent-%COMP%]   .configDefault[_ngcontent-%COMP%]{max-width:200px;margin:0}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{width:100%;max-width:49%;padding:20px;margin:0 0 20px}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .relativePlace[_ngcontent-%COMP%]   .textAux[_ngcontent-%COMP%]{position:absolute;top:0;left:50%;color:var(--cl-gray)}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .left-part[_ngcontent-%COMP%]{flex:1}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .left-part[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]{justify-content:start}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .right-part[_ngcontent-%COMP%]{flex:1;margin-left:50px}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding:5px 0 5px 5px}.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]   .extraHourLine[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:nth-child(2){text-align:center}.over-time-form[_ngcontent-%COMP%]{margin:0 0 10px}.over-time-form[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]{align-items:inherit}.over-time-form[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;max-width:60px}.over-time-form[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]:first-child{max-width:40px;justify-content:start;padding-left:2px}.over-time-form[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]:nth-child(3), .over-time-form[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]:nth-child(5){max-width:75px}.over-time-form[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]:nth-child(7){max-width:90px}.over-time-form.month-week[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]:first-child{max-width:130px}.over-time-form[_ngcontent-%COMP%]   .over-time-grid[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]{border-bottom:1px solid var(--primary-color)}.over-time-form[_ngcontent-%COMP%]   .over-time-grid[_ngcontent-%COMP%]   .over-time-line[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--background-color)}.over-time-form[_ngcontent-%COMP%]   .over-time-grid[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]{min-height:24px}.over-time-form[_ngcontent-%COMP%]   .over-time-grid[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%;height:100%;text-align:center;padding:0;border:none;margin:0}.over-time-form[_ngcontent-%COMP%]   .over-time-grid[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:5px}.over-time-form.label-form[_ngcontent-%COMP%]{margin:0 0 4px}.over-time-form.label-form[_ngcontent-%COMP%]   .over-time-item[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:50px;text-align:center;padding:0;margin:0;border-bottom:1px solid var(--cl-gray-dark)}.sub-field-space[_ngcontent-%COMP%]{min-height:15px;padding-left:20px}.sub-field-space[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:50px}@media (max-width:780px){.cardBox[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{max-width:500px;margin:0 auto 20px}}"]}),Nce),jce=((Bce=function(){return d((function e(t,n,i,o){c(this,e),this.router=t,this.databaseService=n,this.storageService=i,this.titleService=o,this.pointRuleId="",this.titleService.setTitle("Regra do ponto - Cadastro")}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Bce)($r(yM),$r(tT),$r(YP),$r(hL))},Bce.\u0275cmp=Ot({type:Bce,selectors:[["io-point-rule-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-point-rule-form"),ts(),ts())},directives:[Rce],styles:[""]}),Bce),zce=((Ece=function(){return d((function e(t,n,i,o){c(this,e),this.router=t,this.databaseService=n,this.storageService=i,this.titleService=o,this.pointRuleId="",this.titleService.setTitle("Regra do ponto - edi\xe7\xe3o");var a=this.router.getCurrentNavigation();a.extras.state?this.pointRuleId=a.extras.state.pointRuleId:this.router.navigate(["/point-rule"]).then((function(){return!1}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Ece)($r(yM),$r(tT),$r(YP),$r(hL))},Ece.\u0275cmp=Ot({type:Ece,selectors:[["io-point-rule-page-update"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"pointRuleId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-point-rule-form",2),ts(),ts()),2&e&&(Bo(2),Zr("pointRuleId",t.pointRuleId))},directives:[Rce],styles:[""]}),Ece),Vce=((Ace=function(){return d((function e(){c(this,e),this.showModal=!0,this.clearFilter=!1,this.selectedFilters=new Mc,this.hideFilter=new Mc,this.inconsistencyOption=[{id:"no_justify",description:"Falta n\xe3o justificada"},{id:"vacation",description:"Ponto durante as f\xe9rias"},{id:"dsr",description:"Ponto durante o DSR"},{id:"holiday",description:"Ponto durante o feriado"},{id:"absence",description:"Ponto durante a aus\xeancia"},{id:"out_journey",description:"Ponto fora da jornada"},{id:"interjourney",description:"Ponto interjornada"},{id:"intrajourney",description:"Ponto intrajornada"},{id:"no_location",description:"Ponto Sem localiza\xe7\xe3o"},{id:"fake_gps",description:"Ponto usando poss\xedvel falso GPS"}],this.pointInconsistencyListSelected=[],this.pointInconsistencyListSelectedReset=[],this.resetFilterEmitter=new Mc}),[{key:"ngOnChanges",value:function(){this.showModal&&this.resetSelected(),this.clearFilter&&this.resetFilter()}},{key:"toInconsistencyList",value:function(e){var t=this;this.pointInconsistencyListSelected=[],e.forEach((function(e){t.pointInconsistencyListSelected.push(e)}))}},{key:"resetFilter",value:function(){this.pointInconsistencyListSelected=[],this.resetFilterEmitter.emit()}},{key:"resetSelected",value:function(){var e=this;this.pointInconsistencyListSelectedReset.forEach((function(t){e.pointInconsistencyListSelected.push(t)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){var e=this;this.pointInconsistencyListSelectedReset=[],this.pointInconsistencyListSelected.forEach((function(t){-1==e.pointInconsistencyListSelectedReset.indexOf(t)&&e.pointInconsistencyListSelectedReset.push(t)})),this.selectedFilters.emit({inconsistency:this.pointInconsistencyListSelectedReset})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Ace)},Ace.\u0275cmp=Ot({type:Ace,selectors:[["io-report-modal-filter-inconsistency"]],inputs:{showModal:"showModal",clearFilter:"clearFilter"},outputs:{selectedFilters:"selectedFilters",hideFilter:"hideFilter"},features:[dl],decls:11,vars:12,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[1,"relativePlace"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Inconsist\xeancias"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"div",5),es(8,"io-multiselect",6),ls("listSelectedId",(function(e){return t.toInconsistencyList(e)})),ts(),ts(),ts(),es(9,"div",7),es(10,"io-btn",8),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showModal),Bo(8),Zr("title","Inconsist\xeancias")("list",t.inconsistencyOption)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[""]}),Ace),Hce=((Fce=function(){return d((function e(){c(this,e),this.showModal=!0,this.clearFilter=!1,this.selectedFilters=new Mc,this.hideFilter=new Mc,this.inconsistencyOption=[{id:"intrajourney",description:"Intrajornada"},{id:"interjourney",description:"Interjornada"},{id:"over_time_reference",description:"Hora extra"}],this.inconsistencyCompTimeListSelected=[],this.inconsistencyCompTimeListSelectedReset=[],this.resetFilterEmitter=new Mc}),[{key:"ngOnChanges",value:function(){this.showModal&&this.resetSelected(),this.clearFilter&&this.resetFilter()}},{key:"toInconsistencyList",value:function(e){var t=this;this.inconsistencyCompTimeListSelected=[],e.forEach((function(e){t.inconsistencyCompTimeListSelected.push(e)}))}},{key:"resetFilter",value:function(){this.inconsistencyCompTimeListSelected=[],this.resetFilterEmitter.emit()}},{key:"resetSelected",value:function(){var e=this;this.inconsistencyCompTimeListSelectedReset.forEach((function(t){e.inconsistencyCompTimeListSelected.push(t)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){var e=this;this.inconsistencyCompTimeListSelectedReset=[],this.inconsistencyCompTimeListSelected.forEach((function(t){-1==e.inconsistencyCompTimeListSelectedReset.indexOf(t)&&e.inconsistencyCompTimeListSelectedReset.push(t)})),this.selectedFilters.emit({inconsistency:this.inconsistencyCompTimeListSelectedReset})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Fce)},Fce.\u0275cmp=Ot({type:Fce,selectors:[["io-report-modal-filter-inconsistency-comp-time"]],inputs:{showModal:"showModal",clearFilter:"clearFilter"},outputs:{selectedFilters:"selectedFilters",hideFilter:"hideFilter"},features:[dl],decls:11,vars:12,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[1,"relativePlace"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Inconsist\xeancias"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"div",5),es(8,"io-multiselect",6),ls("listSelectedId",(function(e){return t.toInconsistencyList(e)})),ts(),ts(),ts(),es(9,"div",7),es(10,"io-btn",8),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showModal),Bo(8),Zr("title","Inconsist\xeancias")("list",t.inconsistencyOption)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[""]}),Fce);function Yce(e,t){if(1&e){var n=as();es(0,"li",13),es(1,"label",14),Gs(2),es(3,"input",15),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toBarrierList(e.value)})),ts(),ns(4,"span",16),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.text," "),Bo(1),Zr("checked",o.pointBarrierListSelected.indexOf(i.value)>=0)}}function qce(e,t){if(1&e){var n=as();es(0,"li",13),es(1,"label",14),Gs(2),es(3,"input",15),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toStatusList(e.value)})),ts(),ns(4,"span",16),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.text," "),Bo(1),Zr("checked",o.pointStatusListSelected.indexOf(i.value)>=0)}}function Uce(e,t){if(1&e){var n=as();es(0,"li",13),es(1,"label",14),Gs(2),es(3,"input",15),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toTypeList(e.value)})),ts(),ns(4,"span",16),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.text," "),Bo(1),Zr("checked",o.pointTypeListSelected.indexOf(i.value)>=0)}}function Wce(e,t){if(1&e){var n=as();es(0,"li",13),es(1,"label",14),Gs(2),es(3,"input",15),ls("change",(function(){mn(n);var e=t.$implicit;return fs().toJourneyList(e.value)})),ts(),ns(4,"span",16),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Qs("",i.text," "),Bo(1),Zr("checked",o.pointJourneyListSelected.indexOf(i.value)>=0)}}var Jce,Gce,$ce,Qce,Kce,Zce,Xce,eue=((Xce=function(){return d((function e(){c(this,e),this.showFilter=!0,this.clearFilter=!1,this.hideFilter=new Mc,this.selectedBarrier=new Mc,this.selectedStatus=new Mc,this.selectedType=new Mc,this.selectedFilters=new Mc,this.coverAll=!1,this.pointBarrierList=[{value:"1",text:"Dentro da cerca digital"},{value:"0",text:"Fora da cerca digital"}],this.pointBarrierListSelected=[],this.pointBarrierListSelectedReset=[],this.pointJourneyList=[{value:"1",text:"Dentro da escala de trabalho"},{value:"0",text:"Fora da escala de trabalho"}],this.pointJourneyListSelected=[],this.pointJourneyListSelectedReset=[],this.pointStatusList=[{value:"0",text:"Aprovado"},{value:"3",text:"Ajustado"},{value:"4",text:"Desconsidera\xe7\xe3o reprovada pelo funcion\xe1rio"},{value:"5",text:"Adicionado pelo funcion\xe1rio"},{value:"21",text:"Ajuste aguardando aprova\xe7\xe3o"},{value:"23",text:"Adicionado pelo funcion\xe1rio reprovado"},{value:"24",text:"Aguardando desconsidera\xe7\xe3o do funcion\xe1rio"},{value:"25",text:"Aguardando aprova\xe7\xe3o do gestor"},{value:"26",text:"Aguardando ajuste do funcion\xe1rio"},{value:"404",text:"Desconsiderado"}],this.pointStatusListSelected=[],this.pointStatusListSelectedReset=[],this.pointTypeList=[{value:"app",text:"Aplicativo individual"},{value:"multipoint",text:"Aplicativo multiponto"},{value:"changeOfShift",text:"Mudan\xe7a de turno"},{value:"multipointFaceRecognition",text:"Multiponto por reconhecimento facial"},{value:"manager",text:"Ponto adicionado pelo gestor"},{value:"faceRecognition",text:"Ponto por reconhecimento facial"},{value:"intelbras",text:"Ponto registrado pelo Intelbras"},{value:"web",text:"Ponto registrado no navegador"},{value:"preAssigned",text:"Pr\xe9-assinalado"}],this.pointTypeListSelected=[],this.pointTypeListSelectedReset=[]}),[{key:"ngOnChanges",value:function(){this.showFilter&&this.resetSelected(),this.clearFilter&&this.resetFilter()}},{key:"resetFilter",value:function(){this.pointBarrierListSelected=[],this.pointJourneyListSelected=[],this.pointStatusListSelected=[],this.pointTypeListSelected=[]}},{key:"resetSelected",value:function(){var e=this;this.pointBarrierListSelectedReset.forEach((function(t){e.pointBarrierListSelected.push(t)})),this.pointJourneyListSelectedReset.forEach((function(t){e.pointJourneyListSelected.push(t)})),this.pointStatusListSelectedReset.forEach((function(t){e.pointStatusListSelected.push(t)})),this.pointTypeListSelectedReset.forEach((function(t){e.pointTypeListSelected.push(t)}))}},{key:"toBarrierList",value:function(e){this.pointBarrierListSelected.indexOf(e)>=0?this.pointBarrierListSelected=this.pointBarrierListSelected.filter((function(t){return t!=e})):this.pointBarrierListSelected.push(e)}},{key:"toJourneyList",value:function(e){this.pointJourneyListSelected.indexOf(e)>=0?this.pointJourneyListSelected=this.pointJourneyListSelected.filter((function(t){return t!=e})):this.pointJourneyListSelected.push(e)}},{key:"toStatusList",value:function(e){this.pointStatusListSelected.indexOf(e)>=0?this.pointStatusListSelected=this.pointStatusListSelected.filter((function(t){return t!=e})):this.pointStatusListSelected.push(e)}},{key:"toTypeList",value:function(e){this.pointTypeListSelected.indexOf(e)>=0?this.pointTypeListSelected=this.pointTypeListSelected.filter((function(t){return t!=e})):this.pointTypeListSelected.push(e)}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){var e=this;this.pointBarrierListSelectedReset=[],this.pointBarrierListSelected.forEach((function(t){-1==e.pointBarrierListSelectedReset.indexOf(t)&&e.pointBarrierListSelectedReset.push(t)})),this.pointJourneyListSelectedReset=[],this.pointJourneyListSelected.forEach((function(t){-1==e.pointJourneyListSelectedReset.indexOf(t)&&e.pointJourneyListSelectedReset.push(t)})),this.pointStatusListSelectedReset=[],this.pointStatusListSelected.forEach((function(t){-1==e.pointStatusListSelectedReset.indexOf(t)&&e.pointStatusListSelectedReset.push(t)})),this.pointTypeListSelectedReset=[],this.pointTypeListSelected.forEach((function(t){-1==e.pointTypeListSelectedReset.indexOf(t)&&e.pointTypeListSelectedReset.push(t)})),this.selectedFilters.emit({barrier:this.pointBarrierListSelectedReset,journey:this.pointJourneyListSelectedReset,status:this.pointStatusListSelectedReset,type:this.pointTypeListSelectedReset})}},{key:"closeFilter",value:function(){this.hideFilter.emit(),this.resetFilter()}}])}()).\u0275fac=function(e){return new(e||Xce)},Xce.\u0275cmp=Ot({type:Xce,selectors:[["io-report-modal-filter-point"]],inputs:{showFilter:"showFilter",clearFilter:"clearFilter"},outputs:{hideFilter:"hideFilter",selectedBarrier:"selectedBarrier",selectedStatus:"selectedStatus",selectedType:"selectedType",selectedFilters:"selectedFilters"},features:[dl],decls:27,vars:11,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[1,"relativePlace"],[1,"listBox"],[1,"borderBottom"],[1,"sizeB","fontBold"],["class","flex start spcDesk",4,"ngFor","ngForOf"],[1,"borderBottom","mrgT2"],[1,"flex","center"],[1,"btnShort","btnSmall",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"flex","start","spcDesk"],[1,"radioBox","hd1","mrgR1","sizeC"],["type","checkbox",1,"radioBoxInput",3,"checked","change"],[1,"checkmark"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro de ponto"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"div",5),es(8,"ul",6),es(9,"li",7),es(10,"h2",8),Gs(11,"Cerca digital"),ts(),ts(),Jr(12,Yce,5,2,"li",9),es(13,"li",10),es(14,"h2",8),Gs(15,"Status:"),ts(),ts(),Jr(16,qce,5,2,"li",9),es(17,"li",10),es(18,"h2",8),Gs(19,"Tipo:"),ts(),ts(),Jr(20,Uce,5,2,"li",9),es(21,"li",10),es(22,"h2",8),Gs(23,"Escala:"),ts(),ts(),Jr(24,Wce,5,2,"li",9),ts(),ts(),ts(),es(25,"div",11),es(26,"io-btn",12),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(12),Zr("ngForOf",t.pointBarrierList),Bo(4),Zr("ngForOf",t.pointStatusList),Bo(4),Zr("ngForOf",t.pointTypeList),Bo(4),Zr("ngForOf",t.pointJourneyList),Bo(2),Zr("moduleName","report")("action","")("btnColor","btn-blue")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,ah,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}.listBox[_ngcontent-%COMP%]{position:relative;padding:0;max-height:600px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:auto;padding:0;margin:0 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]{margin:20px 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]:first-child{margin-top:0}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox.hd1[_ngcontent-%COMP%]{height:auto}"]}),Xce),tue=((Zce=function(){return d((function e(){c(this,e),this.showFilter=!1,this.hideFilter=new Mc,this.selectedFilters=new Mc,this.arrayListAdjustment=[],this.adjustmentListSelected=[],this.resetFilterEmitter=new Mc,this.coverAll=!1,this.adjustmentList=[{id:"approved",description:"Aprovado"},{id:"disapproved",description:"Reprovado"},{id:"pending",description:"Pendente"}]}),[{key:"ngOnChanges",value:function(){}},{key:"resetFilter",value:function(){this.adjustmentListSelected=[],this.resetFilterEmitter.emit()}},{key:"setAbsencesList",value:function(e){var t=this;this.adjustmentListSelected=[],e.forEach((function(e){t.adjustmentListSelected.push(e)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){this.selectedFilters.emit({adjustmentTypeFilter:this.adjustmentListSelected})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Zce)},Zce.\u0275cmp=Ot({type:Zce,selectors:[["io-report-modal-filter-adjustment"]],inputs:{showFilter:"showFilter"},outputs:{hideFilter:"hideFilter",selectedFilters:"selectedFilters"},features:[dl],decls:10,vars:12,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro ajustes"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"io-multiselect",5),ls("listSelectedId",(function(e){return t.setAbsencesList(e)})),ts(),ts(),es(8,"div",6),es(9,"io-btn",7),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(7),Zr("title","Aus\xeancias")("list",t.adjustmentList)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}.listBox[_ngcontent-%COMP%]{position:relative;padding:0;max-height:600px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:auto;padding:0;margin:0 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]{margin:20px 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]:first-child{margin-top:0}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox.hd1[_ngcontent-%COMP%]{height:auto}"]}),Zce),nue=((Kce=function(){return d((function e(){c(this,e),this.showFilter=!0,this.clearFilter=!1,this.hideFilter=new Mc,this.selectedintermittent=new Mc,this.selectedFilters=new Mc,this.coverAll=!1,this.intermittentStatus=[{id:"accept",description:"Aceito"},{id:"refused",description:"Recusado"},{id:"pending",description:"Pendente"},{id:"expired",description:"Expirado"}],this.intermittentStatusSelected=[],this.intermittentStatusSelectedReset=[],this.resetFilterEmitter=new Mc}),[{key:"ngOnChanges",value:function(){this.showFilter&&this.resetSelected(),this.clearFilter&&this.resetFilter()}},{key:"intermittentList",value:function(e){var t=this;this.intermittentStatusSelected=[],e.forEach((function(e){t.intermittentStatusSelected.push(e)}))}},{key:"resetFilter",value:function(){this.intermittentStatusSelected=[],this.resetFilterEmitter.emit()}},{key:"resetSelected",value:function(){var e=this;this.intermittentStatusSelectedReset.forEach((function(t){e.intermittentStatusSelected.push(t)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){var e=this;this.intermittentStatusSelectedReset=[],this.intermittentStatusSelected.forEach((function(t){-1==e.intermittentStatusSelectedReset.indexOf(t)&&e.intermittentStatusSelectedReset.push(t)})),this.selectedFilters.emit({intermittentTypeFilter:this.intermittentStatusSelectedReset})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Kce)},Kce.\u0275cmp=Ot({type:Kce,selectors:[["io-report-modal-filter-intermittentCall"]],inputs:{showFilter:"showFilter",clearFilter:"clearFilter"},outputs:{hideFilter:"hideFilter",selectedintermittent:"selectedintermittent",selectedFilters:"selectedFilters"},features:[dl],decls:11,vars:12,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[1,"relativePlace"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro convoca\xe7\xe3o"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"div",5),es(8,"io-multiselect",6),ls("listSelectedId",(function(e){return t.intermittentList(e)})),ts(),ts(),ts(),es(9,"div",7),es(10,"io-btn",8),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(8),Zr("title","Inconsist\xeancias")("list",t.intermittentStatus)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}.listBox[_ngcontent-%COMP%]{position:relative;padding:0;max-height:600px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:auto;padding:0;margin:0 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]{margin:20px 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]:first-child{margin-top:0}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox.hd1[_ngcontent-%COMP%]{height:auto}"]}),Kce),iue=((Qce=function(){return d((function e(){c(this,e),this.checkbox1=!0,this.checkbox2=!1,this.checkbox3=!1,this.statusGuest=null,this.showFilter=!0,this.hideFilter=new Mc,this.selectedStatus=new Mc,this.selectedFilters=new Mc,this.coverAll=!1,this.guestSelect=[],this.guestFilterEmitter=new Mc}),[{key:"ngOnChanges",value:function(){}},{key:"resetFilter",value:function(){this.guestSelect=[],this.guestFilterEmitter.emit()}},{key:"toggleCheckbox",value:function(e){1===e?(this.checkbox1=!0,this.checkbox2=!1,this.checkbox3=!1,this.statusGuest=1):2===e?(this.checkbox1=!1,this.checkbox2=!0,this.checkbox3=!1,this.statusGuest=0):3===e&&(this.checkbox1=!1,this.checkbox2=!1,this.checkbox3=!0,this.statusGuest=3)}},{key:"emitList",value:function(){this.selectedFilters.emit({guestStatus:this.statusGuest}),this.closeFilter()}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Qce)},Qce.\u0275cmp=Ot({type:Qce,selectors:[["io-report-modal-filter-guest"]],inputs:{showFilter:"showFilter"},outputs:{hideFilter:"hideFilter",selectedStatus:"selectedStatus",selectedFilters:"selectedFilters"},features:[dl],decls:22,vars:10,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"mrgB2"],[1,"block"],[1,"item","radioBox","sizeC","mrgB1"],["type","checkbox",1,"radioBoxInput",3,"checked","click"],[1,"checkmark"],[1,"mrgL2","mrgR2"],[1,"item","radioBox","sizeC"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro de convidado"),ts(),ns(4,"div",3),es(5,"div",4),es(6,"label",5),Gs(7,"Ativo "),es(8,"input",6),ls("click",(function(){return t.toggleCheckbox(1)})),ts(),ns(9,"span",7),ts(),ns(10,"div",8),es(11,"label",5),Gs(12,"Inativo "),es(13,"input",6),ls("click",(function(){return t.toggleCheckbox(2)})),ts(),ns(14,"span",7),ts(),es(15,"label",9),Gs(16,"Todos "),es(17,"input",6),ls("click",(function(){return t.toggleCheckbox(3)})),ts(),ns(18,"span",7),ts(),ns(19,"div",8),ts(),ts(),es(20,"div",10),es(21,"io-btn",11),ls("btnClick",(function(){return t.emitList()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(8),Zr("checked",1==t.checkbox1),Bo(5),Zr("checked",1==t.checkbox2),Bo(4),Zr("checked",1==t.checkbox3),Bo(4),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}.listBox[_ngcontent-%COMP%]{position:relative;padding:0;max-height:600px}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{height:auto;padding:0;margin:0 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]{margin:20px 0 10px}.listBox[_ngcontent-%COMP%]   li.borderBottom[_ngcontent-%COMP%]:first-child{margin-top:0}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .radioBox.hd1[_ngcontent-%COMP%]{height:auto}"]}),Qce),oue=(($ce=function(){return d((function e(t,n){var i=this;c(this,e),this.functionsService=t,this.absenceDatabase=n,this.showFilter=!1,this.hideFilter=new Mc,this.selectedFilters=new Mc,this.errorFilterMessage="has no permission",this.absencesList=[],this.arrayListAbsences=[],this.absencesListSelected=[],this.resetFilterEmitter=new Mc,this.absenceTypeList=[{id:1,description:"DSR"},{id:2,description:"suspens\xe3o diciplinar"},{id:3,description:"Atestado"},{id:4,description:"F\xe9rias"},{id:5,description:"Folga / Compensa\xe7\xe3o"},{id:6,description:"Dispensa Legal"},{id:7,description:"Benef\xedcio previdenci\xe1rio"},{id:8,description:"Outros"},{id:9,description:"Abono"}],this.absenceDatabase.getFilterAbsenceTypeList({onlyActives:!0},(function(e){e.data===i.errorFilterMessage&&(i.arrayListAbsences=[],i.showFilter=!1),e.error||e.data==i.errorFilterMessage||e.data.absenceTypeList.length>=0&&(e.data.absenceTypeList.forEach((function(e){i.absenceTypeList.push(e)})),i.arrayListAbsences=i.functionsService.arrayReOder(i.absenceTypeList,"description"))}))}),[{key:"ngOnChanges",value:function(){}},{key:"resetFilter",value:function(){this.absencesListSelected=[],this.resetFilterEmitter.emit()}},{key:"setAbsencesList",value:function(e){var t=this;this.absencesListSelected=[],e.forEach((function(e){t.absencesListSelected.push(e)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){this.selectedFilters.emit({absencesIdList:this.absencesListSelected})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||$ce)($r(zP),$r(aT))},$ce.\u0275cmp=Ot({type:$ce,selectors:[["io-report-modal-filter-absences"]],inputs:{showFilter:"showFilter"},outputs:{hideFilter:"hideFilter",selectedFilters:"selectedFilters"},features:[dl],decls:10,vars:12,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro aus\xeancias"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"io-multiselect",5),ls("listSelectedId",(function(e){return t.setAbsencesList(e)})),ts(),ts(),es(8,"div",6),es(9,"io-btn",7),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(7),Zr("title","Aus\xeancias")("list",t.arrayListAbsences)("listItemIdField","id")("listItemNameField","description")("reset",t.resetFilterEmitter),Bo(2),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}"]}),$ce),aue=((Gce=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteTeam",value:function(e,t){this.databaseService.delete("/team/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getTeam",value:function(e,t){this.databaseService.get("/team/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getTeamList",value:function(e){this.databaseService.get("/team",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getFilterTeamList",value:function(e){this.databaseService.get("/team/filterIndex/",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getTeamCollaboratorList",value:function(e,t){this.databaseService.get("/team/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getTeamCollaboratorListOut",value:function(e,t){this.databaseService.get("/team/"+e+"/collaboratorListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postTeam",value:function(e,t){this.databaseService.post("/team",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postTeamCollaboratorListOut",value:function(e,t,n){this.databaseService.post("/team/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postTeamRemoveCollaborator",value:function(e,t,n){this.databaseService.post("/team/"+e+"/removeCollaborator",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putTeam",value:function(e,t,n){this.databaseService.put("/team/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Gce)(ut(tT))},Gce.\u0275prov=Se({token:Gce,factory:Gce.\u0275fac,providedIn:"root"}),Gce),rue=((Jce=function(){return d((function e(t,n){var i=this;c(this,e),this.functionsService=t,this.teamDatabase=n,this.showFilter=!1,this.hideFilter=new Mc,this.selectedFilters=new Mc,this.errorFilterMessage="has no permission",this.arrayTeamList=[],this.teamListSelected=[],this.resetFilterEmitter=new Mc,this.teamTypeList=[],this.teamDatabase.getFilterTeamList((function(e){e.data===i.errorFilterMessage&&(i.teamTypeList=[],i.showFilter=!1),e.error||e.data==i.errorFilterMessage||(i.teamTypeList=e.data.list||[]),i.arrayTeamList=i.functionsService.arrayReOder(i.teamTypeList,"name")}))}),[{key:"ngOnChanges",value:function(){}},{key:"resetFilter",value:function(){this.teamListSelected=[],this.resetFilterEmitter.emit()}},{key:"setTeamList",value:function(e){var t=this;this.teamListSelected=[],e.forEach((function(e){t.teamListSelected.push(e)}))}},{key:"finishSelection",value:function(){this.emitList(),this.closeFilter()}},{key:"emitList",value:function(){this.selectedFilters.emit({teamIdList:this.teamListSelected})}},{key:"closeFilter",value:function(){this.hideFilter.emit()}}])}()).\u0275fac=function(e){return new(e||Jce)($r(zP),$r(aue))},Jce.\u0275cmp=Ot({type:Jce,selectors:[["io-report-modal-filter-team"]],inputs:{showFilter:"showFilter"},outputs:{hideFilter:"hideFilter",selectedFilters:"selectedFilters"},features:[dl],decls:10,vars:12,consts:[[3,"showFilter","hideFilter"],[1,"minHeightBox","mrgB1"],[1,"sizeA","cl-blue","mrgB1","fontBold","fontUp"],[1,"sizeC","cl-blue","mrgB1","clickPlace","subline",3,"click"],[1,"mrgB2"],[3,"title","list","listItemIdField","listItemNameField","reset","listSelectedId"],[1,"flex","center"],[1,"btnSmall","btnShort",3,"moduleName","btnColor","btnClassList","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-filter-box",0),ls("hideFilter",(function(){return t.closeFilter()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Filtro equipe"),ts(),es(4,"span",3),ls("click",(function(){return t.resetFilter()})),Gs(5,"Limpar filtro"),ts(),ns(6,"div",4),es(7,"io-multiselect",5),ls("listSelectedId",(function(e){return t.setTeamList(e)})),ts(),ts(),es(8,"div",6),es(9,"io-btn",7),ls("btnClick",(function(){return t.finishSelection()})),ts(),ts(),ts()),2&e&&(Zr("showFilter",t.showFilter),Bo(7),Zr("title","Equipe")("list",t.teamTypeList)("listItemIdField","id")("listItemNameField","name")("reset",t.resetFilterEmitter),Bo(2),Zr("moduleName","")("btnColor","btn-blue")("btnClassList","btnSmall btnShort")("btnText","Confirmar")("btnTitle","Confirmar")("useValidation",!1))},directives:[Tz,Fz,jD],styles:[".subline[_ngcontent-%COMP%]{text-decoration:underline}"]}),Jce);function sue(e,t){if(1&e){var n=as();es(0,"io-collaborator-filter",13),ls("selectedFilters",(function(e){return mn(n),fs().setFilterCollaborator(e)})),ts()}if(2&e){var i=fs();Zr("filterText","Filtro de funcion\xe1rios")("showCollaboratorStatusList",!0)("hideBankTimeOption","overTime"==i.reportSelected.type)}}function lue(e,t){if(1&e){var n=as();es(0,"div",14),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs().showModalFilterGuest()})),es(3,"p",17),Gs(4,"Filtro de convidado"),ts(),ns(5,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs();Bo(5),Zr("icon",i.iconSolidService.faFilter)}}function cue(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",25),es(2,"div",26),es(3,"input",27),ls("change",(function(){return mn(n),fs(2).verifyHour("hourFilter")})),ts(),es(4,"label",28),Gs(5,"*Tempo m\xednimo de HE"),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("formGroup",i.overTimeFormData),Bo(2),Zr("formControlName","hourFilter")("dropSpecialCharacters",!1)}}function uue(e,t){if(1&e){var n=as();es(0,"div"),es(1,"div",25),es(2,"div",26),es(3,"input",29),ls("change",(function(){return mn(n),fs(2).verifyHour("hourFilter")})),ts(),es(4,"label",28),Gs(5,"*Horas trabalhadas a partir de"),ts(),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("formGroup",i.overTimeFormData),Bo(2),Zr("formControlName","hourFilter")("dropSpecialCharacters",!1)}}function due(e,t){1&e&&ns(0,"div")}function hue(e,t){if(1&e){var n=as();es(0,"div",30),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showFilterInconsistencyPoint()})),es(3,"p",17),Gs(4,"Filtro de inconsist\xeancia"),ts(),Jr(5,due,1,0,"div",31),ns(6,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("ngIf","inconsistencies"===i.reportSelected.type)("ngIfThen",i.showFilterInconsistencyPointFirst()),Bo(1),Zr("icon",i.iconSolidService.faFilter)}}function fue(e,t){1&e&&ns(0,"div")}function mue(e,t){if(1&e){var n=as();es(0,"div",30),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showFilterInconsistencyCompTime()})),es(3,"p",17),Gs(4,"Filtro de inconsist\xeancia"),ts(),Jr(5,fue,1,0,"div",7),ns(6,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("ngIf","inconsistenciesCompTime"===i.reportSelected.type),Bo(1),Zr("icon",i.iconSolidService.faFilter)}}function pue(e,t){if(1&e){var n=as();es(0,"div",14),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showModalFilterPoint()})),es(3,"p",17),Gs(4,"Filtro de ponto"),ts(),ns(5,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("icon",i.iconSolidService.faFilter)}}function gue(e,t){if(1&e){var n=as();es(0,"div",14),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showModalFilterAdjustment()})),es(3,"p",17),Gs(4,"Filtro de ajustes"),ts(),ns(5,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("icon",i.iconSolidService.faFilter)}}function vue(e,t){if(1&e){var n=as();es(0,"div",14),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showModalFilterAbsences()})),es(3,"p",17),Gs(4,"Filtro de aus\xeancias"),ts(),ns(5,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("icon",i.iconSolidService.faFilter)}}function yue(e,t){if(1&e){var n=as();es(0,"div",32),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showModalFilterIntermittent()})),es(3,"p",17),Gs(4,"Filtro de convoca\xe7\xe3o"),ts(),ns(5,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("icon",i.iconSolidService.faFilter)}}function bue(e,t){if(1&e){var n=as();es(0,"div"),es(1,"io-datepicker",33),ls("dateSelectedEN",(function(e){return mn(n),fs(2).setDateSelected(e)})),ts(),ts()}if(2&e){var i=fs(2);Bo(1),Zr("labelText","Dia")("startDate",i.dateSelected)}}function _ue(e,t){if(1&e){var n=as();es(0,"label",42),Gs(1,"EXCEL "),es(2,"input",40),ls("click",(function(){return mn(n),fs(3).checkFormatDownload("xlsx")})),ts(),ns(3,"span",41),ts()}if(2&e){var i=fs(3);Bo(2),Zr("checked",i.checkMarkOption)}}function kue(e,t){if(1&e){var n=as();es(0,"label",42),Gs(1,"CSV "),es(2,"input",40),ls("click",(function(){return mn(n),fs(3).checkFormatDownload("csv")})),ts(),ns(3,"span",41),ts()}if(2&e){var i=fs(3);Bo(2),Zr("checked",i.checkMarkOption)}}function Cue(e,t){if(1&e){var n=as();es(0,"div",34),es(1,"p",35),Gs(2,"Selecione o formato do relat\xf3rio:"),ts(),es(3,"div",36),Jr(4,_ue,4,1,"label",37),Jr(5,kue,4,1,"label",37),ns(6,"div",38),es(7,"label",39),Gs(8,"PDF "),es(9,"input",40),ls("click",(function(){return mn(n),fs(2).checkFormatDownload("pdf")})),ts(),ns(10,"span",41),ts(),ns(11,"div",38),ts(),ts()}if(2&e){var i=fs(2);Bo(4),Zr("ngIf","deduceHours"!=i.reportSelected.type),Bo(1),Zr("ngIf","deduceHours"===i.reportSelected.type),Bo(4),Zr("checked",!i.checkMarkOption)}}function wue(e,t){if(1&e){var n=as();es(0,"div",34),es(1,"p",35),Gs(2,"Selecione o formato do relat\xf3rio:"),ts(),es(3,"div",36),es(4,"label",42),Gs(5,"EXCEL "),es(6,"input",40),ls("click",(function(){mn(n);var e=fs(2);return e.checkFormatDownload("xlsx"),e.toggleCheckbox(1)})),ts(),ns(7,"span",41),ts(),ns(8,"div",38),es(9,"label",39),Gs(10,"PDF "),es(11,"input",40),ls("click",(function(){mn(n);var e=fs(2);return e.checkFormatDownload("pdf"),e.toggleCheckbox(2)})),ts(),ns(12,"span",41),ts(),ns(13,"div",38),ts(),ts()}if(2&e){var i=fs(2);Bo(6),Zr("checked",1==i.checkbox1),Bo(5),Zr("checked",1==i.checkbox2)}}function xue(e,t){if(1&e){var n=as();es(0,"div",43),es(1,"div",15),es(2,"div",16),ls("click",(function(){return mn(n),fs(2).showModalFilterTeam()})),es(3,"p",17),Gs(4,"Filtro de equipes"),ts(),ns(5,"fa-icon",18),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(5),Zr("icon",i.iconSolidService.faFilter)}}function Mue(e,t){if(1&e){var n=as();es(0,"label",39),Gs(1,"TELA "),es(2,"input",40),ls("click",(function(){mn(n);var e=fs(3);return e.checkFormatDownload("screen"),e.toggleCheckbox(3)})),ts(),ns(3,"span",41),ts()}if(2&e){var i=fs(3);Bo(2),Zr("checked",1==i.checkbox3)}}function Sue(e,t){if(1&e&&(es(0,"div",34),es(1,"p",35),Gs(2,"Visualizar relat\xf3rio em tela:"),ts(),es(3,"div",44),Jr(4,Mue,4,1,"label",45),ts(),ts()),2&e){var n=fs(2);Bo(4),Zr("ngIf","pointDay"===n.reportSelected.type)}}function Pue(e,t){1&e&&(es(0,"div",46),es(1,"p",35),Gs(2,"Selecione o tipo de evento:"),ts(),es(3,"div",36),es(4,"label",42),Gs(5,"Visitante "),ns(6,"input",47),ns(7,"span",41),ts(),ns(8,"div",48),es(9,"label",39),Gs(10,"Funcion\xe1rio "),ns(11,"input",49),ns(12,"span",41),ts(),ts(),ts()),2&e&&(Zr("formGroup",fs(2).integrationEventType),Bo(6),Zr("formControlName","guest"),Bo(5),Zr("formControlName","collaborator"))}function Tue(e,t){if(1&e){var n=as();es(0,"div",34),es(1,"p",35),Gs(2,"Selecione o tipo de relat\xf3rio:"),ts(),es(3,"div",36),es(4,"label",42),Gs(5,"Anal\xedtico "),es(6,"input",40),ls("click",(function(){return mn(n),fs(2).checkDownloadReportType("analytic")})),ts(),ns(7,"span",41),ts(),ns(8,"div",48),es(9,"label",39),Gs(10,"Sint\xe9tico "),es(11,"input",50),ls("click",(function(){return mn(n),fs(2).checkDownloadReportType("synthetic")})),ts(),ns(12,"span",41),ts(),ts(),ts()}if(2&e){var i=fs(2);Bo(6),Zr("checked",i.checkReportDownloadType),Bo(5),Zr("checked",!i.checkReportDownloadType)}}function Oue(e,t){if(1&e&&(es(0,"div"),Jr(1,cue,6,3,"div",7),Jr(2,uue,6,3,"div",7),Jr(3,hue,7,3,"div",19),Jr(4,mue,7,2,"div",19),Jr(5,pue,6,1,"div",5),Jr(6,gue,6,1,"div",5),Jr(7,vue,6,1,"div",5),Jr(8,yue,6,1,"div",20),Jr(9,bue,2,2,"div",7),es(10,"div",21),Jr(11,Cue,12,3,"div",22),Jr(12,wue,14,2,"div",22),Jr(13,xue,6,1,"div",23),Jr(14,Sue,5,1,"div",22),Jr(15,Pue,13,3,"div",24),Jr(16,Tue,13,2,"div",22),ts(),ts()),2&e){var n=fs();Bo(1),Zr("ngIf","overTime"===n.reportSelected.type),Bo(1),Zr("ngIf","workedTime"===n.reportSelected.type),Bo(1),Zr("ngIf","inconsistencies"===n.reportSelected.type),Bo(1),Zr("ngIf","inconsistenciesCompTime"===n.reportSelected.type),Bo(1),Zr("ngIf","point"===n.reportSelected.type),Bo(1),Zr("ngIf","adjustment"===n.reportSelected.type),Bo(1),Zr("ngIf","absences"===n.reportSelected.type),Bo(1),Zr("ngIf","intermittentCall"===n.reportSelected.type),Bo(1),Zr("ngIf","pointDay"===n.reportSelected.type),Bo(2),Zr("ngIf","pointDay"!=n.reportSelected.type),Bo(1),Zr("ngIf","pointDay"===n.reportSelected.type),Bo(1),Zr("ngIf","team"===n.reportSelected.type),Bo(1),Zr("ngIf","pointDay"===n.reportSelected.type),Bo(1),Zr("ngIf","integrationEvents"==n.reportSelected.type),Bo(1),Zr("ngIf",n.includesAnalyticReport(n.reportSelected.type))}}var Lue,Due=((Lue=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.functionsService=t,this.validService=n,this.iconSolidService=i,this.formBuilder=o,this.reportDatabase=a,this.router=r,this.beginDate=null,this.endDate=null,this.reportSelected=null,this.showModal=!0,this.hideModal=new Mc,this.dataParams=[],this.exportFormat="pdf",this.filterBarrierSelected=[],this.filterCollaboratorStatusList=["1"],this.filterDepartmentSelected=[],this.filterInconsistencyPointFirst=!1,this.filterInconsistencySelected=[],this.filterInconsistencyCompTimeSelected=[],this.filterAbsencesSelected=[],this.filterTeamSelected=[],this.filterJourneySelected=[],this.adjustmentListSelected=[],this.intermittentSelected=[],this.guestStatusSelected=1,this.filterPointStatusSelected=[],this.filterRegimeSelected=[],this.filterTypeSelected=[],this.filterUnitSelected=[],this.filterCostCenterSelected=[],this.hasAnalyticReport=["overTime","negativeTime","compTime","nightTime","absences","workedTime","workedTimePerUnit","deduceHours"],this.reportTypeToDownload="_synthetic",this.arrayReportDefault=["absences","overTime","negativeTime","nightTime","inconsistencies","inconsistenciesCompTime","point","pointDay","turnover","historicChangeJourney","birthDay","mealVouchers","bankTime","collaboratorByManager","collaborator","onDuty","adjustment","localization","intermittentCall","team","missingPoint","barrier","workedTime","unitHistoric","workedTimePerUnit","integrationEvents","compTime","guest","deduceHours","mealVouchersWithDiscount","interjourney","intrajourney"],this.checkMarkOption=!1,this.checkbox1=!1,this.checkbox2=!0,this.checkbox3=!1,this.checkReportDownloadType=!1,this.dateSelected=this.functionsService.dateBRtoEN(this.functionsService.currentDateBR("00/00/0000","min")),this.bankTimeRangeEndDate="",this.modalFilterInconsistency=!1,this.modalFilterInconsistencyCompTime=!1,this.modalFilterPoint=!1,this.modalFilterAdjustment=!1,this.modalFilterIntermittent=!1,this.modalFilterAbsences=!1,this.modalFilterGuest=!1,this.modalMirrorWarningBankTimeRange=!1,this.modalReport=!1,this.modalFilterTeam=!1,this.overTimeFormData=this.formBuilder.group({hourFilter:new Wm("00:30",[Jf.required]),workedFilter:new Wm("00:30",[Jf.required])}),this.integrationEventType=this.formBuilder.group({collaborator:new Wm("",[Jf.required]),guest:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;"compTime"==this.reportSelected.type&&(this.dataParams=this.getParams(),this.reportDatabase.getbankTimeRange(this.dataParams,(function(t){t.error||(e.bankTimeRangeEndDate=t.data),""!=t.data&&e.showModalMirrorWarningBankTimeRange()})))}},{key:"setDateSelected",value:function(e){this.dateSelected=e}},{key:"includesAnalyticReport",value:function(e){return this.hasAnalyticReport.includes(e)}},{key:"checkFormatDownload",value:function(e){this.exportFormat=e,this.checkMarkOption=!this.checkMarkOption}},{key:"toggleCheckbox",value:function(e){1===e?(this.checkbox1=!0,this.checkbox2=!1,this.checkbox3=!1):2===e?(this.checkbox1=!1,this.checkbox2=!0,this.checkbox3=!1):3===e&&(this.checkbox1=!1,this.checkbox2=!1,this.checkbox3=!0)}},{key:"checkDownloadReportType",value:function(e){"analytic"==e&&(this.reportTypeToDownload=""),"synthetic"==e&&(this.reportTypeToDownload="_synthetic"),this.checkReportDownloadType=!this.checkReportDownloadType}},{key:"validateIntegrationEventType",value:function(){var e=this.integrationEventType.get("collaborator").value,t=this.integrationEventType.get("guest").value;return e&&t?null:e||t?e?"collaboratorEvent":"visitorEvent":null}},{key:"setFilterCollaborator",value:function(e){this.filterCollaboratorStatusList=e.collaboratorStatusList,this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterCostCenterSelected=e.costCenterIdList}},{key:"setFilterPoint",value:function(e){this.filterJourneySelected=e.journey,this.filterBarrierSelected=e.barrier,this.filterTypeSelected=e.type,this.filterPointStatusSelected=e.status}},{key:"setFilterAdjustment",value:function(e){this.adjustmentListSelected=e.adjustmentTypeFilter}},{key:"setFilterIntermittent",value:function(e){this.intermittentSelected=e.intermittentTypeFilter}},{key:"setGuestStatus",value:function(e){this.guestStatusSelected=e.guestStatus}},{key:"setFilterInconsistency",value:function(e){this.filterInconsistencySelected=e.inconsistency}},{key:"setFilterInconsistencyCompTime",value:function(e){this.filterInconsistencyCompTimeSelected=e.inconsistency}},{key:"setFilterAbsences",value:function(e){this.filterAbsencesSelected=e.absencesIdList}},{key:"setFilterTeam",value:function(e){this.filterTeamSelected=e.teamIdList}},{key:"verifyHour",value:function(e){null!=e&&this.overTimeFormData.get(e).setValue(this.validService.validHour(this.overTimeFormData.get(e).value))}},{key:"getParams",value:function(){return{collaboratorStatusList:JSON.stringify(this.filterCollaboratorStatusList)||[],departmentIdList:JSON.stringify(this.filterDepartmentSelected)||[],unitIdList:JSON.stringify(this.filterUnitSelected)||[],costCenterIdList:JSON.stringify(this.filterCostCenterSelected)||[],regimeIdList:JSON.stringify(this.filterRegimeSelected)||[],filterBarrier:JSON.stringify(this.filterBarrierSelected)||[],filterInJourney:JSON.stringify(this.filterJourneySelected)||[],filterStatus:JSON.stringify(this.filterPointStatusSelected)||[],filterType:JSON.stringify(this.filterTypeSelected)||[],filterInconsistency:JSON.stringify(this.filterInconsistencySelected)||[],filterInconsistencyCompTime:JSON.stringify(this.filterInconsistencyCompTimeSelected)||[],filterAbsences:JSON.stringify(this.filterAbsencesSelected)||[],filterTeam:JSON.stringify(this.filterTeamSelected)||[],typeAdjustmentFilter:JSON.stringify(this.adjustmentListSelected)||[],typeIntermittentCallFilter:JSON.stringify(this.intermittentSelected)||[],guestStatus:this.guestStatusSelected,beginDate:this.beginDate,endDate:this.endDate,archiveType:this.exportFormat+this.reportTypeToDownload,minTime:this.overTimeFormData.get("hourFilter").value,dateSelected:this.dateSelected,eventType:this.validateIntegrationEventType()}}},{key:"downloadReport",value:function(){var e=this;this.dataParams=this.getParams(),"screen"!=this.exportFormat?this.reportDatabase.getReportData(this.reportSelected.type,this.dataParams,(function(t){t.error?e.functionsService.openSnackBar("A informa\xe7\xe3o n\xe3o existe ou n\xe3o corresponde aos crit\xe9rios de filtro."):e.functionsService.downloadFile(t.data,e.exportFormat.replace("_synthetic",""),"Relat\xf3rio")})):this.reportDatabase.getReportScreen(this.reportSelected.type,this.dataParams,(function(t){t.error?e.functionsService.openSnackBar("A informa\xe7\xe3o n\xe3o existe ou n\xe3o corresponde aos crit\xe9rios de filtro."):(e.dataPointListScreen=t.data,e.router.navigate(["/report-screen-point-day"],{state:{dateSelected:e.dateSelected,dataPointListScreen:e.dataPointListScreen}}).then((function(){return!1})))}))}},{key:"getDateBR",value:function(e){return e?this.functionsService.dateENtoBR(e):""}},{key:"showFilterInconsistencyPointFirst",value:function(){1!=this.filterInconsistencyPointFirst&&(this.showFilterInconsistencyPoint(),this.filterInconsistencyPointFirst=!0)}},{key:"showFilterInconsistencyPoint",value:function(){this.modalFilterInconsistency=!0}},{key:"hideFilterInconsistencyPoint",value:function(){this.modalFilterInconsistency=!1}},{key:"showFilterInconsistencyCompTime",value:function(){this.modalFilterInconsistencyCompTime=!0}},{key:"hideFilterInconsistencyCompTime",value:function(){this.modalFilterInconsistencyCompTime=!1}},{key:"showModalFilterPoint",value:function(){this.modalFilterPoint=!0}},{key:"hideModalFilterPoint",value:function(){this.modalFilterPoint=!1}},{key:"showModalFilterAdjustment",value:function(){this.modalFilterAdjustment=!0}},{key:"hideModalFilterAdjustment",value:function(){this.modalFilterAdjustment=!1}},{key:"showModalFilterIntermittent",value:function(){this.modalFilterIntermittent=!0}},{key:"hideModalFilterIntermittent",value:function(){this.modalFilterIntermittent=!1}},{key:"showModalFilterAbsences",value:function(){this.modalFilterAbsences=!0}},{key:"showModalFilterGuest",value:function(){this.modalFilterGuest=!0}},{key:"hideModalFilterGuest",value:function(){this.modalFilterGuest=!1}},{key:"hideModalFilterAbsences",value:function(){this.modalFilterAbsences=!1}},{key:"showModalFilterTeam",value:function(){this.modalFilterTeam=!0}},{key:"hideModalFilterTeam",value:function(){this.modalFilterTeam=!1}},{key:"showModalMirrorWarningBankTimeRange",value:function(){this.modalMirrorWarningBankTimeRange=!0}},{key:"hideModalMirrorWarningBankTimeRange",value:function(){this.modalMirrorWarningBankTimeRange=!1}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.overTimeFormData.get("hourFilter").setValue("00:30")}},{key:"hideModalReport",value:function(){this.modalReport=!1}}])}()).\u0275fac=function(e){return new(e||Lue)($r(zP),$r(TN),$r(JO),$r(wp),$r(a5),$r(yM))},Lue.\u0275cmp=Ot({type:Lue,selectors:[["io-modal-report"]],inputs:{beginDate:"beginDate",endDate:"endDate",reportSelected:"reportSelected",showModal:"showModal"},outputs:{hideModal:"hideModal"},decls:22,vars:29,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"flex"],[1,"sizeA","cl-blue","fontUp","fontBold"],[3,"filterText","showCollaboratorStatusList","hideBankTimeOption","selectedFilters",4,"ngIf"],["class","filterBtnBox","title","Filtro de ponto",4,"ngIf"],[1,"pdgT2","mrgB2"],[4,"ngIf"],[1,"flexPad"],[3,"moduleName","btnText","btnColor","btnTitle","btnDisabled","useValidation","btnClick"],[3,"showModal","selectedFilters","hideFilter"],[3,"showFilter","selectedFilters","hideFilter"],[3,"showModal","title","text","btnTextConfirm","hideModal","confirmClick"],[3,"filterText","showCollaboratorStatusList","hideBankTimeOption","selectedFilters"],["title","Filtro de ponto",1,"filterBtnBox"],[1,"flex","end"],[1,"flex","clickPlace","mrgT1",3,"click"],[1,"sizeB","fontBold","mrgR1"],["size","3x",1,"iconItem","iconSizeG","cl-blue",3,"icon"],["class","filterBtnBox","title","Relat\xf3rio de inconsist\xeancia",4,"ngIf"],["class","filterBtnBox","title","Filtro de convoca\xe7\xe3o",4,"ngIf"],[1,"flex","mrgT2"],["class","block mrgT2",4,"ngIf"],["class","filterBtnBox","title","Filtro de intermit\xeancia",4,"ngIf"],["class","block mrgT2",3,"formGroup",4,"ngIf"],[1,"flex","form-group","inputAnimated","mrgB1",3,"formGroup"],[1,"wdMax25"],["id","hourFilter","autocomplete","off","mask","00:00","maxlength","5","placeholder","","type","text",1,"center",3,"formControlName","dropSpecialCharacters","change"],["for","hourFilter",1,"form-label","mrgB1"],["id","workedFilter","autocomplete","off","mask","00:00","maxlength","5","placeholder","","type","text",1,"center",3,"formControlName","dropSpecialCharacters","change"],["title","Relat\xf3rio de inconsist\xeancia",1,"filterBtnBox"],[4,"ngIf","ngIfThen"],["title","Filtro de convoca\xe7\xe3o",1,"filterBtnBox"],[3,"labelText","startDate","dateSelectedEN"],[1,"block","mrgT2"],[1,"sizeC","fontBold","mrgB2"],[1,"flex","start"],["class","item radioBox sizeC",4,"ngIf"],[1,"mrgL2","mrgR2"],[1,"item","radioBox","sizeC","mrgR2"],["type","checkbox",1,"radioBoxInput",3,"checked","click"],[1,"checkmark"],[1,"item","radioBox","sizeC"],["title","Filtro de intermit\xeancia",1,"filterBtnBox"],[1,"flex","center"],["class","item radioBox sizeC mrgR2",4,"ngIf"],[1,"block","mrgT2",3,"formGroup"],["type","checkbox",1,"radioBoxInput",3,"formControlName"],[1,"mrgR2","mrgL2"],["type","checkbox",1,"radioBoxInput","mrgR2",3,"formControlName"],["type","checkbox",1,"radioBoxInput","mrgR2",3,"checked","click"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4),ts(),Jr(5,sue,1,3,"io-collaborator-filter",4),Jr(6,lue,6,1,"div",5),ts(),ns(7,"div",6),Jr(8,Oue,17,15,"div",7),ns(9,"div",6),ts(),es(10,"div",8),es(11,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),es(12,"io-btn",9),ls("btnClick",(function(){return t.downloadReport()})),ts(),ts(),ts(),es(13,"io-report-modal-filter-inconsistency",10),ls("selectedFilters",(function(e){return t.setFilterInconsistency(e)}))("hideFilter",(function(){return t.hideFilterInconsistencyPoint()})),ts(),es(14,"io-report-modal-filter-inconsistency-comp-time",10),ls("selectedFilters",(function(e){return t.setFilterInconsistencyCompTime(e)}))("hideFilter",(function(){return t.hideFilterInconsistencyCompTime()})),ts(),es(15,"io-report-modal-filter-point",11),ls("selectedFilters",(function(e){return t.setFilterPoint(e)}))("hideFilter",(function(){return t.hideModalFilterPoint()})),ts(),es(16,"io-report-modal-filter-adjustment",11),ls("selectedFilters",(function(e){return t.setFilterAdjustment(e)}))("hideFilter",(function(){return t.hideModalFilterAdjustment()})),ts(),es(17,"io-report-modal-filter-intermittentCall",11),ls("selectedFilters",(function(e){return t.setFilterIntermittent(e)}))("hideFilter",(function(){return t.hideModalFilterIntermittent()})),ts(),es(18,"io-report-modal-filter-guest",11),ls("selectedFilters",(function(e){return t.setGuestStatus(e)}))("hideFilter",(function(){return t.hideModalFilterGuest()})),ts(),es(19,"io-report-modal-filter-absences",11),ls("selectedFilters",(function(e){return t.setFilterAbsences(e)}))("hideFilter",(function(){return t.hideModalFilterAbsences()})),ts(),es(20,"io-report-modal-filter-team",11),ls("selectedFilters",(function(e){return t.setFilterTeam(e)}))("hideFilter",(function(){return t.hideModalFilterTeam()})),ts(),es(21,"io-modal-confirm",12),ls("hideModal",(function(){return t.hideModalMirrorWarningBankTimeRange()}))("confirmClick",(function(){return t.hideModalMirrorWarningBankTimeRange()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(4),$s(t.reportSelected.title),Bo(1),Zr("ngIf","guest"!=t.reportSelected.type),Bo(1),Zr("ngIf","guest"===t.reportSelected.type),Bo(2),Zr("ngIf",t.arrayReportDefault.includes(t.reportSelected.type)),Bo(3),Zr("moduleName","report")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("btnDisabled",!1)("useValidation",!1),Bo(1),Zr("moduleName","report")("btnText","Gerar")("btnColor","btn-blue-bg")("btnTitle","Gerar")("btnDisabled",!1)("useValidation",!1),Bo(1),Zr("showModal",t.modalFilterInconsistency),Bo(1),Zr("showModal",t.modalFilterInconsistencyCompTime),Bo(1),Zr("showFilter",t.modalFilterPoint),Bo(1),Zr("showFilter",t.modalFilterAdjustment),Bo(1),Zr("showFilter",t.modalFilterIntermittent),Bo(1),Zr("showFilter",t.modalFilterGuest),Bo(1),Zr("showFilter",t.modalFilterAbsences),Bo(1),Zr("showFilter",t.modalFilterTeam),Bo(1),Zr("showModal",t.modalMirrorWarningBankTimeRange)("title","Fim da vig\xeancia do banco horas")("text","O per\xedodo selecionado inclui um fim de vig\xeancia do banco de horas no dia "+t.getDateBR(t.bankTimeRangeEndDate)+". O relat\xf3rio de horas ser\xe1 gerado at\xe9 essa data.")("btnTextConfirm","Entendi"))},directives:[CE,sh,jD,Vce,Hce,eue,tue,nue,iue,oue,rue,UB,qV,FD,Hf,ip,If,DE,kp,Vf,vp,UA,Of],styles:[".inputStyle[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .inputStyle[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{border-bottom:2px solid var(--cl-black);width:90%;margin-bottom:25px}[_ngcontent-%COMP%]::-moz-placeholder{color:var(--cl-gray-dark);font-weight:700}[_ngcontent-%COMP%]::placeholder{color:var(--cl-gray-dark);font-weight:700}.borderBottom[_ngcontent-%COMP%]{border-bottom:2px solid var(--cl-black)}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.iconSelectField[_ngcontent-%COMP%]{right:25px}"]}),Lue);function Iue(e,t){if(1&e){var n=as();es(0,"div",12),es(1,"button",13),ls("click",(function(){mn(n);var e=t.$implicit;return fs().selectReportType(e)})),Gs(2),ts(),ts()}if(2&e){var i=t.$implicit;Bo(1),vs("id",i.type),Bo(1),$s(i.title)}}function Fue(e,t){if(1&e){var n=as();es(0,"io-modal-report",14),ls("hideModal",(function(){return mn(n),fs().hideModalReport()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalReport)("reportSelected",i.reportSelected)("beginDate",i.beginDate)("endDate",i.endDate)}}var Aue,Eue,Bue=((Eue=function(){return d((function e(t,n){var i=this;c(this,e),this.titleService=t,this.storageService=n,this.reportSelected="",this.beginDate=null,this.endDate=null,this.modalReport=!1,this.reportTypeList=[{type:"adjustment",title:"Ajustes"},{type:"birthDay",title:"Aniversariantes"},{type:"absences",title:"Aus\xeancias"},{type:"bankTime",title:"Banco de horas alternativo"},{type:"deduceHours",title:"Balan\xe7o de horas"},{type:"barrier",title:"Cerca digital"},{type:"team",title:"Equipes"},{type:"intermittentCall",title:"Escala intermitente"},{type:"integrationEvents",title:"Eventos Intelbras"},{type:"collaborator",title:"Funcion\xe1rios"},{type:"collaboratorByManager",title:"Funcion\xe1rios por gestor"},{type:"historicChangeJourney",title:"Hist\xf3rico de escalas"},{type:"compTime",title:"Horas"},{type:"overTime",title:"Horas extras"},{type:"workedTime",title:"Horas trabalhadas"},{type:"workedTimePerUnit",title:"Horas trabalhadas por unidade"},{type:"negativeTime",title:"Horas negativas"},{type:"nightTime",title:"Horas noturnas"},{type:"inconsistencies",title:"Inconsist\xeancias"},{type:"inconsistenciesCompTime",title:"Inconsist\xeancias de horas"},{type:"interjourney",title:"Interjornada"},{type:"intrajourney",title:"Intrajornada"},{type:"localization",title:"Localiza\xe7\xe3o"},{type:"onDuty",title:"Prontid\xe3o e Sobreaviso"},{type:"point",title:"Ponto"},{type:"missingPoint",title:"Pontos faltantes"},{type:"pointDay",title:"Pontos do dia"},{type:"turnover",title:"Turnover"},{type:"unitHistoric",title:"Hist\xf3rico de unidade"},{type:"mealVouchers",title:"Vale-refei\xe7\xe3o"},{type:"mealVouchersWithDiscount",title:"Vale-refei\xe7\xe3o com desconto"}],this.companyIdListDiamante=["835","836"],this.intelbrasAvailable=["2","3","1364","130","4"],this.groupInviolavel=["56","1782","1610","1812","1813","1814","1815","1779","1797","1781","1816","1818","1817"],this.currentCompanyId=this.storageService.decodeFromLocalStorage("companyId"),this.titleService.setTitle("Relat\xf3rios"),this.reportTypeList.forEach((function(e,t){"bankTime"==e.type&&(i.companyIdListDiamante.includes(i.currentCompanyId)||i.reportTypeList.splice(t,1)),"integrationEvents"==e.type&&(i.intelbrasAvailable.includes(i.currentCompanyId)||i.reportTypeList.splice(t,1)),"mealVouchersWithDiscount"==e.type&&(i.groupInviolavel.includes(i.currentCompanyId)||i.reportTypeList.splice(t,1))}))}),[{key:"ngOnInit",value:function(){}},{key:"setBeginDate",value:function(e){this.beginDate=e}},{key:"setEndDate",value:function(e){this.endDate=e}},{key:"selectReportType",value:function(e){this.reportSelected=e,this.modalReport=!0}},{key:"hideModalReport",value:function(){this.modalReport=!1}}])}()).\u0275fac=function(e){return new(e||Eue)($r(hL),$r(YP))},Eue.\u0275cmp=Ot({type:Eue,selectors:[["io-report-page"]],decls:13,vars:6,consts:[[1,"container"],[1,"main"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[1,"flex"],[1,"sizeC","end"],[1,"end"],[3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"listBox"],[1,"wrapper","center"],["class","card mrgT1",4,"ngFor","ngForOf"],[3,"showModal","reportSelected","beginDate","endDate","hideModal",4,"ngIf"],[1,"card","mrgT1"],[1,"btn","center",3,"id","click"],[3,"showModal","reportSelected","beginDate","endDate","hideModal"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),ts(),es(4,"div",4),es(5,"p",5),Gs(6,"Selecione o tipo de relat\xf3rio e uma data de refer\xeancia."),ts(),es(7,"div",6),es(8,"io-interval-selector",7),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),ts(),es(9,"ul",8),es(10,"div",9),Jr(11,Iue,3,2,"div",10),ts(),ts(),ts(),ts(),Jr(12,Fue,1,4,"io-modal-report",11)),2&e&&(Bo(3),Zr("moduleName","reports")("titleTop","Relat\xf3rios"),Bo(5),Zr("firstDateLabel","Data Inicial")("secondDateLabel","Data Final"),Bo(3),Zr("ngForOf",t.reportTypeList),Bo(1),Zr("ngIf",t.modalReport))},directives:[eI,ZA,ah,sh,Due],styles:[".collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:570px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:300px;text-align:right}io-interval-selector[_ngcontent-%COMP%]{padding-top:20px}io-btn.btnShort[_ngcontent-%COMP%]{margin-top:10px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:80px;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:70px;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:400px;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeabsence[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeabsence[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeabsence[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:150px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeabsence[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeabsence[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:250px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeovertime[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:80px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypenight[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypenight[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:150px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypepoint_day[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeturnover[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:150px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeturnover[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:80px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeturnover[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:150px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypechange_journey[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypechange_journey[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:300px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypechange_journey[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypechange_journey[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:80px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypechange_journey[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){text-align:right}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebirthdate[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebirthdate[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:120px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebirthdate[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebirthdate[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:120px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebirthdate[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){text-align:right}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypevr[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:350px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypevr[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:120px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypevr[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypevr[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){text-align:right}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebank_time[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:100px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebank_time[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:80px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebank_time[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypebank_time[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-last-child{text-align:right}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypemanager[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:250px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypemanager[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypemanager[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:150px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100px}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(7), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(8), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(9), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(10), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(11), .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedcollaborator[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(12){max-width:50px}.wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:-10px}.mrgT1[_ngcontent-%COMP%]{margin-top:5%}.wrapper[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{text-transform:none;max-width:95%}.wrapper[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]:hover{background:var(--primary-color);color:var(--secondary-color)}.datepickerWidth[_ngcontent-%COMP%]{width:80%}"]}),Eue),Nue=((Aue=d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.databaseService=i,this.storageService=o,this.functionsService=a,this.iconSolidService=r,this.userName=this.storageService.decodeFromLocalStorage("userName")}))).\u0275fac=function(e){return new(e||Aue)($r(wp),$r(yM),$r(tT),$r(YP),$r(zP),$r(JO))},Aue.\u0275cmp=Ot({type:Aue,selectors:[["io-support-page"]],decls:53,vars:3,consts:[[1,"container"],[1,"main"],[3,"titleTop","textTop2"],[1,"supportBox"],[1,"flex","borderBottom","start","pdgB1","mrgB2"],["size","3x",1,"iconItem","iconSizeA","cl-blue",3,"icon"],[1,"sizeB","mrgL1"],[1,"contactBox"],[1,"sizeB","fontBold"],[1,"line","flex","start"],[1,"item"],[1,"sizeC"],[1,"sizeC","fontBold","cl-blue"],["target","_blank","href","https://api.whatsapp.com/send/?phone=554931910333&text=Ol\xe1%2C+preciso+de+ajuda",1,"ioMenuItem","fontBold"],["target","_blank","href","mailto:suporte@iopoint.com.br",1,"fontBold"],["target","_blank","href","https://api.whatsapp.com/send/?phone=554931910333&text=Ol\xe1%2C+preciso+de+ajuda",1,"fontBold"],["target","_blank","href","https://api.whatsapp.com/send/?phone=554931910333&text=Ol\xe1%2C+gostaria+de+saber+mais+informa\xe7\xf5es+sobre+o+controle+de+jornada+dos+funcion\xe1rios+e+Home+Office+da+iopoint",1,"fontBold"],["href","mailto:contato@iopoint.com.br","target","_blank",1,"fontBold"],[1,"sizeC","mrgL2"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div",4),ns(5,"fa-icon",5),es(6,"h2",6),Gs(7,"Entre em contato com nossa equipe."),ts(),ts(),es(8,"div",7),es(9,"h2",8),Gs(10,"Suporte"),ts(),es(11,"div",9),es(12,"div",10),es(13,"span",11),Gs(14,"Telefone"),ts(),es(15,"span",12),es(16,"a",13),Gs(17,"49 3191-0333"),ts(),ts(),ts(),es(18,"div",10),es(19,"span",11),Gs(20,"E-mail"),ts(),es(21,"span",12),es(22,"a",14),Gs(23,"suporte@iopoint.com.br"),ts(),ts(),ts(),es(24,"div",10),es(25,"span",11),Gs(26,"WhatsApp"),ts(),es(27,"span",12),es(28,"a",15),Gs(29,"49 3191-0333"),ts(),ts(),ts(),ts(),es(30,"h2",8),Gs(31,"Comercial"),ts(),es(32,"div",9),es(33,"div",10),es(34,"span",11),Gs(35,"Telefone"),ts(),es(36,"span",12),es(37,"a",16),Gs(38,"49 3191-0333"),ts(),ts(),ts(),es(39,"div",10),es(40,"span",11),Gs(41,"E-mail"),ts(),es(42,"span",12),es(43,"a",17),Gs(44,"contato@iopoint.com.br"),ts(),ts(),ts(),es(45,"div",10),es(46,"span",11),Gs(47,"WhatsApp"),ts(),es(48,"span",12),es(49,"a",16),Gs(50,"49 3191-0333"),ts(),ts(),ts(),ts(),ts(),es(51,"p",18),Gs(52,"De segunda a sexta das 8h \xe0s 12h e 13h30 \xe0s 18h tire suas d\xfavidas com nossa equipe de suporte."),ts(),ts(),ts(),ts()),2&e&&(Bo(2),Zr("titleTop","Ajuda")("textTop2","Ol\xe1 "+t.userName+", como podemos ajudar voc\xea?"),Bo(3),Zr("icon",t.iconSolidService.faHeadset))},directives:[eI,FD],styles:[".supportBox[_ngcontent-%COMP%]{padding:50px 0 0}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]{padding:40px 20px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0 0 20px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{margin:0 0 40px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:150px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:150px}.supportBox[_ngcontent-%COMP%]   .contactBox[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;margin:0 0 5px}"]}),Aue);function Rue(e,t){if(1&e&&(es(0,"option",10),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n),Bo(1),$s(n)}}function jue(e,t){if(1&e&&(es(0,"span",27),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function zue(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalUser(e.id)})),ts()}if(2&e){var i=fs().$implicit,o=fs();Zr("moduleName","user")("action","update")("iconTitle","Editar gestor")("useValidation",!o.isCurrentUser(i.id))}}function Vue(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDeleteUser(e.id,e.status)})),ts()}2&e&&Zr("moduleName","user")("action","delete")("iconClassList","mrgL1")("iconTitle","Inativar gestor")}function Hue(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactiveUser(e.id)})),ts()}2&e&&Zr("moduleName","user")("action","reactive")("iconClassList","mrgL1")("iconTitle","Reativar gestor")}function Yue(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDeleteUser(e.id,e.status)})),ts()}2&e&&Zr("moduleName","user")("action","delete")("iconClassList","mrgL1")("iconTitle","Remover gestor")}function que(e,t){if(1&e&&(es(0,"li",19),es(1,"span",20),Jr(2,jue,2,1,"span",21),Gs(3),ts(),es(4,"span",22),Gs(5),ts(),es(6,"span",22),Gs(7),ts(),es(8,"span",23),Gs(9),ts(),es(10,"span",24),Jr(11,zue,1,4,"io-icon",25),Jr(12,Vue,1,4,"io-icon",26),Jr(13,Hue,1,4,"io-icon",26),Jr(14,Yue,1,4,"io-icon",26),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),$s(n.name),Bo(2),$s(n.email),Bo(2),$s(n.permission_description),Bo(2),$s("0"==n.status?"Inativo":"Ativo"),Bo(2),Zr("ngIf","1"==n.status),Bo(1),Zr("ngIf","1"==n.status),Bo(1),Zr("ngIf","0"==n.status),Bo(1),Zr("ngIf","0"==n.status)}}function Uue(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Wue(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum gestor encontrado."),ts())}function Jue(e,t){if(1&e&&(es(0,"li"),Jr(1,Uue,2,0,"p",16),Jr(2,Wue,2,0,"p",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.userList.length>0&&n.userList[0].loading),Bo(1),Zr("ngIf",n.userList.length>0&&!n.userList[0].loading&&0==n.userListFilteredSearch.length)}}var Gue,$ue=((Gue=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.userDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.validService=u,this.modalUser=!1,this.modalDeleteUser=!1,this.modalInactiveUser=!1,this.modalReactiveUser=!1,this.updateOn=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.userList=[{loading:!0}],this.userListFilteredPermission=[],this.userListFilteredStatus=[],this.userListFilteredSearch=[],this.selectFieldListPermissionDescription=[],this.titleService.setTitle("Gestores"),this.searchForm=this.formBuilder.group({permission_description:new Wm("all",[Jf.required]),status:new Wm(1,[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getUserList()}},{key:"getUserList",value:function(){var e=this;this.userList=[{loading:!0}],this.userDatabase.getUserList((function(t){t.error||(e.userList=t.data.user_company||[],e.userList.forEach((function(t){e.selectFieldListPermissionDescription.indexOf(t.permission_description)<0&&e.selectFieldListPermissionDescription.push(t.permission_description)})),e.filterUserPermission())}))}},{key:"filterUserPermission",value:function(){var e=this.searchForm.get("permission_description").value;this.userListFilteredPermission=this.userList.filter((function(t){return t.permission_description==e})),"all"==e&&(this.userListFilteredPermission=this.userList),this.filterUserStatus()}},{key:"filterUserStatus",value:function(){var e=this.searchForm.get("status").value;this.userListFilteredStatus=this.userListFilteredPermission.filter((function(t){return t.status==e})),"all"==e&&(this.userListFilteredStatus=this.userListFilteredPermission),this.filterUserSearch(this.searchForm.get("search").value)}},{key:"filterUserSearch",value:function(e){this.searchForm.get("search").setValue(e),this.userListFilteredSearch=this.functionsService.arrayFilterWords(this.userListFilteredStatus,e,"name")}},{key:"showModalUser",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.userSelectedId=e,this.modalUser=!0}},{key:"hideModalUser",value:function(){this.modalUser=!1,this.userSelectedId=null}},{key:"showModalDeleteUser",value:function(e,t){e!=this.storageService.decodeFromLocalStorage("userId")?(this.userSelectedId=e,this.userSelectedStatus=t,this.modalDeleteUser=!0):this.functionsService.openSnackBar("N\xe3o \xe9 permitido excluir o seu pr\xf3prio cadastro.","error")}},{key:"deleteUser",value:function(){var e=this;this.userDatabase.deleteUserCompany(this.userSelectedId,(function(t){t.error||e.getUserList(),e.hideModalDeleteUser()}))}},{key:"hideModalDeleteUser",value:function(){this.modalDeleteUser=!1,this.userSelectedId=null,this.userSelectedStatus=null}},{key:"showModalReactiveUser",value:function(e){this.userSelectedId=e,this.modalReactiveUser=!0}},{key:"reactiveUser",value:function(){var e=this;this.userDatabase.putUserReactive(this.userSelectedId,(function(t){t.error||(e.getUserList(),e.hideModalReactiveUser())}))}},{key:"hideModalReactiveUser",value:function(){this.userSelectedId=null,this.modalReactiveUser=!1}},{key:"isCurrentUser",value:function(e){return this.storageService.decodeFromLocalStorage("userId")==e}}])}()).\u0275fac=function(e){return new(e||Gue)($r(wp),$r(yM),$r(zH),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL),$r(TN))},Gue.\u0275cmp=Ot({type:Gue,selectors:[["io-user-page-list"]],decls:34,vars:23,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnClick"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],["selected","",3,"value"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","userId","hideModal","updateList"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"],[1,"flex","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeD"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconTitle","useValidation","iconClick",4,"ngIf"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[3,"moduleName","action","iconTitle","useValidation","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalUser(null)})),ts(),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterUserSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Nome"),ts(),es(9,"h3",7),Gs(10,"E-mail"),ts(),es(11,"div",8),es(12,"select",9),ls("change",(function(){return t.filterUserPermission()})),es(13,"option",10),Gs(14,"Permiss\xf5es"),ts(),Jr(15,Rue,2,2,"option",11),ts(),ns(16,"fa-icon",12),ts(),es(17,"div",8),es(18,"select",9),ls("change",(function(){return t.filterUserStatus()})),es(19,"option",10),Gs(20,"Todos"),ts(),es(21,"option",13),Gs(22,"Ativo"),ts(),es(23,"option",10),Gs(24,"Inativo"),ts(),ts(),ns(25,"fa-icon",12),ts(),es(26,"h3",7),Gs(27,"A\xe7\xe3o"),ts(),ts(),es(28,"ul",14),Jr(29,que,15,9,"li",15),Jr(30,Jue,3,2,"li",16),ts(),ts(),ts(),ts(),es(31,"io-user-modal-form",17),ls("hideModal",(function(){return t.hideModalUser()}))("updateList",(function(){return t.getUserList()})),ts(),es(32,"io-modal-confirm",18),ls("hideModal",(function(){return t.hideModalDeleteUser()}))("confirmClick",(function(){return t.deleteUser()})),ts(),es(33,"io-modal-confirm",18),ls("hideModal",(function(){return t.hideModalReactiveUser()}))("confirmClick",(function(){return t.reactiveUser()})),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchForm),Bo(1),Zr("moduleName","user")("titleTop","Gestores")("showBtn",!0),Bo(10),Zr("formControlName","permission_description"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.selectFieldListPermissionDescription),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(2),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value","1"),Bo(2),Zr("value","0"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.userListFilteredSearch),Bo(1),Zr("ngIf",0==t.userListFilteredSearch.length),Bo(1),Zr("showModal",t.modalUser)("userId",t.userSelectedId),Bo(1),Zr("showModal",t.modalDeleteUser)("title","0"==t.userSelectedStatus?"Deseja realmente excluir este gestor?":"Deseja realmente inativar este gestor?")("btnTextConfirm","0"==t.userSelectedStatus?"Excluir":"Inativar"),Bo(1),Zr("showModal",t.modalReactiveUser)("title","Deseja reativar este gestor?")("btnTextConfirm","Reativar"))},directives:[Hf,ip,eI,oE,vm,bp,Vf,vp,ym,xm,ah,FD,sh,wY,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5)   .action[_ngcontent-%COMP%]{margin-left:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5)   .action[_ngcontent-%COMP%]:first-child{margin-left:0}"]}),Gue);function Que(e,t){if(1&e&&(es(0,"div",24),es(1,"span",25),Gs(2,"Proposta comercial:"),ts(),es(3,"span",26),Gs(4),ts(),ts()),2&e){var n=fs();Bo(4),$s(n.proposalText)}}function Kue(e,t){if(1&e){var n=as();es(0,"div",5),es(1,"input",27,28),ls("change",(function(){mn(n);var e=Gr(2);return fs().getSellerName(e.value)})),ts(),es(3,"label",29),Gs(4,"C\xf3digo do vendedor (opcional)"),ts(),ts()}2&e&&(Bo(1),Zr("formControlName","codeShow"))}var Zue,Xue,ede,tde=function(){return["/form"]},nde=((ede=function(){return d((function e(t,n,i,o,a,r,s,l,u,d){c(this,e),this.formBuilder=t,this.router=n,this.authService=i,this.databaseService=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.loginDatabase=u,this.validService=d,this.proposalHash=null,this.sellerCode=null,this.onSubmit=new Mc,this.passwordType=!0,this.stateFields={name:{class:""},email:{class:""},password:{class:""}},this.proposalText="",this.showProposal=!1,this.userLoginForm=this.formBuilder.group({codeShow:new Wm("",[Jf.required]),code:new Wm("",[Jf.required]),name:new Wm("",[Jf.required]),email:new Wm("",[Jf.required]),password:new Wm("",[Jf.required]),termsAccepted:new Wm(!1,[Jf.required]),hash_helper:new Wm(null,[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.proposalHash&&this.databaseService.getProposalData(this.proposalHash,(function(t){if(t.error)e.showProposal=!1,e.proposalText="";else{e.showProposal=!0;var n=e.functionsService.toMoney(e.validService.validMoneyValue(t.data.proposal.price.toString().split(".").join(",")));e.proposalText="R$ "+n+" por funcion\xe1rio",e.userLoginForm.get("name").setValue(t.data.proposal.name),e.userLoginForm.get("hash_helper").setValue(e.proposalHash)}})),this.sellerCode&&this.getSellerName(this.sellerCode)}},{key:"getSellerName",value:function(e){var t=this;e.includes("f")?this.databaseService.getFranchiseSellerData(e,(function(e){t.handleSellerData(e)})):this.databaseService.getAdmSellerData(e,(function(e){t.handleSellerData(e)}))}},{key:"handleSellerData",value:function(e){e.error?this.setSellerData("",null):this.setSellerData(e.data.seller.code,e.data.seller.name)}},{key:"setSellerData",value:function(e,t){this.userLoginForm.get("codeShow").setValue(null!=t?e+" - "+t:""),this.userLoginForm.get("code").setValue(e)}},{key:"sendLoginForm",value:function(){var e=this;this.userLoginForm.get("name").valid?this.validService.validEmail(this.userLoginForm.get("email").value)?this.userLoginForm.get("password").value.length<6?this.functionsService.openSnackBar("A senha deve ter no m\xednimo 6 caracteres."):0!=this.userLoginForm.get("termsAccepted").value?(""!=this.userLoginForm.get("code").value&&null==this.userLoginForm.get("hash_helper").value&&(this.storageService.encodeToLocalStorage("userSellerCode",this.userLoginForm.get("code").value),this.userLoginForm.get("hash_helper").setValue(this.userLoginForm.get("code").value)),this.loginDatabase.postNewLogin(this.userLoginForm.value,(function(t){t.error||(null!=e.proposalHash&&e.storageService.encodeToLocalStorage("userProposalHash",e.proposalHash),null!=e.sellerCode&&e.storageService.encodeToLocalStorage("userSellerCode",e.sellerCode),e.firstLogin())}))):this.functionsService.openSnackBar("Voc\xea deve aceitar os Termos e Condi\xe7\xf5es para continuar","error"):this.functionsService.openSnackBar("invalidEmail"):this.functionsService.openSnackBar("\xc9 necess\xe1rio informar um nome.")}},{key:"firstLogin",value:function(){var e=this,t=this.userLoginForm.value,n=t.email,i=t.password;this.loginDatabase.postLogin(n,i,(function(t){t.error?e.router.navigate(["/login"]).then((function(){return!1})):e.authService.logIn(t.data)}))}},{key:"changeType",value:function(){this.passwordType=!this.passwordType}}])}()).\u0275fac=function(e){return new(e||ede)($r(wp),$r(yM),$r(G0),$r(tT),$r(zP),$r(WO),$r(JO),$r(YP),$r($0),$r(TN))},ede.\u0275cmp=Ot({type:ede,selectors:[["io-user-form"]],inputs:{proposalHash:"proposalHash",sellerCode:"sellerCode"},outputs:{onSubmit:"onSubmit"},decls:34,vars:27,consts:[[3,"formGroup"],[1,"sizeB","centerText"],[1,"inputBox"],["class","codeBox",4,"ngIf"],["class","form-group inputAnimated",4,"ngIf"],[1,"form-group","inputAnimated"],["autocomplete","off","id","name","placeholder","","type","text","required","",3,"formControlName"],["for","name",1,"form-label","required"],["autocomplete","off","id","email","placeholder","","type","text","required","",3,"formControlName"],["for","email",1,"form-label","required"],["autocomplete","off","id","password","placeholder","","required","",3,"formControlName","type"],["for","password",1,"form-label","required"],["size","3x","title","Mostrar senha",1,"iconItem","iconSizeG","clickPlace","iconPasswordField",3,"icon","ngClass","click"],[1,"flex","termBox","mrgT1"],[1,"radioBox","inline","hd2","sizeD"],["type","checkbox",3,"formControlName"],[1,"checkmark"],[1,"sizeD","wdFull"],["target","_blank","href","https://iopoint.com.br/politica-de-privacidade/",1,"sizeD"],[1,"flex","mrgB2"],[1,"btnWide",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"registerText"],[1,"sizeC","center"],[1,"fontBold","clickPlace",3,"routerLink"],[1,"codeBox"],[1,"sizeD"],[1,"flex","sizeC"],["autocomplete","off","id","code","placeholder","","type","text","required","",3,"formControlName","change"],["sellerCode",""],["for","code",1,"form-label"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"h2",1),Gs(2,"Cadastre-se! \xc9 r\xe1pido, seguro e simples."),ts(),es(3,"div",2),Jr(4,Que,5,1,"div",3),Jr(5,Kue,5,1,"div",4),es(6,"div",5),ns(7,"input",6),es(8,"label",7),Gs(9,"Seu nome"),ts(),ts(),es(10,"div",5),ns(11,"input",8),es(12,"label",9),Gs(13,"Seu melhor e-mail"),ts(),ts(),es(14,"div",5),ns(15,"input",10),es(16,"label",11),Gs(17,"Crie uma senha"),ts(),es(18,"fa-icon",12),ls("click",(function(){return t.changeType()})),ts(),ts(),es(19,"div",13),es(20,"label",14),ns(21,"input",15),ns(22,"span",16),ts(),es(23,"h4",17),Gs(24,"Ao se cadastrar, voc\xea concorda com nossos "),es(25,"a",18),Gs(26,"Termos e Condi\xe7\xf5es."),ts(),ts(),ts(),ts(),es(27,"div",19),es(28,"io-btn",20),ls("btnClick",(function(){return t.sendLoginForm()})),ts(),ts(),es(29,"div",21),es(30,"h3",22),Gs(31,"J\xe1 tem uma conta? "),es(32,"span",23),Gs(33,"Entrar"),ts(),ts(),ts(),ts()),2&e&&(Zr("formGroup",t.userLoginForm),Bo(4),Zr("ngIf",t.showProposal),Bo(1),Zr("ngIf",!t.showProposal),Bo(2),Es(t.stateFields.name.class),Zr("formControlName","name"),Bo(4),Es(t.stateFields.email.class),Zr("formControlName","email"),Bo(4),Es(t.stateFields.password.class),Zr("formControlName","password")("type",t.passwordType?"password":"text"),Bo(3),Zr("icon",t.iconRegularService.faEye)("ngClass",t.passwordType?"cl-gray-dark":"cl-blue"),Bo(3),Zr("formControlName","termsAccepted"),Bo(7),Zr("moduleName","user")("action","")("btnColor","btn-blue-bg")("btnText","Cadastre-se")("btnTitle","Cadastre-se")("useValidation",!1),Bo(4),Zr("routerLink",mc(26,tde)))},directives:[Hf,ip,sh,If,bp,Vf,vp,FD,ih,Of,jD,bM],styles:[".termBox[_ngcontent-%COMP%]{padding:0}.codeBox[_ngcontent-%COMP%]{padding:0 0 2px;margin:-3px 0 10px;border-bottom:1px solid var(--terceary-color)}"]}),ede),ide=((Xue=d((function e(t,n){var i=this;c(this,e),this.activatedRoute=t,this.databaseService=n,this.systemVersion=this.databaseService.currentSystemVersion(),this.activatedRoute.params.subscribe((function(e){i.proposalCode=e.code}))}))).\u0275fac=function(e){return new(e||Xue)($r(lx),$r(tT))},Xue.\u0275cmp=Ot({type:Xue,selectors:[["io-user-page-register"]],decls:10,vars:1,consts:[[1,"main","firstAccess"],[1,"bg-firstAccess"],["src","assets/img/bg-login.jpg","alt","bg"],[1,"container"],[1,"topBlock"],["href","https://iopoint.com.br/","title","iopoint.com.br",1,"logoBox","clickPlace"],["src","assets/img/iopoint-branca-ponto.png","alt","iopoint","title","iopoint - ponto eletr\xf4nico inteligente",1,"img-logo"],[1,"middleBlock","login","shdw1"],[1,"contentBlock","login"],[3,"sellerCode"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"img",2),ts(),es(3,"div",3),es(4,"div",4),es(5,"a",5),ns(6,"img",6),ts(),ts(),es(7,"div",7),es(8,"div",8),ns(9,"io-user-form",9),ts(),ts(),ts(),ts()),2&e&&(Bo(9),Zr("sellerCode",t.proposalCode))},directives:[nde],styles:[""]}),Xue),ode=((Zue=d((function e(t,n){var i=this;c(this,e),this.activatedRoute=t,this.databaseService=n,this.systemVersion=this.databaseService.currentSystemVersion(),this.activatedRoute.params.subscribe((function(e){i.proposalHash=e.hash}))}))).\u0275fac=function(e){return new(e||Zue)($r(lx),$r(tT))},Zue.\u0275cmp=Ot({type:Zue,selectors:[["io-user-page-register"]],decls:10,vars:1,consts:[[1,"main","firstAccess"],[1,"bg-firstAccess"],["src","assets/img/bg-login.jpg","alt","bg"],[1,"container"],[1,"topBlock"],["href","https://iopoint.com.br/","title","iopoint.com.br",1,"logoBox","clickPlace"],["src","assets/img/iopoint-branca-ponto.png","alt","iopoint","title","iopoint - ponto eletr\xf4nico inteligente",1,"img-logo"],[1,"middleBlock","login","shdw1"],[1,"contentBlock","login"],[3,"proposalHash"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"img",2),ts(),es(3,"div",3),es(4,"div",4),es(5,"a",5),ns(6,"img",6),ts(),ts(),es(7,"div",7),es(8,"div",8),ns(9,"io-user-form",9),ts(),ts(),ts(),ts()),2&e&&(Bo(9),Zr("proposalHash",t.proposalHash))},directives:[nde],styles:[""]}),Zue);function ade(e,t){if(1&e&&(es(0,"h2",14),Gs(1),_c(2,"translate"),_c(3,"lowercase"),ts()),2&e){var n=fs();Bo(1),Ks("",n.activityTitle[n.activityData.activityDescription]," no m\xf3dulo: ",kc(2,2,kc(3,4,"module."+n.activityData.moduleName+".title")),"")}}function rde(e,t){1&e&&(es(0,"h2",14),Gs(1),_c(2,"translate"),_c(3,"lowercase"),ts()),2&e&&(Bo(1),$s(kc(2,1,kc(3,3,"systemwords.loading"))))}function sde(e,t){if(1&e&&(es(0,"span",15),Gs(1),ts()),2&e){var n=fs();Bo(1),Ks(" Data: ",n.activityData.created_at.split(" ")[0].split("-").reverse().join("/")," - Hora ",n.activityData.created_at.split(" ")[1].slice(0,5)," ")}}function lde(e,t){if(1&e&&(es(0,"div",16),es(1,"span",15),Gs(2),ts(),es(3,"span",17),ns(4,"fa-icon",18),ts(),es(5,"span",15),Gs(6),ts(),ts()),2&e){var n=fs();Bo(2),Qs(" ","description"==n.activityFieldDisplay?"Descri\xe7\xe3o":"Nome",""),Bo(2),Zr("icon",n.iconSolidService.faArrowRight),Bo(2),$s(n.activityData.properties.attributes[n.activityFieldDisplay])}}var cde,ude=((cde=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.functionsService=n,this.iconSolidService=i,this.userDatabase=o,this.activityId=null,this.showModal=!0,this.hideModal=new Mc,this.activityData=[{loading:!0}],this.activityFieldDisplay="",this.activityTitle={created:"Inclus\xe3o de cadastro",deleted:"Exclus\xe3o de cadastro"}}),[{key:"ngOnChanges",value:function(){var e=this;this.activityId&&this.showModal&&this.userDatabase.getUserActivity(this.activityId,(function(t){t.error||(e.activityData=t.data.activity,e.activityFieldDisplay=t.data.displayField)}))}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.activityId=null,this.activityFieldDisplay=""}}])}()).\u0275fac=function(e){return new(e||cde)($r(wp),$r(zP),$r(JO),$r(zH))},cde.\u0275cmp=Ot({type:cde,selectors:[["io-user-modal-activity"]],inputs:{activityId:"activityId",showModal:"showModal"},outputs:{hideModal:"hideModal"},features:[dl],decls:29,vars:24,consts:[[3,"showModal","hideModal"],["class","sizeA cl-blue fontUp fontBold mrgB2",4,"ngIf"],[1,"pdgB2"],[1,"flex","listAlign","borderBottom","pdg1","mrgB2"],[1,"item","sizeC","fontCap"],[1,"item"],["class","item sizeC",4,"ngIf"],[1,"minHeightBox","mrgB2"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],["class","flex bg-white listAlign shdw mrgT2",4,"ngIf"],[1,"pdgT2","pdgB2","mrgB2"],[1,"flex","center"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"item","sizeC"],[1,"flex","bg-white","listAlign","shdw","mrgT2"],[1,"item","flex"],["size","3x",1,"iconItem","iconSizeF","cl-blue",3,"icon"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),Jr(1,ade,4,6,"h2",1),Jr(2,rde,4,5,"h2",1),ns(3,"div",2),es(4,"div",3),es(5,"span",4),Gs(6),_c(7,"translate"),_c(8,"lowercase"),ts(),ns(9,"span",5),Jr(10,sde,2,2,"span",6),ts(),es(11,"div",7),es(12,"div",8),es(13,"h3",9),Gs(14,"Campo"),ts(),ns(15,"h3",5),es(16,"h3",9),Gs(17,"Valor"),ts(),ts(),Jr(18,lde,7,3,"div",10),ns(19,"div",11),ns(20,"div",11),ns(21,"div",11),ns(22,"div",11),ts(),es(23,"div",12),es(24,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),_c(25,"translate"),_c(26,"lowercase"),_c(27,"translate"),_c(28,"lowercase"),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("ngIf",""!=t.activityFieldDisplay),Bo(1),Zr("ngIf",""==t.activityFieldDisplay),Bo(4),Qs(" Gestor: ",kc(7,12,kc(8,14,t.activityData.userName||"systemwords.loading"))," "),Bo(4),Zr("ngIf",""!=t.activityFieldDisplay),Bo(8),Zr("ngIf",""!=t.activityFieldDisplay),Bo(6),Zr("moduleName","user")("action","")("btnColor","btn-blue")("btnText",kc(25,16,kc(26,18,"systemwords.close")))("btnTitle",kc(27,20,kc(28,22,"systemwords.close")))("useValidation",!1))},directives:[CE,sh,jD,FD],pipes:[jae,wh],styles:[".listAlign[_ngcontent-%COMP%]{padding:10px}.listAlign.shdw[_ngcontent-%COMP%]{height:48px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:250px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:20px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:250px;text-align:right}"]}),cde);function dde(e,t){if(1&e&&(es(0,"h2",14),Gs(1),_c(2,"translate"),_c(3,"lowercase"),ts()),2&e){var n=fs();Bo(1),Qs("Altera\xe7\xe3o de cadastro no m\xf3dulo: ",kc(2,1,kc(3,3,"module."+n.activityData.moduleName+".title")),"")}}function hde(e,t){1&e&&(es(0,"h2",14),Gs(1),_c(2,"translate"),_c(3,"lowercase"),ts()),2&e&&(Bo(1),$s(kc(2,1,kc(3,3,"systemwords.loading"))))}function fde(e,t){if(1&e&&(es(0,"span",15),Gs(1),ts()),2&e){var n=fs();Bo(1),Ks(" Data: ",n.activityData.created_at.split(" ")[0].split("-").reverse().join("/")," - Hora ",n.activityData.created_at.split(" ")[1].slice(0,5)," ")}}function mde(e,t){if(1&e&&(es(0,"span",17),Gs(1),ts()),2&e){var n=fs().index,i=fs();Bo(1),$s(i.activityData.properties.old[i.activityField[n]]||"Sem registro")}}function pde(e,t){1&e&&ns(0,"span",17)}function gde(e,t){1&e&&ns(0,"fa-icon",21),2&e&&Zr("icon",fs(2).iconSolidService.faArrowRight)}function vde(e,t){if(1&e&&(es(0,"li",16),es(1,"span",17),Gs(2),_c(3,"translate"),_c(4,"lowercase"),ts(),Jr(5,mde,2,1,"span",18),Jr(6,pde,1,0,"span",18),es(7,"span",19),Jr(8,gde,1,1,"fa-icon",20),ts(),es(9,"span",17),Gs(10),ts(),ts()),2&e){var n=t.$implicit,i=t.index,o=fs();Bo(2),$s(kc(3,5,kc(4,7,"module."+o.activityData.moduleName+"."+n))),Bo(3),Zr("ngIf",o.activityData.properties.old),Bo(1),Zr("ngIf",!o.activityData.properties.old),Bo(2),Zr("ngIf",o.activityData.properties.old),Bo(2),$s(o.activityData.properties.attributes[o.activityField[i]]||"Sem registro")}}function yde(e,t){1&e&&(es(0,"li"),es(1,"p",15),Gs(2),_c(3,"translate"),_c(4,"lowercase"),ts(),ts()),2&e&&(Bo(2),$s(kc(3,1,kc(4,3,"systemwords.loading"))))}var bde,_de=((bde=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.functionsService=n,this.iconSolidService=i,this.userDatabase=o,this.activityId=null,this.showModal=!0,this.hideModal=new Mc,this.activityData=[{loading:!0}],this.activityField=[],this.showData=!1}),[{key:"ngOnChanges",value:function(){var e=this;this.showData=!1,this.activityId&&this.showModal&&this.userDatabase.getUserActivityUpdated(this.activityId,(function(t){t.error||(e.activityData=t.data.activity,e.activityField=t.data.activityField,e.validField())}))}},{key:"validField",value:function(){var e=this;this.activityField.forEach((function(t,n){t.includes("_id")&&e.activityField.splice(n,2)})),this.showData=!0}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.showData=!1,this.activityId=null,this.activityField=[]}}])}()).\u0275fac=function(e){return new(e||bde)($r(wp),$r(zP),$r(JO),$r(zH))},bde.\u0275cmp=Ot({type:bde,selectors:[["io-user-modal-activity-updated"]],inputs:{activityId:"activityId",showModal:"showModal"},outputs:{hideModal:"hideModal"},features:[dl],decls:28,vars:25,consts:[[3,"showModal","hideModal"],["class","sizeA cl-blue fontUp fontBold mrgB2",4,"ngIf"],[1,"pdgB2"],[1,"flex","borderBottom","pdg1","mrgB2"],[1,"sizeC","fontCap"],["class","sizeC",4,"ngIf"],[1,"minHeightBox"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex bg-white listAlign shdw",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"flex","center"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC"],[1,"flex","bg-white","listAlign","shdw"],[1,"item","sizeC"],["class","item sizeC",4,"ngIf"],[1,"item","flex"],["size","3x","class","iconItem iconSizeF cl-blue",3,"icon",4,"ngIf"],["size","3x",1,"iconItem","iconSizeF","cl-blue",3,"icon"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),Jr(1,dde,4,5,"h2",1),Jr(2,hde,4,5,"h2",1),ns(3,"div",2),es(4,"div",3),es(5,"span",4),Gs(6),_c(7,"translate"),_c(8,"lowercase"),ts(),Jr(9,fde,2,2,"span",5),ts(),es(10,"div",6),es(11,"div",7),es(12,"h3",8),Gs(13,"Campo"),ts(),es(14,"h3",8),Gs(15,"Valor Antigo"),ts(),ns(16,"h3",8),es(17,"h3",8),Gs(18,"Valor Novo"),ts(),ts(),es(19,"ul",9),Jr(20,vde,11,9,"li",10),Jr(21,yde,5,5,"li",11),ts(),ts(),es(22,"div",12),es(23,"io-btn",13),ls("btnClick",(function(){return t.closeModal()})),_c(24,"translate"),_c(25,"lowercase"),_c(26,"translate"),_c(27,"lowercase"),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("ngIf",t.showData),Bo(1),Zr("ngIf",!t.showData),Bo(4),Qs(" Gestor: ",kc(7,13,kc(8,15,t.activityData.userName||"systemwords.loading"))," "),Bo(3),Zr("ngIf",t.showData),Bo(11),Zr("ngForOf",t.activityField),Bo(1),Zr("ngIf",!t.showData),Bo(2),Zr("moduleName","user")("action","")("btnColor","btn-blue")("btnText",kc(24,17,kc(25,19,"systemwords.close")))("btnTitle",kc(26,21,kc(27,23,"systemwords.close")))("useValidation",!1))},directives:[CE,sh,ah,jD,FD],pipes:[jae,wh],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:250px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:250px;text-align:right}.listBox[_ngcontent-%COMP%]{max-height:230px;margin-bottom:20px}"]}),bde);function kde(e,t){if(1&e&&(es(0,"option",20),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.moduleName),Bo(1),$s(n.moduleName)}}function Cde(e,t){if(1&e){var n=as();es(0,"li",21),es(1,"span",22),Gs(2),ts(),es(3,"span",23),Gs(4),ts(),es(5,"span",22),Gs(6),ts(),es(7,"span",24),es(8,"fa-icon",25),ls("click",(function(){mn(n);var e=t.$implicit,i=fs();return"Alterado"!=e.activityDescription?i.showModalActivity(e.id):i.showmodalActivityUpdated(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.userName),Bo(2),$s(i.moduleName),Bo(2),$s(i.activityDescription),Bo(2),Zr("icon",o.iconRegularService.faEye)}}function wde(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function xde(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum gestor encontrado."),ts())}function Mde(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 registro no per\xedodo."),ts())}function Sde(e,t){if(1&e&&(es(0,"li"),Jr(1,wde,2,0,"p",18),Jr(2,xde,2,0,"p",18),Jr(3,Mde,2,0,"p",18),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.activityList.length>0&&n.activityList[0].loading),Bo(1),Zr("ngIf",n.activityList.length>0&&!n.activityList[0].loading&&0==n.activityListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.activityList.length)}}var Pde,Tde=((Pde=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.userDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.validService=u,this.activityDescription={created:"Novo",deleted:"Exclu\xeddo",updated:"Alterado"},this.activityList=[{loading:!0}],this.activityListFilteredModule=[],this.activityListFilteredSearch=[],this.beginDate="",this.endDate="",this.modalActivity=!1,this.modalActivityUpdated=!1,this.moduleName={Absence:"Aus\xeancias",AbsenceAttachment:"Aus\xeancias",AbsenceCollaborator:"Aus\xeancias",AbsenceType:"Aus\xeancias",Adjustment:"Ajustes",AdjustmentAttachment:"Ajustes",Collaborator:"Funcion\xe1rios",CollaboratorRule:"Regras do ponto",CollaboratorRuleCollaborator:"Transfer\xeancia - Regras do ponto",Company:"Empresas",CompanyConfiguration:"Configura\xe7\xf5es",CompTime:"Banco de Horas",CompTimeBalance:"Banco de Horas",Department:"Departamentos",Holiday:"Feriados",Journey:"Escalas",JourneyCollaborator:"Escalas",JourneyCollaboratorHour:"Escalas",JourneyHour:"Escalas",Occupation:"Cargos",OnDuty:"Plant\xe3o",OnDutyCollaborator:"Transfer\xeancia - Plant\xe3o",Person:"Funcion\xe1rios",Point:"Controle de ponto",Unit:"Unidades",UnitCollaborator:"Unidades",User:"Gestores"},this.moduleList=[],this.titleService.setTitle("Registro de atividades"),this.searchForm=this.formBuilder.group({module:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"setBeginDate",value:function(e){this.beginDate=e,this.getUserList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.getUserList()}},{key:"getUserList",value:function(){var e=this;""!=this.beginDate&&""!=this.endDate&&(this.activityList=[{loading:!0}],this.activityListFilteredSearch=[],this.userDatabase.getUserActivityList({beginDate:this.beginDate,endDate:this.endDate},(function(t){t.error||(e.activityList=t.data.activityList?t.data.activityList:[],e.setFilterModule())})))}},{key:"setFilterModule",value:function(){var e=this;this.moduleList=[],this.searchForm.controls.module.setValue("all"),this.activityList.forEach((function(t){t.activityDescription=e.activityDescription[t.activityDescription],t.moduleName=e.moduleName[t.moduleName],-1==e.moduleList.findIndex((function(e){return e.moduleName==t.moduleName}))&&e.moduleList.push({moduleName:t.moduleName})})),this.filterUserModule()}},{key:"filterUserModule",value:function(){var e=this.searchForm.controls.module.value;this.activityListFilteredModule=this.activityList.filter((function(t){return t.moduleName==e})),"all"==e&&(this.activityListFilteredModule=this.activityList),this.filterUserSearch(this.searchForm.controls.search.value)}},{key:"filterUserSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.activityListFilteredSearch=this.functionsService.arrayFilterWords(this.activityListFilteredModule,e,"userName")}},{key:"showModalActivity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activitySelectedId=e,this.modalActivity=!0}},{key:"hideModalActivity",value:function(){this.modalActivity=!1,this.activitySelectedId=null}},{key:"showmodalActivityUpdated",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.activitySelectedId=e,this.modalActivityUpdated=!0}},{key:"hidemodalActivityUpdated",value:function(){this.modalActivityUpdated=!1,this.activitySelectedId=null}}])}()).\u0275fac=function(e){return new(e||Pde)($r(wp),$r(yM),$r(zH),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL),$r(TN))},Pde.\u0275cmp=Ot({type:Pde,selectors:[["io-user-page-list-activity"]],decls:27,vars:16,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop"],[1,"activityTop"],[1,"flex"],[1,"wdFull","wdMaxHere"],[3,"selectFull","onKeyPress"],[1,"flex","start",3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","activityId","hideModal"],[3,"value"],[1,"flex","bg-white","listAlign"],[1,"item","sizeC"],[1,"item","sizeC","pdgL1"],[1,"item"],["size","3x","title","Visualizar registro",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div",4),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterUserSearch(e)})),ts(),ts(),es(7,"io-interval-selector",7),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),ts(),es(8,"div",8),es(9,"div",9),es(10,"h3",10),Gs(11,"Gestor"),ts(),es(12,"div",11),es(13,"select",12),ls("change",(function(){return t.filterUserModule()})),es(14,"option",13),Gs(15,"M\xf3dulos"),ts(),Jr(16,kde,2,2,"option",14),ts(),ns(17,"fa-icon",15),ts(),es(18,"h3",10),Gs(19,"Atividade"),ts(),es(20,"h3",10),Gs(21,"A\xe7\xe3o"),ts(),ts(),es(22,"ul",16),Jr(23,Cde,9,4,"li",17),Jr(24,Sde,4,3,"li",18),ts(),ts(),ts(),ts(),es(25,"io-user-modal-activity",19),ls("hideModal",(function(){return t.hideModalActivity()})),ts(),es(26,"io-user-modal-activity-updated",19),ls("hideModal",(function(){return t.hidemodalActivityUpdated()})),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchForm),Bo(1),Zr("moduleName","user")("titleTop","Registro de atividade"),Bo(4),Zr("selectFull",!0),Bo(1),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(6),Zr("formControlName","module"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.moduleList),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(6),Zr("ngForOf",t.activityListFilteredSearch),Bo(1),Zr("ngIf",0==t.activityListFilteredSearch.length),Bo(1),Zr("showModal",t.modalActivity)("activityId",t.activitySelectedId),Bo(1),Zr("showModal",t.modalActivityUpdated)("activityId",t.activitySelectedId))},directives:[Hf,ip,eI,oE,ZA,vm,bp,Vf,vp,ym,xm,ah,FD,sh,ude,_de],styles:[".wdMaxHere[_ngcontent-%COMP%]{max-width:300px}io-interval-selector[_ngcontent-%COMP%]{padding-top:14px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:250px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:130px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:80px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:150px;margin:0;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   .action[_ngcontent-%COMP%]{margin-left:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4)   .action[_ngcontent-%COMP%]:first-child{margin-left:0}"]}),Pde);function Ode(e,t){if(1&e&&(es(0,"option",89),Gs(1),ts()),2&e){var n=t.$implicit;vs("value",n.id),Bo(1),$s(n.name)}}function Lde(e,t){if(1&e){var n=as();es(0,"div",85),es(1,"select",86),ls("change",(function(){return mn(n),fs().setCoordinates()})),Jr(2,Ode,2,2,"option",87),ts(),es(3,"label",88),Gs(4),_c(5,"translate"),ts(),ns(6,"fa-icon",64),ts()}if(2&e){var i=fs();Bo(1),Zr("formControlName","barrier_id"),Bo(1),Zr("ngForOf",i.barrierList),Bo(2),$s(kc(5,4,"module.unit.barrier")),Bo(2),Zr("icon",i.iconSolidService.faCaretDown)}}function Dde(e,t){if(1&e&&(es(0,"agm-map",91),ns(1,"agm-marker",92),ns(2,"agm-circle",93),ts()),2&e){var n=fs(2);Zr("latitude",n.latitude)("longitude",n.longitude)("zoom",20),Bo(1),Zr("latitude",n.latitude)("longitude",n.longitude)("markerDraggable",!0),Bo(1),Zr("latitude",n.latitude)("longitude",n.longitude)("radius",n.radius)("fillColor","#007ec2")("circleDraggable",!1)("editable",!1)}}function Ide(e,t){if(1&e&&(es(0,"div"),Jr(1,Dde,3,12,"agm-map",90),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.hasCoordinates())}}var Fde,Ade=((Fde=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.companyDatabase=n,this.databaseService=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.unitDatabase=s,this.storageService=l,this.showModal=!0,this.unitId=null,this.hideModal=new Mc,this.unitPosted=new Mc,this.unitUpdated=new Mc,this.updateOn=!1,this.stateFields={name:{class:""}},this.barrierList=[],this.radius=20,this.latitude=0,this.longitude=0,this.modalOpenBarrierCollaborator=!1,this.questionCard=!1,this.questionCardType=0,this.permissionType=this.storageService.decodeFromLocalStorage("permissionType"),this.permissionList=this.storageService.decodeFromLocalStorage("permissionListAllowed"),this.userId=this.storageService.decodeFromLocalStorage("userId"),this.unitModuleId=null,this.validCEP=!1,this.unitForm=this.formBuilder.group({active:new Wm(1,[Jf.required]),address:new Wm("",[Jf.required]),address_number:new Wm("",[Jf.required]),barrier_id:new Wm(null,[Jf.required]),city:new Wm("",[Jf.required]),complement:new Wm("",[]),have_barrier:new Wm(!1,[Jf.required]),createBarrierCollaborator:new Wm(!1,[]),name:new Wm("",[Jf.required]),neighborhood:new Wm("",[Jf.required]),phone:new Wm("",[Jf.required]),state:new Wm("",[Jf.required]),timezone:new Wm("-03:00",[Jf.required]),zip_code:new Wm("",[Jf.required]),unit_national_registry:new Wm("",[Jf.required]),export_code:new Wm("",[Jf.required]),moduleId:new Wm("",[Jf.required]),userId:new Wm("",[Jf.required]),permissionType:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(){var e=this;if(this.showModal){if(this.getBarrier(),null!=this.unitId&&(this.updateOn=!0,this.unitDatabase.getUnit(this.unitId,(function(t){t.error||(t=t.data,Object.keys(e.unitForm.controls).forEach((function(n){e.unitForm.get(n).setValue(t[n])})),e.unitForm.get("have_barrier").setValue(null!=e.unitForm.get("barrier_id").value))}))),"custom"==this.permissionType){var t,n=o(JSON.parse(this.permissionList));try{for(n.s();!(t=n.n()).done;){var i=t.value;if("unit"===i.name){this.unitModuleId=i.module_id;break}}}catch(a){n.e(a)}finally{n.f()}}this.unitForm.controls.moduleId.setValue(this.unitModuleId),this.unitForm.controls.userId.setValue(this.userId),this.unitForm.controls.permissionType.setValue(this.permissionType)}}},{key:"resetForm",value:function(){this.unitForm.reset(),this.unitForm.get("timezone").setValue("-03:00"),this.latitude=null,this.longitude=null}},{key:"getBarrier",value:function(){var e=this;this.companyDatabase.getSelectList({listRequired:JSON.stringify(["barrier"])},(function(t){t.error||(e.barrierList=t.data.barrier)}))}},{key:"searchCep",value:function(){var e=this,t=this.unitForm.get("zip_code").value;""!=t&&8==t.length&&this.databaseService.getCep(t,(function(t){if(t.data.error)return e.validCEP=!1,e.functionsService.openSnackBar(t.data.error.msg);e.validCEP=!0,e.functionsService.removeSpaces((t=t.data.data_city[0]).address)!==e.functionsService.removeSpaces(t.city)&&e.unitForm.get("address").setValue(t.address),t.neighborhood_name&&e.unitForm.get("neighborhood").setValue(t.neighborhood_name),e.unitForm.get("city").setValue(t.city),e.unitForm.get("state").setValue(t.state)}))}},{key:"validBarrierId",value:function(){this.unitForm.get("have_barrier").value||this.unitForm.get("barrier_id").setValue(null)}},{key:"sendUnit",value:function(){var e=this.unitForm.value;this.checkErrorField("name")?this.validCEP?(null===this.unitForm.get("timezone").value&&this.functionsService.openSnackBar("\xc9 necess\xe1rio selecionar um fuso hor\xe1rio para a unidade"),this.unitId?this.putUnit(e):this.postUnit(e)):this.functionsService.openSnackBar("\xc9 necess\xe1rio informar um CEP v\xe1lido para a unidade"):this.functionsService.openSnackBar("\xc9 necess\xe1rio um nome para registrar a unidade")}},{key:"postUnit",value:function(e){var t=this;this.unitDatabase.postUnit(e,(function(n){n.error||(t.emitAddToList(Object.assign(Object.assign({},e),{id:n.data.id})),t.closeModal())}))}},{key:"putUnit",value:function(e){var t=this,n=this.unitId;this.unitDatabase.putUnit(n,e,(function(i){i.error||(t.emitUpdateList(Object.assign(Object.assign({},e),{id:n})),t.closeModal())}))}},{key:"emitAddToList",value:function(e){this.unitPosted.emit(e)}},{key:"emitUpdateList",value:function(e){this.unitUpdated.emit(e)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.updateOn=!1,this.unitForm.reset(),this.unitForm.get("active").setValue(1)}},{key:"checkErrorField",value:function(e){return this.unitForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"openBarrierModal",value:function(){this.modalOpenBarrierCollaborator=!0}},{key:"hideOpenBarrierCollaborator",value:function(){this.modalOpenBarrierCollaborator=!1}},{key:"linkCollaboratorsBarrier",value:function(e){this.hideOpenBarrierCollaborator(),this.unitForm.get("createBarrierCollaborator").setValue(e),this.sendUnit()}},{key:"setCoordinates",value:function(){var e=this;if(this.unitForm.get("barrier_id").value){var t=this.barrierList.findIndex((function(t){return t.id==e.unitForm.get("barrier_id").value}));this.latitude=parseFloat(this.barrierList[t].latitude),this.longitude=parseFloat(this.barrierList[t].longitude)}}},{key:"hasCoordinates",value:function(){return null!=this.latitude&&null!=this.longitude}},{key:"showQuestionCard",value:function(e){this.questionCardType=e,this.questionCard=!0}},{key:"hideQuestionCard",value:function(){this.questionCard=!1}}])}()).\u0275fac=function(e){return new(e||Fde)($r(wp),$r(Mz),$r(tT),$r(zP),$r(WO),$r(JO),$r(FN),$r(YP))},Fde.\u0275cmp=Ot({type:Fde,selectors:[["io-unit-modal-form"]],inputs:{showModal:"showModal",unitId:"unitId"},outputs:{hideModal:"hideModal",unitPosted:"unitPosted",unitUpdated:"unitUpdated"},features:[dl],decls:173,vars:83,consts:[[3,"showModal","hideModal"],[1,"formBox","minHeightBox",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"pdgT2","pdgB2","split"],[1,"flex"],[1,"form-group","inputAnimated"],["autocomplete","off","id","name","placeholder","","required","","type","text","autofocus","",3,"formControlName","keyup"],["for","name",1,"form-label","required"],["autocomplete","off","id","phone","placeholder","","required","","type","tel",3,"formControlName"],["for","phone",1,"form-label"],["autocomplete","off","id","zip_code","mask","00.000-000","maxlength","10","required","","type","text",3,"formControlName","change"],["for","zip_code",1,"form-label"],["autocomplete","off","id","state","required","","type","text",3,"formControlName"],["for","state",1,"form-label"],["autocomplete","off","id","city","placeholder","","required","","type","text",3,"formControlName"],["for","city",1,"form-label"],["autocomplete","off","id","neighborhood","placeholder","","required","","type","text",3,"formControlName"],["for","neighborhood",1,"form-label"],["autocomplete","off","id","address","placeholder","","required","","type","text",3,"formControlName"],["for","address",1,"form-label"],["autocomplete","off","id","address_number","placeholder","","required","","type","text",3,"formControlName"],["for","address_number",1,"form-label"],["autocomplete","off","id","complement","placeholder","","required","","type","text",3,"formControlName"],["for","complement",1,"form-label"],["autocomplete","off","id","timezone","required","","type","text",3,"formControlName"],["value","-12:00"],["value","-11:00"],["value","-10:00"],["value","-09:30"],["value","-09:00"],["value","-08:00"],["value","-07:00"],["value","-06:00"],["value","-05:00"],["value","-04:00"],["value","-03:30"],["value","-03:00","selected",""],["value","-02:00"],["value","-01:00"],["value","+00:00"],["value","+01:00"],["value","+02:00"],["value","+03:00"],["value","+03:30"],["value","+04:00"],["value","+04:30"],["value","+05:00"],["value","+05:30"],["value","+05:45"],["value","+06:00"],["value","+06:30"],["value","+07:00"],["value","+08:00"],["value","+08:45"],["value","+09:00"],["value","+09:30"],["value","+10:00"],["value","+10:30"],["value","+11:00"],["value","+12:00"],["value","+12:45"],["value","+13:00"],["value","+14:00"],["for","timezone",1,"form-label","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["autocomplete","off","id","unit_national_registry","mask","00.000.000/0000-00","maxlength","18","required","","type","text",3,"formControlName"],["for","unit_national_registry",1,"form-label"],[1,"form-group","inputAnimated","flex"],["autocomplete","off","id","export_code","maxlength","20","required","","type","text",3,"formControlName"],["for","export_code",1,"form-label"],["size","3x","title","Mais informa\xe7\xf5es",1,"iconItem","iconSizeF","cl-blue","iconSelectField","clickPlace",3,"icon","click"],[1,"form-group","flex","borderBottom","pdgT1","pdgB1","mrgB1"],[1,"sizeC"],[1,"permissionSwitchBox"],[1,"switchBox","switchOnOff"],["type","checkbox",1,"switchInput",3,"formControlName","change"],[1,"switch"],[1,"switchTextOn"],[1,"switchTextOff"],["class","form-group flex pdgT1 inputAnimated",4,"ngIf"],[4,"ngIf"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showModal","title","btnTextConfirm","btnTextDeny","confirmClick","denyClick","hideModal"],[3,"showCard","questionCardType","hideCard"],[1,"form-group","flex","pdgT1","inputAnimated"],["autocomplete","off","id","barrier_id","required","","type","text",3,"formControlName","change"],[3,"value",4,"ngFor","ngForOf"],["for","barrier_id",1,"form-label"],[3,"value"],[3,"latitude","longitude","zoom",4,"ngIf"],[3,"latitude","longitude","zoom"],[3,"latitude","longitude","markerDraggable"],[3,"latitude","longitude","radius","fillColor","circleDraggable","editable"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3),_c(4,"translate"),_c(5,"translate"),ts(),es(6,"div",3),es(7,"div",4),es(8,"div",5),es(9,"input",6),ls("keyup",(function(){return t.checkErrorField("name")})),ts(),es(10,"label",7),Gs(11),_c(12,"translate"),ts(),ts(),es(13,"div",5),ns(14,"input",8),es(15,"label",9),Gs(16),_c(17,"translate"),ts(),ts(),ts(),es(18,"div",4),es(19,"div",5),es(20,"input",10),ls("change",(function(){return t.searchCep()})),ts(),es(21,"label",11),Gs(22),_c(23,"translate"),ts(),ts(),es(24,"div",5),ns(25,"input",12),es(26,"label",13),Gs(27),_c(28,"translate"),ts(),ts(),ts(),es(29,"div",4),es(30,"div",5),ns(31,"input",14),es(32,"label",15),Gs(33),_c(34,"translate"),ts(),ts(),es(35,"div",5),ns(36,"input",16),es(37,"label",17),Gs(38),_c(39,"translate"),ts(),ts(),ts(),es(40,"div",4),es(41,"div",5),ns(42,"input",18),es(43,"label",19),Gs(44),_c(45,"translate"),ts(),ts(),es(46,"div",5),ns(47,"input",20),es(48,"label",21),Gs(49),_c(50,"translate"),ts(),ts(),ts(),es(51,"div",4),es(52,"div",5),ns(53,"input",22),es(54,"label",23),Gs(55),_c(56,"translate"),ts(),ts(),es(57,"div",5),es(58,"select",24),es(59,"option",25),Gs(60,"GMT -12:00"),ts(),es(61,"option",26),Gs(62,"GMT -11:00"),ts(),es(63,"option",27),Gs(64,"GMT -10:00 (Hor\xe1rio Padr\xe3o do Hava\xed-Aleutas)"),ts(),es(65,"option",28),Gs(66,"GMT -09:30 (Hor\xe1rio das Ilhas Marquesas)"),ts(),es(67,"option",29),Gs(68,"GMT -09:00 (Hor\xe1rio Padr\xe3o do Alasca)"),ts(),es(69,"option",30),Gs(70,"GMT -08:00 (Hor\xe1rio Padr\xe3o do Pac\xedfico)"),ts(),es(71,"option",31),Gs(72,"GMT -07:00 (Hor\xe1rio Padr\xe3o da Montanha)"),ts(),es(73,"option",32),Gs(74,"GMT -06:00 (Hor\xe1rio Padr\xe3o Central)"),ts(),es(75,"option",33),Gs(76,"GMT -05:00 (Hor\xe1rio Padr\xe3o Oriental)"),ts(),es(77,"option",34),Gs(78,"GMT -04:00 (Hor\xe1rio Padr\xe3o do Atl\xe2ntico)"),ts(),es(79,"option",35),Gs(80,"GMT -03:30 (Hor\xe1rio Padr\xe3o de Terra Nova)"),ts(),es(81,"option",36),Gs(82,"GMT -03:00 (Hor\xe1rio de Bras\xedlia, Hor\xe1rio da Argentina)"),ts(),es(83,"option",37),Gs(84,"GMT -02:00 (Hor\xe1rio da Ge\xf3rgia do Sul e Ilhas Sandwich do Sul)"),ts(),es(85,"option",38),Gs(86,"GMT -01:00 (Hor\xe1rio Padr\xe3o dos A\xe7ores, Hor\xe1rio de Cabo Verde)"),ts(),es(87,"option",39),Gs(88,"GMT +00:00 (Hor\xe1rio do Meridiano de Greenwich, Hor\xe1rio da Europa Ocidental)"),ts(),es(89,"option",40),Gs(90,"GMT +01:00 (Hor\xe1rio da Europa Central)"),ts(),es(91,"option",41),Gs(92,"GMT +02:00 (Hor\xe1rio da Europa Oriental, Hor\xe1rio da \xc1frica Central)"),ts(),es(93,"option",42),Gs(94,"GMT +03:00 (Hor\xe1rio de Moscou, Hor\xe1rio da \xc1frica Oriental)"),ts(),es(95,"option",43),Gs(96,"GMT +03:30 (Hor\xe1rio Padr\xe3o do Ir\xe3)"),ts(),es(97,"option",44),Gs(98,"GMT +04:00 (Hor\xe1rio Padr\xe3o do Golfo, Hor\xe1rio de Samara)"),ts(),es(99,"option",45),Gs(100,"GMT +04:30 (Hor\xe1rio do Afeganist\xe3o)"),ts(),es(101,"option",46),Gs(102,"GMT +05:00 (Hor\xe1rio Padr\xe3o do Paquist\xe3o, Hor\xe1rio de Ecaterimburgo)"),ts(),es(103,"option",47),Gs(104,"GMT +05:30 (Hor\xe1rio Padr\xe3o da \xcdndia, Hor\xe1rio do Sri Lanka)"),ts(),es(105,"option",48),Gs(106,"GMT +05:45 (Hor\xe1rio do Nepal)"),ts(),es(107,"option",49),Gs(108,"GMT +06:00 (Hor\xe1rio Padr\xe3o de Bangladesh, Hor\xe1rio do But\xe3o, Hor\xe1rio de Omsk)"),ts(),es(109,"option",50),Gs(110,"GMT +06:30 (Hor\xe1rio das Ilhas Cocos, Hor\xe1rio de Mianmar)"),ts(),es(111,"option",51),Gs(112,"GMT +07:00 (Hor\xe1rio da Indochina, Hor\xe1rio de Krasnoyarsk)"),ts(),es(113,"option",52),Gs(114,"GMT +08:00 (Hor\xe1rio Padr\xe3o da China, Hor\xe1rio Padr\xe3o da Austr\xe1lia Ocidental, Hor\xe1rio de Irkutsk)"),ts(),es(115,"option",53),Gs(116,"GMT +08:45 (Hor\xe1rio Padr\xe3o da Austr\xe1lia Centro-Ocidental)"),ts(),es(117,"option",54),Gs(118,"GMT +09:00 (Hor\xe1rio Padr\xe3o do Jap\xe3o, Hor\xe1rio Padr\xe3o da Coreia, Hor\xe1rio de Chita)"),ts(),es(119,"option",55),Gs(120,"GMT +09:30 (Hor\xe1rio Padr\xe3o da Austr\xe1lia Central)"),ts(),es(121,"option",56),Gs(122,"GMT +10:00 (Hor\xe1rio Padr\xe3o da Austr\xe1lia Oriental, Hor\xe1rio de Vladivostok)"),ts(),es(123,"option",57),Gs(124,"GMT +10:30 (Hor\xe1rio Padr\xe3o da Ilha Lord Howe)"),ts(),es(125,"option",58),Gs(126,"GMT +11:00 (Hor\xe1rio das Ilhas Salom\xe3o, Hor\xe1rio de Srednekolymsk)"),ts(),es(127,"option",59),Gs(128,"GMT +12:00 (Hor\xe1rio de Fiji, Hor\xe1rio Padr\xe3o da Nova Zel\xe2ndia, Hor\xe1rio de Kamchatka)"),ts(),es(129,"option",60),Gs(130,"GMT +12:45 (Hor\xe1rio Padr\xe3o das Ilhas Chatham)"),ts(),es(131,"option",61),Gs(132,"GMT +13:00 (Hor\xe1rio de Tonga, Hor\xe1rio das Ilhas Phoenix, Hor\xe1rio Padr\xe3o de Samoa)"),ts(),es(133,"option",62),Gs(134,"GMT +14:00 (Hor\xe1rio das Ilhas da Linha)"),ts(),ts(),es(135,"label",63),Gs(136),_c(137,"translate"),ts(),ns(138,"fa-icon",64),ts(),ts(),es(139,"div",4),es(140,"div",5),ns(141,"input",65),es(142,"label",66),Gs(143),ts(),ts(),es(144,"div",67),ns(145,"input",68),es(146,"label",69),Gs(147,"C\xf3digo de exporta\xe7\xe3o"),ts(),es(148,"fa-icon",70),ls("click",(function(){return t.showQuestionCard(38)})),ts(),ts(),ts(),es(149,"div",4),es(150,"div",71),es(151,"h3",72),Gs(152,"Cerca digital"),ts(),es(153,"div",73),es(154,"label",74),es(155,"input",75),ls("change",(function(){return t.validBarrierId()})),ts(),es(156,"span",76),es(157,"span",77),Gs(158,"Sim"),ts(),es(159,"span",78),Gs(160,"N\xe3o"),ts(),ts(),ts(),ts(),Gs(161," - "),ts(),Jr(162,Lde,7,6,"div",79),ts(),Jr(163,Ide,2,1,"div",80),ts(),ts(),es(164,"div",4),es(165,"io-btn",81),ls("btnClick",(function(){return t.closeModal()})),ts(),es(166,"io-btn",82),ls("btnClick",(function(){return t.sendUnit()})),_c(167,"translate"),_c(168,"translate"),_c(169,"translate"),_c(170,"translate"),ts(),ts(),ts(),es(171,"io-modal-confirm",83),ls("confirmClick",(function(){return t.linkCollaboratorsBarrier(!0)}))("denyClick",(function(){return t.linkCollaboratorsBarrier(!1)}))("hideModal",(function(){return t.hideOpenBarrierCollaborator()})),ts(),es(172,"io-point-rule-modal-question-card",84),ls("hideCard",(function(){return t.hideQuestionCard()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.unitForm),Bo(2),$s(t.updateOn?kc(4,51,"module.unit.unitedit"):kc(5,53,"module.unit.unitnew")),Bo(6),Es(t.stateFields.name.class),Zr("formControlName","name"),Bo(2),$s(kc(12,55,"module.unit.name")),Bo(3),Zr("formControlName","phone"),Bo(2),$s(kc(17,57,"module.unit.phone")),Bo(4),Zr("formControlName","zip_code"),Bo(2),$s(kc(23,59,"module.unit.zip_code")),Bo(3),Zr("formControlName","state"),Bo(2),$s(kc(28,61,"module.unit.state")),Bo(4),Zr("formControlName","city"),Bo(2),$s(kc(34,63,"module.unit.city")),Bo(3),Zr("formControlName","neighborhood"),Bo(2),$s(kc(39,65,"module.unit.neighborhood")),Bo(4),Zr("formControlName","address"),Bo(2),$s(kc(45,67,"module.unit.address")),Bo(3),Zr("formControlName","address_number"),Bo(2),$s(kc(50,69,"module.unit.address_number")),Bo(4),Zr("formControlName","complement"),Bo(2),$s(kc(56,71,"module.unit.complement")),Bo(3),Zr("formControlName","timezone"),Bo(78),$s(kc(137,73,"module.unit.timezone")),Bo(2),Zr("icon",t.iconSolidService.faCaretDown),Bo(3),Zr("formControlName","unit_national_registry"),Bo(2),$s("CNPJ"),Bo(2),Zr("formControlName","export_code"),Bo(3),Zr("icon",t.iconRegularService.faQuestionCircle),Bo(7),Zr("formControlName","have_barrier"),Bo(7),Zr("ngIf",t.unitForm.get("have_barrier").value),Bo(1),Zr("ngIf",t.unitForm.get("have_barrier").value&&t.unitForm.get("barrier_id").value),Bo(2),Zr("moduleName","unit")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","unit")("action","create")("btnColor","btn-blue-bg")("btnText",t.updateOn?kc(167,75,"systemwords.save"):kc(168,77,"systemwords.register"))("btnTitle",t.updateOn?kc(169,79,"systemwords.save"):kc(170,81,"systemwords.register")),Bo(5),Zr("showModal",t.modalOpenBarrierCollaborator)("title","Deseja vincular os funcion\xe1rios desta unidade na cerca digital?")("btnTextConfirm","Vincular")("btnTextDeny","N\xe3o Vincular"),Bo(1),Zr("showCard",t.questionCard)("questionCardType",t.questionCardType))},directives:[CE,Hf,ip,If,bp,Vf,vp,DE,kp,vm,ym,xm,FD,Of,sh,jD,UB,XQ,ah,pC,vC,Uk],pipes:[jae],styles:[".borderBottom[_ngcontent-%COMP%]{border-color:#444}agm-map[_ngcontent-%COMP%]{height:200px}.iconSelectField[_ngcontent-%COMP%]{position:absolute;top:13px;z-index:1}"]}),Fde);function Ede(e,t){if(1&e&&(es(0,"span",27),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Bde(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalCollaboratorList(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados")}function Nde(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalUnit(e.id)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","unit")("action","update")("moduleId",i.id)("iconClassList","mrgL1")("iconTitle","Editar unidade")}}function Rde(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalRemoveUnit(e.id)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","unit")("action","delete")("moduleId",i.id)("iconClassList","mrgL1")("iconTitle","Excluir unidade")}}function jde(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalInactiveUnit(e.id)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","unit")("action","delete")("moduleId",i.id)("iconClassList","mrgL1")("iconTitle","Inativar unidade")}}function zde(e,t){if(1&e){var n=as();es(0,"io-icon",28),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactiveUnit(e.id)})),ts()}2&e&&Zr("moduleName","unit")("action","reactive")("iconClassList","mrgL1")("iconTitle","Reativar unidade")}function Vde(e,t){if(1&e&&(es(0,"li",20),es(1,"span",21),Jr(2,Ede,2,1,"span",22),Gs(3),ts(),es(4,"span",21),Gs(5),ts(),es(6,"span",21),Gs(7),ts(),es(8,"span",23),Gs(9),ts(),es(10,"span",24),Jr(11,Bde,1,4,"io-icon",25),Jr(12,Nde,1,5,"io-icon",26),Jr(13,Rde,1,5,"io-icon",26),Jr(14,jde,1,5,"io-icon",26),Jr(15,zde,1,4,"io-icon",25),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),Qs(" ",n.name," "),Bo(2),$s(n.totalCollaborators),Bo(2),$s(n.barrier_id?"Sim":"N\xe3o"),Bo(2),$s(n.active?"Ativa":"Inativa"),Bo(2),Zr("ngIf",1==n.active),Bo(1),Zr("ngIf",1==n.active),Bo(1),Zr("ngIf",0==n.active&&null===n.unitHistoric),Bo(1),Zr("ngIf",n.active&&0==n.totalCollaborators),Bo(1),Zr("ngIf",!n.active)}}function Hde(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Yde(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma unidade encontrada."),ts())}function qde(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 unidade cadastrada."),ts())}function Ude(e,t){if(1&e&&(es(0,"li"),Jr(1,Hde,2,0,"p",15),Jr(2,Yde,2,0,"p",15),Jr(3,qde,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.unitList.length>0&&n.unitList[0].loading),Bo(1),Zr("ngIf",n.unitList.length>0&&!n.unitList[0].loading&&0==n.unitListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.unitList.length)}}var Wde,Jde,Gde,$de=((Jde=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.databaseService=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.titleService=r,this.unitDatabase=s,this.storageService=l,this.collaboratorListIn=[],this.collaboratorListOut=[],this.modalUnit=!1,this.modalReactiveUnit=!1,this.modalRemoveUnit=!1,this.modalInactiveUnit=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.unitList=[{loading:!0}],this.unitListFilteredStatus=[],this.unitListFilteredSearch=[],this.unitSelectedId=null,this.unitHistoric=[],this.selectedDate=null,this.today=Rd(new Date,"yyyy-MM-dd","en"),this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm(1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Unidades"),this.loadList()}},{key:"loadList",value:function(){var e=this;this.unitDatabase.getUnitList((function(t){t.error||(e.unitList=t.data.unitList.length>0?t.data.unitList:[],e.filterUnitStatus())}))}},{key:"filterUnitStatus",value:function(){var e=this.searchForm.controls.status.value;this.unitListFilteredStatus="all"==e?this.unitList:this.unitList.filter((function(t){return t.active==e})),this.filterUnitSearch(this.searchForm.controls.search.value)}},{key:"filterUnitSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.unitListFilteredSearch=this.functionsService.arrayFilterWords(this.unitListFilteredStatus,e,"name")}},{key:"showModalUnit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.unitSelectedId=e,this.modalUnit=!0}},{key:"addToUnitList",value:function(e){this.unitList.push(e),this.loadList(),this.filterUnitStatus()}},{key:"updateUnitList",value:function(e){var t=this.unitList.findIndex((function(t){return t.id==e.id}));this.unitList[t]=e,this.loadList(),this.filterUnitStatus()}},{key:"hideModalUnit",value:function(){this.modalUnit=!1,this.unitSelectedId=null}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.unitDatabase.getUnitCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.unitSelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.unitSelectedId=null,this.modalCollaboratorList=!1}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.unitDatabase.getUnitCollaboratorListOut(this.unitSelectedId,this.today,(function(t){t.error||(e.collaboratorListOut=t.data.CollaboratorListOut||[])})),this.modalCollaboratorLink=!0,this.modalCollaboratorList=!1}},{key:"getDateSelected",value:function(e){this.selectedDate=e[0]}},{key:"linkCollaboratorList",value:function(e){var t=this;this.unitDatabase.postUnitCollaboratorList(this.unitSelectedId,{collaborator_id:JSON.stringify(e),date:this.selectedDate},(function(e){e.error||(t.loadList(),t.hideModalCollaboratorList())}))}},{key:"hideModalCollaboratorLink",value:function(){this.modalCollaboratorLink=!1,this.unitSelectedId=null}},{key:"showModalRemoveUnit",value:function(e){this.unitSelectedId=e,this.modalRemoveUnit=!0}},{key:"deleteUnit",value:function(e){var t=this;this.unitDatabase.deleteUnit(e,(function(n){if(!n.error){var i=t.unitList.findIndex((function(t){return t.id==e}));t.unitList.splice(i,1),t.filterUnitStatus(),t.hideModalRemoveUnit()}}))}},{key:"hideModalRemoveUnit",value:function(){this.unitSelectedId=null,this.modalRemoveUnit=!1}},{key:"showModalInactiveUnit",value:function(e){this.unitSelectedId=e,this.modalInactiveUnit=!0}},{key:"inactiveUnit",value:function(e){var t=this;this.unitDatabase.putUnitInactivate(e,(function(n){if(!n.error){var i=t.unitList.findIndex((function(t){return t.id==e}));t.unitList[i].active=0,t.loadList(),t.hideModalInactiveUnit()}}))}},{key:"hideModalInactiveUnit",value:function(){this.unitSelectedId=null,this.modalInactiveUnit=!1}},{key:"showModalReactiveUnit",value:function(e){this.unitSelectedId=e,this.modalReactiveUnit=!0}},{key:"reactiveUnit",value:function(e){var t=this;this.unitDatabase.putUnitReactive(e,(function(n){if(!n.error){var i=t.unitList.findIndex((function(t){return t.id==e}));t.unitList[i].active=1,t.loadList(),t.hideModalReactiveUnit()}}))}},{key:"hideModalReactiveUnit",value:function(){this.unitSelectedId=null,this.modalReactiveUnit=!1}}])}()).\u0275fac=function(e){return new(e||Jde)($r(wp),$r(tT),$r(zP),$r(WO),$r(JO),$r(hL),$r(FN),$r(YP))},Jde.\u0275cmp=Ot({type:Jde,selectors:[["io-unit-page-list"]],decls:33,vars:41,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnClick"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","unitId","unitPosted","unitUpdated","hideModal"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","datePicker","showModal","unitSelectedId","selectedDate","selectedId","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","moduleId","iconClassList","iconTitle","iconClick",4,"ngIf"],[1,"sizeB","internal","mrgR1"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","moduleId","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalUnit()})),ts(),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterUnitSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Unidade"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rios"),ts(),es(11,"h3",7),Gs(12,"Cerca Digital"),ts(),es(13,"div",8),es(14,"select",9),ls("change",(function(){return t.filterUnitStatus()})),es(15,"option",10),Gs(16,"Todas"),ts(),es(17,"option",10),Gs(18,"Inativa"),ts(),es(19,"option",11),Gs(20,"Ativa"),ts(),ts(),ns(21,"fa-icon",12),ts(),es(22,"h3",7),Gs(23,"A\xe7\xe3o"),ts(),ts(),es(24,"ul",13),Jr(25,Vde,16,10,"li",14),Jr(26,Ude,4,3,"li",15),ts(),ts(),ts(),ts(),es(27,"io-unit-modal-form",16),ls("unitPosted",(function(e){return t.addToUnitList(e)}))("unitUpdated",(function(e){return t.updateUnitList(e)}))("hideModal",(function(){return t.hideModalUnit()})),ts(),es(28,"io-modal-confirm",17),ls("confirmClick",(function(){return t.deleteUnit(t.unitSelectedId)}))("hideModal",(function(){return t.hideModalRemoveUnit()})),ts(),es(29,"io-modal-confirm",17),ls("confirmClick",(function(){return t.reactiveUnit(t.unitSelectedId)}))("hideModal",(function(){return t.hideModalReactiveUnit()})),ts(),es(30,"io-modal-confirm",17),ls("confirmClick",(function(){return t.inactiveUnit(t.unitSelectedId)}))("hideModal",(function(){return t.hideModalInactiveUnit()})),ts(),es(31,"io-modal-multi-select-id",18),ls("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(32,"io-modal-multi-select-id",19),ls("selectedDate",(function(e){return t.getDateSelected(e)}))("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(2),Zr("moduleName","unit")("titleTop","Unidades")("showBtn",!0),Bo(4),Zr("formGroup",t.searchForm),Bo(8),Zr("formControlName","status"),Bo(1),Zr("value","all"),Bo(2),Zr("value",0),Bo(2),Zr("value",1),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.unitListFilteredSearch),Bo(1),Zr("ngIf",0==t.unitListFilteredSearch.length),Bo(1),Zr("showModal",t.modalUnit)("unitId",t.unitSelectedId),Bo(1),Zr("showModal",t.modalRemoveUnit)("title","Deseja excluir esta unidade?")("btnTextConfirm","Excluir"),Bo(1),Zr("showModal",t.modalReactiveUnit)("title","Deseja reativar esta unidade?")("btnTextConfirm","Reativar"),Bo(1),Zr("showModal",t.modalInactiveUnit)("title","Deseja inativar esta unidade?")("btnTextConfirm","Inativar"),Bo(1),Zr("title","Funcion\xe1rios vinculados a esta unidade")("moduleName","unit")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a esta unidade")("moduleName","unit")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("datePicker",!0)("showModal",t.modalCollaboratorLink)("unitSelectedId",t.unitSelectedId))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,Ade,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:15%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5)   .action[_ngcontent-%COMP%]{margin-left:10px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5)   .action[_ngcontent-%COMP%]:first-child{margin-left:0}"]}),Jde),Qde=((Wde=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteJobSwap",value:function(e,t){this.databaseService.delete("/collaboratorJobSwap/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getJobSwapList",value:function(e,t){this.databaseService.get("/collaboratorJobSwap",{date:e}).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postJobSwap",value:function(e,t){this.databaseService.post("/collaboratorJobSwap",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||Wde)(ut(tT))},Wde.\u0275prov=Se({token:Wde,factory:Wde.\u0275fac,providedIn:"root"}),Wde),Kde=function(e){return[e]},Zde=((Gde=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.collaboratorJobSwapDatabase=n,this.functionsService=i,this.showModal=!0,this.hideModal=new Mc,this.jobSwapPosted=new Mc,this.firstCollaboratorDate=null,this.firstCollaboratorName="Selecione o funcion\xe1rio",this.firstCollaboratorId=null,this.secondCollaboratorDate=null,this.secondCollaboratorName="Selecione o funcion\xe1rio",this.secondCollaboratorId=null,this.modalFirstCollaborator=!1,this.modalSecondCollaborator=!1,this.stateFields={description:{class:""}},this.jobSwapForm=this.formBuilder.group({description:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){}},{key:"showModalFirstCollaborator",value:function(){this.modalFirstCollaborator=!0}},{key:"hideModalFirstCollaborator",value:function(){this.modalFirstCollaborator=!1}},{key:"showModalSecondCollaborator",value:function(){this.modalSecondCollaborator=!0}},{key:"hideModalSecondCollaborator",value:function(){this.modalSecondCollaborator=!1}},{key:"setFirstCollaboratorDate",value:function(e){this.firstCollaboratorDate=e}},{key:"setFirstCollaboratorId",value:function(e){this.firstCollaboratorId=e[0]}},{key:"setFirstCollaboratorName",value:function(e){this.firstCollaboratorName=e[0]}},{key:"setSecondCollaboratorDate",value:function(e){this.secondCollaboratorDate=e}},{key:"setSecondCollaboratorId",value:function(e){this.secondCollaboratorId=e[0]}},{key:"setSecondCollaboratorName",value:function(e){this.secondCollaboratorName=e[0]}},{key:"sendJobSwap",value:function(){this.firstCollaboratorDate&&""!=this.firstCollaboratorDate&&this.secondCollaboratorDate&&""!=this.secondCollaboratorDate?this.firstCollaboratorId&&""!=this.firstCollaboratorId&&this.secondCollaboratorId&&""!=this.secondCollaboratorId?this.postJobSwap({date_1:this.firstCollaboratorDate,date_2:this.secondCollaboratorDate,collaborator_id_1:this.firstCollaboratorId,collaborator_id_2:this.secondCollaboratorId}):this.functionsService.openSnackBar("Selecione os funcion\xe1rios para a permuta"):this.functionsService.openSnackBar("Selecione as datas para a permuta")}},{key:"postJobSwap",value:function(e){var t=this;this.collaboratorJobSwapDatabase.postJobSwap(e,(function(e){e.error||(t.jobSwapPosted.emit(),t.closeModal())}))}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.jobSwapForm.reset(),this.firstCollaboratorDate=null,this.firstCollaboratorName=null,this.firstCollaboratorId=null,this.secondCollaboratorDate=null,this.secondCollaboratorName=null,this.secondCollaboratorId=null}}])}()).\u0275fac=function(e){return new(e||Gde)($r(wp),$r(Qde),$r(zP))},Gde.\u0275cmp=Ot({type:Gde,selectors:[["io-collaborator-job-swap-modal-form"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",jobSwapPosted:"jobSwapPosted"},features:[dl],decls:23,vars:36,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"sizeA","cl-blue","fontUp","fontBold","pdgB2","mrgB2"],[1,"collaborator-box","mrgB2"],[1,"sizeC","mrgB1"],[1,"borderBottom","mrgB1","clickPlace",3,"title","click"],[1,"sizeC"],[3,"collaboratorListId","labelText","dateSelectedEN"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[3,"showModal","title","moduleName","btnAddAction","btnAddText","singleSelect","selectedId","selectedName","hideModal"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"h2",2),Gs(3,"Nova permuta"),ts(),es(4,"div",3),es(5,"h3",4),Gs(6,"Funcionario 1:"),ts(),es(7,"div",5),ls("click",(function(){return t.showModalFirstCollaborator()})),es(8,"span",6),Gs(9),ts(),ts(),es(10,"io-datepicker",7),ls("dateSelectedEN",(function(e){return t.setFirstCollaboratorDate(e)})),ts(),ts(),es(11,"div",3),es(12,"h3",4),Gs(13,"Funcion\xe1rio 2:"),ts(),es(14,"div",5),ls("click",(function(){return t.showModalSecondCollaborator()})),es(15,"span",6),Gs(16),ts(),ts(),es(17,"io-datepicker",7),ls("dateSelectedEN",(function(e){return t.setSecondCollaboratorDate(e)})),ts(),ts(),ts(),es(18,"div",8),es(19,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),es(20,"io-btn",10),ls("btnClick",(function(){return t.sendJobSwap()})),ts(),ts(),ts(),es(21,"io-modal-multi-select-id",11),ls("selectedId",(function(e){return t.setFirstCollaboratorId(e)}))("selectedName",(function(e){return t.setFirstCollaboratorName(e)}))("hideModal",(function(){return t.hideModalFirstCollaborator()})),ts(),es(22,"io-modal-multi-select-id",11),ls("selectedId",(function(e){return t.setSecondCollaboratorId(e)}))("selectedName",(function(e){return t.setSecondCollaboratorName(e)}))("hideModal",(function(){return t.hideModalSecondCollaborator()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),Zr("title","Selecionar funcion\xe1rio"),Bo(2),$s(t.firstCollaboratorName),Bo(1),Zr("collaboratorListId",pc(32,Kde,t.firstCollaboratorId))("labelText","data"),Bo(4),Zr("title","Selecionar funcion\xe1rio"),Bo(2),$s(t.secondCollaboratorName),Bo(1),Zr("collaboratorListId",pc(34,Kde,t.secondCollaboratorId))("labelText","Data da troca"),Bo(2),Zr("moduleName","collaborator-job-swap")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","collaborator-job-swap")("action","create")("btnColor","btn-blue-bg")("btnText","Cadastrar")("btnTitle","Cadastrar"),Bo(1),Zr("showModal",t.modalFirstCollaborator)("title","selecione um funcion\xe1rio")("moduleName","collaborator-job-swap")("btnAddAction","create")("btnAddText","Selecionar")("singleSelect",!0),Bo(1),Zr("showModal",t.modalSecondCollaborator)("title","selecione um funcion\xe1rio")("moduleName","collaborator-job-swap")("btnAddAction","create")("btnAddText","Selecionar")("singleSelect",!0))},directives:[CE,UA,jD,tR],styles:[""]}),Gde);function Xde(e,t){if(1&e){var n=as();es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",15),Gs(4),ts(),es(5,"span",15),Gs(6),ts(),es(7,"span",15),Gs(8),ts(),es(9,"span",16),es(10,"io-icon",17),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),$s(i.person_name_1),Bo(2),$s(o.getDateBr(i.date_1)),Bo(2),$s(i.person_name_2),Bo(2),$s(o.getDateBr(i.date_2)),Bo(2),Zr("moduleName","collaborator-job-swap")("action","delete")("moduleId",i.id)("iconTitle","Excluir permuta")("iconClassList","mrgL1")}}function ehe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function the(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma permuta encontrada."),ts())}function nhe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 permutas cadastradas."),ts())}function ihe(e,t){if(1&e&&(es(0,"li"),Jr(1,ehe,2,0,"p",11),Jr(2,the,2,0,"p",11),Jr(3,nhe,2,0,"p",11),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorJobSwapList.length>0&&n.collaboratorJobSwapList[0].loading),Bo(1),Zr("ngIf",n.collaboratorJobSwapList.length>0&&!n.collaboratorJobSwapList[0].loading&&0==n.collaboratorJobSwapListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorJobSwapList.length)}}var ohe,ahe,rhe=((ahe=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.collaboratorJobSwapDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.jobSwapSelectedId=null,this.selectedDate=null,this.collaboratorJobSwapList=[{loading:!0}],this.collaboratorJobSwapListFilteredSearch=[],this.modalDelete=!1,this.modalJobSwap=!1,this.titleService.setTitle("Permutas"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"setDate",value:function(e){this.selectedDate=e,this.getJobSwapList()}},{key:"getJobSwapList",value:function(){var e=this;this.collaboratorJobSwapDatabase.getJobSwapList(this.selectedDate,(function(t){t.error||(e.collaboratorJobSwapList=t.data.collaboratorJobSwapList,e.filterJobSwapSearch(e.searchForm.controls.search.value))}))}},{key:"filterJobSwapSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.collaboratorJobSwapListFilteredSearch=this.collaboratorJobSwapList.filter((function(t){return t.person_name_1.toLowerCase().includes(e.toLowerCase())||t.person_name_2.toLowerCase().includes(e.toLowerCase())}))}},{key:"showModalJobSwap",value:function(){this.modalJobSwap=!0}},{key:"hideModalJobSwap",value:function(){this.modalJobSwap=!1}},{key:"showModalDelete",value:function(e){this.jobSwapSelectedId=e,this.modalDelete=!0}},{key:"deleteJobSwap",value:function(){var e=this,t=this.jobSwapSelectedId;this.collaboratorJobSwapDatabase.deleteJobSwap(t,(function(n){n.error||(e.collaboratorJobSwapList=e.collaboratorJobSwapList.filter((function(e){return e.id!=t})),e.filterJobSwapSearch(e.searchForm.controls.search.value),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.jobSwapSelectedId=null}},{key:"getDateBr",value:function(e){return e?e.split(" ")[0].split("-").reverse().join("/"):""}}])}()).\u0275fac=function(e){return new(e||ahe)($r(wp),$r(yM),$r(Qde),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},ahe.\u0275cmp=Ot({type:ahe,selectors:[["io-collaborator-job-swap-page-list"]],decls:23,vars:10,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"wdMax25","mrgB2"],[3,"dateSelected"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","jobSwapPosted","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalJobSwap()})),ts(),es(3,"div",3),es(4,"io-period-selector",4),ls("dateSelected",(function(e){return t.setDate(e)})),ts(),ts(),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterJobSwapSearch(e)})),ts(),es(6,"div",6),es(7,"div",7),es(8,"h3",8),Gs(9,"Funcion\xe1rio 1"),ts(),es(10,"h3",8),Gs(11,"Data 1"),ts(),es(12,"h3",8),Gs(13,"Funcion\xe1rio 2"),ts(),es(14,"h3",8),Gs(15,"Data 2"),ts(),es(16,"h3",8),Gs(17,"A\xe7\xe3o"),ts(),ts(),es(18,"ul",9),Jr(19,Xde,11,9,"li",10),Jr(20,ihe,4,3,"li",11),ts(),ts(),ts(),ts(),es(21,"io-collaborator-job-swap-modal-form",12),ls("jobSwapPosted",(function(){return t.getJobSwapList()}))("hideModal",(function(){return t.hideModalJobSwap()})),ts(),es(22,"io-modal-confirm",13),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteJobSwap()})),ts()),2&e&&(Bo(2),Zr("moduleName","collaborator-job-swap")("titleTop","Permutas")("showBtn",!0)("btnDataText","Cadastrar"),Bo(17),Zr("ngForOf",t.collaboratorJobSwapListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorJobSwapListFilteredSearch.length),Bo(1),Zr("showModal",t.modalJobSwap),Bo(1),Zr("title","Excluir Permuta?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[eI,Foe,oE,ah,sh,Zde,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:90px;margin:0;text-align:right}"]}),ahe),she=((ohe=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getIntegrationSystemList",value:function(e){this.databaseService.get("/integration/getIntegration",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"getIntegrationsFromCompany",value:function(e,t){this.databaseService.get("/integration/verifyIntegration/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDevicesRegistered",value:function(e,t){this.databaseService.get("/integration/getDevicesRegistered/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDevicesRegisteredById",value:function(e,t){this.databaseService.get("/integration/getDeviceRegisteredById/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCollaboratorNotSynced",value:function(e,t){this.databaseService.get("/integration/communication/collaboratorListNotSynced/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postNewDevice",value:function(e,t){this.databaseService.post("/integration/postNewDevice",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"updateOrCreateIntegration",value:function(e,t,n,i){this.databaseService.post("/integration/updateOrCreateIntegration",[e,t,n]).subscribe((function(e){i({data:e})}),(function(e){i({error:e})}))}},{key:"putInactivateIntegration",value:function(e,t,n){this.databaseService.put("/integration/putInactivateIntegration",[e,t]).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"checkDeviceIsAvailable",value:function(e,t,n,i){this.databaseService.put("/integration/checkDeviceIsAvailable/"+e,{last_information_sent:t,integrationId:n}).subscribe((function(e){i({data:e})}),(function(e){i({error:e})}))}},{key:"deleteDevice",value:function(e,t){this.databaseService.delete("/integration/deleteDevice/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"updateDevice",value:function(e,t,n){this.databaseService.put("/integration/updateDevice/"+t,e).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postImportpaySlip",value:function(e,t){this.databaseService.post("/paySlip/importTxt",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getImportPaySlip",value:function(e,t){this.databaseService.get("/paySlip/getPaySlip",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteImportPaySlip",value:function(e,t){this.databaseService.delete("/paySlip/deletePaySlip",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||ohe)(ut(tT))},ohe.\u0275prov=Se({token:ohe,factory:ohe.\u0275fac,providedIn:"root"}),ohe);function lhe(e,t){1&e&&(es(0,"div",14),ns(1,"input",34),es(2,"label",35),Gs(3,"IP (interno)"),ts(),ts()),2&e&&(Bo(1),Zr("formControlName","internal_ip"))}function che(e,t){1&e&&(es(0,"div",6),ns(1,"input",36),es(2,"label",37),Gs(3,"Tempo m\xednimo de registro entre pontos (em minutos)"),ts(),ts()),2&e&&(Bo(1),Zr("formControlName","time_between_points"))}var uhe,dhe=((uhe=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.iconRegularService=n,this.integrationDatabase=i,this.functionsService=o,this.storageService=a,this.showModal=!0,this.updateOn=!1,this.hideModal=new Mc,this.integrationPosted=new Mc,this.integrationUpdated=new Mc,this.stateFields={description:{class:""}},this.checkMarkOption=!1,this.checkMarkProtocolOption=!1,this.justEvents=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.integrationForm=this.formBuilder.group({host:new Wm("",[Jf.required]),port:new Wm("",[Jf.required]),protocol:new Wm("",[Jf.required]),internal_ip:new Wm("",[Jf.required]),time_between_points:new Wm("",[Jf.required]),device_alias:new Wm("",[Jf.required]),user_name:new Wm("",[Jf.required]),password:new Wm("",[Jf.required]),mac_address:new Wm("",[Jf.required]),device_in:new Wm("",[Jf.required]),device_out:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(){this.getDeviceDataById(),this.integrationForm.get("device_in").setValue(!0),this.integrationForm.get("device_out").setValue(!0),this.integrationForm.get("time_between_points").setValue(1)}},{key:"checkEventOption",value:function(){this.checkMarkOption||this.integrationForm.get("time_between_points").setValue(null),this.integrationForm.get("time_between_points").setValue(1),this.checkMarkOption=!this.checkMarkOption}},{key:"getDeviceDataById",value:function(){var e=this;this.updateOn&&this.showModal&&this.deviceId&&this.integrationDatabase.getDevicesRegisteredById(this.deviceId,(function(t){if(!t.error){var n=t.data.deviceRegisteredById;Object.keys(e.integrationForm.controls).forEach((function(t){e.integrationForm.controls[t].setValue(n[0][t]),1==n[0].in_out&&e.integrationForm.get("device_out").setValue(!0),0==n[0].in_out&&e.integrationForm.get("device_in").setValue(!0),null==n[0].in_out&&(e.integrationForm.get("device_in").setValue(!0),e.integrationForm.get("device_out").setValue(!0)),"https"==n[0].protocol?e.integrationForm.get("protocol").setValue(!0):e.integrationForm.get("protocol").setValue(!1),e.checkMarkOption=1==n[0].just_events}))}}))}},{key:"sendIntegration",value:function(){this.updateOn?this.putIntegration():this.postIntegration()}},{key:"validateInOutDevice",value:function(){var e=this.integrationForm.get("device_in").value,t=this.integrationForm.get("device_out").value;return e&&t?null:e||t?e?0:1:null}},{key:"postIntegration",value:function(){var e=this,t=this.validateInOutDevice();return this.integrationForm.value.time_between_points>15?this.functionsService.openSnackBar("O tempo de restri\xe7\xe3o entre pontos n\xe3o pode exceder 15 minutos!"):0==this.integrationForm.value.time_between_points?this.functionsService.openSnackBar("O tempo de restri\xe7\xe3o entre pontos deve ser de no m\xednimo 1 minuto!"):void this.integrationDatabase.postNewDevice(Object.assign(Object.assign({},this.integrationForm.value),{integration_id:this.integrationId,just_events:this.checkMarkOption,in_out:t}),(function(t){if(!t.error){var n=e.integrationId;e.emitAddToList(Object.assign(Object.assign({},e.integrationForm.value),{id:n})),e.closeModal()}}))}},{key:"putIntegration",value:function(){var e=this,t=this.validateInOutDevice();return this.integrationForm.value.time_between_points>15?this.functionsService.openSnackBar("O tempo de restri\xe7\xe3o entre pontos n\xe3o pode exceder 15 minutos!"):0==this.integrationForm.value.time_between_points?this.functionsService.openSnackBar("O tempo de restri\xe7\xe3o entre pontos deve ser de no m\xednimo 1 minuto!"):void this.integrationDatabase.updateDevice(Object.assign(Object.assign({},this.integrationForm.value),{integration_id:this.integrationId,just_events:this.checkMarkOption,in_out:t}),this.deviceId,(function(t){if(!t.error){var n=e.deviceId;e.emitUpdateList(Object.assign(Object.assign({},e.integrationForm.value),{id:n})),e.closeModal()}}))}},{key:"emitAddToList",value:function(e){this.integrationPosted.emit(e)}},{key:"emitUpdateList",value:function(e){this.integrationUpdated.emit(e)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.integrationForm.reset()}}])}()).\u0275fac=function(e){return new(e||uhe)($r(wp),$r(WO),$r(she),$r(zP),$r(YP))},uhe.\u0275cmp=Ot({type:uhe,selectors:[["io-integrations-form"]],inputs:{integrationId:"integrationId",deviceId:"deviceId",last_information_sent:"last_information_sent",integrationList:"integrationList",showModal:"showModal",updateOn:"updateOn"},outputs:{hideModal:"hideModal",integrationPosted:"integrationPosted",integrationUpdated:"integrationUpdated"},features:[dl],decls:60,vars:28,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"inputBox","modalUser"],[1,"form-group","inputAnimated"],["autocomplete","disabled--","id","user-name","placeholder","","type","text","required","",3,"formControlName"],["for","user-name",1,"form-label","required"],["autocomplete","off","id","password","placeholder","","type","password","required","",3,"formControlName"],["for","password",1,"form-label","required"],["autocomplete","off","id","device-alias","placeholder","","required","","type","text",3,"formControlName"],["for","device-alias",1,"form-label","required"],[1,"flex"],[1,"form-group","inputAnimated","wdMax25"],["autocomplete","off","id","host","placeholder","","required","","type","text",3,"formControlName"],["for","host",1,"form-label","required"],["class","form-group inputAnimated wdMax25",4,"ngIf"],[1,"form-group","inputAnimated","wdMax33"],["autocomplete","off","id","port","placeholder","","required","","type","number",3,"formControlName"],["for","port",1,"form-label","required"],[1,"item","radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"formControlName"],[1,"checkmark"],["autocomplete","off","id","macAddress","placeholder","","required","","type","text",3,"formControlName"],["for","macAddress",1,"form-label","required"],["class","form-group inputAnimated",4,"ngIf"],[1,"flex","start","mrgT2"],["type","checkbox",1,"radioBoxInput",3,"checked","click"],[1,"flex","start"],[1,"mrgL2","mrgR2"],[1,"item","radioBox","sizeC","mrgR2"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","moduleId","btnColor","btnText","btnTitle","btnClick"],["autocomplete","off","id","internal_ip","placeholder","","type","text",3,"formControlName"],["for","internal_ip",1,"form-label","internal"],["autocomplete","off","id","time_between_points","placeholder","","required","","type","number",3,"formControlName"],["for","time_between_points",1,"form-label","required"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2),ts(),es(3,"div",2),es(4,"div",3),es(5,"div",4),es(6,"div",5),es(7,"div",6),ns(8,"input",7),es(9,"label",8),Gs(10,"Nome de usu\xe1rio"),ts(),ts(),es(11,"div",6),ns(12,"input",9),es(13,"label",10),Gs(14,"Senha"),ts(),ts(),es(15,"div",6),ns(16,"input",11),es(17,"label",12),Gs(18,"Nome do dispositivo"),ts(),ts(),es(19,"div",13),es(20,"div",14),ns(21,"input",15),es(22,"label",16),Gs(23,"IP (externo/p\xfablico)"),ts(),ts(),Jr(24,lhe,4,1,"div",17),es(25,"div",18),ns(26,"input",19),es(27,"label",20),Gs(28,"Porta (externa/p\xfablica)"),ts(),ts(),es(29,"label",21),Gs(30,"HTTPS "),ns(31,"input",22),ns(32,"span",23),ts(),ts(),es(33,"div",6),ns(34,"input",24),es(35,"label",25),Gs(36,"Endere\xe7o MAC"),ts(),ts(),Jr(37,che,4,1,"div",26),es(38,"div",27),es(39,"label",21),Gs(40,"Importar eventos como Ponto "),es(41,"input",28),ls("click",(function(){return t.checkEventOption()})),ts(),ns(42,"span",23),ts(),es(43,"label",21),Gs(44,"Somente eventos "),es(45,"input",28),ls("click",(function(){return t.checkEventOption()})),ts(),ns(46,"span",23),ts(),es(47,"div",29),es(48,"label",21),Gs(49,"Dispositivo de entrada "),ns(50,"input",22),ns(51,"span",23),ts(),ns(52,"div",30),es(53,"label",31),Gs(54,"Dispositivo de sa\xedda "),ns(55,"input",22),ns(56,"span",23),ts(),ts(),ts(),ts(),ts(),es(57,"div",13),es(58,"io-btn",32),ls("btnClick",(function(){return t.closeModal()})),ts(),es(59,"io-btn",33),ls("btnClick",(function(){return t.sendIntegration()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Qs("",t.updateOn?"Editar":"Novo"," dispositivo"),Bo(1),Zr("formGroup",t.integrationForm),Bo(5),Zr("formControlName","user_name"),Bo(4),Zr("formControlName","password"),Bo(4),Zr("formControlName","device_alias"),Bo(5),Zr("formControlName","host"),Bo(3),Zr("ngIf",t.isSupport||t.isDev),Bo(2),Zr("formControlName","port"),Bo(5),Zr("formControlName","protocol"),Bo(3),Zr("formControlName","mac_address"),Bo(3),Zr("ngIf",!t.checkMarkOption),Bo(4),Zr("checked",!t.checkMarkOption),Bo(4),Zr("checked",t.checkMarkOption),Bo(5),Zr("formControlName","device_in"),Bo(5),Zr("formControlName","device_out"),Bo(3),Zr("moduleName","integrations")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","integrations")("action",t.updateOn?"update":"create")("moduleId",t.deviceId||null)("btnColor","btn-blue-bg")("btnText",t.updateOn?"Salvar":"Cadastrar")("btnTitle",t.updateOn?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,sh,om,Of,jD],styles:[""]}),uhe);function hhe(e,t){if(1&e&&(is(0),es(1,"a",22),Gs(2),ts(),os()),2&e){var n=fs().$implicit;Bo(1),bs("href","http://",n.host,":",n.port,"",mo),Bo(1),Qs(" ",n.host,"")}}function fhe(e,t){1&e&&Gs(0),2&e&&$s(fs().$implicit.host)}function mhe(e,t){if(1&e&&(es(0,"span",14),ns(1,"fa-icon",23),ts()),2&e){var n=fs(2);Bo(1),Zr("icon",n.iconSolidService.faCircle)}}function phe(e,t){if(1&e&&(es(0,"span",14),ns(1,"fa-icon",24),ts()),2&e){var n=fs(2);Bo(1),Zr("icon",n.iconSolidService.faCircle)}}function ghe(e,t){if(1&e){var n=as();es(0,"fa-icon",25),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalCollaboratorNotSynced(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faUserAltSlash)}function vhe(e,t){if(1&e){var n=as();es(0,"li",13),es(1,"span",14),Gs(2),ts(),es(3,"span",14),Jr(4,hhe,3,3,"ng-container",15),Jr(5,fhe,1,1,"ng-template",null,16,Jc),ts(),es(7,"span",14),Gs(8),ts(),Jr(9,mhe,2,1,"span",17),Jr(10,phe,2,1,"span",17),es(11,"span",14),Gs(12),_c(13,"date"),ts(),es(14,"span",18),es(15,"fa-icon",19),ls("click",(function(){mn(n);var e=t.$implicit;return fs().checkDeviceIsAvailable(e.id,e.last_information_sent)})),ts(),Jr(16,ghe,1,1,"fa-icon",20),es(17,"io-icon",21),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalIntegration(e.integration_id,e.id)})),ts(),es(18,"io-icon",21),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=Gr(6),a=fs();Bo(2),$s(i.device_alias),Bo(2),Zr("ngIf","31"==a.userId||"4"==a.userId)("ngIfElse",o),Bo(4),$s(i.port),Bo(1),Zr("ngIf","1"==i.is_online),Bo(1),Zr("ngIf","0"==i.is_online),Bo(2),$s(Cc(13,19,i.updated_at,"dd/MM/yyyy HH:mm")),Bo(3),Zr("icon",a.iconSolidService.faSyncAlt),Bo(1),Zr("ngIf",1==i.integration_id),Bo(1),Zr("moduleName","integrations")("action","update")("moduleId",i.integration_id)("iconTitle","Editar dispositivo")("iconClassList","mrgL1"),Bo(1),Zr("moduleName","integrations")("action","delete")("moduleId",i.integration_id)("iconTitle","Excluir dispositivo")("iconClassList","mrgL1")}}function yhe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function bhe(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum dispositivo encontrado."),ts())}function _he(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 dispositivos cadastrados."),ts())}function khe(e,t){if(1&e&&(es(0,"li"),Jr(1,yhe,2,0,"p",9),Jr(2,bhe,2,0,"p",9),Jr(3,_he,2,0,"p",9),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.integrationList.length>0&&n.integrationList[0].loading),Bo(1),Zr("ngIf",n.integrationList.length>0&&!n.integrationList[0].loading&&0==n.integrationListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.integrationList.length)}}var Che,whe,xhe=((whe=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.integrationDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.route=u,this.integrationList=[{loading:!0}],this.integrationListFiltered=[],this.integrationListFilteredSearch=[],this.integrationSelectedId=null,this.deviceId=null,this.last_information_sent=null,this.integrationSelectedName=null,this.integrationId=null,this.updateOn=!1,this.deviceStatus="",this.userId="",this.collaboratorListIn=[],this.modalCollaboratorListNotSynced=!1,this.modalDelete=!1,this.modalIntegration=!1,this.faUserAltSlash=zO,this.titleService.setTitle("Dispositivos"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getDeviceRegistered(),this.userId=this.storageService.decodeFromLocalStorage("userId")}},{key:"getDeviceRegistered",value:function(){var e=this;this.integrationId=this.route.snapshot.params.id,this.integrationDatabase.getDevicesRegistered(this.integrationId,(function(t){t.error||(e.integrationList=t.data.deviceList,e.integrationListFiltered=e.integrationList,e.filterIntegrationSearch(e.searchForm.controls.search.value))}))}},{key:"checkDeviceIsAvailable",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;this.integrationDatabase.checkDeviceIsAvailable(t,n,this.integrationId,(function(t){t.data.error?e.functionsService.openSnackBar("errorOps","error"):e.getDeviceRegistered()}))}},{key:"filterIntegrationSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.integrationListFilteredSearch=this.functionsService.arrayFilterWords(this.integrationListFiltered,e,"device_alias")}},{key:"showModalIntegration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.integrationSelectedId=e,this.deviceId=t,this.updateOn=null!=this.integrationSelectedId,this.modalIntegration=!0}},{key:"getIntegrationList",value:function(e){this.integrationList.push(e),this.integrationList=this.functionsService.arrayReOder(this.integrationList,"device_alias"),this.filterIntegrationSearch(this.searchForm.controls.search.value),this.getDeviceRegistered()}},{key:"updateIntegrationList",value:function(e){var t=this.integrationList.findIndex((function(t){return t.id==e.id}));this.integrationList[t].device_alias=e.device_alias,this.integrationList=this.functionsService.arrayReOder(this.integrationList,"device_alias"),this.filterIntegrationSearch(this.searchForm.controls.search.value),this.integrationList.splice(t,1,e),this.checkDeviceIsAvailable(this.deviceId,this.last_information_sent)}},{key:"showModalCollaboratorNotSynced",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.integrationDatabase.getCollaboratorNotSynced(e,(function(e){e.error||(t.collaboratorListIn=e.data||[])})),this.integrationSelectedId=e,this.modalCollaboratorListNotSynced=!0}},{key:"hideModalCollaboratorNotSynced",value:function(){this.integrationSelectedId=null,this.modalCollaboratorListNotSynced=!1}},{key:"hideModalIntegration",value:function(){this.modalIntegration=!1}},{key:"showModalDelete",value:function(e){this.deviceId=e,this.modalDelete=!0}},{key:"deleteIntegration",value:function(){var e=this;this.integrationDatabase.deleteDevice(this.deviceId,(function(t){t.error||(e.getDeviceRegistered(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1}}])}()).\u0275fac=function(e){return new(e||whe)($r(wp),$r(yM),$r(she),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL),$r(lx))},whe.\u0275cmp=Ot({type:whe,selectors:[["io-integrations-page-list"]],decls:24,vars:24,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","integrationId","deviceId","last_information_sent","integrationList","updateOn","integrationPosted","integrationUpdated","hideModal"],[3,"title","moduleName","btnAddAction","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[4,"ngIf","ngIfElse"],["plainText",""],["class","item sizeC",4,"ngIf"],[1,"item"],["size","3x","title","Atualizar status",1,"cl-gray-dark","clickPlace","iconItem","iconSizeG","mrgL1",3,"icon","click"],["size","3x","class","cl-gray-dark clickPlace iconItem iconSizeG mrgL1","title","Visualizar funcion\xe1rios n\xe3o vinculados",3,"icon","click",4,"ngIf"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick"],["target","_blank",3,"href"],["size","3x","title","Online",1,"iconItem","iconSizeG","cl-green",3,"icon"],["size","3x","title","Offline",1,"iconItem","iconSizeG","cl-red",3,"icon"],["size","3x","title","Visualizar funcion\xe1rios n\xe3o vinculados",1,"cl-gray-dark","clickPlace","iconItem","iconSizeG","mrgL1",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalIntegration()})),ts(),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterIntegrationSearch(e)})),ts(),es(4,"div",4),es(5,"div",5),es(6,"h3",6),Gs(7,"Nome do dispositivo"),ts(),es(8,"h3",6),Gs(9,"Endere\xe7o"),ts(),es(10,"h3",6),Gs(11,"Porta"),ts(),es(12,"h3",6),Gs(13,"Status"),ts(),es(14,"h3",6),Gs(15,"\xdaltima atualiza\xe7\xe3o"),ts(),es(16,"h3",6),Gs(17,"A\xe7\xe3o"),ts(),ts(),es(18,"ul",7),Jr(19,vhe,19,22,"li",8),Jr(20,khe,4,3,"li",9),ts(),ts(),ts(),ts(),es(21,"io-integrations-form",10),ls("integrationPosted",(function(e){return t.getIntegrationList(e)}))("integrationUpdated",(function(e){return t.updateIntegrationList(e)}))("hideModal",(function(){return t.hideModalIntegration()})),ts(),es(22,"io-modal-multi-select-id",11),ls("hideModal",(function(){return t.hideModalCollaboratorNotSynced()})),ts(),es(23,"io-modal-confirm",12),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteIntegration()})),ts()),2&e&&(Bo(2),Zr("moduleName","integrations")("titleTop","Dispositivos")("showBtn",!0)("btnDataText","Cadastrar"),Bo(17),Zr("ngForOf",t.integrationListFilteredSearch),Bo(1),Zr("ngIf",0==t.integrationListFilteredSearch.length),Bo(1),Zr("showModal",t.modalIntegration)("integrationId",t.integrationId)("deviceId",t.deviceId)("last_information_sent",t.last_information_sent)("integrationList",t.integrationList)("updateOn",t.updateOn),Bo(1),Zr("title","Funcion\xe1rios n\xe3o sincronizados ao dispositivo")("moduleName","integration")("btnAddAction","")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorListNotSynced),Bo(1),Zr("title","Excluir dispositivo?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[eI,oE,ah,sh,dhe,tR,UB,FD,BB],pipes:[xh],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:50px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:200px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6){max-width:110px;margin:0;text-align:center}"]}),whe),Mhe=((Che=function(){return d((function e(t){c(this,e),this.titleService=t}),[{key:"ngOnInit",value:function(){this.titleService.setTitle("Configura\xe7\xe3o do dispositivo - Cadastro")}}])}()).\u0275fac=function(e){return new(e||Che)($r(hL))},Che.\u0275cmp=Ot({type:Che,selectors:[["io-integrations-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-integrations-form"),ts(),ts())},directives:[dhe],styles:[""]}),Che);function She(e,t){if(1&e){var n=as();es(0,"h3",15),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().verifyIntegration(e)})),Gs(1,"Ativar"),ts()}}function Phe(e,t){if(1&e){var n=as();es(0,"fa-icon",16),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().verifyIntegration(e)})),Gs(1,"Cadastrar "),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEdit)}function The(e,t){if(1&e){var n=as();es(0,"div",9),ls("click",(function(){mn(n);var e=t.$implicit;return fs().verifyIntegration(e)})),es(1,"h2",10),Gs(2),ts(),ns(3,"div",11),ns(4,"div",12),Jr(5,She,2,0,"h3",13),Jr(6,Phe,2,1,"fa-icon",14),ts()}if(2&e){var i=t.$implicit;Zr("ngClass",1!==i.status?"bg-gray-light":"bg-white"),Bo(2),$s(i.name),Bo(3),Zr("ngIf",1!==i.status),Bo(1),Zr("ngIf",1==i.status)}}var Ohe,Lhe=((Ohe=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.companyService=i,this.integrationDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.storageService=l,this.titleService=u,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.modalActiveSystem=!1,this.isSupport=!1,this.isDev=!1,this.integrationList=[{loading:!0}],this.integrationListFiltered=[],this.listExportSystemCompany=[],this.departmentList=[{loading:!0}],this.integrationSelectedId=null,this.integrationSelectedName=null,this.modalDelete=!1,this.modalDepartment=!1,this.modalConfirm=!1,this.modalInactive=!1,this.status=!1,this.integrationStatus=0,this.companyId="",this.titleService.setTitle("Integra\xe7\xf5es"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.getIntegrationAllowed()}},{key:"getIntegrationAllowed",value:function(){var e=this;this.integrationList=[],this.integrationDatabase.getIntegrationSystemList((function(t){t.error||(e.integrationList=t.data.integration,e.integrationListFiltered=e.integrationList)}))}},{key:"filterExportSystemSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.integrationListFiltered=this.functionsService.arrayFilterWords(this.integrationList,e,"name")}},{key:"verifyIntegration",value:function(e){var t=this;this.integrationSelectedId=e.id,this.integrationSelectedName=e.name,this.integrationStatus=e.status,this.integrationDatabase.getIntegrationsFromCompany(e.id,(function(n){n.error||(n.data.length>0?("IOFaceId"!==e.name&&"Sicoob holerite"!==e.name&&t.router.navigate(["/integrations-selected/",e.id],{state:{integrationId:e.id,integrationName:e.name}}).then((function(){return!1})),"Sicoob holerite"==e.name&&t.router.navigate(["/integrations-sicoob-pay-slip/",e.id],{}).then((function(){return!1})),"IOFaceId"==e.name&&1==t.integrationStatus?t.showModalInactive():t.showModalConfirmation()):t.showModalConfirmation())}))}},{key:"showModalConfirmation",value:function(){this.modalConfirm=!0}},{key:"showModalInactive",value:function(){this.modalInactive=!0}},{key:"hideModalConfirmation",value:function(){this.modalConfirm=!1}},{key:"hideModalInactive",value:function(){this.modalInactive=!1}},{key:"updateOrCreateIntegration",value:function(e){var t=this;this.integrationDatabase.updateOrCreateIntegration(this.integrationSelectedId,this.integrationSelectedName,e,(function(e){e.error||(t.getIntegrationAllowed(),t.hideModalConfirmation(),t.hideModalInactive())}))}}])}()).\u0275fac=function(e){return new(e||Ohe)($r(wp),$r(yM),$r(tI),$r(she),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},Ohe.\u0275cmp=Ot({type:Ohe,selectors:[["io-export-page-list-system"]],decls:10,vars:11,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"car-box","mrgT1"],[1,"listBoxExport"],["class","card pdg2",3,"ngClass","click",4,"ngFor","ngForOf"],[3,"title","btnTextConfirm","text","showModal","hideModal","confirmClick"],[1,"card","pdg2",3,"ngClass","click"],[1,"sizeB","mrgB1"],[1,"mrgB2"],[1,"detail","mrgB1"],["class","sizeB fontBold cl-gray-dark clickPlace","title","Ativar sistema de integra\xe7\xe3o",3,"click",4,"ngIf"],["class","sizeB fontBold cl-blue clickPlace","title","Gerenciar dispositivos",3,"icon","click",4,"ngIf"],["title","Ativar sistema de integra\xe7\xe3o",1,"sizeB","fontBold","cl-gray-dark","clickPlace",3,"click"],["title","Gerenciar dispositivos",1,"sizeB","fontBold","cl-blue","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterExportSystemSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"ul",6),Jr(7,The,7,4,"div",7),ts(),ts(),ts(),ts(),es(8,"io-modal-confirm",8),ls("hideModal",(function(){return t.hideModalConfirmation()}))("confirmClick",(function(){return t.updateOrCreateIntegration(t.integrationStatus)})),ts(),es(9,"io-modal-confirm",8),ls("hideModal",(function(){return t.hideModalInactive()}))("confirmClick",(function(){return t.updateOrCreateIntegration(t.integrationStatus)})),ts()),2&e&&(Bo(2),Zr("moduleName","integrations")("titleTop","Integra\xe7\xf5es"),Bo(5),Zr("ngForOf",t.integrationListFiltered),Bo(1),Zr("title","Ativar integra\xe7\xe3o")("btnTextConfirm","Ativar")("text","Deseja ativar essa integra\xe7\xe3o?")("showModal",t.modalConfirm),Bo(1),Zr("title","Desativar integra\xe7\xe3o")("btnTextConfirm","Desativar")("text","Deseja desativar essa integra\xe7\xe3o?")("showModal",t.modalInactive))},directives:[eI,oE,ah,UB,ih,sh,FD],styles:[".listBoxExport[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:20px;padding-left:0}.card[_ngcontent-%COMP%]{border:1px solid var(--cl-gray-light);border-radius:4px}.card[_ngcontent-%COMP%]   .cardBottom[_ngcontent-%COMP%]{margin-top:5px}.card[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{height:2px;background-color:var(--primary-color)}@media (max-width:600px){.card-box[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media (max-width:400px){.card-box[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr)}}"]}),Ohe);function Dhe(e,t){1&e&&ns(0,"fa-icon",22),2&e&&Zr("icon",fs(3).iconSolidService.faExclamation)}function Ihe(e,t){if(1&e&&(es(0,"span",20),Jr(1,Dhe,1,1,"fa-icon",21),ts()),2&e){var n=fs().$implicit;ys("title","Feriado: ",n.holiday,""),Bo(1),Zr("ngIf",null!=n.holiday)}}function Fhe(e,t){1&e&&ns(0,"fa-icon",29),2&e&&Zr("icon",fs(4).iconSolidService.faArrowUp)}function Ahe(e,t){1&e&&ns(0,"fa-icon",30),2&e&&Zr("icon",fs(4).iconSolidService.faArrowDown)}function Ehe(e,t){if(1&e&&(es(0,"span",20),Gs(1),es(2,"span",24),ns(3,"io-point-component-icon",25),ts(),es(4,"span",26),Jr(5,Fhe,1,1,"fa-icon",27),Jr(6,Ahe,1,1,"fa-icon",28),ts(),ts()),2&e){var n=t.$implicit,i=fs(3);el("pointItem relativePlace ","pointColor"+n.status," ","pointColorBarrier"+n.barrier,""),bs("title","",i.pointTitle[n.status]," ",1==n.barrier?"":"- Registrado fora da cerca digital",""),Bo(1),Qs(" ",i.getHour(n.point)," "),Bo(2),Zr("pointCreatedAt",n.created_at)("pointOnline",n.online)("pointType",n.type),Bo(2),Zr("ngIf",!n.in_out),Bo(1),Zr("ngIf",n.in_out)}}function Bhe(e,t){if(1&e&&(es(0,"span"),Jr(1,Ehe,7,12,"span",23),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngForOf",n.points)}}function Nhe(e,t){if(1&e&&(es(0,"span",34),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs(" ",n.type?n.type:" Aus\xeancia","")}}function Rhe(e,t){if(1&e&&(es(0,"span",32),Jr(1,Nhe,2,1,"span",33),ts()),2&e){var n=t.$implicit,i=fs(2).$implicit;Bo(1),Zr("ngIf",i.collaborator_id==n.collaborator_id)}}function jhe(e,t){if(1&e&&(es(0,"span"),Jr(1,Rhe,2,1,"span",31),ts()),2&e){var n=fs().$implicit;Bo(1),Zr("ngForOf",n.absence)}}function zhe(e,t){1&e&&(es(0,"span"),es(1,"span",34),Gs(2),ts(),ts()),2&e&&(Bo(2),Qs(" ","Faltante",""))}function Vhe(e,t){1&e&&(es(0,"span"),es(1,"span",34),Gs(2),ts(),ts()),2&e&&(Bo(2),Qs(" ","DSR",""))}function Hhe(e,t){if(1&e&&(es(0,"span"),es(1,"span",34),Gs(2),ts(),ts()),2&e){var n=fs().$implicit;Bo(2),Qs(" ",n.holiday,"")}}function Yhe(e,t){if(1&e&&(es(0,"li"),es(1,"span",14),Gs(2),ts(),es(3,"span",15),Jr(4,Ihe,2,2,"span",16),Jr(5,Bhe,2,1,"span",17),Jr(6,jhe,2,1,"span",17),Jr(7,zhe,3,1,"span",17),Jr(8,Vhe,3,1,"span",17),Jr(9,Hhe,3,1,"span",17),ts(),es(10,"span",18),Gs(11),ts(),es(12,"span",19),Gs(13),ts(),ts()),2&e){var n=t.$implicit,i=fs();Xs("flex spcDesk ",n.holiday?"holidayLine":"bg-white",""),Bo(2),$s(n.name),Bo(2),Zr("ngIf",null!=n.holiday),Bo(1),Zr("ngIf",n.points),Bo(1),Zr("ngIf",n.absence),Bo(1),Zr("ngIf",null==n.absence&&null==n.points&&null==n.dsr_time&&null==n.holiday&&i.dateSelected!=i.dateFormatted),Bo(1),Zr("ngIf",null==n.absence&&null!=n.dsr_time),Bo(1),Zr("ngIf",null==n.absence&&null!=n.holiday),Bo(2),$s(n.work_day),Bo(2),$s(n.worked_time)}}var qhe,Uhe,Whe=((Uhe=function(){return d((function e(t,n,i,o,a){c(this,e),this.router=t,this.iconSolidService=n,this.iconRegularService=i,this.functionsService=o,this.formBuilder=a,this.today=new Date,this.year=this.today.getFullYear(),this.month=this.today.getMonth()+1,this.day=this.today.getDate(),this.monthFormatted=this.month<10?"0"+this.month:""+this.month,this.dayFormatted=this.day<10?"0"+this.day:""+this.day,this.dateFormatted="".concat(this.year,"-").concat(this.monthFormatted,"-").concat(this.dayFormatted),this.collaboratorListFiltered=[],this.dateSelected="",this.dataPointListScreen=[],this.filterCollaborator=[],this.pointTitle={0:"V\xe1lido",3:"Ajustado",4:"Desconsidera\xe7\xe3o reprovada pelo funcion\xe1rio",5:"Adicionado pelo funcion\xe1rio",21:"Ajuste aguardando aprova\xe7\xe3o",22:"Ajuste aguardando aprova\xe7\xe3o",23:"Adicionado pelo funcion\xe1rio reprovado",24:"Aguardando desconsidera\xe7\xe3o do funcion\xe1rio",25:"Aguardando aprova\xe7\xe3o do gestor",26:"Aguardando ajuste do funcion\xe1rio",404:"Desconsiderado"};var r=this.router.getCurrentNavigation();r.extras.state?(this.dataPointListScreen=[],this.dateSelected=r.extras.state.dateSelected,this.dataPointListScreen=r.extras.state.dataPointListScreen):(this.router.navigate(["/report"]).then((function(){return!1})),this.dataPointListScreen=[]),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"filterExportSystemSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.dataPointListScreen=this.functionsService.arrayFilterWords(this.filterCollaborator,e,["name"])}},{key:"ngOnInit",value:function(){this.filterCollaborator=this.dataPointListScreen}},{key:"getHour",value:function(e){return e.split(" ")[1].slice(0,5)}},{key:"clearCollaboratorList",value:function(){this.dataPointListScreen=[]}}])}()).\u0275fac=function(e){return new(e||Uhe)($r(yM),$r(JO),$r(WO),$r(zP),$r(wp))},Uhe.\u0275cmp=Ot({type:Uhe,selectors:[["io-report-page-screen-point-day"]],decls:20,vars:9,consts:[[1,"container"],[1,"main"],[1,"topBox","flex","top"],[3,"moduleName","titleTop","btnClick"],[1,"flex","start","relativePlace"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlignA","border"],[1,"itemName","sizeB","fontBold"],[1,"itemPoints","sizeC","fontBold"],[1,"itemWork","sizeC","fontBold"],[1,"itemWorked","sizeC","fontBold"],[1,"listBox"],[3,"class",4,"ngFor","ngForOf"],[1,"itemName","sizeB"],[1,"itemPoints","pointBox"],[3,"title",4,"ngIf"],[4,"ngIf"],[1,"itemWork","sizeC"],[1,"itemWorked","sizeC"],[3,"title"],["size","3x","class","iconItem iconSizeH cl-red",3,"icon",4,"ngIf"],["size","3x",1,"iconItem","iconSizeH","cl-red",3,"icon"],[3,"class","title",4,"ngFor","ngForOf"],[1,"appIcon"],[3,"pointCreatedAt","pointOnline","pointType"],[1,"inOutIcon"],["size","3x","class","iconItem iconSizeI cl-blue","title","Entrada",3,"icon",4,"ngIf"],["size","3x","class","iconItem iconSizeI cl-red","title","Sa\xedda",3,"icon",4,"ngIf"],["size","3x","title","Entrada",1,"iconItem","iconSizeI","cl-blue",3,"icon"],["size","3x","title","Sa\xedda",1,"iconItem","iconSizeI","cl-red",3,"icon"],["class","sizeC",4,"ngFor","ngForOf"],[1,"sizeC"],["class","fontBold",4,"ngIf"],[1,"fontBold"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),es(3,"io-main-top",3),ls("btnClick",(function(){return t.clearCollaboratorList()})),_c(4,"date"),ts(),ts(),es(5,"div",4),es(6,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterExportSystemSearch(e)})),ts(),ts(),es(7,"div"),es(8,"div",6),es(9,"div",7),es(10,"h3",8),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",9),Gs(13,"Registros"),ts(),es(14,"h3",10),Gs(15,"Carga hor\xe1ria"),ts(),es(16,"h3",11),Gs(17,"Horas trabalhadas"),ts(),ts(),es(18,"ul",12),Jr(19,Yhe,14,12,"li",13),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(3),Zr("moduleName","report")("titleTop","Pontos registrados no dia: "+Cc(4,6,t.dateSelected,"dd/MM/yyyy")),Bo(4),Xs("pointListBox anmtd4 ",t.dateSelected?"collaboratorSelected":"",""),Bo(12),Zr("ngForOf",t.dataPointListScreen))},directives:[eI,oE,ah,sh,FD,LK],pipes:[xh],styles:[".collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:570px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{text-align:right}.itemName[_ngcontent-%COMP%]{max-width:30%;width:230%}.itemPoints[_ngcontent-%COMP%]{max-width:40%;width:40%}.itemWork[_ngcontent-%COMP%], .itemWorked[_ngcontent-%COMP%]{max-width:15%;width:15%}.listAlignA[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:15px}.listAlignA[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:15%;margin-left:15px;margin-right:66px}.listAlignA[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:0;margin-left:74px;margin-right:166px}.listAlignA[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:12%;margin-left:265px;margin-right:-91px}.listAlignA[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:13%;margin-left:84px;margin-right:6px}.border[_ngcontent-%COMP%]{border-bottom:1px solid var(--cl-gray)}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{max-width:80px;text-align:center}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:70px;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:400px;text-align:left}.pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypeabsence[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .pointListBox[_ngcontent-%COMP%]   .listBoxSlideMob.reportSelectedTypepoint_day[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:200px}.holidayLine[_ngcontent-%COMP%]{background-color:#eee}.listBox[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{min-height:40px;height:auto}"]}),Uhe),Jhe=((qhe=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getPointsToMap",value:function(e,t){this.databaseService.get("/pointManage/getPointsToMap",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||qhe)(ut(tT))},qhe.\u0275prov=Se({token:qhe,factory:qhe.\u0275fac,providedIn:"root"}),qhe),Ghe=["search"];function $he(e,t){if(1&e){var n=as();es(0,"agm-marker",16),ls("markerClick",(function(){mn(n);var e=t.$implicit;return fs(2).showModalPoint(e.pi,e.ph)})),_c(1,"date"),ts()}if(2&e){var i=t.$implicit,o=fs(2);Zr("title",i.n+" Data: "+Cc(1,5,i.d,"dd/MM/yyyy")+" Horas: "+i.ph+" - "+(1===i.io?"Sa\xedda":"Entrada"))("latitude",i.la)("longitude",i.lo)("markerDraggable",!1)("iconUrl",o.icon)}}function Qhe(e,t){if(1&e&&(es(0,"div",13),es(1,"agm-map",14),Jr(2,$he,2,8,"agm-marker",15),ts(),ts()),2&e){var n=fs();Bo(1),Zr("latitude",n.lat)("longitude",n.lng)("zoom",n.zoom)("disableDoubleClickZoom",!0),Bo(1),Zr("ngForOf",n.collaboratorsPoints)}}function Khe(e,t){1&e&&(es(0,"div",17),es(1,"span"),Gs(2,"N\xe3o h\xe1 pontos na data informada"),ts(),ts())}var Zhe,Xhe,efe=function(){return[]},tfe=((Xhe=function(){return d((function e(t,n){c(this,e),this.functionsService=t,this.pointMapDatabase=n,this.modalPoint=!1,this.mapPoint=!0,this.pointMap=!1,this.collaboratorName="empty",this.params=null,this.beginDate=this.functionsService.dateBRtoEN(this.functionsService.currentDateBR("00/00/0000","min")),this.endDate=this.functionsService.dateBRtoEN(this.functionsService.currentDateBR("00/00/0000","min")),this.date=this.functionsService.dateBRtoEN(this.functionsService.currentDateBR("00/00/0000","min")),this.todayDate=(new Date).toISOString().slice(0,10),this.lat=-15.7801,this.lng=-47.9292,this.latMarker=0,this.lngMarker=0,this.radius=20,this.zoom=4,this.collaboratorsPoints=[],this.pointSelectedId=null,this.icon={url:"../../../../../assets/img/map-marker-io.png",scaledSize:{width:25,height:32}},this.dataParams=[],this.filterCollaboratorStatusList=["1"],this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterContractSelected=[]}),[{key:"ngOnInit",value:function(){this.setBeginDate(this.todayDate),this.setEndDate(this.todayDate),this.getMapInfo()}},{key:"setBeginDate",value:function(e){this.beginDate=e,this.getMapInfo()}},{key:"setEndDate",value:function(e){this.endDate=e,this.getMapInfo()}},{key:"showModalPoint",value:function(e,t){this.modalPoint=!0,this.pointMap=!0,this.pointMap=!0,this.pointSelectedId=e,this.date=t}},{key:"hideModalPoint",value:function(){this.modalPoint=!1,this.pointSelectedId=null,this.pointMap=!1}},{key:"setFilterCollaborator",value:function(e){this.filterCollaboratorStatusList=e.collaboratorStatusList,this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterContractSelected=e.contractIdList,this.getMapInfo()}},{key:"getParams",value:function(){return""==this.collaboratorName&&(this.collaboratorName="empty"),{beginDate:this.beginDate,endDate:this.endDate,collaboratorStatusList:JSON.stringify(this.filterCollaboratorStatusList)||[],departmentIdList:JSON.stringify(this.filterDepartmentSelected)||[],unitIdList:JSON.stringify(this.filterUnitSelected)||[],regimeIdList:JSON.stringify(this.filterRegimeSelected)||[],contractIdList:JSON.stringify(this.filterContractSelected)||[],collaboratorName:this.collaboratorName}}},{key:"getMapInfo",value:function(){var e=this;this.dataParams=this.getParams(),this.pointMapDatabase.getPointsToMap(this.dataParams,(function(t){t.error||(e.collaboratorsPoints=t.data)}))}},{key:"filterMirrorSearch",value:function(e){this.collaboratorName=e,this.getMapInfo()}}])}()).\u0275fac=function(e){return new(e||Xhe)($r(zP),$r(Jhe))},Xhe.\u0275cmp=Ot({type:Xhe,selectors:[["io-point-map"]],viewQuery:function(e,t){var n;1&e&&Rc(Ghe,!0),2&e&&Bc(n=Yc())&&(t.search=n.first)},decls:13,vars:14,consts:[[1,"container"],[1,"main","listBoxfour"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[3,"filterText","showCollaboratorStatusList","selectedFilters"],[1,"wdMax50"],[3,"onKeyPress"],[1,"flexPad","mrgt","end"],[3,"firstDateLabel","secondDateLabel","mapPoint","firstDateSelected","secondDateSelected"],[1,"listBoxSlideMob","mrgB2"],["class","mapBox mrgB1",4,"ngIf"],["class","center mrgT2",4,"ngIf"],[3,"showModal","pointId","mapPoint","hideModal"],[1,"mapBox","mrgB1"],[3,"latitude","longitude","zoom","disableDoubleClickZoom"],[3,"title","latitude","longitude","markerDraggable","iconUrl","markerClick",4,"ngFor","ngForOf"],[3,"title","latitude","longitude","markerDraggable","iconUrl","markerClick"],[1,"center","mrgT2"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilterCollaborator(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.filterMirrorSearch(e)})),ts(),ts(),es(7,"div",7),es(8,"io-interval-selector",8),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(9,"div",9),Jr(10,Qhe,3,5,"div",10),Jr(11,Khe,3,0,"div",11),ts(),ts(),ts(),es(12,"io-point-modal-point",12),ls("hideModal",(function(){return t.hideModalPoint()})),ts()),2&e&&(Bo(3),Zr("moduleName","point-map")("titleTop","Pontos no mapa"),Bo(1),Zr("filterText","Filtro")("showCollaboratorStatusList",!0),Bo(4),Zr("firstDateLabel","Data Inicial")("secondDateLabel","Data Final")("mapPoint",t.mapPoint),Bo(2),Zr("ngIf",t.collaboratorsPoints>mc(12,efe)),Bo(1),Zr("ngIf",t.collaboratorsPoints<=mc(13,efe)),Bo(1),Zr("showModal",t.modalPoint)("pointId",t.pointSelectedId)("mapPoint",!0))},directives:[eI,qV,oE,ZA,sh,nZ,pC,ah,vC],pipes:[xh],styles:["agm-map[_ngcontent-%COMP%], map-view[_ngcontent-%COMP%]{height:450px}.mrgt[_ngcontent-%COMP%]{margin-top:-3%}.mrgT2[_ngcontent-%COMP%]{margin-top:20%}"]}),Xhe),nfe=((Zhe=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.ngZone=n,this.teamDatabase=i,this.functionsService=o,this.showModal=!0,this.teamId=null,this.hideModal=new Mc,this.teamPosted=new Mc,this.teamUpdated=new Mc,this.teamForm=this.formBuilder.group({name:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&(this.teamId?this.teamDatabase.getTeam(this.teamId,(function(t){t.error||e.teamForm.controls.name.setValue(t.data.team.name)})):this.teamForm.controls.name.setValue(""))}},{key:"validForm",value:function(){return""!=this.teamForm.controls.name.value||(this.functionsService.openSnackBar("Informe um nome para cadastrar."),!1)}},{key:"sendForm",value:function(){this.validForm()&&(this.teamId?this.putTeam():this.postTeam())}},{key:"postTeam",value:function(){var e=this;this.teamDatabase.postTeam(this.teamForm.value,(function(t){if(!t.error){var n=t.data.id;e.emitAddToList(Object.assign(Object.assign({},e.teamForm.value),{id:n}))}}))}},{key:"putTeam",value:function(){var e=this,t=this.teamId;this.teamDatabase.putTeam(t,this.teamForm.value,(function(n){n.error||e.emitUpdateList(Object.assign(Object.assign({},e.teamForm.value),{id:t}))}))}},{key:"emitAddToList",value:function(e){this.teamPosted.emit(e)}},{key:"emitUpdateList",value:function(e){this.teamUpdated.emit(e)}},{key:"closeModal",value:function(){this.teamForm.reset(),this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||Zhe)($r(wp),$r(gu),$r(aue),$r(zP))},Zhe.\u0275cmp=Ot({type:Zhe,selectors:[["io-team-modal-form"]],inputs:{showModal:"showModal",teamId:"teamId"},outputs:{hideModal:"hideModal",teamPosted:"teamPosted",teamUpdated:"teamUpdated"},features:[dl],decls:13,vars:15,consts:[[3,"showModal","hideModal"],[1,"minHeightBox"],[1,"modalBody",3,"formGroup"],[1,"sizeA","cl-blue","fontUp","fontBold"],[1,"mrgB2"],[1,"form-group","inputAnimated"],["autocomplete","off","id","teamName","type","text","required","",3,"formControlName"],["for","teamName",1,"form-label"],[1,"flexPad"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4),ts(),es(5,"div",4),es(6,"div",5),ns(7,"input",6),es(8,"label",7),Gs(9,"Nome da equipe"),ts(),ts(),ts(),ts(),ts(),es(10,"div",8),es(11,"io-btn",9),ls("btnClick",(function(){return t.closeModal()})),ts(),es(12,"io-btn",10),ls("btnClick",(function(){return t.sendForm()})),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Zr("formGroup",t.teamForm),Bo(2),Qs("",t.teamId?"Editar":"Nova"," equipe"),Bo(3),Zr("formControlName","name"),Bo(4),Zr("moduleName","team")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","team")("action",t.teamId?"update":"create")("btnColor","btn-blue-bg")("btnText",t.teamId?"Salvar":"Cadastrar")("btnTitle",t.teamId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,jD],styles:[""]}),Zhe);function ife(e,t){if(1&e){var n=as();es(0,"li",14),es(1,"span",15),Gs(2),ts(),es(3,"span",15),Gs(4),ts(),es(5,"span",16),es(6,"io-icon",17),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),es(7,"io-icon",18),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalTeam(e.id)})),ts(),es(8,"io-icon",18),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalRemoveTeam(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.name),Bo(2),$s(i.collaborators||"0"),Bo(2),Zr("moduleName","team")("action","showCollaboratorLinked")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","team")("action","update")("iconClassList","mrgL1")("iconTitle","Editar equipe"),Bo(1),Zr("moduleName","team")("action","delete")("iconClassList","mrgL1")("iconTitle","Excluir equipe")}}function ofe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function afe(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhuma equipe encontrada."),ts())}function rfe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 equipe cadastrada."),ts())}function sfe(e,t){if(1&e&&(es(0,"li"),Jr(1,ofe,2,0,"p",9),Jr(2,afe,2,0,"p",9),Jr(3,rfe,2,0,"p",9),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.teamList.length>0&&n.teamList[0].loading),Bo(1),Zr("ngIf",n.teamList.length>0&&!n.teamList[0].loading&&0==n.teamListFiltered.length),Bo(1),Zr("ngIf",0==n.teamList.length)}}var lfe,cfe=((lfe=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.router=t,this.teamDatabase=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.storageService=r,this.titleService=s,this.teamList=[{loading:!0}],this.teamListFiltered=[],this.teamSelectedId=null,this.collaboratorListIn=[],this.collaboratorListOut=[],this.modalTeam=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.modalRemoveTeam=!1,this.titleService.setTitle("Equipes")}),[{key:"ngOnInit",value:function(){this.loadList()}},{key:"loadList",value:function(){var e=this;this.teamDatabase.getTeamList((function(t){t.error||(e.teamList=t.data.list||[],e.teamListFiltered=e.teamList)}))}},{key:"filterTeam",value:function(e){this.teamListFiltered=this.functionsService.arrayFilterWords(this.teamList,e,"name")}},{key:"showModalTeam",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.teamSelectedId=e,this.modalTeam=!0}},{key:"addToList",value:function(e){this.teamList.push(e),this.teamListFiltered=this.teamList,this.hideModalTeam()}},{key:"updateList",value:function(e){var t=this.teamList.findIndex((function(t){return t.id==e.id}));this.teamList[t]=e,this.teamListFiltered=this.teamList,this.loadList(),this.hideModalTeam()}},{key:"hideModalTeam",value:function(){this.modalTeam=!1,this.teamSelectedId=null}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.teamDatabase.getTeamCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.teamSelectedId=e,this.modalCollaboratorList=!0}},{key:"unlinkCollaboratorList",value:function(e){var t=this;if(0==e.length)return this.functionsService.openSnackBar("Nenhum funcion\xe1rio selecionado para desvincula\xe7\xe3o de time","error");this.teamDatabase.postTeamRemoveCollaborator(this.teamSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.loadList(),t.hideModalCollaboratorList())}))}},{key:"hideModalCollaboratorList",value:function(){this.modalCollaboratorList=!1,this.teamSelectedId=null}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.teamDatabase.getTeamCollaboratorListOut(this.teamSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.collaboratorListOut||[])})),this.modalCollaboratorList=!1,this.modalCollaboratorLink=!0}},{key:"linkCollaboratorList",value:function(e){var t=this;0!=e.length&&this.teamDatabase.postTeamCollaboratorListOut(this.teamSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.loadList(),t.hideModalCollaboratorLink())}))}},{key:"hideModalCollaboratorLink",value:function(){this.teamSelectedId=null,this.modalCollaboratorLink=!1}},{key:"showModalRemoveTeam",value:function(e){this.teamSelectedId=e,this.modalRemoveTeam=!0}},{key:"deleteTeam",value:function(e){var t=this;this.teamDatabase.deleteTeam(e,(function(n){if(!n.error){var i=t.teamList.findIndex((function(t){return t.id==e}));t.teamList.splice(i,1),t.teamListFiltered=t.teamList}})),this.hideModalRemoveTeam()}},{key:"hideModalRemoveTeam",value:function(){this.teamSelectedId=null,this.modalRemoveTeam=!1}}])}()).\u0275fac=function(e){return new(e||lfe)($r(yM),$r(aue),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},lfe.\u0275cmp=Ot({type:lfe,selectors:[["io-team-page-list"]],decls:20,vars:26,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnClick"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listAlign","listHeader"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","teamId","teamPosted","teamUpdated","hideModal"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","selectedId","hideModal"],[1,"flex","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconTitle","iconClick"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalTeam()})),ts(),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterTeam(e)})),ts(),es(4,"div",4),es(5,"div",5),es(6,"h3",6),Gs(7,"Nome"),ts(),es(8,"h3",6),Gs(9,"Funcion\xe1rios"),ts(),es(10,"h3",6),Gs(11,"A\xe7\xe3o"),ts(),ts(),es(12,"ul",7),Jr(13,ife,9,13,"li",8),Jr(14,sfe,4,3,"li",9),ts(),ts(),ts(),ts(),es(15,"io-team-modal-form",10),ls("teamPosted",(function(e){return t.addToList(e)}))("teamUpdated",(function(e){return t.updateList(e)}))("hideModal",(function(){return t.hideModalTeam()})),Gs(16,' (hideModal)="hideModalTeam()">\n'),ts(),es(17,"io-modal-confirm",11),ls("confirmClick",(function(){return t.deleteTeam(t.teamSelectedId)}))("hideModal",(function(){return t.hideModalRemoveTeam()})),ts(),es(18,"io-modal-multi-select-id",12),ls("selectedId",(function(e){return t.unlinkCollaboratorList(e)}))("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(19,"io-modal-multi-select-id",13),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(2),Zr("moduleName","team")("titleTop","Equipe")("showBtn",!0),Bo(11),Zr("ngForOf",t.teamListFiltered),Bo(1),Zr("ngIf",0==t.teamListFiltered.length),Bo(1),Zr("showModal",t.modalTeam)("teamId",t.teamSelectedId),Bo(2),Zr("showModal",t.modalRemoveTeam)("title","Deseja excluir esta equipe?")("btnTextConfirm","Excluir"),Bo(1),Zr("title","Funcion\xe1rios vinculados a esta equipe")("moduleName","team")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","update")("btnConfirmText","Desvincular")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a esta equipe")("moduleName","team")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink))},directives:[eI,oE,ah,sh,nfe,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:100px;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px;margin:0;text-align:right}"]}),lfe);function ufe(e,t){if(1&e&&(es(0,"li",15),es(1,"span",16),Gs(2),ts(),es(3,"span",16),Gs(4),ts(),es(5,"span",16),Gs(6),ts(),es(7,"span",16),Gs(8),ts(),es(9,"span",16),Gs(10),ts(),es(11,"span",16),Gs(12),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.collaborator_name),Bo(2),$s(n.date),Bo(2),$s(n.hour),Bo(2),$s(n.beginDate),Bo(2),$s(n.endDate),Bo(2),$s(n.manager_name)}}function dfe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function hfe(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum registro encontrado."),ts())}function ffe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 nada registrado no per\xedodo."),ts())}function mfe(e,t){if(1&e&&(es(0,"li"),Jr(1,dfe,2,0,"p",13),Jr(2,hfe,2,0,"p",13),Jr(3,ffe,2,0,"p",13),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorList.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var pfe,gfe,vfe=((gfe=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.functionsService=n,this.titleService=i,this.notificationDatabase=o,this.currentPage=1,this.inputText="",this.collaboratorList=[{loading:!0}],this.beginDate=null,this.endDate=null,this.paginationData=null,this.titleService.setTitle("Rec\xe1lculo de horas - Hist\xf3rico"),this.searchFormCollaborator=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm("1",[])})}),[{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getRecalcList()}},{key:"getRecalcList",value:function(){var e=this;clearTimeout(this.interval),this.interval=setTimeout((function(){e.collaboratorList=[{loading:!0}];var t={page:e.currentPage.toString(),filterText:e.inputText,beginDate:e.beginDate,endDate:e.endDate};e.notificationDatabase.getRecalcList(t,(function(t){t.error||(e.collaboratorList=t.data.recalcList.data,e.paginationData=t.data.recalcList||[])}))}),200)}},{key:"setBeginDate",value:function(e){e!==this.beginDate&&(this.beginDate=e,this.getRecalcList())}},{key:"setEndDate",value:function(e){e!==this.endDate&&(this.endDate=e,this.getRecalcList())}}])}()).\u0275fac=function(e){return new(e||gfe)($r(wp),$r(zP),$r(hL),$r(jH))},gfe.\u0275cmp=Ot({type:gfe,selectors:[["io-notification-page-list-recalc"]],decls:26,vars:7,consts:[[1,"container"],[1,"main"],[1,"topBox","flex","top"],[3,"titleTop"],[3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"wdMax50"],[3,"onKeyPress"],[1,"collaboratorListBox","anmtd4","relativePlace"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign bg-white",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mrgT2",3,"paginationData","setCurrentPage"],[1,"flex","listAlign","bg-white"],[1,"item","sizeC"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-interval-selector",4),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(5,"div",5),es(6,"io-search-line",6),ls("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(7,"div",7),es(8,"div",8),es(9,"div",9),es(10,"h3",10),Gs(11,"Funcion\xe1rio"),ts(),es(12,"h3",10),Gs(13,"Data"),ts(),es(14,"h3",10),Gs(15,"Hor\xe1rio"),ts(),es(16,"h3",10),Gs(17,"Data inicial"),ts(),es(18,"h3",10),Gs(19,"Data final"),ts(),es(20,"h3",10),Gs(21,"Gestor"),ts(),ts(),es(22,"ul",11),Jr(23,ufe,13,6,"li",12),Jr(24,mfe,4,3,"li",13),ts(),es(25,"io-pagination",14),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(3),Zr("titleTop","Rec\xe1lculo de horas - Hist\xf3rico"),Bo(1),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(5),Zr("formGroup",t.searchFormCollaborator),Bo(14),Zr("ngForOf",t.collaboratorList),Bo(1),Zr("ngIf",0==t.collaboratorList.length),Bo(1),Zr("paginationData",t.paginationData))},directives:[eI,ZA,oE,Hf,ip,ah,sh,hE],styles:[".collaboratorListBox[_ngcontent-%COMP%]{overflow:hidden;max-height:530px}.collaboratorListBox.collaboratorSelected[_ngcontent-%COMP%]{max-height:0}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:25%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4), .collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%}.collaboratorListBox[_ngcontent-%COMP%]   .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(6){max-width:25%}.collaboratorListBox[_ngcontent-%COMP%]{max-height:600px}"]}),gfe),yfe=((pfe=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"updateGuest",value:function(e,t,n){this.databaseService.put("/guest/updateGuest/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"disableGuest",value:function(e,t,n){this.databaseService.put("/guest/disableGuest/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"postGuestFaceRecognitionPhoto",value:function(e,t){this.databaseService.post("/guest/photoGuestFaceRecognition",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postNewGuest",value:function(e,t){this.databaseService.post("/guest",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getGuestList",value:function(e,t){this.databaseService.get("/guest",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getGuest",value:function(e,t){this.databaseService.get("/guest/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"deleteGuestPhoto",value:function(e,t){this.databaseService.delete("/guest/photoGuestFaceRecognition/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||pfe)(ut(tT))},pfe.\u0275prov=Se({token:pfe,factory:pfe.\u0275fac,providedIn:"root"}),pfe);function bfe(e,t){1&e&&(es(0,"h2",18),Gs(1,"Novo convidado"),ts())}function _fe(e,t){1&e&&(es(0,"h2",18),Gs(1,"Editar convidado"),ts())}function kfe(e,t){if(1&e){var n=as();es(0,"div",6),es(1,"div",7),es(2,"div",8),Jr(3,bfe,2,0,"h2",9),Jr(4,_fe,2,0,"h2",9),ts(),es(5,"div",10),es(6,"div",11),es(7,"h3",12),Gs(8,"Informe o nome completo do(a) convidado(a)"),ts(),es(9,"div",13),es(10,"input",14),ls("change",(function(){return mn(n),fs().checkErrorField("name")})),ts(),es(11,"label",15),Gs(12,"Nome Completo"),ts(),ts(),ts(),es(13,"div",11),es(14,"h3",12),Gs(15,"Informe o CPF do(a) convidado(a)"),ts(),es(16,"div",13),es(17,"input",16),ls("change",(function(){return mn(n),fs().checkErrorField("national_registry")})),ts(),es(18,"label",17),Gs(19,"CPF"),ts(),ts(),ts(),ts(),ts(),ts()}if(2&e){var i=fs();Bo(3),Zr("ngIf",0==i.updateGuest),Bo(1),Zr("ngIf",1==i.updateGuest),Bo(6),Es(i.guestFormFieldState.name),Zr("formControlName","name"),Bo(7),Es(i.guestFormFieldState.national_registry),Zr("formControlName","national_registry")}}var Cfe,wfe=((Cfe=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.functionsService=n,this.guestDatabase=i,this.storageService=o,this.validService=a,this.showModal=!1,this.guestId=null,this.updateGuest=!1,this.hideModal=new Mc,this.updateList=new Mc,this.guestFormFieldState={},this.guestInformation={},this.collaboratorFounded=!1,this.updateOn=!1,this.resGuest=null,this.errorMsg=null,this.nationalRegistryList={},this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.selectFieldListJourney=[],this.step=1,this.guestForm=this.formBuilder.group({name:new Wm("",[Jf.required]),national_registry:new Wm("",[Jf.required]),photo:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;this.showModal&&this.guestId&&this.showModal&&(this.updateOn=!0,this.guestDatabase.getGuest(this.guestId,(function(t){t.error||(e.guestForm.controls.name.setValue((t=t.data[0]).name),e.guestForm.controls.national_registry.setValue(t.national_registry),e.guestForm.controls.photo.setValue(t.photo))})))}},{key:"getParams",value:function(){return{company_id:this.companyId,name:this.guestForm.get("name").value,national_registry:this.guestForm.get("national_registry").value}}},{key:"sendGuest",value:function(){var e=this,t=this.getParams();this.validService.validCPF(this.guestForm.get("national_registry").value)?(0==this.updateOn&&this.guestDatabase.postNewGuest(t,(function(t){t.error?(e.errorMsg=t.error.error.error.msg,e.functionsService.openSnackBar(e.errorMsg,"error")):(e.errorMsg=t.data.msg,e.functionsService.openSnackBar(e.errorMsg),e.guestForm.reset(),e.updateOn=!1,e.closeModal())})),1==this.updateOn&&this.guestDatabase.updateGuest(this.guestId,t,(function(t){t.error?(e.errorMsg=t.error.error.error.msg,e.functionsService.openSnackBar(e.errorMsg,"error")):(e.errorMsg=t.data.msg,e.functionsService.openSnackBar(e.errorMsg),e.guestForm.reset(),e.updateOn=!1,e.closeModal())}))):this.functionsService.openSnackBar("invalidCpf")}},{key:"checkErrorField",value:function(e){return this.guestForm.get(e).valid?(this.guestFormFieldState[e].class="",!0):(this.guestFormFieldState[e].class="emptyError",!1)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.guestForm.reset(),this.updateOn=!1,this.step=1}}])}()).\u0275fac=function(e){return new(e||Cfe)($r(wp),$r(zP),$r(yfe),$r(YP),$r(TN))},Cfe.\u0275cmp=Ot({type:Cfe,selectors:[["io-guest-modal-form"]],inputs:{showModal:"showModal",guestId:"guestId",updateGuest:"updateGuest"},outputs:{hideModal:"hideModal",updateList:"updateList"},features:[dl],decls:6,vars:15,consts:[[3,"showModal","hideModal"],[3,"formGroup"],["class","formBox",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[1,"formBox"],[1,"pdgT1","minHeightBox","split"],[1,"wdFull","mrgB2"],["class","sizeA cl-blue fontUp mrgB2 fontBold",4,"ngIf"],[1,"mrgT2"],[1,"block"],[1,"item","sizeC","fontBold","mrgT2"],[1,"form-group","inputAnimated"],["autocomplete","off","autofocus","","id","name","placeholder","","required","","type","text",3,"formControlName","change"],["for","name",1,"form-label","required"],["autocomplete","off","id","national_registry","mask","000.000.000-00","maxlength","14","placeholder","","required","","type","text",3,"formControlName","change"],["for","national_registry",1,"form-label","required"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),Jr(2,kfe,20,10,"div",2),es(3,"div",3),es(4,"io-btn",4),ls("btnClick",(function(){return t.closeModal()})),ts(),es(5,"io-btn",5),ls("btnClick",(function(){return t.sendGuest()})),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(1),Zr("formGroup",t.guestForm),Bo(1),Zr("ngIf",1==t.step),Bo(2),Zr("moduleName","collaborator")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","collaborator")("action","create")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("btnClassList","mrgL2"))},directives:[CE,Hf,ip,sh,jD,If,bp,Vf,vp,DE,kp],styles:[".mrgT2[_ngcontent-%COMP%]{margin-top:50px}.img-new[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.img-new[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin:0}@media (max-width:50px){.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]{display:block}.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{height:10px}}"]}),Cfe),xfe=["video"],Mfe=["canvas"];function Sfe(e,t){if(1&e){var n=as();es(0,"div",6),ls("click",(function(){return mn(n),fs().rotateVideoInput(!0)})),ts()}}var Pfe,Tfe,Ofe=function(){function e(t,n,i){c(this,e),this._mimeType=null,this._imageAsBase64=null,this._imageAsDataUrl=null,this._imageData=null,this._mimeType=n,this._imageAsDataUrl=t,this._imageData=i}return d(e,[{key:"imageAsBase64",get:function(){return this._imageAsBase64?this._imageAsBase64:this._imageAsBase64=e.getDataFromDataUrl(this._imageAsDataUrl,this._mimeType)}},{key:"imageAsDataUrl",get:function(){return this._imageAsDataUrl}},{key:"imageData",get:function(){return this._imageData}}],[{key:"getDataFromDataUrl",value:function(e,t){return e.replace("data:".concat(t,";base64,"),"")}}])}(),Lfe=((Tfe=function(){function e(){c(this,e),this.width=640,this.height=480,this.videoOptions=e.DEFAULT_VIDEO_OPTIONS,this.allowCameraSwitch=!0,this.captureImageData=!1,this.imageType=e.DEFAULT_IMAGE_TYPE,this.imageQuality=e.DEFAULT_IMAGE_QUALITY,this.imageCapture=new Mc,this.initError=new Mc,this.imageClick=new Mc,this.cameraSwitched=new Mc,this.availableVideoInputs=[],this.videoInitialized=!1,this.activeVideoInputIndex=-1,this.mediaStream=null,this.activeVideoSettings=null}return d(e,[{key:"trigger",set:function(e){var t=this;this.triggerSubscription&&this.triggerSubscription.unsubscribe(),this.triggerSubscription=e.subscribe((function(){t.takeSnapshot()}))}},{key:"switchCamera",set:function(e){var t=this;this.switchCameraSubscription&&this.switchCameraSubscription.unsubscribe(),this.switchCameraSubscription=e.subscribe((function(e){"string"==typeof e?t.switchToVideoInput(e):t.rotateVideoInput(!1!==e)}))}},{key:"ngAfterViewInit",value:function(){var e=this;this.detectAvailableDevices().then((function(){e.switchToVideoInput(null)})).catch((function(t){e.initError.next({message:t}),e.switchToVideoInput(null)}))}},{key:"ngOnDestroy",value:function(){this.stopMediaTracks(),this.unsubscribeFromSubscriptions()}},{key:"takeSnapshot",value:function(){var t=this.nativeVideoElement,n={width:this.width,height:this.height};t.videoWidth&&(n.width=t.videoWidth,n.height=t.videoHeight);var i=this.canvas.nativeElement;i.width=n.width,i.height=n.height;var o=i.getContext("2d");o.drawImage(t,0,0);var a=this.imageType?this.imageType:e.DEFAULT_IMAGE_TYPE,r=i.toDataURL(a,this.imageQuality?this.imageQuality:e.DEFAULT_IMAGE_QUALITY),s=null;this.captureImageData&&(s=o.getImageData(0,0,i.width,i.height)),this.imageCapture.next(new Ofe(r,a,s))}},{key:"rotateVideoInput",value:function(e){this.availableVideoInputs&&this.availableVideoInputs.length>1&&this.switchToVideoInput(this.availableVideoInputs[(this.activeVideoInputIndex+(e?1:this.availableVideoInputs.length-1))%this.availableVideoInputs.length].deviceId)}},{key:"switchToVideoInput",value:function(e){this.videoInitialized=!1,this.stopMediaTracks(),this.initWebcam(e,this.videoOptions)}},{key:"videoResize",value:function(){}},{key:"videoWidth",get:function(){var e=this.getVideoAspectRatio();return Math.min(this.width,this.height*e)}},{key:"videoHeight",get:function(){var e=this.getVideoAspectRatio();return Math.min(this.height,this.width/e)}},{key:"videoStyleClasses",get:function(){var e="";return this.isMirrorImage()&&(e+="mirrored "),e.trim()}},{key:"nativeVideoElement",get:function(){return this.video.nativeElement}},{key:"getVideoAspectRatio",value:function(){var e=this.nativeVideoElement;return e.videoWidth&&e.videoWidth>0&&e.videoHeight&&e.videoHeight>0?e.videoWidth/e.videoHeight:this.width/this.height}},{key:"initWebcam",value:function(t,n){var i=this,o=this.nativeVideoElement;if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){var a=e.getMediaConstraintsForDevice(t,n);navigator.mediaDevices.getUserMedia({video:a}).then((function(t){i.mediaStream=t,o.srcObject=t,o.play(),i.activeVideoSettings=t.getVideoTracks()[0].getSettings();var n=e.getDeviceIdFromMediaStreamTrack(t.getVideoTracks()[0]);i.cameraSwitched.next(n),i.detectAvailableDevices().then((function(){i.activeVideoInputIndex=n?i.availableVideoInputs.findIndex((function(e){return e.deviceId===n})):-1,i.videoInitialized=!0})).catch((function(){i.activeVideoInputIndex=-1,i.videoInitialized=!0}))})).catch((function(e){i.initError.next({message:e.message,mediaStreamError:e})}))}else this.initError.next({message:"Cannot read UserMedia from MediaDevices."})}},{key:"getActiveVideoTrack",value:function(){return this.mediaStream?this.mediaStream.getVideoTracks()[0]:null}},{key:"isMirrorImage",value:function(){if(!this.getActiveVideoTrack())return!1;var t="auto";switch(this.mirrorImage&&("string"==typeof this.mirrorImage?t=String(this.mirrorImage).toLowerCase():this.mirrorImage.x&&(t=this.mirrorImage.x.toLowerCase())),t){case"always":return!0;case"never":return!1}return e.isUserFacing(this.getActiveVideoTrack())}},{key:"stopMediaTracks",value:function(){this.mediaStream&&this.mediaStream.getTracks&&this.mediaStream.getTracks().forEach((function(e){return e.stop()}))}},{key:"unsubscribeFromSubscriptions",value:function(){this.triggerSubscription&&this.triggerSubscription.unsubscribe(),this.switchCameraSubscription&&this.switchCameraSubscription.unsubscribe()}},{key:"detectAvailableDevices",value:function(){return new Promise((function(e,t){}))}}],[{key:"getMediaConstraintsForDevice",value:function(e,t){var n=t||this.DEFAULT_VIDEO_OPTIONS;return e&&(n.deviceId={exact:e}),n}},{key:"getDeviceIdFromMediaStreamTrack",value:function(t){if(t.getSettings&&t.getSettings()&&t.getSettings().deviceId)return t.getSettings().deviceId;if(t.getConstraints&&t.getConstraints()&&t.getConstraints().deviceId){var n=t.getConstraints().deviceId;return e.getValueFromConstrainDOMString(n)}}},{key:"getFacingModeFromMediaStreamTrack",value:function(t){if(t){if(t.getSettings&&t.getSettings()&&t.getSettings().facingMode)return t.getSettings().facingMode;if(t.getConstraints&&t.getConstraints()&&t.getConstraints().facingMode){var n=t.getConstraints().facingMode;return e.getValueFromConstrainDOMString(n)}}}},{key:"isUserFacing",value:function(t){var n=e.getFacingModeFromMediaStreamTrack(t);return!!n&&"user"===n.toLowerCase()}},{key:"getValueFromConstrainDOMString",value:function(e){if(e){if(e instanceof String)return String(e);if(Array.isArray(e)&&Array(e).length>0)return String(e[0]);if("object"==typeof e){if(e.exact)return String(e.exact);if(e.ideal)return String(e.ideal)}}return null}}])}()).\u0275fac=function(e){return new(e||Tfe)},Tfe.\u0275cmp=Ot({type:Tfe,selectors:[["webcam"]],viewQuery:function(e,t){var n;1&e&&(Nc(xfe,!0),Nc(Mfe,!0)),2&e&&(Bc(n=Yc())&&(t.video=n.first),Bc(n=Yc())&&(t.canvas=n.first))},inputs:{width:"width",height:"height",videoOptions:"videoOptions",allowCameraSwitch:"allowCameraSwitch",captureImageData:"captureImageData",imageType:"imageType",imageQuality:"imageQuality",trigger:"trigger",switchCamera:"switchCamera",mirrorImage:"mirrorImage"},outputs:{imageCapture:"imageCapture",initError:"initError",imageClick:"imageClick",cameraSwitched:"cameraSwitched"},decls:6,vars:7,consts:[[1,"webcam-wrapper",3,"click"],["autoplay","","muted","","playsinline","",3,"width","height","resize"],["video",""],["class","camera-switch",3,"click",4,"ngIf"],[3,"width","height"],["canvas",""],[1,"camera-switch",3,"click"]],template:function(e,t){1&e&&(es(0,"div",0),ls("click",(function(){return t.imageClick.next()})),es(1,"video",1,2),ls("resize",(function(){return t.videoResize()})),ts(),Jr(3,Sfe,1,0,"div",3),ns(4,"canvas",4,5),ts()),2&e&&(Bo(1),Es(t.videoStyleClasses),Zr("width",t.videoWidth)("height",t.videoHeight),Bo(2),Zr("ngIf",t.allowCameraSwitch&&t.availableVideoInputs.length>1&&t.videoInitialized),Bo(1),Zr("width",t.width)("height",t.height))},directives:[sh],styles:['.webcam-wrapper[_ngcontent-%COMP%]{display:inline-block;line-height:0;position:relative}.webcam-wrapper[_ngcontent-%COMP%]   video.mirrored[_ngcontent-%COMP%]{transform:scaleX(-1)}.webcam-wrapper[_ngcontent-%COMP%]   canvas[_ngcontent-%COMP%]{display:none}.webcam-wrapper[_ngcontent-%COMP%]   .camera-switch[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.1);background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE9UlEQVR42u2aT2hdRRTGf+cRQqghSqihdBFDkRISK2KDfzDWxHaRQHEhaINKqa1gKQhd6EZLN+IidCH+Q0oWIkVRC21BQxXRitVaSbKoJSGtYGoK2tQ/tU1jY5v0c5F54Xl7b/KSO/PyEt+3e5f75p7zzZwzZ74zUEIJJfyfYaEGllQGVAGZlENdBy6Z2cSiYFTSKkkfS/pH/nBF0kFJdUW9AiRVASeAukD8DgNrzOySrwEzng18KaDzALXuG8W3AiStAvqBisBRNg40mtlPxbYCOgvgPO4bncWW+JpVeDQXRQhIygDfA00F5r0XuNfMrgclQFI98DDQCNQA5ZFXqoCWBVp8XwHRHeEqcN7loy/NbHBesyqpQ1KfFj/6nC+ZvFaApFrgPaCZpYVvgCfNbDiRAElNwGFg+RIt/X8H2s2s9wYCJDUAR4HqJX7++RN40MwGpgmQVAH0AQ2BPz4AHHPl8nBOAqtyFWQjsA6oL4Ada81sPDv7uwImod8kvSJp9RyS8O2SXnb/DYVd2Y9VSroQ4ANXJO2WVJmixqh0kzMWwL4LkiqRtDnA4D1zmfE8j9g9AezcnAHaPcfXdbfdnPZ2Yps6+DwAvO/Z1naTdApY7Xng48BDZnY1MpMVQBuw3iXc5Tnb0wBwBPjUzP6eoezuArZ6svM0geJLkvZEYnl3nkntoqROSbckSW2Suj3ZOIangc7GPJuUtNGdFIfmMeavktoSSKiW9LMPw30Q8JqkekmjCbOZRhuclLQjgYSNxUBAj6RyZ9ATgUJpUtJTCSR8vpAEXHAyWK5BXYFIGHOlepSAloUk4NEYgyoknQhEwhFJ0e8h6VSaQeerCb5uZgdi9utxYBNwOUD93hIVXswM4INCi6K9wAszFC2DwLOBDjHbYp59karIUnRdzYy/3ClqVklaUhfwTICj7K25OqA7a4wWagVsm4Me/xzwg2cCqqONFzO7DPxSCAJi436GUBgHHguQD2oTlJ55oSzP9ybccsttSJw1szdjFOSnI/8dTCGZHwcORp4Nx7y3B1iZ8/sm4MW8/Euxg5wIsS/HaAp3zeP4/G7obRDXI4jiTIA22H7Xdc7X+S3A5lC7QBQ357aq3VAjCeSkwUfAJrfvz+R8A9ADLAtZB+TinpjC5JMA+//jwPZZnF8G7J+L8z4IWB/zbG+gIujVWfLBW/NStVMmqaG4POJRsIjix7h8IGnLQuoBbQki5sVAJHyYm7YkNaRRtXwQ8G1cHpX0iKRrgUjYno17Sf0LrQhJUkdCeHWkVITGJI0k1QeS3ikGSUzOyJUJJNznYneuOCnpTldcxa2kP3xJYqOeSDjqZG8ShJLnE8TTuMS6Iyu1BW7djZqkfo9N0QOuYJmYQddfB7RG+gLTNzqAY9FrL+5/nwEbvDdJJe3zzOrhNP3AWRqmk55t3ZcBuj3b2gb0Sbrbo/NNzk7fFzu7s/E5EiC+rrmeQU0Kx2skvRFoOx2ZzlmSdgbsw49JetvtBpk8nM64d/cGbNtJ0s7cGyJlwHeEv+t3nqnLSgPAUOSGyG3AHUxdzqoJbEcvcL+ZTeTeEapzJKxgaeOcc/7Mf06D7kFrguS0VDAMtGadv+E47DT9tcChJej8ISfpD+abgTe45uOkFi8mnQ+JBVQ+d4VXuOptjavcyot8pq86mfwk8LWZnaOEEkoooYQSSojDv8AhQNeGfe0jAAAAAElFTkSuQmCC");background-position:50%;background-repeat:no-repeat;background-size:80%;border-radius:5px;cursor:pointer;height:48px;position:absolute;right:13px;top:10px;transition:background-color .2s ease;width:48px}.webcam-wrapper[_ngcontent-%COMP%]   .camera-switch[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.18)}']}),Tfe.DEFAULT_VIDEO_OPTIONS={facingMode:"environment"},Tfe.DEFAULT_IMAGE_TYPE="image/jpeg",Tfe.DEFAULT_IMAGE_QUALITY=.92,Tfe),Dfe=((Pfe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Pfe}),Pfe.\u0275inj=Pe({factory:function(e){return new(e||Pfe)},imports:[[Ph]]}),Pfe);function Ife(e,t){if(1&e){var n=as();es(0,"div",16),es(1,"div",17),es(2,"input",18),ls("change",(function(e){return mn(n),fs().handleFile(e.target.files[0])})),ts(),es(3,"img",19),ls("error",(function(){return mn(n),fs().resetPreview()})),ts(),es(4,"span",20),Gs(5,"+"),ts(),ts(),ts()}if(2&e){var i=fs();Bo(2),Zr("multiple",!1),Bo(1),Zr("src",i.imgSource,mo)}}function Ffe(e,t){1&e&&ns(0,"img",21),2&e&&Zr("src",fs().previewImage,mo)}function Afe(e,t){if(1&e){var n=as();es(0,"io-btn",24),ls("btnClick",(function(){return mn(n),fs(2).captureImage()})),ts()}2&e&&Zr("moduleName","guest")("action","create")("btnColor","btn-blue-bg")("btnText","Capturar imagem")("btnTitle","Capturar imagem")("btnClassList","btnWebcam primary")}function Efe(e,t){if(1&e){var n=as();es(0,"io-btn",24),ls("btnClick",(function(){return mn(n),fs(2).resetPreview()})),ts()}2&e&&Zr("moduleName","guest")("action","create")("btnColor","btn-blue-bg")("btnText","Nova imagem")("btnTitle","Nova imagem")("btnClassList","btnWebcam primary")}function Bfe(e,t){if(1&e){var n=as();es(0,"div",22),es(1,"webcam",23),ls("imageCapture",(function(e){return mn(n),fs().snapShot(e)})),ts(),Jr(2,Afe,1,6,"io-btn",9),Jr(3,Efe,1,6,"io-btn",9),ts()}if(2&e){var i=fs();Bo(1),Zr("trigger",i.$trigger),Bo(1),Zr("ngIf",""==i.previewImage),Bo(1),Zr("ngIf",i.previewImage.length>0)}}function Nfe(e,t){if(1&e){var n=as();es(0,"io-btn",24),ls("btnClick",(function(){return mn(n),fs().checkPermissions()})),ts()}2&e&&Zr("moduleName","guest")("action","create")("btnColor","btn-blue-bg")("btnText","Utilizar a c\xe2mera")("btnTitle","Utilizar a c\xe2mera")("btnClassList","")}function Rfe(e,t){if(1&e){var n=as();es(0,"span",25),ls("click",(function(){return mn(n),fs().showModalDeletePhoto()})),Gs(1,"Excluir foto"),ts()}}function jfe(e,t){1&e&&(es(0,"div",26),es(1,"span",27),ns(2,"img",28),ts(),ts())}function zfe(e,t){if(1&e){var n=as();es(0,"io-btn",24),ls("btnClick",(function(){return mn(n),fs().uploadPhoto()})),ts()}2&e&&Zr("moduleName","collaborator")("action","update")("btnColor","btn-blue-bg")("btnText","Salvar")("btnTitle","Salvar")("btnClassList","mrgL2")}var Vfe,Hfe=((Vfe=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.router=n,this.guestDatabase=i,this.companyService=o,this.databaseService=a,this.functionService=r,this.guestId=null,this.showModal=!1,this.hideModal=new Mc,this.collaboratorPhoto=null,this.collaboratorHasPhoto=!1,this.imgSource="/assets/img/photo-user.png",this.modalDeletePhoto=!1,this.accessCamera=!1,this.showDivPreview=!1,this.backendMessage="",this.selectGetPhoto=!1,this.stream=null,this.trigger=new V,this.previewImage="",this.faceRecognitionForm=this.formBuilder.group({twins:new Wm(!1,[Jf.required]),force:new Wm(!1,[Jf.required])})}),[{key:"ngOnChanges",value:function(){var e=this;if(this.resetPreview(),this.collaboratorPhoto=null,this.collaboratorHasPhoto=!1,this.guestId){var t=this.databaseService.currentDatabaseUrl(),n=this.companyService.getId();this.guestDatabase.getGuest(this.guestId,(function(i){i.error||(null!=(i=i.data[0]).photo_face_recognition&&(e.collaboratorHasPhoto=!0),e.imgSource=t+"/storage/company_"+n+"/guest/guest_"+e.guestId+"/face_recognition/"+i.photo_face_recognition)}))}}},{key:"handleFile",value:function(e){e.size/1e6>4.5?this.functionService.openSnackBar("Tamanho m\xe1ximo de arquivo excedido. Tamanho m\xe1ximo 5mb.","error"):["image/jpeg","image/jpg","image/png"].includes(e.type)?(this.collaboratorPhoto=e,this.previewImg()):this.functionService.openSnackBar("Tipo de arquivo incompat\xedvel","error")}},{key:"previewImg",value:function(){var e=this,t=new FileReader;t.onload=function(t){return e.imgSource=t.target.result},t.readAsDataURL(this.collaboratorPhoto)}},{key:"resetPreview",value:function(){this.previewImage="",this.showDivPreview=!1,this.imgSource="/assets/img/photo-user.png"}},{key:"uploadPhoto",value:function(){var e=this;if(null!=this.collaboratorPhoto){var t=new FormData;t.append("guestId",this.guestId.toString()),t.append("guestPhoto",this.collaboratorPhoto),this.guestDatabase.postGuestFaceRecognitionPhoto(t,(function(t){t.error||(e.backendMessage=t.data.msg,e.functionService.openSnackBar(e.backendMessage)),e.closeModal()}))}else this.functionService.openSnackBar("Imagem obrigat\xf3ria!","error")}},{key:"showModalDeletePhoto",value:function(){this.modalDeletePhoto=!0}},{key:"deletePhoto",value:function(){var e=this;this.guestDatabase.deleteGuestPhoto(this.guestId,(function(t){t.error||(e.resetPreview(),e.modalDeletePhoto=null,e.collaboratorHasPhoto=!1,e.hideModalDeletePhoto())}))}},{key:"checkPermissions",value:function(){var e=this;navigator.mediaDevices.getUserMedia({video:{width:500,height:500}}).then((function(t){e.stream=t,e.accessCamera=!0})).catch((function(t){e.functionService.openSnackBar("Acesso a c\xe2mera n\xe3o est\xe1 liberado, verifique as permiss\xf5es do navegador e tente novamente.","error")}))}},{key:"$trigger",get:function(){return this.trigger.asObservable()}},{key:"snapShot",value:function(e){this.previewImage=e.imageAsDataUrl,this.showDivPreview=!0;var t=this.dataURItoBlob(e.imageAsBase64),n=new File([t],"images.png",{type:"image/png"});this.handleFile(n)}},{key:"dataURItoBlob",value:function(e){for(var t=window.atob(e),n=new ArrayBuffer(t.length),i=new Uint8Array(n),o=0;o<t.length;o++)i[o]=t.charCodeAt(o);return new Blob([i],{type:"image/png"})}},{key:"captureImage",value:function(){this.trigger.next()}},{key:"hideModalDeletePhoto",value:function(){this.modalDeletePhoto=!1}},{key:"closeModal",value:function(){this.accessCamera=!1,this.hideModal.emit(),this.faceRecognitionForm.reset()}}])}()).\u0275fac=function(e){return new(e||Vfe)($r(wp),$r(yM),$r(yfe),$r(tI),$r(tT),$r(zP))},Vfe.\u0275cmp=Ot({type:Vfe,selectors:[["io-collaborator-modal-form-face-recognition"]],inputs:{guestId:"guestId",showModal:"showModal"},outputs:{hideModal:"hideModal"},features:[dl],decls:18,vars:17,consts:[[1,"boxModal",3,"showModal","hideModal"],[1,"minHeightBox","mrgB2"],[1,"wdFull","mrgB2"],[1,"sizeA","cl-blue","fontUp","mrgB2","fontBold"],[1,"flex","top"],[1,"photo-box"],["class","photo-box-holder",4,"ngIf"],["height","363","width","60","class","photo-box-preview",3,"src",4,"ngIf"],["class","photo-box-webcam",4,"ngIf"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick",4,"ngIf"],[1,"flex","mrgB1"],["class","flex cl-red clickPlace",3,"click",4,"ngIf"],["class","txt-box pdgL2",4,"ngIf"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"],[1,"photo-box-holder"],[1,"uploadImgBox"],["type","file","accept",".png, .jpg, .jpeg",3,"multiple","change"],["alt","collaboratorImg",3,"src","error"],[1,"detailHover","anmtd2"],["height","363","width","60",1,"photo-box-preview",3,"src"],[1,"photo-box-webcam"],[3,"trigger","imageCapture"],[3,"moduleName","action","btnColor","btnText","btnTitle","btnClassList","btnClick"],[1,"flex","cl-red","clickPlace",3,"click"],[1,"txt-box","pdgL2"],[1,"img-box-instruction"],["src","assets/img/face-recognition-instructions.png","alt","instructions"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"div",1),es(2,"div",2),es(3,"h2",3),Gs(4,"Reconhecimento facial"),ts(),ts(),es(5,"div",4),es(6,"div",5),Jr(7,Ife,6,2,"div",6),Jr(8,Ffe,1,1,"img",7),Jr(9,Bfe,4,3,"div",8),Jr(10,Nfe,1,6,"io-btn",9),es(11,"div",10),Jr(12,Rfe,2,0,"span",11),ts(),ts(),Jr(13,jfe,3,0,"div",12),ts(),ts(),es(14,"div",13),es(15,"io-btn",14),ls("btnClick",(function(){return t.closeModal()})),ts(),Jr(16,zfe,1,6,"io-btn",9),ts(),ts(),es(17,"io-modal-confirm",15),ls("hideModal",(function(){return t.hideModalDeletePhoto()}))("confirmClick",(function(){return t.deletePhoto()})),ts()),2&e&&(Zr("showModal",t.showModal),Bo(7),Zr("ngIf",0==t.accessCamera),Bo(1),Zr("ngIf",1==t.showDivPreview),Bo(1),Zr("ngIf",1==t.accessCamera),Bo(1),Zr("ngIf",0==t.accessCamera),Bo(2),Zr("ngIf",t.collaboratorHasPhoto&&null==t.collaboratorPhoto&&0==t.accessCamera),Bo(1),Zr("ngIf",0==t.accessCamera),Bo(2),Zr("moduleName","collaborator")("action","")("btnColor","btn-red")("btnText","Cancelar")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("ngIf",null!=t.collaboratorPhoto),Bo(1),Zr("showModal",t.modalDeletePhoto)("title","Deseja excluir a foto?")("btnTextConfirm","Excluir"))},directives:[CE,sh,jD,UB,Lfe],styles:[".photo-box[_ngcontent-%COMP%]{position:relative}.photo-box[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;max-width:300px;width:400px;min-width:200px;border:1px solid var(--primary-color);margin:0 0 2px}.photo-box[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0;margin:0}.photo-box[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]   .detailHover[_ngcontent-%COMP%]{border-radius:0}.txt-box[_ngcontent-%COMP%]{width:100%}.txt-box[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{line-height:1.1rem}.img-box-instruction[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.img-box-instruction[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin:0}@media (max-width:470px){.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]{display:block}.formBox[_ngcontent-%COMP%]   .blockTop[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{height:36px}}video[_ngcontent-%COMP%]{display:inline-block;width:500%}.photo-box-webcam[_ngcontent-%COMP%]{aspect-ratio:16/9}.photo-box-webcam[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]{display:block;align-items:center;justify-content:center;max-width:100%;width:400px;min-width:200px}.photo-box-webcam[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:0;margin:0}.photo-box-webcam[_ngcontent-%COMP%]   .photo-box-holder[_ngcontent-%COMP%]   .uploadImgBox[_ngcontent-%COMP%]   .detailHover[_ngcontent-%COMP%]{border-radius:0}.photo-box-preview[_ngcontent-%COMP%]{position:absolute;z-index:9;-o-object-fit:cover;object-fit:cover;width:100%;min-width:100%;aspect-ratio:16/9;transform:scaleX(-1);background-size:100%}.btnWebcam[_ngcontent-%COMP%]{float:right;margin-right:0}.boxModal[_ngcontent-%COMP%]{position:relative;padding:80px;min-height:500px;width:100%;max-width:1000%;min-width:0;margin:60px 20px 20px;border-radius:4px}.boxModal[_ngcontent-%COMP%]   .modalBody[_ngcontent-%COMP%]{min-height:350px}"]}),X_([fL()],Vfe.prototype,"guestId",void 0),Vfe);function Yfe(e,t){if(1&e){var n=as();es(0,"io-icon",29),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalFaceRecognition(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","faceRecognition")("iconClassList","mrgR1")("iconTitle","Reconhecimento facial")}function qfe(e,t){if(1&e){var n=as();es(0,"fa-icon",30),ls("click",(function(){mn(n);var e=fs().$implicit,t=fs();return t.showModalGuest(e.id),t.updateGuest()})),ts()}2&e&&Zr("icon",fs(2).iconRegularService.faEdit)}function Ufe(e,t){if(1&e){var n=as();es(0,"fa-icon",31),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalConfirm(e.id,e.name,e.active)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faTrashAlt)}function Wfe(e,t){if(1&e){var n=as();es(0,"fa-icon",32),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalConfirm(e.id,e.name,e.active)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faSyncAlt)}function Jfe(e,t){if(1&e&&(es(0,"li",21),es(1,"span",22),Gs(2),ts(),es(3,"span",22),Gs(4),_c(5,"mask"),ts(),es(6,"span",23),Gs(7),ts(),es(8,"span",24),Jr(9,Yfe,1,4,"io-icon",25),Jr(10,qfe,1,1,"fa-icon",26),Jr(11,Ufe,1,1,"fa-icon",27),Jr(12,Wfe,1,1,"fa-icon",28),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.name),Bo(2),$s(Cc(5,7,n.national_registry,"000.000.000-00")),Bo(3),$s(1!=n.active?"Inativo":"Ativo"),Bo(2),Zr("ngIf",1==n.active),Bo(1),Zr("ngIf",1==n.active),Bo(1),Zr("ngIf",1==n.active),Bo(1),Zr("ngIf",0==n.active)}}function Gfe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function $fe(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum convidado encontrado."),ts())}function Qfe(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum convidado encontrado."),ts())}function Kfe(e,t){if(1&e&&(es(0,"li"),Jr(1,Gfe,2,0,"p",16),Jr(2,$fe,2,0,"p",16),Jr(3,Qfe,2,0,"p",16),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.guestListFilteredSearch.length>0&&n.guestListFilteredSearch[0].loading),Bo(1),Zr("ngIf",n.guestListFilteredSearch.length>0&&!n.guestListFilteredSearch[0].loading&&!n.guestListFilteredSearch[0].select&&0==n.guestListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.guestListFilteredSearch.length)}}function Zfe(e,t){if(1&e){var n=as();es(0,"io-modal-confirm",33),ls("hideModal",(function(){return mn(n),fs().hideModalConfirm()}))("confirmClick",(function(){return mn(n),fs().disableGuest()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalConfigGuest)("title","Deseja desabilitar o(a) convidado(a) "+i.nameGuest+" ?")("btnTextConfirm","Desabilitar")}}function Xfe(e,t){if(1&e){var n=as();es(0,"io-modal-confirm",33),ls("hideModal",(function(){return mn(n),fs().hideModalConfirm()}))("confirmClick",(function(){return mn(n),fs().disableGuest()})),ts()}if(2&e){var i=fs();Zr("showModal",i.modalConfigGuest)("title","Deseja ativar o(a) convidado(a) "+i.nameGuest+" ?")("btnTextConfirm","Ativar")}}var eme,tme=((eme=function(){return d((function e(t,n,i,o,a,r){c(this,e),this.formBuilder=t,this.guestDatabase=n,this.functionsService=i,this.titleService=o,this.iconSolidService=a,this.iconRegularService=r,this.currentPage=1,this.inputText="",this.paginationData=null,this.guestList=[{loading:!0}],this.guestListFilteredSearch=[],this.showModal=!1,this.modalFaceRecognition=!1,this.updateGuestModal=!1,this.modalConfigGuest=!1,this.guestId=null,this.nameGuest="",this.guest="",this.backendMassage="",this.activeGuest=null,this.titleService.setTitle("Convidado"),this.searchForm=this.formBuilder.group({active:new Wm(1,[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getGuestList(1)}},{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getGuestList(this.searchForm.get("active").value)}},{key:"getGuestList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;this.guestList=null;var n={page:this.currentPage.toString(),filterText:this.inputText,filterSelect:t};this.guestDatabase.getGuestList(n,(function(t){t.error||(e.guestList=t.data.data,e.paginationData=e.guestList||[],e.guestListFilteredSearch=e.guestList)}))}},{key:"showModalFaceRecognition",value:function(e){this.guestId=e,this.modalFaceRecognition=!0}},{key:"hideModalFaceRecognition",value:function(){this.guestId=null,this.modalFaceRecognition=!1}},{key:"showModalConfirm",value:function(e,t,n){this.guestId=e,this.nameGuest=t,this.activeGuest=n,this.modalConfigGuest=!0}},{key:"hideModalConfirm",value:function(){this.guestId=null,this.nameGuest="",this.activeGuest=null,this.modalConfigGuest=!1}},{key:"showModalGuest",value:function(e){this.guestId=e,this.showModal=!0}},{key:"hideModal",value:function(){this.guestId=null,this.getGuestList(),this.showModal=!1,this.updateGuestModal=!1}},{key:"updateGuest",value:function(){this.updateGuestModal=!0}},{key:"disableGuest",value:function(){var e=this;this.guestDatabase.disableGuest(this.guestId,this.activeGuest?0:1,(function(t){t.error?e.functionsService.openSnackBar("Erro ao desabilitar o convidado."):(e.backendMassage=t.data.msg,e.functionsService.openSnackBar(e.backendMassage))})),this.getGuestList(this.searchForm.get("active").value),this.hideModalConfirm()}},{key:"filterGuestStatus",value:function(){var e=this.searchForm.get("active").value;0==e&&(this.guestList=null,this.getGuestList(0)),1==e&&(this.guestList=null,this.getGuestList(1)),3==e&&(this.guestList=null,this.getGuestList(3))}}])}()).\u0275fac=function(e){return new(e||eme)($r(wp),$r(yfe),$r(zP),$r(hL),$r(JO),$r(WO))},eme.\u0275cmp=Ot({type:eme,selectors:[["io-guest-page-list"]],decls:31,vars:19,consts:[[1,"container"],[1,"main",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnClick"],[1,"wdMax25","mrgB2"],[1,"wdFull","wdMaxHere","mrgT1","mrgB1"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","statusFilter","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[3,"showModal","guestId","updateGuest","hideModal"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick",4,"ngIf"],[3,"showModal","guestId","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace","title","Editar convidado",3,"icon","click",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace mrgL1","title","Desabilitar convidado",3,"icon","click",4,"ngIf"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace mrgL1","title","Ativar convidado",3,"icon","click",4,"ngIf"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],["size","3x","title","Editar convidado",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"],["size","3x","title","Desabilitar convidado",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"],["size","3x","title","Ativar convidado",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace","mrgL1",3,"icon","click"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalGuest(null)})),ts(),es(3,"div",3),es(4,"div",4),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),ts(),es(6,"div",6),es(7,"div",7),es(8,"h3",8),Gs(9,"Convidado"),ts(),es(10,"h3",8),Gs(11,"CPF"),ts(),es(12,"div",9),es(13,"select",10),ls("change",(function(){return t.filterGuestStatus()})),es(14,"option",11),Gs(15,"Todos"),ts(),es(16,"option",12),Gs(17,"Ativo"),ts(),es(18,"option",11),Gs(19,"Inativo"),ts(),ts(),ns(20,"fa-icon",13),ts(),es(21,"h3",8),Gs(22,"A\xe7\xe3o"),ts(),ts(),es(23,"ul",14),Jr(24,Jfe,13,10,"li",15),Jr(25,Kfe,4,3,"li",16),ts(),ts(),es(26,"io-pagination",17),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),es(27,"io-guest-modal-form",18),ls("hideModal",(function(){return t.hideModal()})),ts(),Jr(28,Zfe,1,3,"io-modal-confirm",19),Jr(29,Xfe,1,3,"io-modal-confirm",19),es(30,"io-collaborator-modal-form-face-recognition",20),ls("hideModal",(function(){return t.hideModalFaceRecognition()})),ts()),2&e&&(Bo(1),Zr("formGroup",t.searchForm),Bo(1),Zr("moduleName","guest")("titleTop","Convidado")("showBtn",!0),Bo(11),Zr("formControlName","active"),Bo(1),Zr("value",3),Bo(2),Zr("value",1),Bo(2),Zr("value",0),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.guestListFilteredSearch),Bo(1),Zr("ngIf",0==t.guestListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("showModal",t.showModal)("guestId",t.guestId)("updateGuest",t.updateGuestModal),Bo(1),Zr("ngIf",1==t.activeGuest),Bo(1),Zr("ngIf",0==t.activeGuest),Bo(1),Zr("showModal",t.modalFaceRecognition)("guestId",t.guestId))},directives:[Hf,ip,eI,oE,vm,bp,Vf,vp,ym,xm,FD,ah,sh,hE,wfe,Hfe,BB,UB],pipes:[IE],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-left:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:250px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:120px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:120px;margin:0;text-align:right}"]}),eme);function nme(e,t){if(1&e&&(es(0,"div",4),es(1,"h2",5),Gs(2),ts(),es(3,"p",6),Gs(4),_c(5,"date"),ts(),ns(6,"div",7),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.version),Bo(2),Qs("Atualiza\xe7\xe3o referente \xe0 ",kc(5,3,n.created_at),""),Bo(2),Zr("innerHTML",n.change_log,fo)}}var ime,ome=((ime=function(){return d((function e(t){c(this,e),this.databaseService=t,this.changelogList=""}),[{key:"ngOnInit",value:function(){this.getChangeLog()}},{key:"getChangeLog",value:function(){var e=this;this.databaseService.getChangeLogData((function(t){e.changelogList=t.data}))}}])}()).\u0275fac=function(e){return new(e||ime)($r(tT))},ime.\u0275cmp=Ot({type:ime,selectors:[["io-change-log"]],decls:4,vars:3,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],["class","mrgB2",4,"ngFor","ngForOf"],[1,"mrgB2"],[1,"fontBold"],[1,"sizeD"],[3,"innerHTML"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),Jr(3,nme,7,5,"div",3),ts(),ts()),2&e&&(Bo(2),Zr("moduleName","collaborator")("titleTop","Notas de atualiza\xe7\xe3o"),Bo(1),Zr("ngForOf",t.changelogList))},directives:[eI,ah],pipes:[xh],styles:[""]}),ime);function ame(e,t){if(1&e&&(es(0,"option",23),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.name)}}function rme(e,t){if(1&e&&(es(0,"span",31),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function sme(e,t){if(1&e){var n=as();es(0,"li",24),es(1,"span",25),Jr(2,rme,2,1,"span",26),Gs(3),ts(),es(4,"span",25),Gs(5),ts(),es(6,"span",25),Gs(7),ts(),es(8,"span",25),Gs(9),ts(),es(10,"span",27),es(11,"io-icon",28),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),ns(12,"io-icon",29),es(13,"io-icon",30),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalRemove(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description,""),Bo(2),Qs(" Dia ",o.getDate(i.begin_date)!=o.getDate(i.end_date)?o.getDate(i.begin_date)+" at\xe9 dia "+o.getDate(i.end_date):o.getDate(i.begin_date)," "),Bo(2),$s(i.type),Bo(2),$s(i.signature_status),Bo(2),Zr("moduleName","document")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados"),Bo(1),Zr("moduleName","document")("action","update")("iconTitle","Editar documento")("iconClassList","mrgL1")("urlNavigation","document-update/"+i.id),Bo(1),Zr("moduleName","document")("action","delete")("iconTitle","Excluir documento")("iconClassList","mrgL1")}}function lme(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function cme(e,t){1&e&&(es(0,"p"),Gs(1," Nenhuma documento encontrada."),ts())}function ume(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 registro de documentos."),ts())}function dme(e,t){if(1&e&&(es(0,"li"),Jr(1,lme,2,0,"p",19),Jr(2,cme,2,0,"p",19),Jr(3,ume,2,0,"p",19),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.documentList.length>0&&n.documentList[0].loading),Bo(1),Zr("ngIf",n.documentList.length>0&&!n.documentList[0].loading&&0==n.documentListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.documentList.length)}}var hme,fme,mme,pme=function(){return["/document-type"]},gme=((mme=function(){return d((function e(t,n,i,o,a,r,s,l,u){var d=this;c(this,e),this.titleService=t,this.formBuilder=n,this.router=i,this.registerDocumentDatabase=o,this.functionsService=a,this.iconRegularService=r,this.iconSolidService=s,this.loadingScreenService=l,this.storageService=u,this.documentList=[{loading:!0}],this.documentListFilteredTypeId=[],this.documentListFilteredSearch=[],this.documentSelectedId=null,this.documentTypeList=[],this.modalDocument=!1,this.modalCollaboratorList=!1,this.modalRemove=!1,this.collaboratorListIn=[],this.collaboratorListOut=[],this.selectedDate="",this.beginDateSelected="",this.beginDateStart="",this.dateSelected=null,this.endDateSelected="",this.endDateStart="",this.paginationData=null,this.currentPage=1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Documentos"),this.loadingScreenService.show(),this.searchForm=this.formBuilder.group({document_type_id:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required])}),this.registerDocumentDatabase.getDocumentTypeList([],(function(e){e.error||(e.data.documentTypeList.forEach((function(e){d.documentTypeList.push(e)})),d.documentTypeList=d.functionsService.arrayReOder(d.documentTypeList,"name"))}));var h=this.router.getCurrentNavigation().extras.state;h&&h.date&&(this.beginDateStart=this.functionsService.getFirstLastDay(h.date)[0],this.endDateStart=this.functionsService.getFirstLastDay(h.date)[1])}),[{key:"ngOnInit",value:function(){}},{key:"setBeginDate",value:function(e){this.beginDateSelected=e,this.getDocumentList()}},{key:"setEndDate",value:function(e){this.endDateSelected=e,this.getDocumentList()}},{key:"getDocumentList",value:function(){var e=this;if(""!=this.beginDateSelected&&""!=this.endDateSelected){var t={page:this.currentPage.toString(),beginDate:this.beginDateSelected,endDate:this.endDateSelected,type:this.searchForm.controls.document_type_id.value};this.loadingScreenService.show(),new Date(this.beginDateSelected)<new Date(this.endDateSelected)&&this.registerDocumentDatabase.getDocumentList(t,(function(t){t.error||(e.documentList=t.data.document.data,e.paginationData=t.data.document,e.filterDocumentTypeId())})),this.loadingScreenService.hide()}}},{key:"filterDocumentTypeId",value:function(){var e=this.searchForm.controls.document_type_id.value;this.documentListFilteredTypeId=this.documentList.filter((function(t){return t.document_type_id==e})),"all"==e&&(this.documentListFilteredTypeId=this.documentList),this.filterDocumentSearch(this.searchForm.controls.search.value)}},{key:"filterDocumentSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.documentListFilteredSearch=this.functionsService.arrayFilterWords(this.documentListFilteredTypeId,e,"description")}},{key:"showModalRemove",value:function(e){this.documentSelectedId=e,this.modalRemove=!0}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.registerDocumentDatabase.getDocumentCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.documentSelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.documentSelectedId=null,this.modalCollaboratorList=!1}},{key:"deleteDocument",value:function(){var e=this,t=this.documentSelectedId;this.registerDocumentDatabase.deleteDocument(t,(function(n){n.error||(e.documentList=e.documentList.filter((function(e){return e.id!=t})),e.filterDocumentTypeId(),e.hideModalRemove())}))}},{key:"hideModalRemove",value:function(){this.modalRemove=!1,this.documentSelectedId=null}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e.split(" ")[0]).slice(0,5)}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getDocumentList()}}])}()).\u0275fac=function(e){return new(e||mme)($r(hL),$r(wp),$r(yM),$r(IN),$r(zP),$r(WO),$r(JO),$r(dL),$r(YP))},mme.\u0275cmp=Ot({type:mme,selectors:[["io-document-page-list"]],decls:32,vars:30,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl"],[1,"flexPad"],[3,"firstDateLabel","firstDateStart","secondDateLabel","secondDateStart","firstDateSelected","secondDateSelected"],["title","Visualizar tipos de documento",1,"flex","start","downloadMirrorBox","mrgB2","border-gray-light","btn","w-auto","clickPlace",3,"routerLink"],[1,"sizeC","fontUp"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","type_report_id","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],[3,"value",4,"ngFor","ngForOf"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[3,"title","moduleName","btnAddAction","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","hideModal"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"value"],[1,"flex","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","urlNavigation"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[1,"sizeB","cl-magenta","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-interval-selector",4),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),es(5,"div",5),es(6,"span",6),Gs(7,"Tipos de documento"),ts(),ts(),ts(),es(8,"div",7),es(9,"io-search-line",8),ls("onKeyPress",(function(e){return t.filterDocumentSearch(e)})),ts(),ts(),es(10,"div",9),es(11,"div",10),es(12,"h3",11),Gs(13,"Descri\xe7\xe3o"),ts(),es(14,"h3",11),Gs(15,"Per\xedodo"),ts(),es(16,"div",12),es(17,"select",13),ls("change",(function(){return t.getDocumentList()})),es(18,"option",14),Gs(19,"Tipo"),ts(),Jr(20,ame,2,2,"option",15),ts(),ns(21,"fa-icon",16),ts(),es(22,"h3",11),Gs(23,"Assinatura"),ts(),es(24,"h3",11),Gs(25,"A\xe7\xe3o"),ts(),ts(),es(26,"ul",17),Jr(27,sme,14,18,"li",18),Jr(28,dme,4,3,"li",19),ts(),ts(),es(29,"io-pagination",20),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),es(30,"io-modal-multi-select-id",21),ls("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(31,"io-modal-confirm",22),ls("confirmClick",(function(){return t.deleteDocument()}))("hideModal",(function(){return t.hideModalRemove()})),ts()),2&e&&(Bo(2),Zr("moduleName","document")("titleTop","Documentos")("showBtn",!0)("btnDataUrl","document-register"),Bo(2),Zr("firstDateLabel","Data inicial")("firstDateStart",t.beginDateStart)("secondDateLabel","Data final")("secondDateStart",t.endDateStart),Bo(1),Zr("routerLink",mc(29,pme)),Bo(6),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","document_type_id"),Bo(1),Zr("value","all"),Bo(2),Zr("ngForOf",t.documentTypeList),Bo(1),Zr("icon",t.iconSolidService.faSort),Bo(6),Zr("ngForOf",t.documentListFilteredSearch),Bo(1),Zr("ngIf",0==t.documentListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("title","Funcion\xe1rios vinculados a este documento")("moduleName","document")("btnAddAction","update")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("showModal",t.modalRemove)("title","Deseja realmente excluir esse documento?")("btnTextConfirm","Excluir"))},directives:[eI,ZA,bM,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,ah,FD,sh,hE,tR,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}li.listAlign[_ngcontent-%COMP%]{background-color:#fff;transition:all .2s ease}"]}),mme),vme=((fme=function(){return d((function e(t){c(this,e),this.el=t}),[{key:"onInputChange",value:function(e){var t=this.el.nativeElement.value;this.el.nativeElement.value=t.replace(/[^0-9]*/g,""),t!==this.el.nativeElement.value&&e.stopPropagation()}}])}()).\u0275fac=function(e){return new(e||fme)($r(Ml))},fme.\u0275dir=Et({type:fme,selectors:[["","OnlyNumbersDirective",""]],hostBindings:function(e,t){1&e&&ls("input",(function(e){return t.onInputChange(e)}))}}),fme),yme=((hme=function(){return d((function e(t,n,i){c(this,e),this.formBuilder=t,this.registerDocumentDatabase=n,this.functionsService=i,this.documentTypeId=null,this.showModal=!0,this.hideModal=new Mc,this.reloadList=new Mc,this.stateFields={description:{class:""}},this.documentTypeForm=this.formBuilder.group({name:new Wm(null,[Jf.required]),remember_days:new Wm(0,[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"ngOnChanges",value:function(){var e=this;this.documentTypeForm.reset(),this.documentTypeForm.get("remember_days").setValue(0),this.showModal&&this.documentTypeId&&this.registerDocumentDatabase.getDocumentTypeById(this.documentTypeId,(function(t){t.error||Object.keys(e.documentTypeForm.controls).forEach((function(n){e.documentTypeForm.get(n).setValue(t.data.documentType[n])}))}))}},{key:"sendDocumentType",value:function(){this.documentTypeForm.get("name").valid?this.documentTypeForm.get("remember_days").valid?this.documentTypeId?this.putDocumentType(this.documentTypeForm.value,this.documentTypeId):this.postDocumentType(this.documentTypeForm.value):this.functionsService.openSnackBar("Informe a quantidade de dias."):this.functionsService.openSnackBar("Informe um nome para cadastrar um novo tipo de documento")}},{key:"postDocumentType",value:function(e){var t=this;this.registerDocumentDatabase.postDocumentType(e,(function(e){e.error||(t.emitReloadList(),t.closeModal())}))}},{key:"putDocumentType",value:function(e,t){var n=this;this.registerDocumentDatabase.putDocumentType(t,e,(function(e){e.error||(n.emitReloadList(),n.closeModal())}))}},{key:"emitReloadList",value:function(){this.reloadList.emit()}},{key:"closeModal",value:function(){this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||hme)($r(wp),$r(IN),$r(zP))},hme.\u0275cmp=Ot({type:hme,selectors:[["io-document-modal-form-type"]],inputs:{documentTypeId:"documentTypeId",showModal:"showModal"},outputs:{hideModal:"hideModal",reloadList:"reloadList"},features:[dl],decls:26,vars:14,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","maxlength","20","required","","type","text",3,"formControlName"],["for","description",1,"form-label","required"],[1,"mrgT2","sizeD","cl-blue","fontUp","fontBold","mrgB2"],[1,"fontBold"],[1,"fontItalic","fontBold"],[1,"selectBox","mrgT2","flexPad"],[1,"form-group","sizeC"],["OnlyNumbersDirective","",1,"wdMax25","mrgL2",3,"formControlName"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2),ts(),es(3,"div",2),es(4,"div",3),es(5,"div",4),es(6,"div",5),ns(7,"input",6),es(8,"label",7),Gs(9,"Nome"),ts(),ts(),es(10,"h3",8),Gs(11,"Notifica\xe7\xe3o de vencimento"),ts(),es(12,"p",9),Gs(13,"*Informe a quantidade de dias que deseja receber notifica\xe7\xf5es antes do vencimento do documento."),ts(),es(14,"p",9),Gs(15,"Se o valor do campo "),es(16,"span",10),Gs(17,"Quantidade de dias"),ts(),Gs(18," for 0, n\xe3o ir\xe1 gerar notifica\xe7\xe3o."),ts(),es(19,"div",11),es(20,"label",12),Gs(21,"Quantidade de dias: "),ns(22,"input",13),ts(),ts(),ts(),es(23,"div",14),es(24,"io-btn",15),ls("btnClick",(function(){return t.closeModal()})),ts(),es(25,"io-btn",16),ls("btnClick",(function(){return t.sendDocumentType()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Qs("",t.documentTypeId?"Editar":"Novo"," tipo de documento"),Bo(1),Zr("formGroup",t.documentTypeForm),Bo(4),Zr("formControlName","name"),Bo(15),Zr("formControlName","remember_days"),Bo(2),Zr("moduleName","document")("action","update")("btnColor","btn-red")("btnText","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","document")("action",t.documentTypeId?"update":"create")("btnColor","btn-blue-bg")("btnText",t.documentTypeId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,kp,bp,Vf,vp,vme,jD],styles:[""]}),hme);function bme(e,t){if(1&e&&(es(0,"option",41),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),Qs("",n.name," ")}}function _me(e,t){if(1&e){var n=as();es(0,"div"),es(1,"label",21),Gs(2,"Necess\xe1rio assinatura do documento "),es(3,"input",22),ls("change",(function(){return mn(n),fs().checkNeedSignature()})),ts(),ns(4,"span",23),ts(),ts()}2&e&&(Bo(3),Zr("formControlName","need_signature"))}function kme(e,t){if(1&e){var n=as();es(0,"fa-icon",51),ls("click",(function(){mn(n);var e=fs().$implicit;return fs(2).showModalAttachment(e.attachment)})),ts()}2&e&&Zr("icon",fs(3).iconRegularService.faEye)}function Cme(e,t){if(1&e){var n=as();es(0,"div",46),es(1,"span",47),Gs(2),ts(),es(3,"span",48),es(4,"a",49),Jr(5,kme,1,1,"fa-icon",50),ts(),es(6,"fa-icon",51),ls("click",(function(){mn(n);var e=t.$implicit;return fs(2).downloadAttachment(e.attachment)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs(2);Bo(2),Qs(" ",i.attachment," "),Bo(2),Zr("href",o.currentDatabase+"/storage/company_"+o.companyId+"/document/document_"+o.documentId+"/"+i.attachment,mo),Bo(1),Zr("ngIf",i.isVisible),Bo(1),Zr("icon",o.iconSolidService.faDownload)}}function wme(e,t){if(1&e&&(es(0,"div",42),es(1,"div",43),es(2,"h3",44),Gs(3,"Anexo"),ts(),ts(),Jr(4,Cme,7,4,"div",45),ts()),2&e){var n=fs();Bo(4),Zr("ngForOf",n.documentAttachmentList)}}function xme(e,t){if(1&e&&(es(0,"span",54),ns(1,"fa-icon",56),ts()),2&e){var n=fs(2);Bo(1),Zr("icon",n.iconSolidService.faCheck)}}function Mme(e,t){if(1&e){var n=as();es(0,"div",52),ls("click",(function(){return mn(n),fs(),Gr(45).click()})),ns(1,"fa-icon",53),es(2,"span",54),Gs(3,"Adicionar anexo"),ts(),Jr(4,xme,2,1,"span",55),ts()}if(2&e){var i=fs();Bo(1),Zr("icon",i.iconSolidService.faUpload),Bo(3),Zr("ngIf",null!=i.file)}}function Sme(e,t){if(1&e){var n=as();es(0,"io-btn",57),ls("btnClick",(function(){return mn(n),fs().sendDocument()})),ts()}if(2&e){var i=fs();Zr("moduleName","document")("action",i.updateOn?"update":"create")("btnColor","btn-blue-bg")("btnText",i.updateOn?"Salvar":"Cadastrar")}}var Pme,Tme,Ome=((Tme=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.storageService=i,this.documentDatabase=o,this.databaseService=a,this.functionsService=r,this.iconRegularService=s,this.iconSolidService=l,this.validService=u,this.documentId=null,this.showAsModal=!1,this.beginDateSelected="",this.collaboratorSelectedId="",this.collaboratorSelectedName="",this.hideModal=new Mc,this.updateList=new Mc,this.resetEndDateEmitter=new Mc,this.btnEnable=!1,this.updateOn=!1,this.documentAttachmentList=[],this.documentMotive=0,this.documentMotiveSelected="",this.documentTypeList=[],this.collaboratorListSelectedId=[],this.companyId=this.storageService.decodeFromLocalStorage("companyId"),this.currentDatabase=this.databaseService.currentDatabaseUrl(),this.description="Descri\xe7\xe3o",this.modalCollaborator=!1,this.minDateForEndDate="",this.modalDocumentType=!1,this.availableOnApp=!1,this.file=null,this.stateFields={description:{class:""},beginDate:{class:""},endDate:{class:""},beginHour:{class:""},endHour:{class:""},document_type_id:{class:""}},this.documentForm=this.formBuilder.group({document_type_id:new Wm(null,[Jf.required]),description:new Wm("",[Jf.required]),begin_date:new Wm("",[Jf.required]),end_date:new Wm("",[Jf.required]),details:new Wm("",[Jf.required]),available_on_app:new Wm(0,[Jf.required]),need_signature:new Wm(0,[Jf.required]),beginDate:new Wm("",[Jf.required]),endDate:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.documentDatabase.getDocumentTypeList([],(function(t){t.error||t.data.documentTypeList.length>0&&(t.data.documentTypeList.forEach((function(t){e.documentTypeList.push(t)})),e.documentTypeList=e.functionsService.arrayReOder(e.documentTypeList,"name"))})),this.documentTypeList=this.functionsService.arrayReOder(this.documentTypeList,"name"),this.documentId?(this.updateOn=!0,this.documentDatabase.getDocument(this.companyId,this.documentId,(function(t){if(!t.error){var n=t.data.document,i=[];n.collaborators.forEach((function(t){e.collaboratorListSelectedId.push(t.id),i.push(t.name)})),e.setDescription(i),e.documentForm.get("document_type_id").setValue(n.document_type_id),e.documentForm.get("description").setValue(n.description),e.documentForm.get("details").setValue(n.details),e.documentForm.get("beginDate").setValue(n.begin_date.toString().split(" ")[0]),e.documentForm.get("endDate").setValue(n.end_date.toString().split(" ")[0]),e.documentForm.get("available_on_app").setValue(n.available_on_app),1==n.available_on_app&&(e.availableOnApp=!0),e.documentForm.get("need_signature").setValue(n.need_signature),e.documentAttachmentList=n.document_attachments,e.documentAttachmentList.forEach((function(t,n){var i=t.attachment.split(".")[t.attachment.split(".").length-1];e.documentAttachmentList[n]=Object.assign(Object.assign({},e.documentAttachmentList[n]),{isVisible:["jpg","jpeg","png","txt"].includes(i)})})),e.btnEnable=!0}}))):this.btnEnable=!0,this.showAsModal&&(this.documentForm.get("beginDate").setValue(this.beginDateSelected),this.documentForm.get("endDate").setValue(this.beginDateSelected),this.setMinDateForEndDate(this.beginDateSelected),this.setCollaboratorListSelect([this.collaboratorSelectedId]),this.setDescription([this.collaboratorSelectedName]))}},{key:"setBeginDate",value:function(e){this.documentForm.get("beginDate").setValue(e),""!=e?this.setMinDateForEndDate(e):this.resetEndDate()}},{key:"resetEndDate",value:function(){this.resetEndDateEmitter.emit()}},{key:"setMinDateForEndDate",value:function(e){this.minDateForEndDate=this.functionsService.getDayAfter(e,1)}},{key:"setEndDate",value:function(e){var t=this;this.interval=setTimeout((function(){t.documentForm.get("endDate").setValue(e)}),1)}},{key:"showModalCollaborator",value:function(){this.modalCollaborator=!0}},{key:"setCollaboratorListSelect",value:function(e){var t=this;this.collaboratorListSelectedId=[],e.forEach((function(e){t.collaboratorListSelectedId.push(e)}))}},{key:"setDescription",value:function(e){this.description=1==e.length?e[0]:"M\xfaltiplos",this.documentForm.get("description").valid||this.documentForm.get("description").setValue(this.description)}},{key:"hideModalCollaborator",value:function(){this.modalCollaborator=!1}},{key:"handleFile",value:function(e){return"application/pdf"!=e.type?this.functionsService.openSnackBar("Apenas arquivos PDF s\xe3o permitidos"):e.size>15e6?this.functionsService.openSnackBar("O tamanho m\xe1ximo permitido para o documento \xe9 de 15 MB."):void(this.file=e)}},{key:"setMotive",value:function(e){var t=this;this.documentMotive=parseInt(e),this.documentMotiveSelected=this.documentTypeList.filter((function(e){return e.id==t.documentMotive.toString()}))[0].name}},{key:"validDocument",value:function(){return 0==this.collaboratorListSelectedId.length?(this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio para cadastrar"),!1):null==this.documentForm.get("document_type_id").value?(this.functionsService.openSnackBar("Selecione o tipo de documento"),!1):this.checkErrorField("description")?this.checkErrorField("beginDate")?this.checkErrorField("endDate")?!(this.functionsService.removeSings(this.documentForm.get("beginDate").value)>this.functionsService.removeSings(this.documentForm.get("endDate").value)&&(this.functionsService.openSnackBar("endDateBigger"),1)):(this.functionsService.openSnackBar("Informe a data final"),!1):(this.functionsService.openSnackBar("Informe a data inicial"),!1):(this.functionsService.openSnackBar("Informe a descri\xe7\xe3o"),!1)}},{key:"checkAvailableOnApp",value:function(){this.availableOnApp=this.documentForm.get("available_on_app").value,this.availableOnApp||this.documentForm.get("need_signature").setValue(!1)}},{key:"checkNeedSignature",value:function(){this.documentForm.get("available_on_app").value||this.documentForm.get("need_signature").setValue(!1)}},{key:"sendDocument",value:function(){this.validDocument()&&(this.documentForm.get("begin_date").setValue(this.documentForm.get("beginDate").value),this.documentForm.get("end_date").setValue(this.documentForm.get("endDate").value),this.documentId?this.updateDocument():this.postDocument())}},{key:"postDocument",value:function(){var e=this,t=new FormData;this.file&&t.append("attachment",this.file),t.append("company_id",this.companyId),t.append("collaborator_id",JSON.stringify(this.collaboratorListSelectedId)),t.append("document_type_id",this.documentForm.get("document_type_id").value),t.append("description",this.documentForm.get("description").value),t.append("begin_date",this.documentForm.get("begin_date").value),t.append("end_date",this.documentForm.get("end_date").value),t.append("details",this.documentForm.get("details").value),t.append("available_on_app",this.documentForm.get("available_on_app").value?"1":" 0"),t.append("need_signature",this.documentForm.get("need_signature").value?"1":"0"),this.documentDatabase.postDocument(t,(function(t){t.error||(e.updateList.emit(),e.endRegister())}))}},{key:"updateDocument",value:function(){var e=this,t=JSON.stringify(this.collaboratorListSelectedId),n=Object.assign({company_id:this.companyId,collaborator_id:t},this.documentForm.value);this.documentDatabase.putDocument(this.documentId,n,(function(t){t.error||(e.updateList.emit(),e.endRegister())}))}},{key:"showModalAttachment",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[t.split(".").length-1];this.documentDatabase.getDocumentAttachment({document_id:this.documentId,attachment:t},(function(i){i.error||e.functionsService.downloadFile(i.data,n,t.split("."+n)[0],!0)}))}},{key:"downloadAttachment",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[t.split(".").length-1];this.documentDatabase.getDocumentAttachment({document_id:this.documentId,attachment:t},(function(i){i.error||e.functionsService.downloadFile(i.data,n,t.split("."+n)[0])}))}},{key:"checkErrorField",value:function(e){return this.documentForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"endRegister",value:function(){this.showAsModal?this.hideModal.emit():this.router.navigate(["/document-register-list"]).then((function(){return!1}))}},{key:"showModalDocumentType",value:function(){this.modalDocumentType=!0}},{key:"hideModalDocumentType",value:function(){var e=this;this.modalDocumentType=!1,this.documentTypeList=[],this.documentDatabase.getDocumentTypeList([],(function(t){t.error||t.data.documentTypeList.length>0&&(t.data.documentTypeList.forEach((function(t){e.documentTypeList.push(t)})),e.documentTypeList=e.functionsService.arrayReOder(e.documentTypeList,"name"))}))}}])}()).\u0275fac=function(e){return new(e||Tme)($r(wp),$r(yM),$r(YP),$r(IN),$r(tT),$r(zP),$r(WO),$r(JO),$r(TN))},Tme.\u0275cmp=Ot({type:Tme,selectors:[["io-document-form"]],inputs:{documentId:"documentId",showAsModal:"showAsModal",beginDateSelected:"beginDateSelected",collaboratorSelectedId:"collaboratorSelectedId",collaboratorSelectedName:"collaboratorSelectedName"},outputs:{hideModal:"hideModal",updateList:"updateList",resetEndDateEmitter:"resetEndDateEmitter"},decls:49,vars:41,consts:[[1,"formBox",3,"formGroup"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"form-group","inputAnimated"],["autocomplete","off","id","description","placeholder","","required","","type","text",3,"formControlName"],["for","description",1,"form-label","required"],[1,"sizeD"],[1,"flex","start"],[1,"sizeC","borderBottom"],[1,"minHeightBox","mrgB2"],[1,"flex","fullHeight","documentBox"],[1,"block"],[1,"flex","mrgB2"],[1,"flex","form-group","inputAnimated"],["id","document_type_id","required","",3,"formControlName","change","keyup"],["typeId",""],[3,"value",4,"ngFor","ngForOf"],["for","document_type_id",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[1,"form-group","checkFullDay"],["size","3x","title","Adicionar tipo de documento",1,"iconItem","iconSizeF","cl-blue","clickPlace",3,"icon","click"],[1,"wdMax50","flex","mrgB2"],[1,"item","radioBox","sizeC"],["type","checkbox",1,"radioBoxInput",3,"formControlName","change"],[1,"checkmark"],[4,"ngIf"],[1,"flex","top","mrgB2"],[1,"datepicker","required",3,"labelText","startDate","currentDate","validMinDateClosure","collaboratorListId","dateSelectedEN"],[1,"datepicker","required",3,"labelText","startDate","currentDate","minDate","resetDate","dateSelectedEN"],[1,"flex","sizeC","pdgB1"],[1,"flexDesk","round2"],[1,"form-group","wdFull","inputAnimated"],["placeholder","","required","",1,"sizeC","round2",3,"formControlName"],["class","attachmentList",4,"ngIf"],[1,"flex"],[3,"moduleName","btnColor","btnText","useValidation","btnClick"],["class","clickPlace flex center wdMax25 btn","title","Adicionar anexo",3,"click",4,"ngIf"],["hidden","","type","file","accept","application/pdf",1,"hide",3,"change"],["fileInput",""],["class","mrgL2",3,"moduleName","action","btnColor","btnText","btnClick",4,"ngIf"],[3,"showModal","hideModal"],[3,"moduleName","showModal","selectedListId","selectedId","selectedName","hideModal"],[3,"value"],[1,"attachmentList"],[1,"flex","borderBottom","mrgB1"],[1,"sizeC","fontBold"],["class","flex attachmentItem ",4,"ngFor","ngForOf"],[1,"flex","attachmentItem"],[1,"sizeC","cl-blue"],[1,"flexDesk","end"],["target","_blank",1,"linkFlex","clickPlace","mrgR1",3,"href"],["size","3x","class","iconItem iconSizeG cl-blue clickPlace",3,"icon","click",4,"ngIf"],["size","3x",1,"iconItem","iconSizeG","cl-blue","clickPlace",3,"icon","click"],["title","Adicionar anexo",1,"clickPlace","flex","center","wdMax25","btn",3,"click"],["size","3x",1,"iconItem","iconSizeE","cl-blue",3,"icon"],[1,"sizeC","mrgL1"],["class","sizeC mrgL1",4,"ngIf"],[1,"cl-green",3,"icon"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnClick"]],template:function(e,t){if(1&e){var n=as();es(0,"form",0),es(1,"div"),es(2,"io-main-top",1),ls("btnClick",(function(){return t.showModalCollaborator()})),ts(),es(3,"div",2),ns(4,"input",3),es(5,"label",4),Gs(6,"Descri\xe7\xe3o"),ts(),ts(),es(7,"div"),es(8,"span",5),Gs(9,"Funcion\xe1rio:"),ts(),es(10,"div",6),es(11,"span",7),Gs(12),ts(),ts(),ts(),es(13,"div",8),es(14,"div",9),es(15,"div",10),es(16,"div",11),es(17,"div",12),es(18,"select",13,14),ls("change",(function(){mn(n);var e=Gr(19);return t.setMotive(e.value)}))("keyup",(function(){return t.checkErrorField("document_type_id")})),Jr(20,bme,2,2,"option",15),ts(),es(21,"label",16),Gs(22,"Tipo de documento"),ts(),ns(23,"fa-icon",17),ts(),es(24,"div",18),es(25,"fa-icon",19),ls("click",(function(){return t.showModalDocumentType()})),ts(),ts(),ts(),es(26,"div",20),es(27,"label",21),Gs(28,"Disponibilizar documento no aplicativo "),es(29,"input",22),ls("change",(function(){return t.checkAvailableOnApp()})),ts(),ns(30,"span",23),ts(),Jr(31,_me,5,1,"div",24),ts(),es(32,"div",25),es(33,"io-datepicker",26),ls("dateSelectedEN",(function(e){return t.setBeginDate(e)})),ts(),es(34,"io-datepicker",27),ls("dateSelectedEN",(function(e){return t.setEndDate(e)})),ts(),ts(),ts(),ts(),es(35,"span",28),Gs(36,"Detalhes:"),ts(),es(37,"div",29),es(38,"div",30),ns(39,"textarea",31),ts(),ts(),ts(),ts(),Jr(40,wme,5,1,"div",32),es(41,"div",33),es(42,"io-btn",34),ls("btnClick",(function(){return t.endRegister()})),ts(),Jr(43,Mme,5,2,"div",35),es(44,"input",36,37),ls("change",(function(e){return t.handleFile(e.target.files[0])})),ts(),Jr(46,Sme,1,4,"io-btn",38),ts(),ts(),es(47,"io-document-modal-form-type",39),ls("hideModal",(function(){return t.hideModalDocumentType()})),ts(),es(48,"io-modal-multi-select-id",40),ls("selectedId",(function(e){return t.setCollaboratorListSelect(e)}))("selectedName",(function(e){return t.setDescription(e)}))("hideModal",(function(){return t.hideModalCollaborator()})),ts()}2&e&&(Zr("formGroup",t.documentForm),Bo(2),Zr("moduleName","document")("titleTop",t.updateOn?"Edi\xe7\xe3o de Documento":"Cadastro de Documento")("showBtn",!t.showAsModal)("btnDataText","Selecionar Funcion\xe1rios"),Bo(2),Es(t.stateFields.description.class),Zr("formControlName","description"),Bo(8),$s(t.description),Bo(6),Es(t.stateFields.document_type_id.class),Zr("formControlName","document_type_id"),Bo(2),Zr("ngForOf",t.documentTypeList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(2),Zr("icon",t.iconSolidService.faPlusCircle),Bo(4),Zr("formControlName","available_on_app"),Bo(2),Zr("ngIf",t.availableOnApp),Bo(2),Zr("labelText","Data inicial")("startDate",t.beginDateSelected)("currentDate",t.documentForm.get("beginDate").value)("validMinDateClosure",!0)("collaboratorListId",t.collaboratorListSelectedId),Bo(1),Zr("labelText","Data Final")("startDate",t.beginDateSelected)("currentDate",t.documentForm.get("endDate").value)("minDate",t.minDateForEndDate)("resetDate",t.resetEndDateEmitter),Bo(5),Zr("formControlName","details"),Bo(1),Zr("ngIf",t.documentAttachmentList.length>0),Bo(2),Zr("moduleName","document")("btnColor","btn-red")("btnText","Cancelar")("useValidation",!1),Bo(1),Zr("ngIf",!t.updateOn),Bo(3),Zr("ngIf",t.btnEnable),Bo(1),Zr("showModal",t.modalDocumentType),Bo(1),Zr("moduleName","document")("showModal",t.modalCollaborator)("selectedListId",t.collaboratorListSelectedId))},directives:[ep,Hf,ip,eI,If,bp,Vf,vp,vm,ah,FD,Of,sh,UA,jD,yme,tR,ym,xm],styles:[".documentBox[_ngcontent-%COMP%]{padding:20px 0}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .checkBoxLine[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;max-width:24%}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flexDesk[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{max-width:24%}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{width:49%}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .datepicker.checkFullDay[_ngcontent-%COMP%], .documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .form-group.checkFullDay[_ngcontent-%COMP%]{margin:0;display:flex;align-items:center}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%]   .add-absence-icon[_ngcontent-%COMP%], .documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]   .add-absence-icon[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:20px}textarea[_ngcontent-%COMP%]{overflow:hidden;margin:0}.attachmentList[_ngcontent-%COMP%]{max-width:100%;margin:0 0 20px}.attachmentList[_ngcontent-%COMP%]   .attachmentItem[_ngcontent-%COMP%]{margin:0 0 10px}input[_ngcontent-%COMP%]::-webkit-input-placeholder{opacity:.7}@media (max-width:700px){.documentBox[_ngcontent-%COMP%]{display:block}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]{width:100%}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:250px;margin:0 auto 20px 0}}@media (max-width:550px){.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]{display:block}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .datepicker[_ngcontent-%COMP%], .documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:first-child   .flex[_ngcontent-%COMP%]   .form-group[_ngcontent-%COMP%]{display:block;width:100%;margin-bottom:20px}.documentBox[_ngcontent-%COMP%]   .block[_ngcontent-%COMP%]:last-child{max-width:100%}}"]}),Tme),Lme=((Pme=function(){return d((function e(t){c(this,e),this.titleService=t,this.titleService.setTitle("Documentos - Cadastro")}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Pme)($r(hL))},Pme.\u0275cmp=Ot({type:Pme,selectors:[["io-document-page-register"]],decls:3,vars:0,consts:[[1,"container"],[1,"main"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-document-form"),ts(),ts())},directives:[Ome],styles:[""]}),Pme),Dme=["class","component"];function Ime(e,t){if(1&e){var n=as();es(0,"li",12),es(1,"span",13),Gs(2),ts(),es(3,"span",13),Gs(4),ts(),es(5,"span",14),es(6,"io-icon",15),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDocumentType(e.id)})),ts(),es(7,"io-icon",15),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.name),Bo(2),Qs(" ",0==i.remember_days?"N\xe3o notificar":i.remember_days+" dias antes",""),Bo(2),Zr("moduleName","document")("action","update")("iconTitle","Editar tipo de documento")("iconClassList","mrgL1"),Bo(1),Zr("moduleName","document")("action","delete")("iconTitle","Excluir tipo de documento")("iconClassList","mrgL1")}}function Fme(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Ame(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum tipo de documento encontrado."),ts())}function Eme(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 tipos de documento cadastrados."),ts())}function Bme(e,t){if(1&e&&(es(0,"li"),Jr(1,Fme,2,0,"p",9),Jr(2,Ame,2,0,"p",9),Jr(3,Eme,2,0,"p",9),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.documentTypeList.length>0&&n.documentTypeList[0].loading),Bo(1),Zr("ngIf",n.documentTypeList.length>0&&!n.documentTypeList[0].loading&&0==n.documentTypeListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.documentTypeList.length)}}var Nme,Rme,jme=((Rme=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.documentDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.documentTypeList=[{loading:!0}],this.documentTypeListFilteredSearch=[],this.documentTypeListFilteredStatus=[],this.documentTypeSelectedId=null,this.modalDocumentType=!1,this.modalDelete=!1,this.modalReactive=!1,this.titleService.setTitle("Tipos de aus\xeancia"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),status:new Wm(1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getDocumentTypeList()}},{key:"getDocumentTypeList",value:function(){var e=this;this.documentTypeList=[{loading:!0}],this.documentTypeListFilteredSearch=[],this.documentDatabase.getDocumentTypeList([],(function(t){t.error||(e.documentTypeList=t.data.documentTypeList,e.filterDocumentTypeSearch(e.searchForm.controls.search.value))}))}},{key:"filterDocumentTypeSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.documentTypeListFilteredSearch=this.functionsService.arrayFilterWords(this.documentTypeList,e,"name")}},{key:"showModalDocumentType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.documentTypeSelectedId=e,this.modalDocumentType=!0}},{key:"hideModalDocumentType",value:function(){this.modalDocumentType=!1,this.documentTypeSelectedId=null}},{key:"showModalDelete",value:function(e){this.documentTypeSelectedId=e,this.modalDelete=!0}},{key:"deleteDocumentType",value:function(){var e=this,t=this.documentTypeSelectedId;this.documentDatabase.deleteDocumentType(t,(function(n){n.error||(e.documentTypeList=e.documentTypeList.filter((function(e){return e.id!=t})),e.hideModalDelete(),e.getDocumentTypeList())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.documentTypeSelectedId=null}}])}()).\u0275fac=function(e){return new(e||Rme)($r(wp),$r(yM),$r(IN),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},Rme.\u0275cmp=Ot({type:Rme,selectors:[["io-document-page-list-type",8,"component"]],attrs:Dme,decls:17,vars:11,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnClick"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","documentTypeId","reloadList","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalDocumentType()})),ts(),es(3,"io-search-line",3),ls("onKeyPress",(function(e){return t.filterDocumentTypeSearch(e)})),ts(),es(4,"div",4),es(5,"div",5),es(6,"h3",6),Gs(7,"Nome de documento"),ts(),es(8,"h3",6),Gs(9,"Notificar vencimento em:"),ts(),es(10,"h3",6),Gs(11,"A\xe7\xe3o"),ts(),ts(),es(12,"ul",7),Jr(13,Ime,8,10,"li",8),Jr(14,Bme,4,3,"li",9),ts(),ts(),ts(),ts(),es(15,"io-document-modal-form-type",10),ls("reloadList",(function(){return t.getDocumentTypeList()}))("hideModal",(function(){return t.hideModalDocumentType()})),ts(),es(16,"io-modal-confirm",11),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteDocumentType()})),ts()),2&e&&(Bo(2),Zr("moduleName","document")("titleTop","Tipos de documento")("showBtn",!0),Bo(3),Zr("formGroup",t.searchForm),Bo(8),Zr("ngForOf",t.documentTypeListFilteredSearch),Bo(1),Zr("ngIf",0==t.documentTypeListFilteredSearch.length),Bo(1),Zr("showModal",t.modalDocumentType)("documentTypeId",t.documentTypeSelectedId),Bo(1),Zr("title","Excluir tipo de documento?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[eI,oE,Hf,ip,ah,sh,yme,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:300px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:200px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:90px;margin:0;text-align:right}"]}),Rme),zme=((Nme=function(){return d((function e(t,n,i){var o=this;c(this,e),this.titleService=t,this.activatedRoute=n,this.storageService=i,this.documentId="",this.titleService.setTitle("Documentos - Edi\xe7\xe3o"),this.activatedRoute.params.subscribe((function(e){o.documentId=e.id}))}),[{key:"ngOnInit",value:function(){}}])}()).\u0275fac=function(e){return new(e||Nme)($r(hL),$r(lx),$r(YP))},Nme.\u0275cmp=Ot({type:Nme,selectors:[["io-document-page-update"]],decls:3,vars:1,consts:[[1,"container"],[1,"main"],[3,"documentId"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-document-form",2),ts(),ts()),2&e&&(Bo(2),Zr("documentId",t.documentId))},directives:[Ome],styles:[""]}),Nme);function Vme(e,t){if(1&e&&(es(0,"span",17),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Hme(e,t){if(1&e){var n=as();es(0,"li",12),es(1,"span",13),Jr(2,Vme,2,1,"span",14),Gs(3),ts(),es(4,"span",13),Gs(5),ts(),es(6,"span",13),Gs(7),ts(),es(8,"span",13),Gs(9),ts(),es(10,"span",15),es(11,"io-icon",16),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalCollaboratorList(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.description,""),Bo(2),$s(i.type),Bo(2),$s(i.details),Bo(2),$s(i.expire_date),Bo(2),Zr("moduleName","document")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados")}}function Yme(e,t){1&e&&(es(0,"p"),Gs(1," Carregando..."),ts())}function qme(e,t){1&e&&(es(0,"p"),Gs(1," Nenhuma recusa encontrada."),ts())}function Ume(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 documentos expirando."),ts())}function Wme(e,t){if(1&e&&(es(0,"li"),Jr(1,Yme,2,0,"p",10),Jr(2,qme,2,0,"p",10),Jr(3,Ume,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.documentExpiringFilteredSearch.length>0&&n.documentExpiringFilteredSearch[0].loading),Bo(1),Zr("ngIf",n.documentExpiringFilteredSearch.length>0&&!n.documentExpiringFilteredSearch[0].loading&&0==n.documentExpiringFilteredSearch.length),Bo(1),Zr("ngIf",0==n.documentExpiringFilteredSearch.length)}}var Jme,Gme,$me=((Gme=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.notificationDatabase=r,this.registerDocumentDatabase=s,this.storageService=l,this.titleService=u,this.documentExpiring=[{loading:!0}],this.documentExpiringFilteredSearch=[],this.expiringDocumentSelectedId=null,this.modalDocumentExpiring=!1,this.collaboratorListIn=[],this.modalCollaboratorList=!1,this.selectedDate="",this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Documentos pr\xf3ximos do vencimento"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){var e=this;this.notificationDatabase.getDocumentExpiringList((function(t){t.error||(e.documentExpiring=t.data.documentExpiringList,e.filterDocumentExpiringSearch(e.searchForm.controls.search.value))}))}},{key:"filterDocumentExpiringSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.documentExpiringFilteredSearch=this.functionsService.arrayFilterWords(this.documentExpiring,e,"description")}},{key:"getDate",value:function(e){return this.functionsService.dateENtoBR(e[0])}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.registerDocumentDatabase.getDocumentCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.expiringDocumentSelectedId=e,this.modalCollaboratorList=!0}},{key:"hideModalCollaboratorList",value:function(){this.expiringDocumentSelectedId=null,this.modalCollaboratorList=!1}}])}()).\u0275fac=function(e){return new(e||Gme)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(jH),$r(IN),$r(YP),$r(hL))},Gme.\u0275cmp=Ot({type:Gme,selectors:[["io-page-list-expiring-documents"]],decls:21,vars:13,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"title","moduleName","btnAddAction","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","hideModal"],[1,"flex","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[1,"sizeB","cl-magenta","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterDocumentExpiringSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Descri\xe7\xe3o"),ts(),es(9,"h3",7),Gs(10,"Tipo"),ts(),es(11,"h3",7),Gs(12,"Detalhes"),ts(),es(13,"h3",7),Gs(14,"Data de vencimento"),ts(),es(15,"h3",7),Gs(16,"A\xe7\xe3o"),ts(),ts(),es(17,"ul",8),Jr(18,Hme,12,9,"li",9),Jr(19,Wme,4,3,"li",10),ts(),ts(),ts(),ts(),es(20,"io-modal-multi-select-id",11),ls("hideModal",(function(){return t.hideModalCollaboratorList()})),ts()),2&e&&(Bo(2),Zr("titleTop","Documentos pr\xf3ximos do vencimento"),Bo(4),Zr("formGroup",t.searchForm),Bo(12),Zr("ngForOf",t.documentExpiringFilteredSearch),Bo(1),Zr("ngIf",0==t.documentExpiringFilteredSearch.length),Bo(1),Zr("title","Funcion\xe1rios vinculados a este documento")("moduleName","document")("btnAddAction","update")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList))},directives:[eI,oE,Hf,ip,ah,sh,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2), .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),Gme),Qme=((Jme=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.iconRegularService=n,this.integrationDatabase=i,this.functionsService=o,this.showModal=!0,this.hideModal=new Mc,this.integrationPosted=new Mc,this.integrationUpdated=new Mc,this.selectedDate=null,this.fileImport=null,this.importName="",this.integrationForm=this.formBuilder.group({import_name:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){}},{key:"getFileForImport",value:function(e){this.fileImport=e}},{key:"handleFile",value:function(){var e=this;if(""==this.selectedDate&&this.functionsService.openSnackBar("Selecione uma data de referencia."),""!=this.integrationForm.get("import_name").value){if(null==this.fileImport&&this.functionsService.openSnackBar("Selecione uma arquivo para a importa\xe7\xe3o."),this.fileImport.target&&this.fileImport.target.files&&!(this.fileImport.target.files.length<1)){var t=this.fileImport.target.files[0];if("txt"===t.name.split(".").pop().toLowerCase()){var n=new FormData;n.append("paySlip",t),n.append("date_reference",this.selectedDate),n.append("import_name",this.integrationForm.get("import_name").value),this.integrationDatabase.postImportpaySlip(n,(function(t){t.error||(e.hideModal.emit(!1),e.closeModal())}))}else this.functionsService.openSnackBar("O arquivo de importa\xe7\xe3o deve ser do tipo TXT.")}}else this.functionsService.openSnackBar("Defina um nome para a importa\xe7\xe3o.")}},{key:"setDate",value:function(e){this.selectedDate=e}},{key:"closeModal",value:function(){this.selectedDate="",this.hideModal.emit(!1)}}])}()).\u0275fac=function(e){return new(e||Jme)($r(wp),$r(WO),$r(she),$r(zP))},Jme.\u0275cmp=Ot({type:Jme,selectors:[["io-pay-slip-form"]],inputs:{showModal:"showModal"},outputs:{hideModal:"hideModal",integrationPosted:"integrationPosted",integrationUpdated:"integrationUpdated"},decls:29,vars:15,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"modalUser"],[1,"form-group","inputAnimated","textInfo"],[1,"mrgB2","fontBold","cl-yellow"],[1,"form-group","inputAnimated"],[1,"mrgB1","bold","size","cl-blue"],["autocomplete","off","id","import_name","placeholder","Descri\xe7\xe3o","type","import_name","required","",3,"formControlName"],[1,"inline"],[1,"wdMax50"],[1,"mrgB1","bold","form-label","size","cl-blue"],[3,"dateSelected"],[1,"bold","form-label","size","cl-blue"],[1,"mrgb5"],["type","file","accept",".txt",1,"sizeInput",3,"change"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2,"Nova importa\xe7\xe3o"),ts(),es(3,"div",2),es(4,"div",3),es(5,"div",4),es(6,"div",5),es(7,"div",6),es(8,"p",7),Gs(9," \u2022 Esta importa\xe7\xe3o segue o layout de contra cheque 1.1 da Sicoob. "),ts(),es(10,"p",7),Gs(11," \u2022 Somente ser\xe3o aceitos arquivos no formato txt (arquivo de texto). "),ts(),ts(),es(12,"div",8),es(13,"span",9),Gs(14,"Defina uma descri\xe7\xe3o para a importa\xe7\xe3o (a descri\xe7\xe3o ir\xe1 aparecer para o funcion\xe1rio):"),ts(),ns(15,"input",10),ts(),es(16,"div",11),es(17,"div",12),es(18,"span",13),Gs(19,"Selecione o m\xeas que este holerite ir\xe1 aparecer para o funcion\xe1rio:"),ts(),es(20,"io-period-selector",14),ls("dateSelected",(function(e){return t.setDate(e)})),ts(),ts(),es(21,"div"),es(22,"span",15),Gs(23,"Selecione o arquivo que cont\xe9m o holerite:"),ts(),es(24,"div",16),es(25,"input",17),ls("change",(function(e){return t.getFileForImport(e)})),ts(),ts(),ts(),ts(),ts(),es(26,"div",18),es(27,"io-btn",19),ls("btnClick",(function(){return t.closeModal()})),ts(),es(28,"io-btn",19),ls("btnClick",(function(){return t.handleFile()})),ts(),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(3),Zr("formGroup",t.integrationForm),Bo(12),Zr("formControlName","import_name"),Bo(12),Zr("moduleName","integrations")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","integrations")("action","")("btnText","importar")("btnColor","btn-blue")("btnTitle","importar")("useValidation",!1))},directives:[CE,Hf,ip,If,bp,Vf,vp,Foe,jD],styles:[".textInfo[_ngcontent-%COMP%]{margin-bottom:5%}.mrgb5[_ngcontent-%COMP%]{margin-top:10%}.bold[_ngcontent-%COMP%]{font-weight:700}.inline[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:5%}.inline[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1;margin-right:10px}.size[_ngcontent-%COMP%]{font-size:13px}.sizeInput[_ngcontent-%COMP%]{font-size:11px}"]}),Jme);function Kme(e,t){if(1&e){var n=as();es(0,"li",11),es(1,"span",12),Gs(2),ts(),es(3,"span",12),Gs(4),_c(5,"date"),ts(),es(6,"span",12),Gs(7),_c(8,"date"),ts(),es(9,"span",13),es(10,"io-icon",14),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.date_reference,e.import_name)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.import_name),Bo(2),$s(Cc(5,8,i.date_reference,"MM/yyyy")),Bo(3),$s(Cc(8,11,i.created_at,"dd/MM/yyyy")),Bo(3),Zr("moduleName","department")("action","delete")("moduleId",i.date_reference)("iconTitle","Excluir importa\xe7\xe3o")("iconClassList","mrgL1")}}function Zme(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Xme(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum holerite encontrado."),ts())}function epe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 nenhum holerite importado."),ts())}function tpe(e,t){if(1&e&&(es(0,"li"),Jr(1,Zme,2,0,"p",8),Jr(2,Xme,2,0,"p",8),Jr(3,epe,2,0,"p",8),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.integrationList.length>0&&n.integrationList[0].loading),Bo(1),Zr("ngIf",n.integrationList.length>0&&!n.integrationList[0].loading&&0==n.integrationList.length),Bo(1),Zr("ngIf",0==n.integrationList.length)}}function npe(e,t){if(1&e){var n=as();es(0,"io-pay-slip-form",15),ls("hideModal",(function(){return mn(n),fs().hideModalIntegration()})),ts()}2&e&&Zr("showModal",fs().modalIntegration)}function ipe(e,t){if(1&e){var n=as();es(0,"io-modal-confirm",16),ls("hideModal",(function(){return mn(n),fs().hideModalDelete()}))("confirmClick",(function(){return mn(n),fs().deleteIntegration()})),ts()}if(2&e){var i=fs();Zr("title","Excluir holerite?")("text","Ser\xe1 excluido o holerite de todos os funcion\xe1rios com desta data")("btnTextConfirm","Excluir")("showModal",i.modalDelete)}}var ope,ape,rpe,spe=((rpe=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.integrationDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.route=u,this.integrationList=[],this.dataDelete=null,this.importName=null,this.updateOn=!1,this.userId="",this.filterDate=!1,this.modalDelete=!1,this.modalIntegration=!1,this.titleService.setTitle("Sicoob holerite"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getImportList()}},{key:"getImportList",value:function(){var e=this;this.integrationDatabase.getImportPaySlip({},(function(t){t.error||(e.integrationList=t.data.getPaySlipData)}))}},{key:"showModalDelete",value:function(e,t){this.dataDelete=e,this.importName=t,this.modalDelete=!0}},{key:"deleteIntegration",value:function(){var e=this;this.integrationDatabase.deleteImportPaySlip({date_reference:this.dataDelete,import_name:this.importName},(function(t){t.error||(e.hideModalDelete(),e.getImportList())}))}},{key:"showModalIntegration",value:function(){this.modalIntegration=!0}},{key:"hideModalIntegration",value:function(){this.modalIntegration=!1,this.getImportList()}},{key:"hideModalDelete",value:function(){this.modalDelete=!1}}])}()).\u0275fac=function(e){return new(e||rpe)($r(wp),$r(yM),$r(she),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL),$r(lx))},rpe.\u0275cmp=Ot({type:rpe,selectors:[["io-integrations-page-list"]],decls:18,vars:8,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","hideModal",4,"ngIf"],[3,"title","text","btnTextConfirm","showModal","hideModal","confirmClick",4,"ngIf"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],[1,"item"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick"],[3,"showModal","hideModal"],[3,"title","text","btnTextConfirm","showModal","hideModal","confirmClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalIntegration()})),ts(),es(3,"div",3),es(4,"div",4),es(5,"h3",5),Gs(6,"Descri\xe7\xe3o da importa\xe7\xe3o"),ts(),es(7,"h3",5),Gs(8,"Data de referencia do holerite"),ts(),es(9,"h3",5),Gs(10,"Data da importa\xe7\xe3o"),ts(),es(11,"h3",5),Gs(12,"A\xe7\xe3o"),ts(),ts(),es(13,"ul",6),Jr(14,Kme,11,14,"li",7),Jr(15,tpe,4,3,"li",8),ts(),ts(),ts(),ts(),Jr(16,npe,1,1,"io-pay-slip-form",9),Jr(17,ipe,1,4,"io-modal-confirm",10)),2&e&&(Bo(2),Zr("moduleName","pay-slip")("titleTop","Sicoob holerite")("showBtn",!0)("btnDataText","importar"),Bo(12),Zr("ngForOf",t.integrationList),Bo(1),Zr("ngIf",0==t.integrationList.length),Bo(1),Zr("ngIf",1==t.modalIntegration),Bo(1),Zr("ngIf",1==t.modalDelete))},directives:[eI,ah,sh,BB,Qme,UB],pipes:[xh],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:50%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:40%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:33%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:33%;text-align:right}"]}),rpe),lpe=((ape=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"deleteCostCenter",value:function(e,t){this.databaseService.delete("/costCenter/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCostCenter",value:function(e,t){this.databaseService.get("/costCenter/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCostCenterCollaboratorList",value:function(e,t){this.databaseService.get("/costCenter/"+e+"/collaboratorList",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getUnitCollaboratorListOut",value:function(e,t){this.databaseService.get("/costCenter/"+e+"/collaboratorListOut",[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getCostCenterList",value:function(e){this.databaseService.get("/costCenter",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"postCostCenter",value:function(e,t){this.databaseService.post("/costCenter",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"postCostCenterCollaboratorList",value:function(e,t,n){this.databaseService.post("/costCenter/"+e+"/collaboratorList",t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}},{key:"putCostCenter",value:function(e,t,n){this.databaseService.put("/costCenter/"+e,t).subscribe((function(e){n({data:e})}),(function(e){n({error:e})}))}}])}()).\u0275fac=function(e){return new(e||ape)(ut(tT))},ape.\u0275prov=Se({token:ape,factory:ape.\u0275fac,providedIn:"root"}),ape),cpe=((ope=function(){return d((function e(t,n,i,o){c(this,e),this.formBuilder=t,this.costCenterDatabase=n,this.functionsService=i,this.storageService=o,this.costCenterId=null,this.costCenterName=null,this.showModal=!0,this.hideModal=new Mc,this.costCenterPosted=new Mc,this.costCenterUpdated=new Mc,this.stateFields={name:{class:""}},this.updateOn=!1,this.costCenterModuleId=null,this.permissionType=this.storageService.decodeFromLocalStorage("permissionType"),this.permissionList=this.storageService.decodeFromLocalStorage("permissionListAllowed"),this.userId=this.storageService.decodeFromLocalStorage("userId"),this.costCenterForm=this.formBuilder.group({name:new Wm("",[Jf.required]),moduleId:new Wm("",[Jf.required]),userId:new Wm("",[Jf.required]),permissionType:new Wm("",[Jf.required])})}),[{key:"ngOnChanges",value:function(){if(this.costCenterId&&this.showModal&&this.costCenterForm.controls.name.setValue(this.costCenterName),"custom"==this.permissionType){var e,t=o(JSON.parse(this.permissionList));try{for(t.s();!(e=t.n()).done;){var n=e.value;if("cost-center"===n.name){this.costCenterModuleId=n.module_id;break}}}catch(i){t.e(i)}finally{t.f()}}this.costCenterForm.controls.moduleId.setValue(this.costCenterModuleId),this.costCenterForm.controls.userId.setValue(this.userId),this.costCenterForm.controls.permissionType.setValue(this.permissionType)}},{key:"sendCostCenter",value:function(){this.checkErrorField("name")?this.costCenterId?this.putCostCenter(this.costCenterForm.value,this.costCenterId):this.postCostCenter(this.costCenterForm.value):this.functionsService.openSnackBar("emptyField")}},{key:"postCostCenter",value:function(e){var t=this;this.costCenterDatabase.postCostCenter(e,(function(n){if(!n.error){var i=n.data.id;t.emitAddToList(Object.assign(Object.assign({},e),{id:i})),t.closeModal()}}))}},{key:"putCostCenter",value:function(e,t){var n=this;this.costCenterDatabase.putCostCenter(t,e,(function(i){if(!i.error){var o=t;n.emitUpdateList(Object.assign(Object.assign({},e),{id:o})),n.closeModal()}}))}},{key:"emitAddToList",value:function(e){this.costCenterPosted.emit(e)}},{key:"emitUpdateList",value:function(e){this.costCenterUpdated.emit(e)}},{key:"checkErrorField",value:function(e){return this.costCenterForm.controls[e].valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"closeModal",value:function(){this.hideModal.emit(!1),this.costCenterForm.reset()}}])}()).\u0275fac=function(e){return new(e||ope)($r(wp),$r(lpe),$r(zP),$r(YP))},ope.\u0275cmp=Ot({type:ope,selectors:[["io-cost-center-modal-form"]],inputs:{costCenterId:"costCenterId",costCenterName:"costCenterName",showModal:"showModal"},outputs:{hideModal:"hideModal",costCenterPosted:"costCenterPosted",costCenterUpdated:"costCenterUpdated"},features:[dl],decls:15,vars:21,consts:[[3,"showModal","hideModal"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeB"],[3,"formGroup"],[1,"formBox"],[1,"inputBox"],[1,"form-group","inputAnimated"],["autocomplete","off","id","name","placeholder","","required","","type","text",3,"formControlName","keyup"],["for","name",1,"form-label","required"],[1,"flex"],[3,"moduleName","action","btnText","btnColor","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","moduleId","btnColor","btnText","btnTitle","btnClick"]],template:function(e,t){1&e&&(es(0,"io-modal-default",0),ls("hideModal",(function(){return t.closeModal()})),es(1,"h2",1),Gs(2),ts(),es(3,"p",2),Gs(4),ts(),es(5,"div",3),es(6,"div",4),es(7,"div",5),es(8,"div",6),es(9,"input",7),ls("keyup",(function(){return t.checkErrorField("name")})),ts(),es(10,"label",8),Gs(11,"Nome do centro de custo"),ts(),ts(),ts(),es(12,"div",9),es(13,"io-btn",10),ls("btnClick",(function(){return t.closeModal()})),ts(),es(14,"io-btn",11),ls("btnClick",(function(){return t.sendCostCenter()})),ts(),ts(),ts(),ts(),ts()),2&e&&(Zr("showModal",t.showModal),Bo(2),Qs("",t.costCenterId?"Editar":"Novo"," Centro de Custo"),Bo(2),Ks("Digite o ",t.costCenterId?"":"novo"," nome do ",t.costCenterId?"":"novo"," centro de custo."),Bo(1),Zr("formGroup",t.costCenterForm),Bo(4),Es(t.stateFields.name.class),Zr("formControlName","name"),Bo(4),Zr("moduleName","cost-center")("action","")("btnText","Cancelar")("btnColor","btn-red")("btnTitle","Cancelar")("useValidation",!1),Bo(1),Zr("moduleName","cost-center")("action",t.costCenterId?"update":"create")("moduleId",t.costCenterId||null)("btnColor","btn-blue-bg")("btnText",t.costCenterId?"Salvar":"Cadastrar")("btnTitle",t.costCenterId?"Salvar":"Cadastrar"))},directives:[CE,Hf,ip,If,bp,Vf,vp,jD],styles:[""]}),ope);function upe(e,t){if(1&e&&(es(0,"span",29),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function dpe(e,t){if(1&e){var n=as();es(0,"io-icon",30),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalCollaboratorList(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","showCollaboratorLinked")("iconClassList","mrgL1")("iconTitle","Visualizar funcion\xe1rios vinculados")}function hpe(e,t){if(1&e){var n=as();es(0,"io-icon",31),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalCostCenter(e.id,e.name)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","cost-center")("action","update")("moduleId",i.id)("iconTitle","Editar centro de custo")("iconClassList","mrgL1")}}function fpe(e,t){if(1&e){var n=as();es(0,"io-icon",31),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDelete(e.id)})),ts()}if(2&e){var i=fs().$implicit;Zr("moduleName","cost-center")("action","delete")("moduleId",i.id)("iconTitle","Excluir centro de custo")("iconClassList","mrgL1")}}function mpe(e,t){if(1&e){var n=as();es(0,"io-icon",32),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalReactive(e.id)})),ts()}2&e&&Zr("moduleName","cost-center")("action","reactive")("iconTitle","Reativar centro de custo")("iconClassList","mrgL1")}function ppe(e,t){if(1&e&&(es(0,"li",21),es(1,"span",22),Jr(2,upe,2,1,"span",23),Gs(3),ts(),es(4,"span",22),Gs(5),ts(),es(6,"span",24),Gs(7),ts(),es(8,"span",25),Jr(9,dpe,1,4,"io-icon",26),Jr(10,hpe,1,5,"io-icon",27),Jr(11,fpe,1,5,"io-icon",27),Jr(12,mpe,1,4,"io-icon",28),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),Qs(" ",n.name,""),Bo(2),$s(n.totalCollaborators),Bo(2),$s(1==n.active?"Ativo":"Inativo"),Bo(2),Zr("ngIf",n.active),Bo(1),Zr("ngIf",n.active),Bo(1),Zr("ngIf",0==n.totalCollaborators&&1==n.active),Bo(1),Zr("ngIf",!n.active)}}function gpe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function vpe(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum centro de custo encontrado. "),ts())}function ype(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 centros de custo cadastrados."),ts())}function bpe(e,t){if(1&e&&(es(0,"li"),Jr(1,gpe,2,0,"p",15),Jr(2,vpe,2,0,"p",15),Jr(3,ype,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.costCenterList.length>0&&n.costCenterList[0].loading),Bo(1),Zr("ngIf",n.costCenterList.length>0&&!n.costCenterList[0].loading&&0==n.costCenterListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.costCenterList.length)}}var _pe,kpe,Cpe=((kpe=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.costCenterDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.collaboratorListIn=[],this.collaboratorListOut=[],this.costCenterList=[{loading:!0}],this.costCenterListFilteredActive=[],this.costCenterListFilteredSearch=[],this.costCenterSelectedId=null,this.costCenterSelectedName=null,this.modalDelete=!1,this.modalCostCenter=!1,this.modalReactive=!1,this.modalCollaboratorList=!1,this.modalCollaboratorLink=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Centros de custo"),this.searchForm=this.formBuilder.group({active:new Wm("1",[Jf.required]),search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getCostCenterList()}},{key:"getCostCenterList",value:function(){var e=this;this.costCenterDatabase.getCostCenterList((function(t){t.error||(e.costCenterList=t.data.costCenterList,e.filterCostCenterSearch(e.searchForm.controls.search.value),e.filterCostCenterActive())}))}},{key:"filterCostCenterActive",value:function(){var e=this.searchForm.get("active").value;this.costCenterListFilteredActive=this.costCenterList.filter((function(t){return t.active==e})),"all"==e&&(this.costCenterListFilteredActive=this.costCenterList),this.filterCostCenterSearch(this.searchForm.controls.search.value)}},{key:"filterCostCenterSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.costCenterListFilteredSearch=this.functionsService.arrayFilterWords(this.costCenterListFilteredActive,e,"name")}},{key:"showModalCollaboratorList",value:function(e){var t=this;this.collaboratorListIn=[{loading:!0}],this.costCenterDatabase.getCostCenterCollaboratorList(e,(function(e){e.error||(t.collaboratorListIn=e.data.collaboratorList||[])})),this.costCenterSelectedId=e,this.modalCollaboratorList=!0}},{key:"showModalCollaboratorLink",value:function(){var e=this;this.collaboratorListOut=[{loading:!0}],this.costCenterDatabase.getUnitCollaboratorListOut(this.costCenterSelectedId,(function(t){t.error||(e.collaboratorListOut=t.data.CollaboratorListOut||[])})),this.modalCollaboratorLink=!0,this.modalCollaboratorList=!1}},{key:"linkCollaboratorList",value:function(e){var t=this;this.costCenterDatabase.postCostCenterCollaboratorList(this.costCenterSelectedId,{collaborator_id:JSON.stringify(e)},(function(e){e.error||(t.getCostCenterList(),t.hideModalCollaboratorList())}))}},{key:"showModalCostCenter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.costCenterSelectedId=e,this.costCenterSelectedName=t,this.modalCostCenter=!0}},{key:"postCostCenterList",value:function(e){this.costCenterList.push(e),this.costCenterList=this.functionsService.arrayReOder(this.costCenterList,"name"),this.filterCostCenterSearch(this.searchForm.controls.search.value),this.getCostCenterList()}},{key:"updateCostCenterList",value:function(e){var t=this.costCenterList.findIndex((function(t){return t.id==e.id}));this.costCenterList[t].name=e.name,this.costCenterList=this.functionsService.arrayReOder(this.costCenterList,"name"),this.filterCostCenterSearch(this.searchForm.controls.search.value),this.getCostCenterList()}},{key:"hideModalCostCenter",value:function(){this.modalCostCenter=!1,this.costCenterSelectedId=null}},{key:"hideModalCollaboratorList",value:function(){this.costCenterSelectedId=null,this.modalCollaboratorList=!1}},{key:"showModalDelete",value:function(e){this.costCenterSelectedId=e,this.modalDelete=!0}},{key:"deleteCostCenter",value:function(){var e=this,t=this.costCenterSelectedId;this.costCenterDatabase.deleteCostCenter(t,(function(n){n.error||(e.costCenterList=e.costCenterList.filter((function(e){return e.id!=t})),e.filterCostCenterSearch(e.searchForm.controls.search.value),e.getCostCenterList(),e.hideModalDelete())}))}},{key:"hideModalDelete",value:function(){this.modalDelete=!1,this.costCenterSelectedId=null}},{key:"showModalReactive",value:function(e){this.costCenterSelectedId=e,this.modalReactive=!0}},{key:"reactive",value:function(e){var t=this;this.costCenterDatabase.putCostCenter(e,{active:1},(function(n){if(!n.error){var i=t.costCenterList.findIndex((function(t){return t.id==e}));t.costCenterList[i].active=1,t.filterCostCenterActive(),t.hideModalReactive()}}))}},{key:"hideModalCollaboratorLink",value:function(){this.costCenterSelectedId=null,this.modalCollaboratorLink=!1}},{key:"hideModalReactive",value:function(){this.costCenterSelectedId=null,this.modalReactive=!1}}])}()).\u0275fac=function(e){return new(e||kpe)($r(wp),$r(yM),$r(lpe),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},kpe.\u0275cmp=Ot({type:kpe,selectors:[["io-cost-center-page-list"]],decls:30,vars:39,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataText","btnClick"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"showModal","costCenterId","costCenterName","costCenterPosted","costCenterUpdated","hideModal"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","confirmClick","hideModal"],[3,"title","moduleName","btnAddAction","btnAddText","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","selectionEnabled","showModal","btnAddClick","hideModal"],[3,"title","moduleName","btnConfirmAction","btnConfirmText","listForSelection","getCollaboratorListFromDatabase","showModal","departmentSelectedId","selectedId","hideModal"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item","sizeC","pdgL1"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick",4,"ngIf"],[3,"moduleName","action","iconTitle","iconClassList","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"],[3,"moduleName","action","moduleId","iconTitle","iconClassList","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"io-main-top",2),ls("btnClick",(function(){return t.showModalCostCenter()})),ts(),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterCostCenterSearch(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Centro de Custo"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rios"),ts(),es(11,"div",8),es(12,"select",9),ls("change",(function(){return t.filterCostCenterActive()})),es(13,"option",10),Gs(14,"Todos"),ts(),es(15,"option",11),Gs(16,"Ativos"),ts(),es(17,"option",10),Gs(18,"Inativos"),ts(),ts(),ns(19,"fa-icon",12),ts(),es(20,"h3",7),Gs(21,"A\xe7\xe3o"),ts(),ts(),es(22,"ul",13),Jr(23,ppe,13,8,"li",14),Jr(24,bpe,4,3,"li",15),ts(),ts(),ts(),ts(),es(25,"io-cost-center-modal-form",16),ls("costCenterPosted",(function(e){return t.postCostCenterList(e)}))("costCenterUpdated",(function(e){return t.updateCostCenterList(e)}))("hideModal",(function(){return t.hideModalCostCenter()})),ts(),es(26,"io-modal-confirm",17),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteCostCenter()})),ts(),es(27,"io-modal-confirm",18),ls("confirmClick",(function(){return t.reactive(t.costCenterSelectedId)}))("hideModal",(function(){return t.hideModalReactive()})),ts(),es(28,"io-modal-multi-select-id",19),ls("btnAddClick",(function(){return t.showModalCollaboratorLink()}))("hideModal",(function(){return t.hideModalCollaboratorList()})),ts(),es(29,"io-modal-multi-select-id",20),ls("selectedId",(function(e){return t.linkCollaboratorList(e)}))("hideModal",(function(){return t.hideModalCollaboratorLink()})),ts()),2&e&&(Bo(2),Zr("moduleName","cost-center")("titleTop","Centros de Custo")("showBtn",!0)("btnDataText","Cadastrar"),Bo(4),Zr("formGroup",t.searchForm),Bo(6),Zr("formControlName","active"),Bo(1),Zr("value","all"),Bo(2),Zr("value","1"),Bo(2),Zr("value","0"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.costCenterListFilteredSearch),Bo(1),Zr("ngIf",0==t.costCenterListFilteredSearch.length),Bo(1),Zr("showModal",t.modalCostCenter)("costCenterId",t.costCenterSelectedId)("costCenterName",t.costCenterSelectedName),Bo(1),Zr("title","Excluir Centro de Custo?")("btnTextConfirm","Excluir")("showModal",t.modalDelete),Bo(1),Zr("showModal",t.modalReactive)("title","Deseja Reativar este centro de custo?")("btnTextConfirm","Reativar"),Bo(1),Zr("title","Funcion\xe1rios vinculados a este centro de custo")("moduleName","unit")("btnAddAction","update")("btnAddText","Vincular")("btnConfirmAction","")("btnConfirmText","")("listForSelection",t.collaboratorListIn)("getCollaboratorListFromDatabase",!1)("selectionEnabled",!1)("showModal",t.modalCollaboratorList),Bo(1),Zr("title","Vincular funcion\xe1rios a este centro de custo")("moduleName","unit")("btnConfirmAction","update")("btnConfirmText","Vincular")("listForSelection",t.collaboratorListOut)("getCollaboratorListFromDatabase",!1)("showModal",t.modalCollaboratorLink)("departmentSelectedId",t.costCenterSelectedId))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,cpe,UB,tR,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:35%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:25%;text-align:center}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:25%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:15%;margin:0;text-align:right}"]}),kpe),wpe=((_pe=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getCollaboratorList",value:function(e,t){this.databaseService.get("/proofOfPoint/collaboratorList",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"getDownloadProofOfPoint",value:function(e,t){this.databaseService.getFile("/proofOfPoint/download",e).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||_pe)(ut(tT))},_pe.\u0275prov=Se({token:_pe,factory:_pe.\u0275fac,providedIn:"root"}),_pe);function xpe(e,t){if(1&e&&(es(0,"span",32),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function Mpe(e,t){if(1&e){var n=as();es(0,"li",24),es(1,"span",25),es(2,"label",26),es(3,"input",27),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(4,"span",13),ts(),ts(),es(5,"span",25),es(6,"label",28),Jr(7,xpe,2,1,"span",29),es(8,"span",30),Gs(9),ts(),ts(),ts(),es(10,"span",31),Gs(11),ts(),ns(12,"span",25),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(3),ys("id","coll",i.id,""),Zr("checked",o.collaboratorListSelectedId.indexOf(i.id)>=0),Bo(3),ys("for","coll",i.id,""),Bo(1),Zr("ngIf",o.userIsDevOrSupport),Bo(2),$s(i.name),Bo(2),$s(null!=i.dismissal_date?"Inativo":"Ativo")}}function Spe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function Ppe(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum funcion\xe1rio encontrado."),ts())}function Tpe(e,t){if(1&e&&(es(0,"li"),Jr(1,Spe,2,0,"p",21),Jr(2,Ppe,2,0,"p",21),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorListLoading()),Bo(1),Zr("ngIf",n.noFilterMatch())}}function Ope(e,t){if(1&e){var n=as();es(0,"div",33),es(1,"div",33),es(2,"io-btn",34),ls("btnClick",(function(){return mn(n),fs().showModalConfirmDownload()})),ts(),ts(),ts()}2&e&&(Bo(2),Zr("moduleName","report")("action","show")("btnColor","btn-blue-bg")("btnTitle","Gerar comprovantes")("btnText","Gerar comprovantes")("useValidation",!1))}var Lpe,Dpe=((Lpe=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.companyDatabase=n,this.proofOfPointDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.journeyDatabase=s,this.storageService=l,this.titleService=u,this.beginDate=null,this.endDate=null,this.collaboratorList=[],this.collaboratorListFilteredStatus=[],this.collaboratorListFilteredSearch=[],this.collaboratorListSelectedId=[],this.filterDepartmentSelected=[],this.filterRegimeSelected=[],this.filterUnitSelected=[],this.filterContractIdSelected=[],this.modalFilter=!1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.userIsDevOrSupport="31"==this.userId||"4"==this.userId,this.modalConfirmDownload=!1,this.titleService.setTitle("Comprovante de ponto"),this.proofOfPoint=this.formBuilder.group({begin_date:new Wm(null,[Jf.required]),end_date:new Wm(null,[Jf.required])}),this.searchForm=this.formBuilder.group({allSelected:new Wm(!1,[Jf.required]),collaboratorStatus:new Wm("all",[Jf.required]),search:new Wm("",[Jf.required]),unit:new Wm("all",[Jf.required])}),this.getCollaboratorList()}),[{key:"ngOnInit",value:function(){}},{key:"showModalFilter",value:function(){this.modalFilter=!0}},{key:"hideModalFilter",value:function(){this.modalFilter=!1}},{key:"setFilter",value:function(e){this.filterDepartmentSelected=e.departmentIdList,this.filterRegimeSelected=e.regimeIdList,this.filterUnitSelected=e.unitIdList,this.filterContractIdSelected=e.contractIdList,this.getCollaboratorList()}},{key:"setBeginDate",value:function(e){this.beginDate=e,this.getList()}},{key:"setEndDate",value:function(e){this.endDate=e,this.getList()}},{key:"getList",value:function(){var e=this;clearTimeout(this.interval),this.interval=setTimeout((function(){e.getCollaboratorList()}),200)}},{key:"getDateBR",value:function(e){return null==e||""===e?"":this.functionsService.dateENtoBR(e)}},{key:"getCollaboratorList",value:function(){var e=this,t={beginDate:this.beginDate,endDate:this.endDate,filterDepartment:JSON.stringify(this.filterDepartmentSelected),filterRegime:JSON.stringify(this.filterRegimeSelected),filterUnit:JSON.stringify(this.filterUnitSelected),filterContract:JSON.stringify(this.filterContractIdSelected),collaboratorIdList:"[]"};null!=this.beginDate&&null!=this.endDate&&(this.collaboratorList=[{loading:!0}],this.collaboratorListFilteredSearch=[],this.proofOfPointDatabase.getCollaboratorList(t,(function(t){t.error||(e.collaboratorList=t.data.collaboratorList,e.filterCollaboratorStatus())})))}},{key:"filterCollaboratorStatus",value:function(){var e=this.searchForm.get("collaboratorStatus").value;"active"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null==e.dismissal_date}))),"inactive"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList.filter((function(e){return null!==e.dismissal_date}))),"all"==e&&(this.collaboratorListFilteredStatus=this.collaboratorList),this.filterProofOfPointSearch(this.searchForm.controls.search.value)}},{key:"filterProofOfPointSearch",value:function(e){this.searchForm.controls.search.setValue(e),this.collaboratorListFilteredSearch=this.functionsService.arrayFilterWords(this.collaboratorListFilteredStatus,e,"name")}},{key:"verifyAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").value?(this.collaboratorListSelectedId=[],this.collaboratorListFilteredSearch.forEach((function(t){e.collaboratorListSelectedId.push(t.id)}))):this.collaboratorListSelectedId=[]}},{key:"selectId",value:function(e){this.collaboratorListSelectedId.find((function(t){return t==e}))?this.collaboratorListSelectedId=this.collaboratorListSelectedId.filter((function(t){return t!=e})):this.collaboratorListSelectedId.push(e),this.validAllSelected()}},{key:"proofOfPointCollaborators",value:function(){var e=this;if(0==this.collaboratorListSelectedId.length)return this.functionsService.openSnackBar("Selecione ao menos um funcion\xe1rio"),void this.hideModalConfirmDownload();var t={beginDate:this.beginDate,endDate:this.endDate,collaboratorIdList:JSON.stringify(this.collaboratorListSelectedId)};this.proofOfPointDatabase.getDownloadProofOfPoint(t,(function(t){if(!t.error)return e.functionsService.downloadFile(t.data,"pdf","Comprovante de ponto")})),this.hideModalConfirmDownload()}},{key:"validAllSelected",value:function(){var e=this;this.searchForm.get("allSelected").setValue(this.collaboratorListFilteredSearch.length==this.collaboratorListFilteredSearch.filter((function(t){return e.collaboratorListSelectedId.indexOf(t.id)>=0})).length)}},{key:"showModalConfirmDownload",value:function(){this.modalConfirmDownload=!0}},{key:"hideModalConfirmDownload",value:function(){this.modalConfirmDownload=!1}},{key:"collaboratorListLoading",value:function(){return this.collaboratorList.length>0&&this.collaboratorList[0].loading}},{key:"noFilterMatch",value:function(){return this.collaboratorList.length>0&&!this.collaboratorList[0].loading&&!this.collaboratorList[0].select&&0==this.collaboratorListFilteredSearch.length}},{key:"hasNoCollaboratorConfigured",value:function(){return 0==this.collaboratorList.length}}])}()).\u0275fac=function(e){return new(e||Lpe)($r(wp),$r(Mz),$r(wpe),$r(zP),$r(WO),$r(JO),$r(DN),$r(YP),$r(hL))},Lpe.\u0275cmp=Ot({type:Lpe,selectors:[["io-proof-of-point-page-list"]],decls:31,vars:17,consts:[[1,"container"],[1,"main","listBoxfour"],[1,"topBox","flex","top"],[3,"moduleName","titleTop"],[3,"selectedFilters"],[1,"flexPad","mrgB1"],[1,"flex","mrgL2",3,"firstDateLabel","secondDateLabel","firstDateSelected","secondDateSelected"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob","mrgB2"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","radioBox","hd1","sizeC"],["type","checkbox",3,"formControlName","change"],[1,"checkmark"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["id","collaboratorStatus","required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],["class","flex end",4,"ngIf"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item"],[1,"radioBox","hd1","sizeC"],["type","checkbox",3,"checked","id","change"],[1,"clickPlace",3,"for"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"sizeC"],[1,"item","sizeC","pdgL1"],[1,"sizeB","internal","mrgR1"],[1,"flex","end"],[3,"moduleName","action","btnColor","btnTitle","btnText","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"div",2),ns(3,"io-main-top",3),es(4,"io-collaborator-filter",4),ls("selectedFilters",(function(e){return t.setFilter(e)})),ts(),ts(),es(5,"div",5),es(6,"io-interval-selector",6),ls("firstDateSelected",(function(e){return t.setBeginDate(e)}))("secondDateSelected",(function(e){return t.setEndDate(e)})),ts(),ts(),es(7,"div",7),es(8,"io-search-line",8),ls("onKeyPress",(function(e){return t.filterProofOfPointSearch(e)})),ts(),ts(),es(9,"div",9),es(10,"div",10),es(11,"label",11),es(12,"input",12),ls("change",(function(){return t.verifyAllSelected()})),ts(),ns(13,"span",13),ts(),es(14,"h3",14),Gs(15,"Funcion\xe1rios"),ts(),es(16,"div",15),es(17,"select",16),ls("change",(function(){return t.filterCollaboratorStatus()})),es(18,"option",17),Gs(19,"Todos"),ts(),es(20,"option",17),Gs(21,"Ativos"),ts(),es(22,"option",17),Gs(23,"Inativos"),ts(),ts(),ns(24,"fa-icon",18),ts(),ns(25,"h3",14),ts(),es(26,"ul",19),Jr(27,Mpe,13,6,"li",20),Jr(28,Tpe,3,2,"li",21),ts(),ts(),Jr(29,Ope,3,6,"div",22),ts(),ts(),es(30,"io-modal-confirm",23),ls("hideModal",(function(){return t.hideModalConfirmDownload()}))("confirmClick",(function(){return t.proofOfPointCollaborators()})),ts()),2&e&&(Bo(3),Zr("moduleName","report")("titleTop","Comprovante de ponto"),Bo(3),Zr("firstDateLabel","Data inicial")("secondDateLabel","Data final"),Bo(4),Zr("formGroup",t.searchForm),Bo(2),Zr("formControlName","allSelected"),Bo(5),Zr("formControlName","collaboratorStatus"),Bo(1),Zr("value","all"),Bo(2),Zr("value","active"),Bo(2),Zr("value","inactive"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(3),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",!t.collaboratorListLoading()),Bo(1),Zr("showModal",t.modalConfirmDownload)("title","Deseja prosseguir com a gera\xe7\xe3o dos comprovantes?")("btnTextConfirm","Gerar"))},directives:[eI,qV,ZA,oE,Hf,ip,Of,Vf,vp,vm,bp,ym,xm,FD,ah,sh,UB,jD],styles:[".downloadMirrorBox[_ngcontent-%COMP%]{position:absolute;bottom:5px;right:0;width:auto}.downloadMirrorBox[_ngcontent-%COMP%]   select[_ngcontent-%COMP%]{min-width:170px;padding:1px 0 2px;margin:0}.downloadMirrorBox[_ngcontent-%COMP%]   .iconItem[_ngcontent-%COMP%]{top:0}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:100px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:60px;margin:0;text-align:right}.wdMax15[_ngcontent-%COMP%]{max-width:15%}"]}),Lpe),Ipe=["advertiseEditor"];function Fpe(e,t){if(1&e&&(es(0,"option",24),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.name)}}function Ape(e,t){if(1&e){var n=as();es(0,"div",25),ls("click",(function(){mn(n);var e=t.$implicit;return fs().writing(e.value)})),es(1,"button",26),Gs(2),ts(),ts()}if(2&e){var i=t.$implicit;Bo(2),$s(i.text)}}var Epe,Bpe=((Epe=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.advertiseDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.titleService=l,this.Editor=ine,this.advertiseTypeList=[],this.collaboratorList=[],this.stateFields={advertiseModelName:{class:""},advertiseModelTypeId:{class:""},advertiseModelText:{class:""}},this.variables=[{id:1,value:"{{Funcion\xe1rio}}",text:"Funcion\xe1rio"},{id:2,value:"{{Cargo}}",text:"Cargo"},{id:3,value:"{{Fun\xe7\xe3o}}",text:"Fun\xe7\xe3o"},{id:4,value:"{{CBO}}",text:"CBO"},{id:5,value:"{{CPF}}",text:"CPF"},{id:6,value:"{{PIS}}",text:"PIS"},{id:7,value:"{{CTPS}}",text:"CTPS"},{id:8,value:"{{RG}}",text:"RG"},{id:9,value:"{{Nacionalidade}}",text:"Nacionalidade"},{id:10,value:"{{Estado Civil}}",text:"Estado Civil"},{id:11,value:"{{CNPJ}}",text:"CNPJ"},{id:12,value:"{{Raz\xe3o Social}}",text:"Raz\xe3o Social"},{id:13,value:"{{Cidade}}",text:"Cidade"},{id:14,value:"{{Estado}}",text:"Estado"},{id:15,value:"{{Data}}",text:"Data"},{id:16,value:"{{Hora}}",text:"Hora"}],this.variables.sort((function(e,t){return e.text.localeCompare(t.text)})),this.titleService.setTitle("Tipos de aus\xeancia"),this.advertiseModelForm=this.formBuilder.group({advertiseModelName:new Wm("",[Jf.required]),advertiseModelTypeId:new Wm(null,[Jf.required])});var u=this.router.getCurrentNavigation();u.extras.state?(this.modelId=u.extras.state.modelId,this.getAdvertiseModelByid(this.modelId)):this.modelId=null}),[{key:"ngOnInit",value:function(){this.getAdvertiseTypeList()}},{key:"checkErrorField",value:function(e){return this.advertiseModelForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"validAdvertiseModel",value:function(){return this.checkErrorField("advertiseModelName")?this.checkErrorField("advertiseModelTypeId")&&0!=this.advertiseModelForm.get("advertiseModelTypeId").value?""!=this.editorComponent.editorInstance.getData()||(this.functionsService.openSnackBar("Informe o texto do modelo"),!1):(this.functionsService.openSnackBar("Informe o modelo de advert\xeancia"),!1):(this.functionsService.openSnackBar("Informe o nome do modelo"),!1)}},{key:"writing",value:function(e){var t=this.editorComponent.editorInstance,n=t.model.document.selection.getFirstPosition();t.model.change((function(t){t.insertText(e,n)}))}},{key:"getAdvertiseModelByid",value:function(e){var t=this;this.advertiseDatabase.getAdvertiseModelById(e,(function(e){e.error||(t.advertiseModelForm.get("advertiseModelName").setValue(e.data.advertiseModel.name),t.advertiseModelForm.get("advertiseModelTypeId").setValue(e.data.advertiseModel.advertise_type_id),t.editorComponent.editorInstance.setData(e.data.advertiseModel.model))}))}},{key:"getAdvertiseTypeList",value:function(){var e=this;this.advertiseTypeList=[{loading:!0}],this.advertiseDatabase.getAdvertiseTypeList(null!=this.modelId?[]:{onlyActives:!0},(function(t){t.error||(e.advertiseTypeList=t.data.advertiseTypeList)}))}},{key:"sendAdvertiseModel",value:function(){var e=this;if(this.validAdvertiseModel()){var t=this.editorComponent.editorInstance.getData(),n=this.advertiseModelForm.get("advertiseModelTypeId").value,i=this.advertiseModelForm.get("advertiseModelName").value;this.advertiseDatabase.postAdvertiseModel({model:t,advertiseType:n,advertiseName:i},(function(t){t.error||e.router.navigate(["/advertise-model"])}))}}},{key:"updateAdvertiseModel",value:function(e){var t=this;if(this.validAdvertiseModel()){var n=this.editorComponent.editorInstance.getData(),i=this.advertiseModelForm.get("advertiseModelTypeId").value,o=this.advertiseModelForm.get("advertiseModelName").value;this.advertiseDatabase.updateAdvertiseModel(e,{model:n,advertiseType:i,advertiseName:o},(function(e){e.error||t.router.navigate(["/advertise-model"])}))}}}])}()).\u0275fac=function(e){return new(e||Epe)($r(wp),$r(yM),$r(Mj),$r(zP),$r(WO),$r(JO),$r(YP),$r(hL))},Epe.\u0275cmp=Ot({type:Epe,selectors:[["io-advertise-page-model"]],viewQuery:function(e,t){var n;1&e&&Rc(Ipe,!0),2&e&&Bc(n=Yc())&&(t.editorComponent=n.first)},decls:28,vars:23,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop"],[1,"body",3,"formGroup"],[1,"ck"],[1,"flex","mrgB1"],[1,"form-group","wdMax50","inputAnimated","mrgR1","sizeC"],["autocomplete","off","id","advertiseModelName","placeholder","","maxlength","100","required","","type","text",3,"formControlName"],["for","advertiseModelName",1,"form-label","required"],[1,"form-group","wdMax50","inputAnimated","sizeC"],["id","advertiseModelTypeId","id","advertiseModelTypeId","required","",3,"formControlName"],["value","0"],[3,"value",4,"ngFor","ngForOf"],["for","advertiseModelTypeId",1,"form-label","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],["data","",3,"editor"],["advertiseEditor",""],[1,"mrgT2","flex","end"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","btnClick"],[1,"variablesMenu","mrgT1"],[1,"center","title"],[1,"line"],[1,"scrollable-list","mrgT1"],["class","center",3,"click",4,"ngFor","ngForOf"],[3,"value"],[1,"center",3,"click"],[1,"btn","btn-blue","mrgT1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div",4),es(5,"div",5),es(6,"div",6),ns(7,"input",7),es(8,"label",8),Gs(9,"Nome"),ts(),ts(),es(10,"div",9),es(11,"select",10),es(12,"option",11),Gs(13,"Selecione o tipo de advertencia"),ts(),Jr(14,Fpe,2,2,"option",12),ts(),es(15,"label",13),Gs(16,"Tipos de advert\xeanca"),ts(),ns(17,"fa-icon",14),ts(),ts(),ns(18,"ckeditor",15,16),es(20,"div",17),es(21,"io-btn",18),ls("btnClick",(function(){return null==t.modelId?t.sendAdvertiseModel():t.updateAdvertiseModel(t.modelId)})),ts(),ts(),ts(),es(22,"div",19),es(23,"div",20),Gs(24,"Campos Personalizados"),ts(),ns(25,"div",21),es(26,"div",22),Jr(27,Ape,3,1,"div",23),ts(),ts(),ts(),ts(),ts()),2&e&&(Bo(2),Zr("moduleName","advertise")("titleTop",null==t.modelId?"Novo Modelo De Advert\xeancia":"Editar Modelo De Advert\xeancia"),Bo(1),Zr("formGroup",t.advertiseModelForm),Bo(4),Es(t.stateFields.advertiseModelName.class),Zr("formControlName","advertiseModelName"),Bo(4),Es(t.stateFields.advertiseModelTypeId.class),Zr("formControlName","advertiseModelTypeId"),Bo(3),Zr("ngForOf",t.advertiseTypeList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Es(t.stateFields.advertiseModelText.class),Zr("editor",t.Editor),Bo(3),Zr("moduleName","advertise-module")("action",null==t.modelId?"create":"update")("btnColor","btn-blue-bg")("btnText",null==t.modelId?"Cadastrar":"Atualizar")("btnTitle",null==t.modelId?"Cadastrar":"Atualizar"),Bo(6),Zr("ngForOf",t.variables))},directives:[eI,Hf,ip,If,kp,bp,Vf,vp,vm,ym,xm,ah,FD,Tne,jD],styles:["[_nghost-%COMP%]     .ck-editor__editable_inline{min-height:500px}.body[_ngcontent-%COMP%]{display:flex}.ck[_ngcontent-%COMP%]{width:800px}.variablesMenu[_ngcontent-%COMP%]{width:300px;margin-left:10px}.variablesMenu[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{height:25px;font-size:20px}.variablesMenu[_ngcontent-%COMP%]   .scrollable-list[_ngcontent-%COMP%]{max-height:545px;overflow-y:auto}"]}),Epe);function Npe(e,t){if(1&e&&(es(0,"option",25),Gs(1),ts()),2&e){var n=t.$implicit;Zr("value",n.id),Bo(1),$s(n.name)}}function Rpe(e,t){if(1&e){var n=as();es(0,"li"),es(1,"label",26),es(2,"input",27),ls("change",(function(){mn(n);var e=t.$implicit;return fs().selectId(e.id)})),ts(),ns(3,"span",28),ts(),es(4,"span",29),Gs(5),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("checked",o.collaboratorListSelected.indexOf(i.id)>=0),Bo(3),Qs(" ",i.name," ")}}function jpe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function zpe(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum funcion\xe1rio encontrado."),ts())}function Vpe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 ponto registrado no per\xedodo."),ts())}function Hpe(e,t){if(1&e&&(es(0,"li"),Jr(1,jpe,2,0,"p",21),Jr(2,zpe,2,0,"p",21),Jr(3,Vpe,2,0,"p",21),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.collaboratorList.length>0&&n.collaboratorList[0].loading),Bo(1),Zr("ngIf",n.collaboratorList.length>0&&!n.collaboratorList[0].loading&&0==n.collaboratorListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.collaboratorList.length)}}var Ype,qpe=((Ype=function(){return d((function e(t,n,i,o,a,r,s){c(this,e),this.formBuilder=t,this.router=n,this.advertiseDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.storageService=s,this.collaboratorList=[],this.collaboratorListSelected=[],this.collaboratorListFilteredSearch=[],this.advertiseModelList=[],this.paginationData=null,this.currentPage=1,this.collaboratorSelectedName="",this.collaboratorSelectedId="",this.collaboratorSelected=!1,this.stateFields={advertiseName:{class:""},advertiseModelId:{class:""},advertiseTypeId:{class:""}},this.advertiseForm=this.formBuilder.group({advertiseModelId:new Wm(null,[Jf.required]),advertiseName:new Wm("",[Jf.required]),search:new Wm("",[Jf.required])}),this.collaboratorForm=this.formBuilder.group({allSelected:new Wm(!1,[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getAdvertiseModelList(),this.getCollaboratorList()}},{key:"checkErrorField",value:function(e){return this.advertiseForm.get(e).valid?(this.stateFields[e].class="",!0):(this.stateFields[e].class="emptyError",!1)}},{key:"validAdvertise",value:function(){return this.checkErrorField("advertiseName")?this.checkErrorField("advertiseModelId")&&0!=this.advertiseForm.get("advertiseModelId").value?0!=this.collaboratorListSelected.length||(this.functionsService.openSnackBar("Selecione pelo menos um funcion\xe1rio"),!1):(this.functionsService.openSnackBar("Informe o modelo de advert\xeancia"),!1):(this.functionsService.openSnackBar("Informe o nome da advert\xeancia"),!1)}},{key:"filterCollaboratorSearch",value:function(e){var t=this;e.length>0?this.advertiseDatabase.getCollaboratorList({page:0},(function(n){n.error||(t.collaboratorList=n.data.collaboratorList,t.collaboratorListFilteredSearch=t.collaboratorList,t.paginationData=n.data.collaboratorList,t.advertiseForm.controls.search.setValue(e),t.collaboratorListFilteredSearch=t.collaboratorList.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())})))})):this.getCollaboratorList()}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.getCollaboratorList()}},{key:"selectId",value:function(e){this.collaboratorListSelected.find((function(t){return t==e}))?this.collaboratorListSelected=this.collaboratorListSelected.filter((function(t){return t!=e})):this.collaboratorListSelected.push(e)}},{key:"getAdvertiseModelList",value:function(){var e=this;this.advertiseModelList=[{loading:!0}],this.advertiseDatabase.getAdvertiseModelList((function(t){t.error||(e.advertiseModelList=t.data.advertiseModelList)}))}},{key:"getCollaboratorList",value:function(){var e=this,t={page:this.currentPage.toString()};this.collaboratorList=[{loading:!0}],this.advertiseDatabase.getCollaboratorList(t,(function(t){t.error||(e.collaboratorList=t.data.collaboratorList.data,e.collaboratorListFilteredSearch=e.collaboratorList,e.paginationData=t.data.collaboratorList)}))}},{key:"generateAdvertise",value:function(){var e=this;if(this.validAdvertise()){var t=this.advertiseForm.get("advertiseModelId").value,n=JSON.stringify(this.collaboratorListSelected),i=this.advertiseForm.get("advertiseName").value;this.advertiseDatabase.postAdvertise({modelId:t,collaborators:n,name:i},(function(t){t.error||(e.functionsService.downloadFile(t.data,1==e.collaboratorListSelected.length?"pdf":"zip","advert\xeancias"),e.router.navigate(["/advertise"]))}))}}}])}()).\u0275fac=function(e){return new(e||Ype)($r(wp),$r(yM),$r(Mj),$r(zP),$r(WO),$r(JO),$r(YP))},Ype.\u0275cmp=Ot({type:Ype,selectors:[["io-advertise-page-new"]],decls:30,vars:17,consts:[[1,"container"],[3,"moduleName","titleTop"],[1,"main"],[1,"flex","mrgB1",3,"formGroup"],[1,"inputAnimated","wdMax25"],[3,"onKeyPress"],[1,"flex"],[1,"form-group","inputAnimated","mrgR2","sizeC"],["id","name","type","text","required","",3,"formControlName"],["required","","for","name",1,"required","form-label","flex"],[1,"form-group","inputAnimated","sizeC","mrgR2"],["id","advertiseModelId","id","advertiseModelId","required","",3,"formControlName"],["value","0"],[3,"value",4,"ngFor","ngForOf"],["for","advertiseModelId",1,"form-label","sizeC","flex","required"],["size","3x",1,"iconItem","iconSizeF","cl-gray-dark","iconSelectField",3,"icon"],[3,"formGroup"],[1,"flex","listHeader","listAlign"],[1,"item","sizeC","fontBold"],[1,"listBox"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"paginationData","setCurrentPage"],[1,"mrgT2","flex","end"],[1,"btn","btn-blue-bg",3,"click"],[3,"value"],[1,"item","radioBox","hd1","sizeC"],["type","checkbox",3,"checked","change"],[1,"checkmark"],[1,"item","sizeC"]],template:function(e,t){1&e&&(es(0,"div",0),ns(1,"io-main-top",1),es(2,"div",2),es(3,"div",3),es(4,"div",4),es(5,"io-search-line",5),ls("onKeyPress",(function(e){return t.filterCollaboratorSearch(e)})),ts(),ts(),es(6,"div",6),es(7,"div",7),ns(8,"input",8),es(9,"label",9),Gs(10,"Nome"),ts(),ts(),es(11,"div",10),es(12,"select",11),es(13,"option",12),Gs(14,"Selecione um modelo"),ts(),Jr(15,Npe,2,2,"option",13),ts(),es(16,"label",14),Gs(17,"Modelos de advert\xeanca"),ts(),ns(18,"fa-icon",15),ts(),ts(),ts(),es(19,"div",16),es(20,"div",17),es(21,"h3",18),Gs(22,"Funcion\xe1rio"),ts(),ts(),es(23,"ul",19),Jr(24,Rpe,6,2,"li",20),Jr(25,Hpe,4,3,"li",21),ts(),ts(),es(26,"io-pagination",22),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),es(27,"div",23),es(28,"button",24),ls("click",(function(){return t.generateAdvertise()})),Gs(29,"Cadastrar"),ts(),ts(),ts(),ts()),2&e&&(Bo(1),Zr("moduleName","advertise")("titleTop","Nova Advert\xeancia"),Bo(2),Zr("formGroup",t.advertiseForm),Bo(5),Es(t.stateFields.advertiseName.class),Zr("formControlName","advertiseName"),Bo(4),Es(t.stateFields.advertiseModelId.class),Zr("formControlName","advertiseModelId"),Bo(3),Zr("ngForOf",t.advertiseModelList),Bo(3),Zr("icon",t.iconSolidService.faCaretDown),Bo(1),Zr("formGroup",t.collaboratorForm),Bo(5),Zr("ngForOf",t.collaboratorListFilteredSearch),Bo(1),Zr("ngIf",0==t.collaboratorListFilteredSearch.length),Bo(1),Zr("paginationData",t.paginationData))},directives:[eI,Hf,ip,oE,If,bp,Vf,vp,vm,ym,xm,ah,FD,sh,hE],styles:[""]}),Ype);function Upe(e,t){if(1&e&&(es(0,"span",18),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}var Wpe=function(e){return{modelId:e}};function Jpe(e,t){if(1&e){var n=as();es(0,"li",12),es(1,"span",13),Jr(2,Upe,2,1,"span",14),Gs(3),ts(),es(4,"span",15),Gs(5),ts(),es(6,"span",15),es(7,"io-icon",16),ls("iconClick",(function(){return null})),ts(),es(8,"io-icon",17),ls("iconClick",(function(){mn(n);var e=t.$implicit;return fs().showModalDelete(e.id)})),ts(),ts(),ts()}if(2&e){var i=t.$implicit,o=fs();Bo(2),Zr("ngIf",o.isSupport||o.isDev),Bo(1),Qs(" ",i.name," "),Bo(2),Qs(" ",i.type_name," "),Bo(2),Zr("moduleName","advertise")("action","update")("iconTitle","Editar tipo de modelo")("iconClassList","mrgL1")("urlNavigation","advertise-new-model")("urlStateData",pc(13,Wpe,i.id)),Bo(1),Zr("moduleName","advertise")("action","delete")("iconTitle","Excluir tipo de modelo")("iconClassList","mrgL1")}}function Gpe(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function $pe(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum modelo de advert\xeancia encontrado."),ts())}function Qpe(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 registros de modelos de advert\xeancias."),ts())}function Kpe(e,t){if(1&e&&(es(0,"li"),Jr(1,Gpe,2,0,"p",10),Jr(2,$pe,2,0,"p",10),Jr(3,Qpe,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.advertiseModelList.length>0&&n.advertiseModelList[0].loading),Bo(1),Zr("ngIf",n.advertiseModelList.length>0&&!n.advertiseModelList[0].loading&&0==n.advertiseModelListFilteredSearch.length),Bo(1),Zr("ngIf",0==n.advertiseModelList.length)}}var Zpe,Xpe,ege=((Xpe=function(){return d((function e(t,n,i,o,a,r,s,l,u){c(this,e),this.formBuilder=t,this.router=n,this.advertiseDatabase=i,this.functionsService=o,this.iconRegularService=a,this.iconSolidService=r,this.loadingScreenService=s,this.storageService=l,this.titleService=u,this.advertiseModelListFilteredSearch=[],this.advertiseModelList=[],this.selectedDate="",this.beginDateSelected="",this.beginDateStart="",this.dateSelected=null,this.endDateSelected="",this.endDateStart="",this.paginationData=null,this.currentPage=1,this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.modalDelete=!1,this.advertiseModelSelectedId="",this.titleService.setTitle("Advert\xeancias"),this.loadingScreenService.show(),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])}),this.getAdvertiseModelList()}),[{key:"ngOnInit",value:function(){}},{key:"validGetList",value:function(){return!(""==this.beginDateSelected||""==this.endDateSelected)}},{key:"getAdvertiseModelList",value:function(){var e=this;this.validGetList&&(this.loadingScreenService.show(),this.advertiseDatabase.getAdvertiseModelList((function(t){t.error||(e.advertiseModelList=t.data.advertiseModelList,e.advertiseModelListFilteredSearch=e.advertiseModelList)})),this.loadingScreenService.hide())}},{key:"filterAdvertiseModelSearch",value:function(e){if(e.length>0){if(!this.validGetList)return;this.searchForm.controls.search.setValue(e),this.advertiseModelListFilteredSearch=this.advertiseModelList.filter((function(t){return t.type_name.toLowerCase().includes(e.toLowerCase())||t.name.toLowerCase().includes(e.toLowerCase())}))}else this.getAdvertiseModelList()}},{key:"deleteAdvertiseModel",value:function(){var e=this;this.advertiseDatabase.deleteAdvertiseModel(this.advertiseModelSelectedId,(function(t){t.error||(e.advertiseModelSelectedId="",e.getAdvertiseModelList(),e.modalDelete=!1)}))}},{key:"showModalDelete",value:function(e){this.advertiseModelSelectedId=e,this.modalDelete=!0}},{key:"hideModalDelete",value:function(){this.advertiseModelSelectedId="",this.modalDelete=!1}}])}()).\u0275fac=function(e){return new(e||Xpe)($r(wp),$r(yM),$r(Mj),$r(zP),$r(WO),$r(JO),$r(dL),$r(YP),$r(hL))},Xpe.\u0275cmp=Ot({type:Xpe,selectors:[["io-advertise-page-list-model"]],decls:18,vars:11,consts:[[1,"container"],[1,"main"],[3,"moduleName","titleTop","showBtn","btnDataUrl","btnDataText"],[1,"mrgB1","flex"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"title","btnTextConfirm","showModal","hideModal","confirmClick"],[1,"flex","listAlign"],[1,"item","sizeC"],["class","sizeB internal mrgR1",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconTitle","iconClassList","urlNavigation","urlStateData","iconClick"],[3,"moduleName","action","iconTitle","iconClassList","iconClick"],[1,"sizeB","internal","mrgR1"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"div"),es(5,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterAdvertiseModelSearch(e)})),ts(),ts(),ts(),es(6,"div",5),es(7,"div",6),es(8,"h3",7),Gs(9,"Nome"),ts(),es(10,"h3",7),Gs(11,"Tipo"),ts(),es(12,"h3",7),Gs(13,"A\xe7\xe3o"),ts(),ts(),es(14,"ul",8),Jr(15,Jpe,9,15,"li",9),Jr(16,Kpe,4,3,"li",10),ts(),ts(),ts(),ts(),es(17,"io-modal-confirm",11),ls("hideModal",(function(){return t.hideModalDelete()}))("confirmClick",(function(){return t.deleteAdvertiseModel()})),ts()),2&e&&(Bo(2),Zr("moduleName","advertise")("titleTop","Modelos de Advert\xeancia")("showBtn",!0)("btnDataUrl","advertise-new-model")("btnDataText","Cadastrar"),Bo(5),Zr("formGroup",t.searchForm),Bo(8),Zr("ngForOf",t.advertiseModelListFilteredSearch),Bo(1),Zr("ngIf",0==t.advertiseModelListFilteredSearch.length),Bo(1),Zr("title","Excluir tipo de modelo?")("btnTextConfirm","Excluir")("showModal",t.modalDelete))},directives:[eI,oE,Hf,ip,ah,sh,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child, .listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%;margin:0;text-align:right}li.listAlign[_ngcontent-%COMP%]{background-color:#fff;transition:all .2s ease}"]}),Xpe),tge=((Zpe=function(){return d((function e(t,n,i,o,a){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.notificationDatabase=o,this.storageService=a,this.showModal=!1,this.inconsistencyId=null,this.hideModal=new Mc,this.hideAndRefreshModal=new Mc,this.pointData={loading:!0}}),[{key:"ngOnChanges",value:function(){}},{key:"setRead",value:function(){var e=this;this.notificationDatabase.putInconsistencyCompTime(this.inconsistencyId,(function(t){t.error||e.closeModalAndRefresh()}))}},{key:"closeModal",value:function(){this.hideModal.emit()}},{key:"closeModalAndRefresh",value:function(){this.hideAndRefreshModal.emit()}}])}()).\u0275fac=function(e){return new(e||Zpe)($r(wp),$r(yM),$r(zP),$r(jH),$r(YP))},Zpe.\u0275cmp=Ot({type:Zpe,selectors:[["io-point-modal-inconsistency-comp-time-read"]],inputs:{showModal:"showModal",inconsistencyId:"inconsistencyId"},outputs:{hideModal:"hideModal",hideAndRefreshModal:"hideAndRefreshModal"},features:[dl],decls:9,vars:13,consts:[[1,"filterBlack","modalFilter",3,"ngClass"],[1,"pdg2","bg-white","modalBoxConfirm","round2"],[1,"sizeA","cl-blue","fontUp","fontBold","mrgB2"],[1,"sizeC","mrgB2"],[1,"flex"],[3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"],[1,"mrgL2",3,"moduleName","action","btnColor","btnText","btnTitle","useValidation","btnClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),es(2,"h2",2),Gs(3,"Inconsist\xeancia de horas"),ts(),es(4,"h2",3),Gs(5,"Tem certeza que deseja marcar esta inconsist\xeancia como lida?"),ts(),es(6,"div",4),es(7,"io-btn",5),ls("btnClick",(function(){return t.closeModal()})),ts(),es(8,"io-btn",6),ls("btnClick",(function(){return t.setRead()})),ts(),ts(),ts(),ts()),2&e&&(Zr("ngClass",!0===t.showModal?"active":""),Bo(7),Zr("moduleName","")("action","")("btnColor","btn-red")("btnText","N\xe3o")("btnTitle","N\xe3o")("useValidation",!1),Bo(1),Zr("moduleName","")("action","")("btnColor","btn-blue-bg")("btnText","Sim")("btnTitle","Sim")("useValidation",!1))},directives:[ih,jD],styles:[".modalBoxConfirm[_ngcontent-%COMP%]{min-width:300px;padding:20px;margin:auto}"]}),Zpe);function nge(e,t){if(1&e){var n=as();es(0,"fa-icon",17),ls("click",(function(){mn(n);var e=fs().$implicit;return fs().showModalConfirmationRead(e.id)})),ts()}2&e&&Zr("icon",fs(2).iconSolidService.faCheck)}function ige(e,t){if(1&e&&(es(0,"li",13),es(1,"span",14),Gs(2),ts(),es(3,"span",14),Gs(4),ts(),es(5,"span",14),Gs(6),ts(),es(7,"span",14),Gs(8),ts(),es(9,"span",14),Gs(10),ts(),es(11,"span",15),Jr(12,nge,1,1,"fa-icon",16),ts(),ts()),2&e){var n=t.$implicit;Bo(2),$s(n.name),Bo(2),$s(n.type),Bo(2),$s(n.date),Bo(2),$s(n.time),Bo(2),$s(n.justification),Bo(2),Zr("ngIf",0==n.status)}}function oge(e,t){1&e&&(es(0,"p"),Gs(1," Carregando..."),ts())}function age(e,t){1&e&&(es(0,"p"),Gs(1," Nenhuma justificativa de inconsist\xeancia de horas."),ts())}function rge(e,t){1&e&&(es(0,"p"),Gs(1,"N\xe3o h\xe1 justificativa de inconsist\xeancia de horas."),ts())}function sge(e,t){if(1&e&&(es(0,"li"),Jr(1,oge,2,0,"p",10),Jr(2,age,2,0,"p",10),Jr(3,rge,2,0,"p",10),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.inconsistencyCompTimeList.length>0&&n.inconsistencyCompTimeList[0].loading),Bo(1),Zr("ngIf",n.inconsistencyCompTimeList.length>0&&!n.inconsistencyCompTimeList[0].loading&&0==n.inconsistencyCompTimeList.length),Bo(1),Zr("ngIf",0==n.inconsistencyCompTimeList.length)}}var lge,cge,uge=((cge=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.notificationDatabase=r,this.storageService=s,this.titleService=l,this.currentPage=1,this.inputText="",this.inconsistencyCompTimeList=[{loading:!0}],this.inconsistencySelectedId=null,this.modalConfirmationRead=!1,this.paginationData=null,this.titleService.setTitle("Inconsist\xeancia de horas"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.loadInconsistencyCompTimeList()}},{key:"setCurrentPage",value:function(e){this.currentPage=e,this.loadInconsistencyCompTimeList()}},{key:"setFilterText",value:function(e){this.inputText=e,this.setCurrentPage(1)}},{key:"showModalConfirmationRead",value:function(e){this.inconsistencySelectedId=e,this.modalConfirmationRead=!0}},{key:"hideModalConfirmationRead",value:function(){this.modalConfirmationRead=!1,this.inconsistencySelectedId=null}},{key:"hideModalAndRefreshConfirmationRead",value:function(){this.modalConfirmationRead=!1,this.inconsistencySelectedId=null,this.setCurrentPage(1)}},{key:"loadInconsistencyCompTimeList",value:function(){var e=this,t={page:this.currentPage.toString(),filterText:this.inputText};this.notificationDatabase.getInconsistencyCompTimeList(t,(function(t){t.error||(e.inconsistencyCompTimeList=(t=t.data).inconsistencyCompTimeList.data||[],e.paginationData=t.inconsistencyCompTimeList||[])}))}}])}()).\u0275fac=function(e){return new(e||cge)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(jH),$r(YP),$r(hL))},cge.\u0275cmp=Ot({type:cge,selectors:[["io-notification-page-list-inconsistency-comp-time"]],decls:24,vars:7,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","listAlign","listHeader",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"listBox"],["class","flex listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[1,"mrgT2",3,"paginationData","setCurrentPage"],[3,"showModal","inconsistencyId","hideModal","hideAndRefreshModal"],[1,"flex","listAlign"],[1,"item","sizeC"],[1,"item"],["size","3x","class","iconItem iconSizeG cl-gray-dark clickPlace","title","Marcar como lido",3,"icon","click",4,"ngIf"],["size","3x","title","Marcar como lido",1,"iconItem","iconSizeG","cl-gray-dark","clickPlace",3,"icon","click"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.setFilterText(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Funcion\xe1rio"),ts(),es(9,"h3",7),Gs(10,"Tipo"),ts(),es(11,"h3",7),Gs(12,"Data"),ts(),es(13,"h3",7),Gs(14,"Tempo"),ts(),es(15,"h3",7),Gs(16,"Justificativa"),ts(),es(17,"h3",7),Gs(18,"A\xe7\xf5es"),ts(),ts(),es(19,"ul",8),Jr(20,ige,13,6,"li",9),Jr(21,sge,4,3,"li",10),ts(),es(22,"io-pagination",11),ls("setCurrentPage",(function(e){return t.setCurrentPage(e)})),ts(),ts(),ts(),ts(),es(23,"io-point-modal-inconsistency-comp-time-read",12),ls("hideModal",(function(){return t.hideModalConfirmationRead()}))("hideAndRefreshModal",(function(){return t.hideModalAndRefreshConfirmationRead()})),ts()),2&e&&(Bo(2),Zr("titleTop","Inconsist\xeancia de horas"),Bo(4),Zr("formGroup",t.searchForm),Bo(14),Zr("ngForOf",t.inconsistencyCompTimeList),Bo(1),Zr("ngIf",0==t.inconsistencyCompTimeList.length),Bo(1),Zr("paginationData",t.paginationData),Bo(1),Zr("showModal",t.modalConfirmationRead)("inconsistencyId",t.inconsistencySelectedId))},directives:[eI,oE,Hf,ip,ah,sh,hE,tge,FD],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:50%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:40%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:last-child{max-width:10%;margin:0;text-align:right}"]}),cge),dge=((lge=function(){return d((function e(t){c(this,e),this.databaseService=t}),[{key:"getSmartphoneList",value:function(e){this.databaseService.get("/smartphone",[]).subscribe((function(t){e({data:t})}),(function(t){e({error:t})}))}},{key:"disconnectSmartphone",value:function(e,t){this.databaseService.delete("/smartphone/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}},{key:"unblockSmartphone",value:function(e,t){this.databaseService.put("/smartphone/"+e,[]).subscribe((function(e){t({data:e})}),(function(e){t({error:e})}))}}])}()).\u0275fac=function(e){return new(e||lge)(ut(tT))},lge.\u0275prov=Se({token:lge,factory:lge.\u0275fac,providedIn:"root"}),lge);function hge(e,t){if(1&e&&(es(0,"span",23),Gs(1),ts()),2&e){var n=fs().$implicit;Bo(1),Qs("",n.id," ")}}function fge(e,t){if(1&e){var n=as();es(0,"io-icon",24),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalDisconnect(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","delete")("iconClassList","mrgL1")("iconTitle","Desconectar aparelho")}function mge(e,t){if(1&e){var n=as();es(0,"io-icon",24),ls("iconClick",(function(){mn(n);var e=fs().$implicit;return fs().showModalUnblock(e.id)})),ts()}2&e&&Zr("moduleName","collaborator")("action","reactive")("iconClassList","mrgL1")("iconTitle","Desbloquear aparelho")}function pge(e,t){if(1&e&&(es(0,"li",18),es(1,"span",19),Jr(2,hge,2,1,"span",20),Gs(3),ts(),es(4,"span",19),Gs(5),ts(),es(6,"span",19),Gs(7),ts(),es(8,"span",19),Gs(9),ts(),es(10,"span",21),Jr(11,fge,1,4,"io-icon",22),Jr(12,mge,1,4,"io-icon",22),ts(),ts()),2&e){var n=t.$implicit,i=fs();Bo(2),Zr("ngIf",i.isSupport||i.isDev),Bo(1),$s(n.device_name),Bo(2),$s(n.collaborator_name),Bo(2),$s(n.type_description),Bo(2),$s(0===n.blacklisted?"Sem restri\xe7\xe3o":"Bloqueado"),Bo(2),Zr("ngIf",0==n.blacklisted),Bo(1),Zr("ngIf",1==n.blacklisted)}}function gge(e,t){1&e&&(es(0,"p"),Gs(1,"Carregando..."),ts())}function vge(e,t){1&e&&(es(0,"p"),Gs(1," Nenhum celular encontrado."),ts())}function yge(e,t){1&e&&(es(0,"p"),Gs(1,"Nenhum celular cadastrado."),ts())}function bge(e,t){if(1&e&&(es(0,"li"),Jr(1,gge,2,0,"p",15),Jr(2,vge,2,0,"p",15),Jr(3,yge,2,0,"p",15),ts()),2&e){var n=fs();Bo(1),Zr("ngIf",n.smartphoneList.length>0&&n.smartphoneList[0].loading),Bo(1),Zr("ngIf",n.smartphoneList.length>0&&!n.smartphoneList[0].loading&&0==n.smartphoneListFiltered.length),Bo(1),Zr("ngIf",0==n.smartphoneList.length)}}var _ge,kge,Cge,wge,xge,Mge,Sge,Pge,Tge=[{path:"",component:CU,children:[{path:"",redirectTo:"login",pathMatch:"full"},{path:"login",component:r2},{path:"logout",component:vte},{path:"password-reset",component:bte},{path:"register",component:ide},{path:"register/:code",component:ide},{path:"register/hash/:hash",component:ode},{path:"updateAuth/:hash",component:_te},{path:"company-register",component:f0,canActivate:[oT]},{path:"company-contract",component:b1,canActivate:[oT]},{path:"free-test-expired",component:k1,canActivate:[oT]}]},{path:"",component:kU,canActivate:[oT],runGuardsAndResolvers:"always",children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"absence",component:lN},{path:"absence-type",component:PN},{path:"adjustment",component:xj},{path:"advertise",component:Nj},{path:"advertise-type",component:$j},{path:"advertise-model",component:ege},{path:"bank-time",component:bV},{path:"bank-time-control",component:dV},{path:"bank-time-schedule",component:YV},{path:"bank-time-payment",component:OV},{path:"barrier",component:wz},{path:"changelog",component:ome},{path:"closure",component:rH},{path:"collaborator",component:lG},{path:"collaborator-import",component:fJ},{path:"collaborator-job-swap",component:rhe},{path:"collaborator-settings",component:B$},{path:"comp-time-control",component:cX},{path:"comp-time-historic",component:xX},{path:"company",component:E1},{path:"company-config",component:l1},{path:"cost-center",component:Cpe},{path:"department",component:T0},{path:"document-register-list",component:gme},{path:"document-register",component:Lme},{path:"document-type",component:jme},{path:"document-update/:id",component:zme},{path:"documents",component:J0},{path:"export-configuration",component:N3},{path:"export-mte671",component:J3},{path:"export",component:U2},{path:"extra-time-scheduled",component:i4},{path:"guest",component:tme},{path:"holiday",component:N4},{path:"home",component:e9},{path:"invoice-control",component:A9},{path:"integrations-selected/:id",component:xhe},{path:"integrations-sicoob-pay-slip/:id",component:spe},{path:"integrations",component:Lhe},{path:"integrations-register",component:Mhe},{path:"intermittent-call",component:d7},{path:"journey",component:J9},{path:"journey-collaborator-change",component:m9},{path:"logout",component:vte},{path:"mirror",component:Vte},{path:"news",component:Kte},{path:"news-open",component:nne},{path:"notification",component:Nne},{path:"notification-barrier-out",component:aie},{path:"notification-expiring-documents",component:$me},{path:"notification-point-disregard-recused",component:Sie},{path:"notification-absence-not-read",component:$ne},{path:"notification-journey-out",component:pie},{path:"notification-absence-vacation",component:Nie},{path:"notification-recalc-historic",component:vfe},{path:"notification-inconsistency-comp-time",component:uge},{path:"occupation",component:Qie},{path:"on-duty",component:yoe},{path:"over-time-request",component:Zoe},{path:"partner-porto-seguro",component:Xoe},{path:"permission",component:fae},{path:"point",component:Ise},{path:"point-control",component:xse},{path:"point-map",component:tfe},{path:"point-rule",component:ele},{path:"proof-of-point",component:Dpe},{path:"report",component:Bue},{path:"support",component:Nue},{path:"smartphone-connected-list",component:(_ge=function(){return d((function e(t,n,i,o,a,r,s,l){c(this,e),this.formBuilder=t,this.router=n,this.functionsService=i,this.iconRegularService=o,this.iconSolidService=a,this.smartphoneDatabase=r,this.storageService=s,this.titleService=l,this.modalDisconnect=!1,this.modalUnblock=!1,this.modalCollaboratorList=!1,this.smartphoneListFilteredActive=[],this.modalCollaboratorLink=!1,this.smartphoneList=[{loading:!0}],this.smartphoneListFiltered=[],this.userId=this.storageService.decodeFromLocalStorage("userId"),this.isSupport="31"==this.userId,this.isDev="4"==this.userId,this.titleService.setTitle("Celulares"),this.searchForm=this.formBuilder.group({search:new Wm("",[Jf.required]),blacklisted:new Wm("0",[Jf.required])})}),[{key:"ngOnInit",value:function(){this.getSmartphoneList()}},{key:"getSmartphoneList",value:function(){var e=this;this.smartphoneDatabase.getSmartphoneList((function(t){t.error||(e.smartphoneList=t.data.smartphone,e.filterSmartphone(e.searchForm.controls.search.value),e.filterSmartphoneActive())}))}},{key:"filterSmartphone",value:function(e){this.searchForm.controls.search.setValue(e),this.smartphoneListFiltered=this.functionsService.arrayFilterWords(this.smartphoneListFilteredActive,e,"device_name")}},{key:"showModalDisconnect",value:function(e){this.smartphoneSelectedId=e,this.modalDisconnect=!0}},{key:"showModalUnblock",value:function(e){this.smartphoneSelectedId=e,this.modalUnblock=!0}},{key:"disconnectSmartphone",value:function(){var e=this;this.smartphoneDatabase.disconnectSmartphone(this.smartphoneSelectedId,(function(t){t.error||(e.getSmartphoneList(),e.hideModalDisconnect())}))}},{key:"unblockSmartphone",value:function(e){var t=this;this.smartphoneDatabase.unblockSmartphone(e,(function(e){e.error||(t.getSmartphoneList(),t.hideModalUnblocked())}))}},{key:"filterSmartphoneActive",value:function(){var e=this.searchForm.get("blacklisted").value;this.smartphoneListFilteredActive=this.smartphoneList.filter((function(t){return t.blacklisted==e})),"all"==e&&(this.smartphoneListFilteredActive=this.smartphoneList),this.filterSmartphone(this.searchForm.controls.search.value)}},{key:"hideModalDisconnect",value:function(){this.modalDisconnect=!1}},{key:"hideModalUnblocked",value:function(){this.modalUnblock=!1}}])}(),_ge.\u0275fac=function(e){return new(e||_ge)($r(wp),$r(yM),$r(zP),$r(WO),$r(JO),$r(dge),$r(YP),$r(hL))},_ge.\u0275cmp=Ot({type:_ge,selectors:[["io-smartphone-page-list"]],decls:29,vars:16,consts:[[1,"container"],[1,"main"],[3,"titleTop"],[1,"wdMax50"],[3,"onKeyPress"],[1,"listBoxSlideMob"],[1,"flex","spcDesk","listHeader","listAlign",3,"formGroup"],[1,"item","sizeC","fontBold"],[1,"form-group","inputAnimated","item","clickPlace"],["required","",1,"fontBold","clickPlace","selectSort",3,"formControlName","change"],[3,"value"],["selected","",3,"value"],["size","1x",1,"iconSelectSort",3,"icon"],[1,"listBox"],["class","flex spcDesk bg-white listAlign",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"title","text","btnTextConfirm","showModal","hideModal","confirmClick"],[3,"showModal","title","btnTextConfirm","hideModal","confirmClick"],[1,"flex","spcDesk","bg-white","listAlign"],[1,"item","sizeC"],["class","sizeB cl-magenta mrgR1",4,"ngIf"],[1,"item"],[3,"moduleName","action","iconClassList","iconTitle","iconClick",4,"ngIf"],[1,"sizeB","cl-magenta","mrgR1"],[3,"moduleName","action","iconClassList","iconTitle","iconClick"]],template:function(e,t){1&e&&(es(0,"div",0),es(1,"div",1),ns(2,"io-main-top",2),es(3,"div",3),es(4,"io-search-line",4),ls("onKeyPress",(function(e){return t.filterSmartphone(e)})),ts(),ts(),es(5,"div",5),es(6,"div",6),es(7,"h3",7),Gs(8,"Dispositivo"),ts(),es(9,"h3",7),Gs(10,"Funcion\xe1rio"),ts(),es(11,"h3",7),Gs(12,"Tipo de acesso"),ts(),es(13,"div",8),es(14,"select",9),ls("change",(function(){return t.filterSmartphoneActive()})),es(15,"option",10),Gs(16,"Todos"),ts(),es(17,"option",11),Gs(18,"Sem restri\xe7\xe3o"),ts(),es(19,"option",10),Gs(20,"Bloqueado"),ts(),ts(),ns(21,"fa-icon",12),ts(),es(22,"h3",7),Gs(23,"A\xe7\xe3o"),ts(),ts(),es(24,"ul",13),Jr(25,pge,13,7,"li",14),Jr(26,bge,4,3,"li",15),ts(),ts(),ts(),ts(),es(27,"io-modal-confirm",16),ls("hideModal",(function(){return t.hideModalDisconnect()}))("confirmClick",(function(){return t.disconnectSmartphone()})),ts(),es(28,"io-modal-confirm",17),ls("hideModal",(function(){return t.hideModalUnblocked()}))("confirmClick",(function(){return t.unblockSmartphone(t.smartphoneSelectedId)})),ts()),2&e&&(Bo(2),Zr("titleTop","Celulares"),Bo(4),Zr("formGroup",t.searchForm),Bo(8),Zr("formControlName","blacklisted"),Bo(1),Zr("value","all"),Bo(2),Zr("value","0"),Bo(2),Zr("value","1"),Bo(2),Zr("icon",t.iconSolidService.faSort),Bo(4),Zr("ngForOf",t.smartphoneListFiltered),Bo(1),Zr("ngIf",0==t.smartphoneListFiltered.length),Bo(1),Zr("title","Desconectar celular?")("text","O celular ser\xe1 desconectado apenas quando todos os pontos pendentes forem sincronizados")("btnTextConfirm","Desconectar")("showModal",t.modalDisconnect),Bo(1),Zr("showModal",t.modalUnblock)("title","Deseja desbloquear esse dispositivo?")("btnTextConfirm","Desbloquear"))},directives:[eI,oE,Hf,ip,vm,bp,Vf,vp,ym,xm,FD,ah,sh,UB,BB],styles:[".listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{width:100%;margin-right:10px;overflow:hidden;max-height:32px}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:first-child{max-width:30%}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(2){max-width:30%;text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(3){max-width:20%;text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(4){max-width:10%;text-align:left}.listAlign[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:nth-child(5){max-width:10%;margin:0;text-align:right}"]}),_ge)},{path:"unit",component:$de},{path:"team",component:cfe},{path:"user",component:$ue},{path:"user-activity",component:Tde},{path:"absence-register",component:MR},{path:"advertise-register",component:oz},{path:"advertise-new-model",component:Bpe},{path:"advertise-new",component:qpe},{path:"bank-time-payment-register",component:$z},{path:"closure-register",component:_H},{path:"collaborator-settings-register",component:cQ},{path:"extra-time-scheduled-register",component:m4},{path:"holiday-register",component:n5},{path:"intermittent-call-register",component:_7},{path:"journey-register",component:pte},{path:"news-register",component:Ine},{path:"permission-register",component:Qae},{path:"on-duty-register",component:Toe},{path:"point-rule-register",component:jce},{path:"absence-update/:absenceId",component:SR},{path:"collaborator-update/:collaborator_id",component:S$},{path:"collaborator-settings-update",component:uQ},{path:"company-update/:company_id",component:m0},{path:"export-update",component:F2},{path:"report-screen-point-day",component:Whe},{path:"extra-time-scheduled-update",component:p4},{path:"holiday-update",component:i5},{path:"journey-update/:journey_id",component:gte},{path:"on-duty-update",component:Ooe},{path:"permission-update",component:Kae},{path:"point-rule-update",component:zce},{path:"**",component:e9}]}],Oge=((Pge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Pge}),Pge.\u0275inj=Pe({factory:function(e){return new(e||Pge)},imports:[[RM.forRoot(Tge,{onSameUrlNavigation:"reload"})],RM]}),Pge),Lge=((Sge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Sge}),Sge.\u0275inj=Pe({factory:function(e){return new(e||Sge)},imports:[[kA,V_,QI,aF],kA,V_,QI,aF]}),Sge),Dge=((Mge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Mge}),Mge.\u0275inj=Pe({factory:function(e){return new(e||Mge)},imports:[[k_,Ph],k_]}),Mge),Ige=((xge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:xge}),xge.\u0275inj=Pe({factory:function(e){return new(e||xge)},providers:[FK,{provide:x_,useValue:"pt-BR"}],imports:[[Ph,Mp,RM,FE,BP,Lge,AD,Dge,uL,jA,zae,xp,One],BP,zae]}),xge),Fge=((wge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:wge}),wge.\u0275inj=Pe({factory:function(e){return new(e||wge)},imports:[[Ph,Ige,Mp,RM,FE,AD]]}),wge),Age=((Cge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Cge}),Cge.\u0275inj=Pe({factory:function(e){return new(e||Cge)},imports:[[Ph,Ige,Mp,RM,AD,FE]]}),Cge),Ege=((kge=d((function e(){c(this,e)}))).\u0275mod=Ft({type:kge}),kge.\u0275inj=Pe({factory:function(e){return new(e||kge)},imports:[[Ph,Mp,RM,Fge,AD,Age,Ige,uL]]}),kge);function Bge(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,i=e.formats[n]||e.formats[e.defaultWidth];return i}}function Nge(e){return function(t,n){var i;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=null!=n&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var r=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;i=e.values[s]||e.values[r]}return i[e.argumentCallback?e.argumentCallback(t):t]}}function Rge(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,o=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var r,s=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?zge(l,(function(e){return e.test(s)})):jge(l,(function(e){return e.test(s)}));r=e.valueCallback?e.valueCallback(c):c,r=n.valueCallback?n.valueCallback(r):r;var u=t.slice(s.length);return{value:r,rest:u}}}function jge(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function zge(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}Math,Math,Math;var Vge,Hge,Yge,qge,Uge,Wge,Jge,Gge,$ge,Qge,Kge,Zge,Xge,eve,tve,nve,ive,ove,ave,rve,sve,lve,cve,uve,dve,hve,fve,mve,pve,gve,vve,yve,bve,_ve,kve,Cve,wve,xve,Mve,Sve,Pve,Tve,Ove,Lve,Dve,Ive,Fve,Ave,Eve,Bve,Nve,Rve,jve,zve,Vve,Hve,Yve,qve,Uve,Wve,Jve,Gve,$ve,Qve,Kve,Zve,Xve,eye,tye,nye,iye,oye,aye,rye,sye,lye,cye,uye,dye,hye,fye,mye,pye,gye,vye,yye,bye,_ye,kye,Cye,wye,xye,Mye,Sye,Pye,Tye,Oye,Lye,Dye,Iye,Fye,Aye,Eye,Bye,Nye,Rye,jye,zye,Vye,Hye,Yye,qye,Uye,Wye,Jye,Gye,$ye,Qye,Kye,Zye,Xye,ebe,tbe,nbe,ibe,obe,abe,rbe,sbe,lbe,cbe,ube,dbe,hbe,fbe,mbe,pbe,gbe,vbe,ybe,bbe,_be,kbe,Cbe,wbe,xbe,Mbe,Sbe,Pbe,Tbe,Obe,Lbe,Dbe,Ibe,Fbe,Abe,Ebe,Bbe,Nbe,Rbe,jbe,zbe,Vbe,Hbe,Ybe,qbe,Ube,Wbe,Jbe,Gbe,$be,Qbe,Kbe,Zbe,Xbe,e_e,t_e,n_e,i_e,o_e=(ube=d((function e(){c(this,e)})),ube.\u0275mod=Ft({type:ube}),ube.\u0275inj=Pe({factory:function(e){return new(e||ube)}}),ube),a_e=(cbe=d((function e(){c(this,e)})),cbe.\u0275mod=Ft({type:cbe}),cbe.\u0275inj=Pe({factory:function(e){return new(e||cbe)}}),cbe),r_e=(lbe=d((function e(){c(this,e)})),lbe.\u0275mod=Ft({type:lbe}),lbe.\u0275inj=Pe({factory:function(e){return new(e||lbe)}}),lbe),s_e=(sbe=d((function e(){c(this,e)})),sbe.\u0275mod=Ft({type:sbe}),sbe.\u0275inj=Pe({factory:function(e){return new(e||sbe)}}),sbe),l_e=(rbe=d((function e(){c(this,e)})),rbe.\u0275mod=Ft({type:rbe}),rbe.\u0275inj=Pe({factory:function(e){return new(e||rbe)}}),rbe),c_e=(abe=d((function e(){c(this,e)})),abe.\u0275mod=Ft({type:abe}),abe.\u0275inj=Pe({factory:function(e){return new(e||abe)}}),abe),u_e=(obe=d((function e(){c(this,e)})),obe.\u0275mod=Ft({type:obe}),obe.\u0275inj=Pe({factory:function(e){return new(e||obe)}}),obe),d_e=(ibe=d((function e(){c(this,e)})),ibe.\u0275mod=Ft({type:ibe}),ibe.\u0275inj=Pe({factory:function(e){return new(e||ibe)}}),ibe),h_e=(nbe=d((function e(){c(this,e)})),nbe.\u0275mod=Ft({type:nbe}),nbe.\u0275inj=Pe({factory:function(e){return new(e||nbe)}}),nbe),f_e=(tbe=d((function e(){c(this,e)})),tbe.\u0275mod=Ft({type:tbe}),tbe.\u0275inj=Pe({factory:function(e){return new(e||tbe)}}),tbe),m_e=(ebe=d((function e(){c(this,e)})),ebe.\u0275mod=Ft({type:ebe}),ebe.\u0275inj=Pe({factory:function(e){return new(e||ebe)}}),ebe),p_e=(Xye=d((function e(){c(this,e)})),Xye.\u0275mod=Ft({type:Xye}),Xye.\u0275inj=Pe({factory:function(e){return new(e||Xye)}}),Xye),g_e=(Zye=function(){return d((function e(){c(this,e),this.localeChanged=new V}),[{key:"locale",value:function(){return this.locale$}},{key:"setLocale",value:function(e){this.locale$=e,this.localeChanged.next()}}])}(),Zye.\u0275fac=function(e){return new(e||Zye)},Zye.\u0275prov=Se({factory:function(){return new Zye},token:Zye,providedIn:"root"}),Zye),v_e=(Kye=d((function e(){c(this,e)})),Kye.\u0275mod=Ft({type:Kye}),Kye.\u0275inj=Pe({factory:function(e){return new(e||Kye)}}),Kye),y_e=(Qye=d((function e(){c(this,e)})),Qye.\u0275mod=Ft({type:Qye}),Qye.\u0275inj=Pe({factory:function(e){return new(e||Qye)}}),Qye),b_e=($ye=d((function e(){c(this,e)})),$ye.\u0275mod=Ft({type:$ye}),$ye.\u0275inj=Pe({factory:function(e){return new(e||$ye)}}),$ye),__e=(Gye=d((function e(){c(this,e)})),Gye.\u0275mod=Ft({type:Gye}),Gye.\u0275inj=Pe({factory:function(e){return new(e||Gye)}}),Gye),k_e=(Jye=d((function e(){c(this,e)})),Jye.\u0275mod=Ft({type:Jye}),Jye.\u0275inj=Pe({factory:function(e){return new(e||Jye)}}),Jye),C_e=(Wye=d((function e(){c(this,e)})),Wye.\u0275mod=Ft({type:Wye}),Wye.\u0275inj=Pe({factory:function(e){return new(e||Wye)}}),Wye),w_e=(Uye=d((function e(){c(this,e)})),Uye.\u0275mod=Ft({type:Uye}),Uye.\u0275inj=Pe({factory:function(e){return new(e||Uye)}}),Uye),x_e=(qye=d((function e(){c(this,e)})),qye.\u0275mod=Ft({type:qye}),qye.\u0275inj=Pe({factory:function(e){return new(e||qye)}}),qye),M_e=(Yye=d((function e(){c(this,e)})),Yye.\u0275mod=Ft({type:Yye}),Yye.\u0275inj=Pe({factory:function(e){return new(e||Yye)}}),Yye),S_e=(Hye=d((function e(){c(this,e)})),Hye.\u0275mod=Ft({type:Hye}),Hye.\u0275inj=Pe({factory:function(e){return new(e||Hye)}}),Hye),P_e=(Vye=d((function e(){c(this,e)})),Vye.\u0275mod=Ft({type:Vye}),Vye.\u0275inj=Pe({factory:function(e){return new(e||Vye)}}),Vye),T_e=(zye=d((function e(){c(this,e)})),zye.\u0275mod=Ft({type:zye}),zye.\u0275inj=Pe({factory:function(e){return new(e||zye)}}),zye),O_e=(jye=d((function e(){c(this,e)})),jye.\u0275mod=Ft({type:jye}),jye.\u0275inj=Pe({factory:function(e){return new(e||jye)}}),jye),L_e=(Rye=d((function e(){c(this,e)})),Rye.\u0275mod=Ft({type:Rye}),Rye.\u0275inj=Pe({factory:function(e){return new(e||Rye)}}),Rye),D_e=(Nye=d((function e(){c(this,e)})),Nye.\u0275mod=Ft({type:Nye}),Nye.\u0275inj=Pe({factory:function(e){return new(e||Nye)}}),Nye),I_e=(Bye=d((function e(){c(this,e)})),Bye.\u0275mod=Ft({type:Bye}),Bye.\u0275inj=Pe({factory:function(e){return new(e||Bye)}}),Bye),F_e=(Eye=d((function e(){c(this,e)})),Eye.\u0275mod=Ft({type:Eye}),Eye.\u0275inj=Pe({factory:function(e){return new(e||Eye)}}),Eye),A_e=(Aye=d((function e(){c(this,e)})),Aye.\u0275mod=Ft({type:Aye}),Aye.\u0275inj=Pe({factory:function(e){return new(e||Aye)}}),Aye),E_e=(Fye=d((function e(){c(this,e)})),Fye.\u0275mod=Ft({type:Fye}),Fye.\u0275inj=Pe({factory:function(e){return new(e||Fye)}}),Fye),B_e=(Iye=d((function e(){c(this,e)})),Iye.\u0275mod=Ft({type:Iye}),Iye.\u0275inj=Pe({factory:function(e){return new(e||Iye)}}),Iye),N_e=(Dye=d((function e(){c(this,e)})),Dye.\u0275mod=Ft({type:Dye}),Dye.\u0275inj=Pe({factory:function(e){return new(e||Dye)}}),Dye),R_e=(Lye=d((function e(){c(this,e)})),Lye.\u0275mod=Ft({type:Lye}),Lye.\u0275inj=Pe({factory:function(e){return new(e||Lye)}}),Lye),j_e=(Oye=d((function e(){c(this,e)})),Oye.\u0275mod=Ft({type:Oye}),Oye.\u0275inj=Pe({factory:function(e){return new(e||Oye)}}),Oye),z_e=(Tye=d((function e(){c(this,e)})),Tye.\u0275mod=Ft({type:Tye}),Tye.\u0275inj=Pe({factory:function(e){return new(e||Tye)}}),Tye),V_e=(Pye=d((function e(){c(this,e)})),Pye.\u0275mod=Ft({type:Pye}),Pye.\u0275inj=Pe({factory:function(e){return new(e||Pye)}}),Pye),H_e=(Sye=d((function e(){c(this,e)})),Sye.\u0275mod=Ft({type:Sye}),Sye.\u0275inj=Pe({factory:function(e){return new(e||Sye)}}),Sye),Y_e=(Mye=d((function e(){c(this,e)})),Mye.\u0275mod=Ft({type:Mye}),Mye.\u0275inj=Pe({factory:function(e){return new(e||Mye)}}),Mye),q_e=(xye=d((function e(){c(this,e)})),xye.\u0275mod=Ft({type:xye}),xye.\u0275inj=Pe({factory:function(e){return new(e||xye)}}),xye),U_e=(wye=d((function e(){c(this,e)})),wye.\u0275mod=Ft({type:wye}),wye.\u0275inj=Pe({factory:function(e){return new(e||wye)}}),wye),W_e=(Cye=d((function e(){c(this,e)})),Cye.\u0275mod=Ft({type:Cye}),Cye.\u0275inj=Pe({factory:function(e){return new(e||Cye)}}),Cye),J_e=(kye=d((function e(){c(this,e)})),kye.\u0275mod=Ft({type:kye}),kye.\u0275inj=Pe({factory:function(e){return new(e||kye)}}),kye),G_e=(_ye=d((function e(){c(this,e)})),_ye.\u0275mod=Ft({type:_ye}),_ye.\u0275inj=Pe({factory:function(e){return new(e||_ye)}}),_ye),$_e=(bye=d((function e(){c(this,e)})),bye.\u0275mod=Ft({type:bye}),bye.\u0275inj=Pe({factory:function(e){return new(e||bye)}}),bye),Q_e=(yye=d((function e(){c(this,e)})),yye.\u0275mod=Ft({type:yye}),yye.\u0275inj=Pe({factory:function(e){return new(e||yye)}}),yye),K_e=(vye=d((function e(){c(this,e)})),vye.\u0275mod=Ft({type:vye}),vye.\u0275inj=Pe({factory:function(e){return new(e||vye)}}),vye),Z_e=(gye=d((function e(){c(this,e)})),gye.\u0275mod=Ft({type:gye}),gye.\u0275inj=Pe({factory:function(e){return new(e||gye)}}),gye),X_e=(pye=d((function e(){c(this,e)})),pye.\u0275mod=Ft({type:pye}),pye.\u0275inj=Pe({factory:function(e){return new(e||pye)}}),pye),eke=(mye=d((function e(){c(this,e)})),mye.\u0275mod=Ft({type:mye}),mye.\u0275inj=Pe({factory:function(e){return new(e||mye)}}),mye),tke=(fye=d((function e(){c(this,e)})),fye.\u0275mod=Ft({type:fye}),fye.\u0275inj=Pe({factory:function(e){return new(e||fye)}}),fye),nke=(hye=d((function e(){c(this,e)})),hye.\u0275mod=Ft({type:hye}),hye.\u0275inj=Pe({factory:function(e){return new(e||hye)}}),hye),ike=(dye=d((function e(){c(this,e)})),dye.\u0275mod=Ft({type:dye}),dye.\u0275inj=Pe({factory:function(e){return new(e||dye)}}),dye),oke=(uye=d((function e(){c(this,e)})),uye.\u0275mod=Ft({type:uye}),uye.\u0275inj=Pe({factory:function(e){return new(e||uye)}}),uye),ake=(cye=d((function e(){c(this,e)})),cye.\u0275mod=Ft({type:cye}),cye.\u0275inj=Pe({factory:function(e){return new(e||cye)}}),cye),rke=(lye=d((function e(){c(this,e)})),lye.\u0275mod=Ft({type:lye}),lye.\u0275inj=Pe({factory:function(e){return new(e||lye)}}),lye),ske=(sye=d((function e(){c(this,e)})),sye.\u0275mod=Ft({type:sye}),sye.\u0275inj=Pe({factory:function(e){return new(e||sye)}}),sye),lke=(rye=d((function e(){c(this,e)})),rye.\u0275mod=Ft({type:rye}),rye.\u0275inj=Pe({factory:function(e){return new(e||rye)}}),rye),cke=(aye=d((function e(){c(this,e)})),aye.\u0275mod=Ft({type:aye}),aye.\u0275inj=Pe({factory:function(e){return new(e||aye)}}),aye),uke=(oye=d((function e(){c(this,e)})),oye.\u0275mod=Ft({type:oye}),oye.\u0275inj=Pe({factory:function(e){return new(e||oye)}}),oye),dke=(iye=d((function e(){c(this,e)})),iye.\u0275mod=Ft({type:iye}),iye.\u0275inj=Pe({factory:function(e){return new(e||iye)}}),iye),hke=(nye=d((function e(){c(this,e)})),nye.\u0275mod=Ft({type:nye}),nye.\u0275inj=Pe({factory:function(e){return new(e||nye)}}),nye),fke=(tye=d((function e(){c(this,e)})),tye.\u0275mod=Ft({type:tye}),tye.\u0275inj=Pe({factory:function(e){return new(e||tye)}}),tye),mke=(eye=d((function e(){c(this,e)})),eye.\u0275mod=Ft({type:eye}),eye.\u0275inj=Pe({factory:function(e){return new(e||eye)}}),eye),pke=(Xve=d((function e(){c(this,e)})),Xve.\u0275mod=Ft({type:Xve}),Xve.\u0275inj=Pe({factory:function(e){return new(e||Xve)}}),Xve),gke=(Zve=d((function e(){c(this,e)})),Zve.\u0275mod=Ft({type:Zve}),Zve.\u0275inj=Pe({factory:function(e){return new(e||Zve)}}),Zve),vke=(Kve=d((function e(){c(this,e)})),Kve.\u0275mod=Ft({type:Kve}),Kve.\u0275inj=Pe({factory:function(e){return new(e||Kve)}}),Kve),yke=(Qve=d((function e(){c(this,e)})),Qve.\u0275mod=Ft({type:Qve}),Qve.\u0275inj=Pe({factory:function(e){return new(e||Qve)}}),Qve),bke=($ve=d((function e(){c(this,e)})),$ve.\u0275mod=Ft({type:$ve}),$ve.\u0275inj=Pe({factory:function(e){return new(e||$ve)}}),$ve),_ke=(Gve=d((function e(){c(this,e)})),Gve.\u0275mod=Ft({type:Gve}),Gve.\u0275inj=Pe({factory:function(e){return new(e||Gve)}}),Gve),kke=(Jve=d((function e(){c(this,e)})),Jve.\u0275mod=Ft({type:Jve}),Jve.\u0275inj=Pe({factory:function(e){return new(e||Jve)}}),Jve),Cke=(Wve=d((function e(){c(this,e)})),Wve.\u0275mod=Ft({type:Wve}),Wve.\u0275inj=Pe({factory:function(e){return new(e||Wve)}}),Wve),wke=(Uve=d((function e(){c(this,e)})),Uve.\u0275mod=Ft({type:Uve}),Uve.\u0275inj=Pe({factory:function(e){return new(e||Uve)}}),Uve),xke=(qve=d((function e(){c(this,e)})),qve.\u0275mod=Ft({type:qve}),qve.\u0275inj=Pe({factory:function(e){return new(e||qve)}}),qve),Mke=(Yve=d((function e(){c(this,e)})),Yve.\u0275mod=Ft({type:Yve}),Yve.\u0275inj=Pe({factory:function(e){return new(e||Yve)}}),Yve),Ske=(Hve=d((function e(){c(this,e)})),Hve.\u0275mod=Ft({type:Hve}),Hve.\u0275inj=Pe({factory:function(e){return new(e||Hve)}}),Hve),Pke=(Vve=d((function e(){c(this,e)})),Vve.\u0275mod=Ft({type:Vve}),Vve.\u0275inj=Pe({factory:function(e){return new(e||Vve)}}),Vve),Tke=(zve=d((function e(){c(this,e)})),zve.\u0275mod=Ft({type:zve}),zve.\u0275inj=Pe({factory:function(e){return new(e||zve)}}),zve),Oke=(jve=d((function e(){c(this,e)})),jve.\u0275mod=Ft({type:jve}),jve.\u0275inj=Pe({factory:function(e){return new(e||jve)}}),jve),Lke=(Rve=d((function e(){c(this,e)})),Rve.\u0275mod=Ft({type:Rve}),Rve.\u0275inj=Pe({factory:function(e){return new(e||Rve)}}),Rve),Dke=(Nve=d((function e(){c(this,e)})),Nve.\u0275mod=Ft({type:Nve}),Nve.\u0275inj=Pe({factory:function(e){return new(e||Nve)}}),Nve),Ike=(Bve=d((function e(){c(this,e)})),Bve.\u0275mod=Ft({type:Bve}),Bve.\u0275inj=Pe({factory:function(e){return new(e||Bve)}}),Bve),Fke=(Eve=d((function e(){c(this,e)})),Eve.\u0275mod=Ft({type:Eve}),Eve.\u0275inj=Pe({factory:function(e){return new(e||Eve)}}),Eve),Ake=(Ave=d((function e(){c(this,e)})),Ave.\u0275mod=Ft({type:Ave}),Ave.\u0275inj=Pe({factory:function(e){return new(e||Ave)}}),Ave),Eke=(Fve=d((function e(){c(this,e)})),Fve.\u0275mod=Ft({type:Fve}),Fve.\u0275inj=Pe({factory:function(e){return new(e||Fve)}}),Fve),Bke=(Ive=d((function e(){c(this,e)})),Ive.\u0275mod=Ft({type:Ive}),Ive.\u0275inj=Pe({factory:function(e){return new(e||Ive)}}),Ive),Nke=(Dve=d((function e(){c(this,e)})),Dve.\u0275mod=Ft({type:Dve}),Dve.\u0275inj=Pe({factory:function(e){return new(e||Dve)}}),Dve),Rke=(Lve=d((function e(){c(this,e)})),Lve.\u0275mod=Ft({type:Lve}),Lve.\u0275inj=Pe({factory:function(e){return new(e||Lve)}}),Lve),jke=(Ove=d((function e(){c(this,e)})),Ove.\u0275mod=Ft({type:Ove}),Ove.\u0275inj=Pe({factory:function(e){return new(e||Ove)}}),Ove),zke=(Tve=d((function e(){c(this,e)})),Tve.\u0275mod=Ft({type:Tve}),Tve.\u0275inj=Pe({factory:function(e){return new(e||Tve)}}),Tve),Vke=(Pve=d((function e(){c(this,e)})),Pve.\u0275mod=Ft({type:Pve}),Pve.\u0275inj=Pe({factory:function(e){return new(e||Pve)}}),Pve),Hke=(Sve=d((function e(){c(this,e)})),Sve.\u0275mod=Ft({type:Sve}),Sve.\u0275inj=Pe({factory:function(e){return new(e||Sve)}}),Sve),Yke=(Mve=d((function e(){c(this,e)})),Mve.\u0275mod=Ft({type:Mve}),Mve.\u0275inj=Pe({factory:function(e){return new(e||Mve)}}),Mve),qke=(xve=d((function e(){c(this,e)})),xve.\u0275mod=Ft({type:xve}),xve.\u0275inj=Pe({factory:function(e){return new(e||xve)}}),xve),Uke=(wve=d((function e(){c(this,e)})),wve.\u0275mod=Ft({type:wve}),wve.\u0275inj=Pe({factory:function(e){return new(e||wve)}}),wve),Wke=(Cve=d((function e(){c(this,e)})),Cve.\u0275mod=Ft({type:Cve}),Cve.\u0275inj=Pe({factory:function(e){return new(e||Cve)}}),Cve),Jke=(kve=d((function e(){c(this,e)})),kve.\u0275mod=Ft({type:kve}),kve.\u0275inj=Pe({factory:function(e){return new(e||kve)}}),kve),Gke=(_ve=d((function e(){c(this,e)})),_ve.\u0275mod=Ft({type:_ve}),_ve.\u0275inj=Pe({factory:function(e){return new(e||_ve)}}),_ve),$ke=(bve=d((function e(){c(this,e)})),bve.\u0275mod=Ft({type:bve}),bve.\u0275inj=Pe({factory:function(e){return new(e||bve)}}),bve),Qke=(yve=d((function e(){c(this,e)})),yve.\u0275mod=Ft({type:yve}),yve.\u0275inj=Pe({factory:function(e){return new(e||yve)}}),yve),Kke=(vve=d((function e(){c(this,e)})),vve.\u0275mod=Ft({type:vve}),vve.\u0275inj=Pe({factory:function(e){return new(e||vve)}}),vve),Zke=(gve=d((function e(){c(this,e)})),gve.\u0275mod=Ft({type:gve}),gve.\u0275inj=Pe({factory:function(e){return new(e||gve)}}),gve),Xke=(pve=d((function e(){c(this,e)})),pve.\u0275mod=Ft({type:pve}),pve.\u0275inj=Pe({factory:function(e){return new(e||pve)}}),pve),eCe=(mve=d((function e(){c(this,e)})),mve.\u0275mod=Ft({type:mve}),mve.\u0275inj=Pe({factory:function(e){return new(e||mve)}}),mve),tCe=(fve=d((function e(){c(this,e)})),fve.\u0275mod=Ft({type:fve}),fve.\u0275inj=Pe({factory:function(e){return new(e||fve)}}),fve),nCe=(hve=d((function e(){c(this,e)})),hve.\u0275mod=Ft({type:hve}),hve.\u0275inj=Pe({factory:function(e){return new(e||hve)}}),hve),iCe=(dve=d((function e(){c(this,e)})),dve.\u0275mod=Ft({type:dve}),dve.\u0275inj=Pe({factory:function(e){return new(e||dve)}}),dve),oCe=(uve=d((function e(){c(this,e)})),uve.\u0275mod=Ft({type:uve}),uve.\u0275inj=Pe({factory:function(e){return new(e||uve)}}),uve),aCe=(cve=d((function e(){c(this,e)})),cve.\u0275mod=Ft({type:cve}),cve.\u0275inj=Pe({factory:function(e){return new(e||cve)}}),cve),rCe=(lve=d((function e(){c(this,e)})),lve.\u0275mod=Ft({type:lve}),lve.\u0275inj=Pe({factory:function(e){return new(e||lve)}}),lve),sCe=(sve=d((function e(){c(this,e)})),sve.\u0275mod=Ft({type:sve}),sve.\u0275inj=Pe({factory:function(e){return new(e||sve)}}),sve),lCe=(rve=d((function e(){c(this,e)})),rve.\u0275mod=Ft({type:rve}),rve.\u0275inj=Pe({factory:function(e){return new(e||rve)}}),rve),cCe=(ave=d((function e(){c(this,e)})),ave.\u0275mod=Ft({type:ave}),ave.\u0275inj=Pe({factory:function(e){return new(e||ave)}}),ave),uCe=(ove=d((function e(){c(this,e)})),ove.\u0275mod=Ft({type:ove}),ove.\u0275inj=Pe({factory:function(e){return new(e||ove)}}),ove),dCe=(ive=d((function e(){c(this,e)})),ive.\u0275mod=Ft({type:ive}),ive.\u0275inj=Pe({factory:function(e){return new(e||ive)}}),ive),hCe=(nve=d((function e(){c(this,e)})),nve.\u0275mod=Ft({type:nve}),nve.\u0275inj=Pe({factory:function(e){return new(e||nve)}}),nve),fCe=(tve=d((function e(){c(this,e)})),tve.\u0275mod=Ft({type:tve}),tve.\u0275inj=Pe({factory:function(e){return new(e||tve)}}),tve),mCe=(eve=d((function e(){c(this,e)})),eve.\u0275mod=Ft({type:eve}),eve.\u0275inj=Pe({factory:function(e){return new(e||eve)}}),eve),pCe=(Xge=d((function e(){c(this,e)})),Xge.\u0275mod=Ft({type:Xge}),Xge.\u0275inj=Pe({factory:function(e){return new(e||Xge)}}),Xge),gCe=(Zge=d((function e(){c(this,e)})),Zge.\u0275mod=Ft({type:Zge}),Zge.\u0275inj=Pe({factory:function(e){return new(e||Zge)}}),Zge),vCe=(Kge=d((function e(){c(this,e)})),Kge.\u0275mod=Ft({type:Kge}),Kge.\u0275inj=Pe({factory:function(e){return new(e||Kge)}}),Kge),yCe=(Qge=d((function e(){c(this,e)})),Qge.\u0275mod=Ft({type:Qge}),Qge.\u0275inj=Pe({factory:function(e){return new(e||Qge)}}),Qge),bCe=($ge=d((function e(){c(this,e)})),$ge.\u0275mod=Ft({type:$ge}),$ge.\u0275inj=Pe({factory:function(e){return new(e||$ge)}}),$ge),_Ce=(Gge=d((function e(){c(this,e)})),Gge.\u0275mod=Ft({type:Gge}),Gge.\u0275inj=Pe({factory:function(e){return new(e||Gge)}}),Gge),kCe=(Jge=d((function e(){c(this,e)})),Jge.\u0275mod=Ft({type:Jge}),Jge.\u0275inj=Pe({factory:function(e){return new(e||Jge)}}),Jge),CCe=(Wge=d((function e(){c(this,e)})),Wge.\u0275mod=Ft({type:Wge}),Wge.\u0275inj=Pe({factory:function(e){return new(e||Wge)}}),Wge),wCe=(Uge=d((function e(){c(this,e)})),Uge.\u0275mod=Ft({type:Uge}),Uge.\u0275inj=Pe({factory:function(e){return new(e||Uge)}}),Uge),xCe=(qge=d((function e(){c(this,e)})),qge.\u0275mod=Ft({type:qge}),qge.\u0275inj=Pe({factory:function(e){return new(e||qge)}}),qge),MCe=(Yge=d((function e(){c(this,e)})),Yge.\u0275mod=Ft({type:Yge}),Yge.\u0275inj=Pe({factory:function(e){return new(e||Yge)}}),Yge),SCe=(Hge=d((function e(){c(this,e)})),Hge.\u0275mod=Ft({type:Hge}),Hge.\u0275inj=Pe({factory:function(e){return new(e||Hge)}}),Hge),PCe=(Vge=d((function e(){c(this,e)})),Vge.\u0275mod=Ft({type:Vge}),Vge.\u0275inj=Pe({factory:function(e){return new(e||Vge)}}),Vge),TCe=[o_e,a_e,r_e,s_e,l_e,c_e,u_e,d_e,h_e,f_e,m_e,p_e,v_e,y_e,b_e,__e,fCe,k_e,C_e,w_e,x_e,M_e,S_e,P_e,T_e,O_e,L_e,D_e,I_e,F_e,A_e,E_e,B_e,N_e,R_e,j_e,V_e,z_e,H_e,Y_e,q_e,U_e,W_e,J_e,G_e,$_e,Q_e,K_e,Z_e,X_e,eke,tke,nke,ike,oke,ake,mCe,rke,ske,lke,cke,uke,dke,hke,mke,fke,pke,gke,vke,yke,bke,_ke,kke,Cke,wke,xke,Mke,Ske,Pke,Tke,Oke,Lke,Dke,Ike,Fke,Ake,Eke,Bke,Nke,Rke,jke,zke,Vke,Hke,Yke,qke,Uke,Wke,Jke,Gke,$ke,Qke,Kke,Zke,Xke,eCe,tCe,nCe,iCe,oCe,aCe,rCe,sCe,lCe,cCe,uCe,dCe,hCe,pCe,gCe,vCe,yCe,bCe,_Ce,kCe,CCe,wCe,xCe,MCe,SCe,PCe],OCe=((dbe=function(){function e(){c(this,e)}return d(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[g_e]}}}])}()).\u0275mod=Ft({type:dbe}),dbe.\u0275inj=Pe({factory:function(e){return new(e||dbe)},imports:[[Ph,TCe],o_e,a_e,r_e,s_e,l_e,c_e,u_e,d_e,h_e,f_e,m_e,p_e,v_e,y_e,b_e,__e,fCe,k_e,C_e,w_e,x_e,M_e,S_e,P_e,T_e,O_e,L_e,D_e,I_e,F_e,A_e,E_e,B_e,N_e,R_e,j_e,V_e,z_e,H_e,Y_e,q_e,U_e,W_e,J_e,G_e,$_e,Q_e,K_e,Z_e,X_e,eke,tke,nke,ike,oke,ake,mCe,rke,ske,lke,cke,uke,dke,hke,mke,fke,pke,gke,vke,yke,bke,_ke,kke,Cke,wke,xke,Mke,Ske,Pke,Tke,Oke,Lke,Dke,Ike,Fke,Ake,Eke,Bke,Nke,Rke,jke,zke,Vke,Hke,Yke,qke,Uke,Wke,Jke,Gke,$ke,Qke,Kke,Zke,Xke,eCe,tCe,nCe,iCe,oCe,aCe,rCe,sCe,lCe,cCe,uCe,dCe,hCe,pCe,gCe,vCe,yCe,bCe,_Ce,kCe,CCe,wCe,xCe,MCe,SCe,PCe]}),dbe),LCe={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"cerca de 1 hora",other:"cerca de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"cerca de 1 semana",other:"cerca de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"cerca de 1 m\xeas",other:"cerca de {{count}} meses"},xMonths:{one:"1 m\xeas",other:"{{count}} meses"},aboutXYears:{one:"cerca de 1 ano",other:"cerca de {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},DCe={lastWeek:function(e){var t=e.getUTCDay();return"'"+(0===t||6===t?"\xfaltimo":"\xfaltima")+"' eeee '\xe0s' p"},yesterday:"'ontem \xe0s' p",today:"'hoje \xe0s' p",tomorrow:"'amanh\xe3 \xe0s' p",nextWeek:"eeee '\xe0s' p",other:"P"},ICe={code:"pt-BR",formatDistance:function(e,t,n){var i,o=LCe[e];return i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"em "+i:"h\xe1 "+i:i},formatLong:{date:Bge({formats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:Bge({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Bge({formats:{full:"{{date}} '\xe0s' {{time}}",long:"{{date}} '\xe0s' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:function(e,t,n,i){var o=DCe[e];return"function"==typeof o?o(t):o},localize:{ordinalNumber:function(e,t){var n=Number(e);return"week"===(null==t?void 0:t.unit)?n+"\xaa":n+"\xba"},era:Nge({values:{narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","depois de cristo"]},defaultWidth:"wide"}),quarter:Nge({values:{narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Nge({values:{narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},defaultWidth:"wide"}),day:Nge({values:{narrow:["D","S","T","Q","Q","S","S"],short:["dom","seg","ter","qua","qui","sex","sab"],abbreviated:["domingo","segunda","ter\xe7a","quarta","quinta","sexta","s\xe1bado"],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},defaultWidth:"wide"}),dayPeriod:Nge({values:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"manh\xe3",afternoon:"tarde",evening:"tarde",night:"noite"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"},wide:{am:"a.m.",pm:"p.m.",midnight:"meia-noite",noon:"meio-dia",morning:"da manh\xe3",afternoon:"da tarde",evening:"da tarde",night:"da noite"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(hbe={matchPattern:/^(\d+)[\xba\xaao]?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(hbe.matchPattern);if(!n)return null;var i=n[0],o=e.match(hbe.parsePattern);if(!o)return null;var a=hbe.valueCallback?hbe.valueCallback(o[0]):o[0];a=t.valueCallback?t.valueCallback(a):a;var r=e.slice(i.length);return{value:a,rest:r}}),era:Rge({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|d\.?\s?c\.?)/i,wide:/^(antes de cristo|depois de cristo)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^antes de cristo/i,/^depois de cristo/i]},defaultParseWidth:"any"}),quarter:Rge({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](\xba)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Rge({matchPatterns:{narrow:/^[jfmajsond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|mar\xe7o|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^fev/i,/^mar/i,/^abr/i,/^mai/i,/^jun/i,/^jul/i,/^ago/i,/^set/i,/^out/i,/^nov/i,/^dez/i]},defaultParseWidth:"any"}),day:Rge({matchPatterns:{narrow:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,short:/^(dom|[23456]\xaa?|s[a\xe1]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[a\xe1]b)/i,wide:/^(domingo|(segunda|ter[c\xe7]a|quarta|quinta|sexta)([- ]feira)?|s[a\xe1]bado)/i},defaultMatchWidth:"wide",parsePatterns:{short:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],narrow:[/^d/i,/^2/i,/^3/i,/^4/i,/^5/i,/^6/i,/^s[a\xe1]/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[a\xe1]b/i]},defaultParseWidth:"any"}),dayPeriod:Rge({matchPatterns:{narrow:/^(a|p|mn|md|(da) (manh\xe3|tarde|noite))/i,any:/^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manh\xe3|tarde|noite))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn|^meia[-\s]noite/i,noon:/^md|^meio[-\s]dia/i,morning:/manh\xe3/i,afternoon:/tarde/i,evening:/tarde/i,night:/noite/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},FCe=((kbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:kbe}),kbe.\u0275inj=Pe({factory:function(e){return new(e||kbe)},imports:[[Ph,Mp,Ige,RM,FE,AD]]}),kbe),ACe=((_be=d((function e(){c(this,e)}))).\u0275mod=Ft({type:_be}),_be.\u0275inj=Pe({factory:function(e){return new(e||_be)},imports:[[Ph,Ige,Mp,FE,RM,AD]]}),_be),ECe=((bbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:bbe}),bbe.\u0275inj=Pe({factory:function(e){return new(e||bbe)},imports:[[Ph,Ige,Mp,xC,FE,AD]]}),bbe),BCe=((ybe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:ybe}),ybe.\u0275inj=Pe({factory:function(e){return new(e||ybe)},imports:[[Ph,Ige,Mp,xC,FE,AD]]}),ybe),NCe=((vbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:vbe}),vbe.\u0275inj=Pe({factory:function(e){return new(e||vbe)},imports:[[Ph,Mp,RM,FE,Ige,AD,hP]]}),vbe),RCe=((gbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:gbe}),gbe.\u0275inj=Pe({factory:function(e){return new(e||gbe)},imports:[[Ph,Mp,RM,Ige,Fge,AD]]}),gbe),jCe=((pbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:pbe}),pbe.\u0275inj=Pe({factory:function(e){return new(e||pbe)},imports:[[Ph,Ige,Mp,RM,FE,NCe,AD,Fge,RCe]]}),pbe),zCe=((mbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:mbe}),mbe.\u0275inj=Pe({factory:function(e){return new(e||mbe)},imports:[[Ph,Ige,Mp,FE,AD,RM]]}),mbe),VCe=((fbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:fbe}),fbe.\u0275inj=Pe({factory:function(e){return new(e||fbe)},imports:[[Ph,Ige,Mp,FE,AD]]}),fbe),HCe=new tt("ng-select-selection-model"),YCe=function(){return d((function e(){c(this,e),this._selected=[]}),[{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,o=e.parent.children.filter((function(e){return e.selected})).length;e.parent.selected=i===o}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),this._selected=n&&this._activeChildren(e)?[].concat(r(this._selected.filter((function(t){return t.parent!==e}))),[e]):[].concat(r(this._selected),r(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,r(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=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.disabled||(a.selected=t)}}catch(r){i.e(r)}finally{i.f()}}},{key:"_removeChildren",value:function(e){this._selected=[].concat(r(this._selected.filter((function(t){return t.parent!==e}))),r(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}))}}])}(),qCe=function(){return new YCe},UCe=((Ube=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Ube}),Ube.\u0275inj=Pe({factory:function(e){return new(e||Ube)},providers:[{provide:HCe,useValue:qCe}],imports:[[Ph]]}),Ube),WCe=((qbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:qbe}),qbe.\u0275inj=Pe({factory:function(e){return new(e||qbe)},imports:[[Ph,Mp,RM,Ege,Ige,FE,UCe,Lge,AD,NCe,ACe,xC,FCe,ECe]]}),qbe),JCe=((Ybe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Ybe}),Ybe.\u0275inj=Pe({factory:function(e){return new(e||Ybe)},imports:[[Ph,RM,Mp,AD,Ige,FE,Zle]]}),Ybe),GCe=((Hbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Hbe}),Hbe.\u0275inj=Pe({factory:function(e){return new(e||Hbe)},imports:[[Ph,Ege,Ige,Mp,RM,FE.forRoot(),AD,WCe,JCe,VCe]]}),Hbe),$Ce=((Vbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Vbe}),Vbe.\u0275inj=Pe({factory:function(e){return new(e||Vbe)},imports:[[Ph,Ige,Mp,RM,AD]]}),Vbe),QCe=((zbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:zbe}),zbe.\u0275inj=Pe({factory:function(e){return new(e||zbe)},imports:[[Ph,Ige,Mp,RM,FE,AD]]}),zbe),KCe=((jbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:jbe}),jbe.\u0275inj=Pe({factory:function(e){return new(e||jbe)},imports:[[Ph,Ige,Mp,RM,FE,Lge,AD,JCe]]}),jbe),ZCe=((Rbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Rbe}),Rbe.\u0275inj=Pe({factory:function(e){return new(e||Rbe)},imports:[[Ph,Ige,RM,Ege,AD]]}),Rbe),XCe=((Nbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Nbe}),Nbe.\u0275inj=Pe({factory:function(e){return new(e||Nbe)},imports:[[Ph,Ige,RM,AD,Mp,FE,NCe]]}),Nbe),ewe=((Bbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Bbe}),Bbe.\u0275inj=Pe({factory:function(e){return new(e||Bbe)},imports:[[Ph,Ige,Mp,RM,FE,Lge,AD]]}),Bbe),twe=((Ebe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Ebe}),Ebe.\u0275inj=Pe({factory:function(e){return new(e||Ebe)},providers:[FK],imports:[[Ege,Ph,RM,xp,Mp,Ige,ACe,Fge,AD,FCe,WCe,v8]]}),Ebe),nwe=((Abe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Abe}),Abe.\u0275inj=Pe({factory:function(e){return new(e||Abe)},imports:[[Ph,Ige,AD]]}),Abe),iwe=((Fbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Fbe}),Fbe.\u0275inj=Pe({factory:function(e){return new(e||Fbe)},imports:[[Ph,RM,Mp,Ige,AD]]}),Fbe),owe=((Ibe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Ibe}),Ibe.\u0275inj=Pe({factory:function(e){return new(e||Ibe)},imports:[[Ph,Ige,Mp,RM,FE,AD,NCe,WCe]]}),Ibe),awe=((Dbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Dbe}),Dbe.\u0275inj=Pe({factory:function(e){return new(e||Dbe)},imports:[[Ph,Ige,Mp,xte,AD,owe]]}),Dbe),rwe=((Lbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Lbe}),Lbe.\u0275inj=Pe({factory:function(e){return new(e||Lbe)},imports:[[Ph,Ige,Mp,RM,FE,AD,FCe,WCe,NCe]]}),Lbe),swe=((Obe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Obe}),Obe.\u0275inj=Pe({factory:function(e){return new(e||Obe)},imports:[[Ph,Ige,Mp,RM,FE,Lge,AD]]}),Obe),lwe=((Tbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Tbe}),Tbe.\u0275inj=Pe({factory:function(e){return new(e||Tbe)},imports:[[Ph,Ige,RM,FE,Mp,AD]]}),Tbe),cwe=((Pbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Pbe}),Pbe.\u0275inj=Pe({factory:function(e){return new(e||Pbe)},imports:[[Ph,Ige,Mp,RM,FE,AD]]}),Pbe),uwe=((Sbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Sbe}),Sbe.\u0275inj=Pe({factory:function(e){return new(e||Sbe)},imports:[[Ph,Ige,Mp,RM,FE,AD]]}),Sbe),dwe=((Mbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Mbe}),Mbe.\u0275inj=Pe({factory:function(e){return new(e||Mbe)},imports:[[Ph,Mp,RM,Ege,Ige,FE,UCe,Lge,AD,ACe,xC,FCe]]}),Mbe),hwe=((xbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:xbe}),xbe.\u0275inj=Pe({factory:function(e){return new(e||xbe)},imports:[[Ph,Mp,Ige,RM,FE,AD]]}),xbe),fwe=((wbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:wbe}),wbe.\u0275inj=Pe({factory:function(e){return new(e||wbe)},imports:[[Ph,Ige,Mp,RM,FE,AD]]}),wbe),mwe=((Cbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Cbe}),Cbe.\u0275inj=Pe({factory:function(e){return new(e||Cbe)},imports:[[Ph,Ige,Mp,RM,xC,FE,Dge,uL,AD,JCe]]}),Cbe),pwe=function(){return d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";c(this,e),this.http=t,this.prefix=n,this.suffix=i}),[{key:"getTranslation",value:function(e){return this.http.get("".concat(this.prefix).concat(e).concat(this.suffix))}}])}(),gwe=((e_e=d((function e(){c(this,e)}))).\u0275mod=Ft({type:e_e}),e_e.\u0275inj=Pe({factory:function(e){return new(e||e_e)},imports:[[Ph,Ige,Mp,RM,AD]]}),e_e),vwe=((Xbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Xbe}),Xbe.\u0275inj=Pe({factory:function(e){return new(e||Xbe)},imports:[[Ph,Ige,Mp,RM,AD,xC,WCe]]}),Xbe),ywe=((Zbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Zbe}),Zbe.\u0275inj=Pe({factory:function(e){return new(e||Zbe)},providers:[],imports:[[Ege,Ph,RM,xp,Mp,Ige,AD,v8]]}),Zbe),bwe=((Kbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Kbe}),Kbe.\u0275inj=Pe({factory:function(e){return new(e||Kbe)},imports:[[Ph,Ige,Mp,RM,AD]]}),Kbe),_we=((Qbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Qbe}),Qbe.\u0275inj=Pe({factory:function(e){return new(e||Qbe)},imports:[[Ph,Ige,Mp]]}),Qbe),kwe=(($be=d((function e(){c(this,e)}))).\u0275mod=Ft({type:$be}),$be.\u0275inj=Pe({factory:function(e){return new(e||$be)},imports:[[Ph,Ige,Mp,AD,owe,Ph,Ige,Mp,RM,FE,AD,Dfe]]}),$be),Cwe=((Gbe=function(){return d((function e(t,n){c(this,e),this.env=t,this.injector=n}),[{key:"router",get:function(){return this.injector.get(yM)}},{key:"init",value:function(){this.subscribeRouterChanges();var e=document.createElement("script");e.async=!0,e.src="https://www.googletagmanager.com/gtag/js?id=G-KR0YJLESWP",document.head.appendChild(e);var t=document.createElement("script");return t.innerHTML="\n        window.dataLayer = window.dataLayer || [];\n        function gtag(){dataLayer.push(arguments);}\n        gtag('js', new Date());\n        gtag('config', '".concat(this.env.googleUa,"', {'send_page_view': false});\n      "),document.head.appendChild(t),!0}},{key:"subscribeRouterChanges",value:function(){var e=this;this.router.events.subscribe((function(t){t instanceof iw&&gtag("config",e.env.googleUa,{page_path:t.urlAfterRedirects})}))}},{key:"sendEvent",value:function(e,t,n){return gtag("event",e,{event_category:t,event_label:n}),e}}])}()).\u0275fac=function(e){return new(e||Gbe)(ut("env"),ut(Sr))},Gbe.\u0275prov=Se({token:Gbe,factory:Gbe.\u0275fac}),Gbe),wwe=((Jbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Jbe}),Jbe.\u0275inj=Pe({factory:function(e){return new(e||Jbe)},imports:[[Ph,Ige,Mp,RM,AD]]}),Jbe),xwe=((Wbe=d((function e(){c(this,e)}))).\u0275mod=Ft({type:Wbe}),Wbe.\u0275inj=Pe({factory:function(e){return new(e||Wbe)},imports:[[Ph,Ige,RM,FE,Mp,AD]]}),Wbe);t_e=bg.a,i_e=void 0,"string"!=typeof(n_e="pt")&&(i_e=n_e,n_e=t_e[cc.LocaleId]),n_e=n_e.toLowerCase().replace(/_/g,"-"),rc[n_e]=t_e,i_e&&(rc[n_e][cc.ExtraData]=i_e);var Mwe=new g_e;function Swe(e){return new pwe(e,"./assets/i18n/",".json")}Mwe.setLocale(ICe);var Pwe,Twe=function(e){return function(){return e.init()}},Owe=((Pwe=d((function e(t){c(this,e),e.injector=t}))).\u0275mod=Ft({type:Pwe,bootstrap:[$M]}),Pwe.\u0275inj=Pe({factory:function(e){return new(e||Pwe)(ut(Sr))},providers:[{provide:"env",useValue:Wu},Cwe,{provide:Gc,useFactory:Twe,multi:!0,deps:[Cwe]},FK,{provide:x_,useValue:"pt-BR"},{provide:iu,useValue:"pt"},{provide:g_e,useValue:Mwe},_f,kH],imports:[[vf,vg,xp,Ege,FE.forRoot(),y_,Lge,OCe.forRoot(),xte,Mp,Ige,Oge,FCe,ACe,ACe,VCe,ECe,One,BCe,jCe,bwe,zCe,GCe,Fge,xwe,wwe,$Ce,QCe,ZCe,XCe,ewe,twe,nwe,KCe,RCe,ywe,NCe,iwe,awe,swe,rwe,lwe,cwe,gwe,uwe,dwe,WCe,JCe,owe,hwe,fwe,mwe,kwe,Age,_we,Dfe,vwe,xC.forRoot({apiKey:"AIzaSyAn38rGZyC4zIAigZHBV8s-x0t4kTVwawE",language:"pt-BR",libraries:["geometry","places"]}),uL,zae.forRoot({defaultLanguage:"pt-BR",loader:{provide:mae,useFactory:Swe,deps:[ng]}}),X0.forRoot({cookie:{domain:"https://app.iopoint.com.br"},position:"bottom-left",theme:"block",palette:{popup:{background:"#ffffff",text:"#444444",link:"#ffffff"},button:{background:"#007ec2",text:"#ffffff",border:"transparent"}},type:"info",content:{message:"Utilizamos cookies para garantir uma melhor experi\xeancia no uso do nosso sistema.",dismiss:"Entendi!",deny:"Recusar",link:"Termo de  uso",href:"iopoint.com.br/termos",policy:"Cookie Policy"}}),AD]]}),Pwe);Wu.production&&(function(){if(Ri)throw new Error("Cannot enable prod mode after platform setup.");Ni=!1}(),window&&(window.console.log=function(){})),pf().bootstrapModule(Owe).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"},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,o){var a,r=t.words[i];return 1===i.length?"y"===i&&n?"jedna godina":o||n?r[0]:r[1]:(a=t.correctGrammaticalCase(e,r),"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]]])}();