(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"+Nuo":function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},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=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return r.AnnotationLayerBuilder}}),Object.defineProperty(t,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return r.DefaultAnnotationLayerFactory}}),Object.defineProperty(t,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return i.DefaultTextLayerFactory}}),Object.defineProperty(t,"TextLayerBuilder",{enumerable:!0,get:function(){return i.TextLayerBuilder}}),Object.defineProperty(t,"EventBus",{enumerable:!0,get:function(){return a.EventBus}}),Object.defineProperty(t,"NullL10n",{enumerable:!0,get:function(){return a.NullL10n}}),Object.defineProperty(t,"ProgressBar",{enumerable:!0,get:function(){return a.ProgressBar}}),Object.defineProperty(t,"PDFLinkService",{enumerable:!0,get:function(){return o.PDFLinkService}}),Object.defineProperty(t,"SimpleLinkService",{enumerable:!0,get:function(){return o.SimpleLinkService}}),Object.defineProperty(t,"DownloadManager",{enumerable:!0,get:function(){return s.DownloadManager}}),Object.defineProperty(t,"GenericL10n",{enumerable:!0,get:function(){return c.GenericL10n}}),Object.defineProperty(t,"PDFFindController",{enumerable:!0,get:function(){return l.PDFFindController}}),Object.defineProperty(t,"PDFHistory",{enumerable:!0,get:function(){return u.PDFHistory}}),Object.defineProperty(t,"PDFPageView",{enumerable:!0,get:function(){return h.PDFPageView}}),Object.defineProperty(t,"PDFSinglePageViewer",{enumerable:!0,get:function(){return d.PDFSinglePageViewer}}),Object.defineProperty(t,"PDFViewer",{enumerable:!0,get:function(){return p.PDFViewer}});var r=n(1),i=n(8),a=n(3),o=n(7),s=n(9),c=n(11),l=n(13),u=n(15),h=n(16),d=n(18),p=n(20)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAnnotationLayerFactory=t.AnnotationLayerBuilder=void 0;var r=n(2),i=n(3),a=n(7);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"display";this.pdfPage.getAnnotations({intent:n}).then(function(n){if(!t._cancelled){var i={viewport:e.clone({dontFlip:!0}),div:t.div,annotations:n,page:t.pdfPage,imageResourcesPath:t.imageResourcesPath,renderInteractiveForms:t.renderInteractiveForms,linkService:t.linkService,downloadManager:t.downloadManager};if(t.div)r.AnnotationLayer.update(i);else{if(0===n.length)return;t.div=document.createElement("div"),t.div.className="annotationLayer",t.pageDiv.appendChild(t.div),i.div=t.div,r.AnnotationLayer.render(i),t.l10n.translate(t.div)}}})}},{key:"cancel",value:function(){this._cancelled=!0}},{key:"hide",value:function(){this.div&&this.div.setAttribute("hidden","true")}}]),e}();t.AnnotationLayerBuilder=l,t.DefaultAnnotationLayerFactory=function(){function e(){o(this,e)}return c(e,[{key:"createAnnotationLayerBuilder",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.NullL10n;return new l({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:r,linkService:new a.SimpleLinkService,l10n:o})}}]),e}()},function(e,t,r){"use strict";var i;i="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n("Q4Nv"),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(d).includes(e)&&e!==d.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(p).includes(e)&&e!==p.UNKNOWN},t.isPortraitOrientation=function(e){return e.width<=e.height},t.clamp=w,t.getPDFFileNameFromURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"document.pdf";if("string"!=typeof e)return t;if(y(e))return console.warn('getPDFFileNameFromURL: ignoring "data:" URL for performance reasons.'),t;var n=/^(?:(?:[^:]+:)?\/\/[^\/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,r=/[^\/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=n.exec(e),a=r.exec(i[1])||r.exec(i[2])||r.exec(i[3]);if(a&&(a=a[0]).includes("%"))try{a=r.exec(decodeURIComponent(a))[0]}catch(o){}return a||t},t.noContextMenuHandler=function(e){e.preventDefault()},t.parseQueryString=function(e){for(var t=e.split("&"),n=Object.create(null),r=0,i=t.length;r1?a[1]:null;n[decodeURIComponent(o)]=decodeURIComponent(s)}return n},t.backtrackBeforeAllVisibleElements=m,t.getVisibleElements=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.scrollTop,a=i+e.clientHeight,o=e.scrollLeft,s=o+e.clientWidth;function c(e){var t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>i}function l(e){var t=e.div;return t.offsetLeft+t.clientLeft+t.clientWidth>o}var u=[],h=t.length,d=0===h?0:g(t,r?l:c);d>0&&d=a&&(p=x);else if((r?b:_)>p)break;if(!(x<=i||_>=a||S<=o||b>=s)){var k=Math.max(0,i-_)+Math.max(0,x-a),A=Math.max(0,o-b)+Math.max(0,S-s),O=(C-k)*(w-A)*100/C/w|0;u.push({id:y.id,x:b,y:_,view:y,percent:O})}}var E=u[0],P=u[u.length-1];return n&&u.sort(function(e,t){var n=e.percent-t.percent;return Math.abs(n)>.001?-n:e.id-t.id}),{first:E,last:P,views:u}},t.roundToDivide=function(e,t){var n=e%t;return 0===n?e:Math.round(e-n+t)},t.getPageSizeInches=function(e){var t,n=e.userUnit,r=e.rotate,i=function(e){if(Array.isArray(e))return e}(t=e.view)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),4!==n.length);r=!0);}catch(c){i=!0,a=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(t)||function(e,t){if(e){if("string"==typeof e)return l(e,4);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,4):void 0}}(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.")}(),a=r%180!=0,o=(i[2]-i[0])/72*n,s=(i[3]-i[1])/72*n;return{width:a?s:o,height:a?o:s}},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];var t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];for(var n=e>1?t:e,r=0,i=1,a=1,o=1;;){var s=r+a,c=i+o;if(c>8)break;n<=s/c?(a=s,o=c):(r=s,i=c)}return n-r/i2&&void 0!==arguments[2]&&arguments[2],r=e.offsetParent;if(r){for(var i=e.offsetTop+e.clientTop,a=e.offsetLeft+e.clientLeft;r.clientHeight===r.scrollHeight&&r.clientWidth===r.scrollWidth||n&&"hidden"===getComputedStyle(r).overflow;)if(r.dataset._scaleY&&(i/=r.dataset._scaleY,a/=r.dataset._scaleX),i+=r.offsetTop,a+=r.offsetLeft,!(r=r.offsetParent))return;t&&(void 0!==t.top&&(i+=t.top),void 0!==t.left&&(r.scrollLeft=a+=t.left)),r.scrollTop=i}else console.error("offsetParent is not set -- cannot scroll")},t.watchScroll=function(e,t){var n=function(n){i||(i=window.requestAnimationFrame(function(){i=null;var n=e.scrollLeft,a=r.lastX;n!==a&&(r.right=n>a),r.lastX=n;var o=e.scrollTop,s=r.lastY;o!==s&&(r.down=o>s),r.lastY=o,t(r)}))},r={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n},i=null;return e.addEventListener("scroll",n,!0),r},t.binarySearchFirstItem=g,t.normalizeWheelEventDelta=function(e){var t=Math.sqrt(e.deltaX*e.deltaX+e.deltaY*e.deltaY),n=Math.atan2(e.deltaY,e.deltaX);return-.25*Math.PI=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function a(r){t instanceof _?t._off(n,o):t.removeEventListener(n,o),l&&clearTimeout(l),e(r)}var o=a.bind(null,v.EVENT);t instanceof _?t._on(n,o):t.addEventListener(n,o);var s=a.bind(null,v.TIMEOUT),l=setTimeout(s,i)})},t.moveToEndOfArray=function(e,t){for(var n=[],r=e.length,i=0,a=0;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n>1;t(e[i])?r=i:n=i+1}return n}function m(e,t,n){if(e<2)return e;var r=t[e].div,i=r.offsetTop+r.clientTop;i>=n&&(i=(r=t[e-1].div).offsetTop+r.clientTop);for(var a=e-2;a>=0&&!((r=t[a].div).offsetTop+r.clientTop+r.clientHeight<=i);--a)e=a;return e}function y(e){for(var t=0,n=e.length;t2&&void 0!==arguments[2]?arguments[2]:null,r=this._listeners[e];r||(this._listeners[e]=r=[]),r.push({listener:t,external:!0===(n&&n.external)})}},{key:"_off",value:function(e,t){var n=this._listeners[e];if(n)for(var r=0,i=n.length;r1&&void 0!==arguments[1]?arguments[1]:{},r=n.height,i=n.width,o=n.units;a(this,e),this.visible=!0,this.div=document.querySelector(t+" .progress"),this.bar=this.div.parentNode,this.height=r||100,this.width=i||100,this.units=o||"%",this.div.style.height=this.height+this.units,this.percent=0}return s(e,[{key:"_updateBar",value:function(){if(this._indeterminate)return this.div.classList.add("indeterminate"),void(this.div.style.width=this.width+this.units);this.div.classList.remove("indeterminate"),this.div.style.width=this.width*this._percent/100+this.units}},{key:"setWidth",value:function(e){if(e){var t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&(this.bar.style.width="calc(100% - ".concat(t,"px)"))}}},{key:"hide",value:function(){this.visible&&(this.visible=!1,this.bar.classList.add("hidden"),document.body.classList.remove("loadingInProgress"))}},{key:"show",value:function(){this.visible||(this.visible=!0,document.body.classList.add("loadingInProgress"),this.bar.classList.remove("hidden"))}},{key:"percent",get:function(){return this._percent},set:function(e){this._indeterminate=isNaN(e),this._percent=w(e,0,100),this._updateBar()}}]),e}()},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";(function(e){function t(e){return(t="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)}var n=function(e){var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=Object.create((t&&t.prototype instanceof m?t:m).prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r=h;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function y(){}function v(){}var b={};b[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(P([])));w&&w!==r&&i.call(w,o)&&(b=w);var C=v.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e,n){function r(a,o,s,c){var l=u(e[a],e,o);if("throw"!==l.type){var h=l.arg,d=h.value;return d&&"object"===t(d)&&i.call(d,"__await")?n.resolve(d.__await).then(function(e){r("next",e,s,c)},function(e){r("throw",e,s,c)}):n.resolve(d).then(function(e){h.value=e,s(h)},function(e){return r("throw",e,s,c)})}c(l.arg)}var a;this._invoke=function(e,t){function i(){return new n(function(n,i){r(e,t,n,i)})}return a=a?a.then(i,i):i()}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function A(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 E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=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 r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(6)(e))},function(e,t,n){"use strict";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}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=void 0;var r=n(3);function i(e){return(i="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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventBus,r=t.externalLinkTarget,i=void 0===r?null:r,o=t.externalLinkRel,s=void 0===o?null:o,c=t.externalLinkEnabled,l=void 0===c||c,u=t.ignoreDestinationZoom,h=void 0!==u&&u;a(this,e),this.eventBus=n,this.externalLinkTarget=i,this.externalLinkRel=s,this.externalLinkEnabled=l,this._ignoreDestinationZoom=h,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null,this._pagesRefCache=null}return s(e,[{key:"setDocument",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.baseUrl=t,this.pdfDocument=e,this._pagesRefCache=Object.create(null)}},{key:"setViewer",value:function(e){this.pdfViewer=e}},{key:"setHistory",value:function(e){this.pdfHistory=e}},{key:"navigateTo",value:function(e){var t=this,n=function n(r){var i,a=r.namedDest,o=r.explicitDest,s=o[0];if(s instanceof Object){if(null===(i=t._cachedPageNumber(s)))return void t.pdfDocument.getPageIndex(s).then(function(e){t.cachePageRef(e+1,s),n({namedDest:a,explicitDest:o})}).catch(function(){console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid page reference, for dest="'.concat(e,'".'))})}else{if(!Number.isInteger(s))return void console.error('PDFLinkService.navigateTo: "'.concat(s,'" is not ')+'a valid destination reference, for dest="'.concat(e,'".'));i=s+1}!i||i<1||i>t.pagesCount?console.error('PDFLinkService.navigateTo: "'.concat(i,'" is not ')+'a valid page number, for dest="'.concat(e,'".')):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:a,explicitDest:o,pageNumber:i})),t.pdfViewer.scrollPageIntoView({pageNumber:i,destArray:o,ignoreDestinationZoom:t._ignoreDestinationZoom}))};new Promise(function(n,r){"string"!=typeof e?n({namedDest:"",explicitDest:e}):t.pdfDocument.getDestination(e).then(function(t){n({namedDest:e,explicitDest:t})})}).then(function(t){Array.isArray(t.explicitDest)?n(t):console.error('PDFLinkService.navigateTo: "'.concat(t.explicitDest,'" is')+' not a valid destination array, for dest="'.concat(e,'".'))})}},{key:"getDestinationHash",value:function(e){if("string"==typeof e)return this.getAnchorUrl("#"+escape(e));if(Array.isArray(e)){var t=JSON.stringify(e);return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}},{key:"getAnchorUrl",value:function(e){return(this.baseUrl||"")+e}},{key:"setHash",value:function(e){var t,n;if(e.includes("=")){var a=(0,r.parseQueryString)(e);if("search"in a&&this.eventBus.dispatch("findfromurlhash",{source:this,query:a.search.replace(/"/g,""),phraseSearch:"true"===a.phrase}),"page"in a&&(t=0|a.page||1),"zoom"in a){var o=a.zoom.split(","),s=o[0],c=parseFloat(s);s.includes("Fit")?"Fit"===s||"FitB"===s?n=[null,{name:s}]:"FitH"===s||"FitBH"===s||"FitV"===s||"FitBV"===s?n=[null,{name:s},o.length>1?0|o[1]:null]:"FitR"===s?5!==o.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:s},0|o[1],0|o[2],0|o[3],0|o[4]]:console.error('PDFLinkService.setHash: "'.concat(s,'" is not ')+"a valid zoom value."):n=[null,{name:"XYZ"},o.length>1?0|o[1]:null,o.length>2?0|o[2]:null,c?c/100:s]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),"pagemode"in a&&this.eventBus.dispatch("pagemode",{source:this,mode:a.pagemode}),"nameddest"in a&&this.navigateTo(a.nameddest)}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(l){}if("string"==typeof n||function(e){if(!Array.isArray(e))return!1;var t=e.length;if(t<2)return!1;var n=e[0];if(!("object"===i(n)&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;var r=e[1];if("object"!==i(r)||"string"!=typeof r.name)return!1;var a=!0;switch(r.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;a=!1;break;default:return!1}for(var o=2;o1&&this.page--;break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}},{key:"cachePageRef",value:function(e,t){if(t){var n=0===t.gen?"".concat(t.num,"R"):"".concat(t.num,"R").concat(t.gen);this._pagesRefCache[n]=e}}},{key:"_cachedPageNumber",value:function(e){var t=0===e.gen?"".concat(e.num,"R"):"".concat(e.num,"R").concat(e.gen);return this._pagesRefCache&&this._pagesRefCache[t]||null}},{key:"isPageVisible",value:function(e){return this.pdfViewer.isPageVisible(e)}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(e){this.pdfViewer.currentPageNumber=e}},{key:"rotation",get:function(){return this.pdfViewer.pagesRotation},set:function(e){this.pdfViewer.pagesRotation=e}}]),e}(),t.SimpleLinkService=function(){function e(){a(this,e),this.externalLinkTarget=null,this.externalLinkRel=null,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=!1}return s(e,[{key:"navigateTo",value:function(e){}},{key:"getDestinationHash",value:function(e){return"#"}},{key:"getAnchorUrl",value:function(e){return"#"}},{key:"setHash",value:function(e){}},{key:"executeNamedAction",value:function(e){}},{key:"cachePageRef",value:function(e,t){}},{key:"isPageVisible",value:function(e){return!0}},{key:"pagesCount",get:function(){return 0}},{key:"page",get:function(){return 0},set:function(e){}},{key:"rotation",get:function(){return 0},set:function(e){}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultTextLayerFactory=t.TextLayerBuilder=void 0;var r=n(2);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0;if((this.textContent||this.textContentStream)&&!this.renderingDone){this.cancel(),this.textDivs=[];var n=document.createDocumentFragment();this.textLayerRenderTask=(0,r.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:n,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:t,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then(function(){e.textLayerDiv.appendChild(n),e._finishRendering(),e._updateMatches()},function(e){}),this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=function(t){t.pageIndex!==e.pageIdx&&-1!==t.pageIndex||e._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches))}}},{key:"cancel",value:function(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null)}},{key:"setTextContentStream",value:function(e){this.cancel(),this.textContentStream=e}},{key:"setTextContent",value:function(e){this.cancel(),this.textContent=e}},{key:"_convertMatches",value:function(e,t){if(!e)return[];for(var n=this.textContentItemsStr,r=0,i=0,a=n.length-1,o=this.findController.state.query.length,s=[],c=0,l=e.length;c=i+n[r].length;)i+=n[r].length,r++;r===n.length&&console.error("Could not find a matching mapping");var h={begin:{divIdx:r,offset:u-i}};for(u+=t?t[c]:o;r!==a&&u>i+n[r].length;)i+=n[r].length,r++;h.end={divIdx:r,offset:u-i},s.push(h)}return s}},{key:"_renderMatches",value:function(e){if(0!==e.length){var t=this.findController,n=this.pageIdx,r=this.textContentItemsStr,i=this.textDivs,a=n===t.selected.pageIdx,o=t.selected.matchIdx,s=null,c={divIdx:-1,offset:void 0},l=o,u=l+1;if(t.state.highlightAll)l=0,u=e.length;else if(!a)return;for(var h=l;h3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new s({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:r,eventBus:i})}}]),e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var r=n(2);var i=n(10).viewerCompatibilityParams.disableCreateObjectURL||!1;function a(e,t){var n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).appendChild(n),n.click(),n.remove()}t.DownloadManager=function(){function e(t){var n=t.disableCreateObjectURL,r=void 0===n?i:n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.disableCreateObjectURL=r}var t;return(t=[{key:"downloadUrl",value:function(e,t){(0,r.createValidAbsoluteUrl)(e,"http://example.com")&&a(e+"#pdfjs.action=download",t)}},{key:"downloadData",value:function(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(new Blob([e],{type:n}),t):a((0,r.createObjectURL)(e,n,this.disableCreateObjectURL),t)}},{key:"download",value:function(e,t,n){navigator.msSaveBlob?navigator.msSaveBlob(e,n)||this.downloadUrl(t,n):this.disableCreateObjectURL?this.downloadUrl(t,n):a(URL.createObjectURL(e),n)}}])&&function(e,t){for(var n=0;n1,u=/CriOS/.test(i);(c||u)&&(r.disableCreateObjectURL=!0),(l||s)&&(r.maxCanvasPixels=5242880);var h=Object.freeze(r);t.viewerCompatibilityParams=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0;var r,i=(r=n(4))&&r.__esModule?r:{default:r};function a(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function s(e){a(o,r,i,s,c,"next",e)}function c(e){a(o,r,i,s,c,"throw",e)}s(void 0)})}}n(12);var s=document.webL10n;t.GenericL10n=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._lang=t,this._ready=new Promise(function(e,n){s.setLanguage(t,function(){e(s)})})}var t,n,r,a,c,l;return t=e,(n=[{key:"getLanguage",value:(l=o(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.getLanguage());case 4:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"getDirection",value:(c=o(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.getDirection());case 4:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"get",value:(a=o(i.default.mark(function e(t,n,r){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.get(t,n,r));case 4:case"end":return e.stop()}},e,this)})),function(e,t,n){return a.apply(this,arguments)})},{key:"translate",value:(r=o(i.default.mark(function e(t){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready;case 2:return e.abrupt("return",e.sent.translate(t));case 4:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})}])&&function(e,t){for(var n=0;n0&&(o=e.substring(i+1),e=e.substring(0,i)),n&&((r={})[o]=n);var s=u(e,t,r);return s&&o in s?s[o]:"{{"+e+"}}"},getData:function(){return r},getText:function(){return i},getLanguage:function(){return o},setLanguage:function(e,n){!function(e,n){e&&(e=e.toLowerCase()),n=n||function(){},r={},i="",o="",o=e;var s=t.querySelectorAll('link[type="application/l10n"]'),u=s.length;if(0!==u){var h,d,p=0;d=function(){++p>=u&&(n(),c="complete")};for(var f=0;f0?(i=t.substring(0,s),o=t.substring(s+1)):(i=t,o=a),r[i]||(r[i]={}),r[i][o]=e[t]}n&&n()}(o)})}(e)},o)}(t,e,n,function(){console.warn(t+" not found."),console.warn('"'+e+'" resource not found'),o="",n()})}}}(e,function(){n&&n()})},getDirection:function(){var e=o.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),r=n.length,i=0;i=1&&n<=r.pagesCount&&n!==r.page&&!r.isPageVisible(n);case"findhighlightallchange":return!1}return!0}},{key:"_prepareMatches",value:function(e,t,n){function r(t){var n=e[t];if(t=0;r--){var i=e[r];if(!i.skipped){if(i.match+i.matchLength=n.match+n.matchLength)return n.skipped=!0,!0}}return!1}e.sort(function(e,t){return e.match===t.match?e.matchLength-t.matchLength:e.match-t.match});for(var i=0,a=e.length;i0){var r=e.charCodeAt(t),a=e.charCodeAt(t-1);if((0,i.getCharacterType)(r)===(0,i.getCharacterType)(a))return!1}var o=t+n-1;if(o0&&(this._matchesCountTotal+=o,this._updateUIResultsCount())}}},{key:"_extractText",value:function(){var e=this;if(!(this._extractTextPromises.length>0))for(var t=Promise.resolve(),n=function(n,i){var a=(0,r.createPromiseCapability)();e._extractTextPromises[n]=a.promise,t=t.then(function(){return e._pdfDocument.getPage(n+1).then(function(e){return e.getTextContent({normalizeWhitespace:!0})}).then(function(t){for(var r=t.items,i=[],o=0,s=r.length;o0)return a.matchIdx=t?a.matchIdx-1:a.matchIdx+1,void this._updateMatch(!0);this._advanceOffsetPage(t)}this._nextPageMatch()}}else this._updateUIState(o.FOUND)}},{key:"_matchesReady",value:function(e){var t=this._offset,n=e.length,r=this._state.findPrevious;return n?(t.matchIdx=r?n-1:0,this._updateMatch(!0),!0):(this._advanceOffsetPage(r),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this._updateMatch(!1),!0))}},{key:"_nextPageMatch",value:function(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");var e=null;do{var t=this._offset.pageIdx;if(!(e=this._pageMatches[t])){this._resumePageIdx=t;break}}while(!this._matchesReady(e))}},{key:"_advanceOffsetPage",value:function(e){var t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}},{key:"_updateMatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=o.NOT_FOUND,n=this._offset.wrapped;if(this._offset.wrapped=!1,e){var r=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?o.WRAPPED:o.FOUND,-1!==r&&r!==this._selected.pageIdx&&this._updatePage(r)}this._updateUIState(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this._updatePage(this._selected.pageIdx))}},{key:"_onFindBarClose",value:function(e){var t=this,n=this._pdfDocument;this._firstPageCapability.promise.then(function(){!t._pdfDocument||n&&t._pdfDocument!==n||(t._findTimeout&&(clearTimeout(t._findTimeout),t._findTimeout=null),t._resumePageIdx&&(t._resumePageIdx=null,t._dirtyMatch=!0),t._updateUIState(o.FOUND),t._highlightMatches=!1,t._updateAllPages())})}},{key:"_requestMatchesCount",value:function(){var e=this._selected,t=e.pageIdx,n=e.matchIdx,r=0,i=this._matchesCountTotal;if(-1!==n){for(var a=0;ai)&&(r=i=0),{current:r,total:i}}},{key:"_updateUIResultsCount",value:function(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this._requestMatchesCount()})}},{key:"_updateUIState",value:function(e,t){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this._requestMatchesCount()})}},{key:"highlightMatches",get:function(){return this._highlightMatches}},{key:"pageMatches",get:function(){return this._pageMatches}},{key:"pageMatchesLength",get:function(){return this._pageMatchesLength}},{key:"selected",get:function(){return this._selected}},{key:"state",get:function(){return this._state}},{key:"_query",get:function(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,this._normalizedQuery=l(this._state.query)),this._normalizedQuery}}])&&function(e,t){for(var n=0;n=97&&e<=122||e>=65&&e<=90}(e)||function(e){return e>=48&&e<=57}(e)||95===e?r.ALPHA_LETTER:r.PUNCT:function(e){return 3584==(65408&e)}(e)?r.THAI_LETTER:160===e?r.SPACE:r.ALPHA_LETTER:function(e){return e>=13312&&e<=40959||e>=63744&&e<=64255}(e)?r.HAN_LETTER:function(e){return e>=12448&&e<=12543}(e)?r.KATAKANA_LETTER:function(e){return e>=12352&&e<=12447}(e)?r.HIRAGANA_LETTER:function(e){return e>=65376&&e<=65439}(e)?r.HALFWIDTH_KATAKANA_LETTER:r.ALPHA_LETTER},t.CharacterType=void 0;var r={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDestHashesEqual=c,t.isDestArraysEqual=l,t.PDFHistory=void 0;var r=n(3);function i(e){return(i="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 a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(c){i=!0,a=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(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){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nthis._maxUid&&(this._maxUid=this._uid),void 0!==p.rotation&&(this._initialRotation=p.rotation),p.dest?(this._initialBookmark=JSON.stringify(p.dest),this._destination.page=null):p.hash?this._initialBookmark=p.hash:p.page&&(this._initialBookmark="page=".concat(p.page))}else console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.')}},{key:"reset",value:function(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}},{key:"push",value:function(e){var t=this,n=e.namedDest,r=void 0===n?null:n,i=e.explicitDest,a=e.pageNumber;if(this._initialized)if(r&&"string"!=typeof r)console.error("PDFHistory.push: "+'"'.concat(r,'" is not a valid namedDest parameter.'));else if(Array.isArray(i))if(Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount||null===a&&!this._destination){var o=r||JSON.stringify(i);if(o){var s=!1;if(this._destination&&(c(this._destination.hash,o)||l(this._destination.dest,i))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this._pushOrReplaceState({dest:i,hash:o,page:a,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(function(){t._popStateInProgress=!1})))}}else console.error("PDFHistory.push: "+'"'.concat(a,'" is not a valid pageNumber parameter.'));else console.error("PDFHistory.push: "+'"'.concat(i,'" is not a valid explicitDest parameter.'))}},{key:"pushCurrentPosition",value:function(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}},{key:"back",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}}},{key:"forward",value:function(){if(this._initialized&&!this._popStateInProgress){var e=window.history.state;this._isValidState(e)&&e.uid1&&void 0!==arguments[1]&&arguments[1],r=n||!this._destination,i={fingerprint:this._fingerprint,uid:r?this._uid:this._uid+1,destination:e};if(this._updateInternalState(e,i.uid),this._updateUrl&&e&&e.hash){var a=document.location.href.split("#")[0];a.startsWith("file://")||(t="".concat(a,"#").concat(e.hash))}r?window.history.replaceState(i,"",t):(this._maxUid=this._uid,window.history.pushState(i,"",t))}},{key:"_tryPushCurrentPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._position){var t=this._position;if(e&&((t=Object.assign(Object.create(null),this._position)).temporary=!0),this._destination){if(this._destination.temporary)this._pushOrReplaceState(t,!0);else if(this._destination.hash!==t.hash&&(this._destination.page||!(this._numPositionUpdates<=50))){var n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}}else this._pushOrReplaceState(t)}}},{key:"_isValidState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;var n=performance.getEntriesByType("navigation"),r=a(n,1),o=r[0];if(!o||"reload"!==o.type)return!1}return!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"===i(e.destination)}},{key:"_updateInternalState",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e&&e.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._numPositionUpdates=0}},{key:"_parseCurrentHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=unescape(s()).substring(1),n=(0,r.parseQueryString)(t),i=n.nameddest||"",a=0|n.page;return Number.isInteger(a)&&a>0&&a<=this.linkService.pagesCount&&!(e&&i.length>0)||(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}},{key:"_updateViewarea",value:function(e){var t=this,n=e.location;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:this._isViewerInPresentationMode?"page=".concat(n.pageNumber):n.pdfOpenParams.substring(1),page:this.linkService.page,first:n.pageNumber,rotation:n.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(function(){t._popStateInProgress||t._tryPushCurrentPosition(!0),t._updateViewareaTimeout=null},1e3))}},{key:"_popState",value:function(e){var t=this,n=e.state,i=s(),a=this._currentHash!==i;if(this._currentHash=i,n){if(this._isValidState(n)){this._popStateInProgress=!0,a&&(this._blockHashChange++,(0,r.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then(function(){t._blockHashChange--}));var o=n.destination;this._updateInternalState(o,n.uid,!0),this._uid>this._maxUid&&(this._maxUid=this._uid),(0,r.isValidRotation)(o.rotation)&&(this.linkService.rotation=o.rotation),o.dest?this.linkService.navigateTo(o.dest):o.hash?this.linkService.setHash(o.hash):o.page&&(this.linkService.page=o.page),Promise.resolve().then(function(){t._popStateInProgress=!1})}}else{this._uid++;var c=this._parseCurrentHash();this._pushOrReplaceState({hash:c.hash,page:c.page,rotation:c.rotation},!0)}}},{key:"_pageHide",value:function(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}},{key:"_bindEvents",value:function(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}},{key:"_unbindEvents",value:function(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}},{key:"popStateInProgress",get:function(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}},{key:"initialBookmark",get:function(){return this._initialized?this._initialBookmark:null}},{key:"initialRotation",get:function(){return this._initialized?this._initialRotation:null}}])&&function(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];if(this.zoomLayer){var t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}}},{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.cancelRendering(t),this.renderingState=s.RenderingStates.INITIAL;var n=this.div;n.style.width=Math.floor(this.viewport.width)+"px",n.style.height=Math.floor(this.viewport.height)+"px";for(var r=n.childNodes,i=e&&this.zoomLayer||null,a=t&&this.annotationLayer&&this.annotationLayer.div||null,o=r.length-1;o>=0;o--){var c=r[o];i!==c&&a!==c&&n.removeChild(c)}n.removeAttribute("data-loaded"),a?this.annotationLayer.hide():this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null),i||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon",n.appendChild(this.loadingIconDiv)}},{key:"update",value:function(e,t){if(this.scale=e||this.scale,void 0!==t&&(this.rotation=t),this.viewport=this.viewport.clone({scale:this.scale*a.CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.svg)return this.cssTransform(this.svg,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});var n=!1;if(this.canvas&&this.maxCanvasPixels>0){var r=this.outputScale;(Math.floor(this.viewport.width)*r.sx|0)*(Math.floor(this.viewport.height)*r.sy|0)>this.maxCanvasPixels&&(n=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&n)return this.cssTransform(this.canvas,!0),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now()});this.zoomLayer||this.canvas.hasAttribute("hidden")||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform(this.zoomLayer.firstChild),this.reset(!0,!0)}},{key:"cancelRendering",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!e&&this.annotationLayer&&(this.annotationLayer.cancel(),this.annotationLayer=null)}},{key:"cssTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.viewport.width,r=this.viewport.height,i=this.div;e.style.width=e.parentNode.style.width=i.style.width=Math.floor(n)+"px",e.style.height=e.parentNode.style.height=i.style.height=Math.floor(r)+"px";var a=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,o=Math.abs(a),s=1,c=1;90!==o&&270!==o||(s=r/n,c=n/r);var l="rotate("+a+"deg) scale("+s+","+c+")";if(e.style.transform=l,this.textLayer){var u=this.textLayer.viewport,h=this.viewport.rotation-u.rotation,d=Math.abs(h),p=n/u.width;90!==d&&270!==d||(p=n/u.height);var f,g,m=this.textLayer.textLayerDiv;switch(d){case 0:f=g=0;break;case 90:f=0,g="-"+m.style.height;break;case 180:f="-"+m.style.width,g="-"+m.style.height;break;case 270:f="-"+m.style.width,g=0;break;default:console.error("Bad rotation value.")}m.style.transform="rotate("+d+"deg) scale("+p+", "+p+") translate("+f+", "+g+")",m.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this.annotationLayer.render(this.viewport,"display")}},{key:"getPagePoint",value:function(e,t){return this.viewport.convertToPdfPoint(e,t)}},{key:"draw",value:function(){var e=this;this.renderingState!==s.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());var t=this.div,n=this.pdfPage;if(!n)return this.renderingState=s.RenderingStates.FINISHED,this.loadingIconDiv&&(t.removeChild(this.loadingIconDiv),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=s.RenderingStates.RUNNING;var r=document.createElement("div");r.style.width=t.style.width,r.style.height=t.style.height,r.classList.add("canvasWrapper"),this.annotationLayer&&this.annotationLayer.div?t.insertBefore(r,this.annotationLayer.div):t.appendChild(r);var l=null;if(this.textLayerMode!==a.TextLayerMode.DISABLE&&this.textLayerFactory){var u=document.createElement("div");u.className="textLayer",u.style.width=r.style.width,u.style.height=r.style.height,this.annotationLayer&&this.annotationLayer.div?t.insertBefore(u,this.annotationLayer.div):t.appendChild(u),l=this.textLayerFactory.createTextLayerBuilder(u,this.id-1,this.viewport,this.textLayerMode===a.TextLayerMode.ENABLE_ENHANCE,this.eventBus)}this.textLayer=l;var h=null;this.renderingQueue&&(h=function(t){if(!e.renderingQueue.isHighestPriority(e))return e.renderingState=s.RenderingStates.PAUSED,void(e.resume=function(){e.renderingState=s.RenderingStates.RUNNING,t()});t()});var d=function(){var r,a=(r=i.default.mark(function r(a){return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(p===e.paintTask&&(e.paintTask=null),!(a instanceof o.RenderingCancelledException)){r.next=4;break}return e.error=null,r.abrupt("return");case 4:if(e.renderingState=s.RenderingStates.FINISHED,e.loadingIconDiv&&(t.removeChild(e.loadingIconDiv),delete e.loadingIconDiv),e._resetZoomLayer(!0),e.error=a,e.stats=n.stats,e.eventBus.dispatch("pagerendered",{source:e,pageNumber:e.id,cssTransform:!1,timestamp:performance.now()}),!a){r.next=12;break}throw a;case 12:case"end":return r.stop()}},r)}),function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(e){c(a,n,i,o,s,"next",e)}function s(e){c(a,n,i,o,s,"throw",e)}o(void 0)})});return function(e){return a.apply(this,arguments)}}(),p=this.renderer===a.RendererType.SVG?this.paintOnSvg(r):this.paintOnCanvas(r);p.onRenderContinue=h,this.paintTask=p;var f=p.promise.then(function(){return d(null).then(function(){if(l){var e=n.streamTextContent({normalizeWhitespace:!0});l.setTextContentStream(e),l.render()}})},function(e){return d(e)});return this.annotationLayerFactory&&(this.annotationLayer||(this.annotationLayer=this.annotationLayerFactory.createAnnotationLayerBuilder(t,n,this.imageResourcesPath,this.renderInteractiveForms,this.l10n)),this.annotationLayer.render(this.viewport,"display")),t.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),f}},{key:"paintOnCanvas",value:function(e){var t=(0,o.createPromiseCapability)(),n={promise:t.promise,onRenderContinue:function(e){e()},cancel:function(){g.cancel()}},r=this.viewport,i=document.createElement("canvas");this.l10n.get("page_canvas",{page:this.id},"Page {{page}}").then(function(e){i.setAttribute("aria-label",e)}),i.setAttribute("hidden","hidden");var s=!0,c=function(){s&&(i.removeAttribute("hidden"),s=!1)};e.appendChild(i),this.canvas=i,i.mozOpaque=!0;var l=i.getContext("2d",{alpha:!1}),u=(0,a.getOutputScale)(l);if(this.outputScale=u,this.useOnlyCssZoom){var h=r.clone({scale:a.CSS_UNITS});u.sx*=h.width/r.width,u.sy*=h.height/r.height,u.scaled=!0}if(this.maxCanvasPixels>0){var d=Math.sqrt(this.maxCanvasPixels/(r.width*r.height));u.sx>d||u.sy>d?(u.sx=d,u.sy=d,u.scaled=!0,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}var p=(0,a.approximateFraction)(u.sx),f=(0,a.approximateFraction)(u.sy);i.width=(0,a.roundToDivide)(r.width*u.sx,p[0]),i.height=(0,a.roundToDivide)(r.height*u.sy,f[0]),i.style.width=(0,a.roundToDivide)(r.width,p[1])+"px",i.style.height=(0,a.roundToDivide)(r.height,f[1])+"px",this.paintedViewportMap.set(i,r);var g=this.pdfPage.render({canvasContext:l,transform:u.scaled?[u.sx,0,0,u.sy,0,0]:null,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms});return g.onContinue=function(e){c(),n.onRenderContinue?n.onRenderContinue(e):e()},g.promise.then(function(){c(),t.resolve(void 0)},function(e){c(),t.reject(e)}),n}},{key:"paintOnSvg",value:function(e){var t=this,n=!1,r=function(){if(n)throw new o.RenderingCancelledException("Rendering cancelled, page ".concat(t.id),"svg")},i=this.pdfPage,c=this.viewport.clone({scale:a.CSS_UNITS});return{promise:i.getOperatorList().then(function(n){return r(),new o.SVGGraphics(i.commonObjs,i.objs).getSVG(n,c).then(function(n){r(),t.svg=n,t.paintedViewportMap.set(n,c),n.style.width=e.style.width,n.style.height=e.style.height,t.renderingState=s.RenderingStates.FINISHED,e.appendChild(n)})}),onRenderContinue:function(e){e()},cancel:function(){n=!0}}}},{key:"setPageLabel",value:function(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}},{key:"width",get:function(){return this.viewport.width}},{key:"height",get:function(){return this.viewport.height}}])&&function(e,t){for(var n=0;n=this._previousPageNumber;this._ensurePageViewVisible(),this.update(),o(l(u.prototype),"_scrollIntoView",this).call(this,{pageDiv:n,pageSpot:i,pageNumber:s}),this._updateScrollDown=function(){t.scroll.down=c,t._updateScrollDown=null}}},{key:"_getVisiblePages",value:function(){return this._getCurrentVisiblePage()}},{key:"_updateHelper",value:function(e){}},{key:"_updateScrollMode",value:function(){}},{key:"_updateSpreadMode",value:function(){}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this._shadowViewer)}},{key:"_isScrollModeHorizontal",get:function(){return(0,i.shadow)(this,"_isScrollModeHorizontal",!1)}}])&&function(e,t){for(var n=0;n=0&&t.splice(r,1),t.push(n),t.length>e&&t.shift().destroy()},this.resize=function(n,i){if(e=n,i){for(var a=new Set,o=0,s=i.length;oe;)t.shift().destroy()}}function h(e,t){return t===e||Math.abs(t-e)<1e-15}t.BaseViewer=function(){function e(t){var n=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.constructor===e)throw new Error("Cannot initialize BaseViewer.");this._name=this.constructor.name,this.container=t.container,this.viewer=t.viewer||t.container.firstElementChild,this.eventBus=t.eventBus,this.linkService=t.linkService||new c.SimpleLinkService,this.downloadManager=t.downloadManager||null,this.findController=t.findController||null,this.removePageBorders=t.removePageBorders||!1,this.textLayerMode=Number.isInteger(t.textLayerMode)?t.textLayerMode:r.TextLayerMode.ENABLE,this.imageResourcesPath=t.imageResourcesPath||"",this.renderInteractiveForms=t.renderInteractiveForms||!1,this.enablePrintAutoRotate=t.enablePrintAutoRotate||!1,this.renderer=t.renderer||r.RendererType.CANVAS,this.enableWebGL=t.enableWebGL||!1,this.useOnlyCssZoom=t.useOnlyCssZoom||!1,this.maxCanvasPixels=t.maxCanvasPixels,this.l10n=t.l10n||r.NullL10n,this.defaultRenderingQueue=!t.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new i.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=t.renderingQueue,this.scroll=(0,r.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=r.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),Promise.resolve().then(function(){n.eventBus.dispatch("baseviewerinit",{source:n})})}var t;return(t=[{key:"getPageView",value:function(e){return this._pages[e]}},{key:"_setCurrentPageNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._currentPageNumber===e?(t&&this._resetCurrentPageView(),!0):07500)t._pagesCapability.resolve();else{var r=n-1;if(r<=0)t._pagesCapability.resolve();else for(var i=function(n){e.getPage(n).then(function(e){var i=t._pages[n-1];i.pdfPage||i.setPdfPage(e),t.linkService.cachePageRef(n,e.ref),0==--r&&t._pagesCapability.resolve()},function(e){console.error("Unable to get page ".concat(n," to initialize viewer"),e),0==--r&&t._pagesCapability.resolve()})},a=2;a<=n;++a)i(a)}}),t.eventBus.dispatch("pagesinit",{source:t}),t.defaultRenderingQueue&&t.update()}).catch(function(e){console.error("Unable to initialize viewer",e)})}}},{key:"setPageLabels",value:function(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("".concat(this._name,".setPageLabels: Invalid page labels."))):this._pageLabels=null;for(var t=0,n=this._pages.length;t2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this._currentScaleValue=t.toString(),h(this._currentScale,e))r&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});else{for(var i=0,a=this._pages.length;i1&&void 0!==arguments[1]&&arguments[1],n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{var i=this._pages[this._currentPageNumber-1];if(!i)return;var a=this.isInPresentationMode||this.removePageBorders,o=a?0:r.SCROLLBAR_PADDING,s=a?0:r.VERTICAL_PADDING;if(!a&&this._isScrollModeHorizontal){var c=[s,o];o=c[0],s=c[1]}var l=(this.container.clientWidth-o)/i.width*i.scale,u=(this.container.clientHeight-s)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=u;break;case"page-fit":n=Math.min(l,u);break;case"auto":var h=(0,r.isPortraitOrientation)(i)?l:Math.min(u,l);n=Math.min(r.MAX_AUTO_SCALE,h);break;default:return void console.error("".concat(this._name,'._setScale: "').concat(e,'" is an unknown zoom value.'))}this._setScaleUpdatePages(n,e,t,!0)}}},{key:"_resetCurrentPageView",value:function(){this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this._scrollIntoView({pageDiv:this._pages[this._currentPageNumber-1].div})}},{key:"scrollPageIntoView",value:function(e){var t=e.pageNumber,n=e.destArray,i=void 0===n?null:n,a=e.allowNegativeOffset,o=void 0!==a&&a,s=e.ignoreDestinationZoom,c=void 0!==s&&s;if(this.pdfDocument){var l=Number.isInteger(t)&&this._pages[t-1];if(l)if(!this.isInPresentationMode&&i){var u,h=0,d=0,p=0,f=0,g=l.rotation%180!=0,m=(g?l.height:l.width)/l.scale/r.CSS_UNITS,y=(g?l.width:l.height)/l.scale/r.CSS_UNITS,v=0;switch(i[1].name){case"XYZ":v=i[4],h=null!==(h=i[2])?h:0,d=null!==(d=i[3])?d:y;break;case"Fit":case"FitB":v="page-fit";break;case"FitH":case"FitBH":v="page-width",null===(d=i[2])&&this._location&&(h=this._location.left,d=this._location.top);break;case"FitV":case"FitBV":h=i[2],p=m,f=y,v="page-height";break;case"FitR":p=i[4]-(h=i[2]),u=(this.container.clientHeight-(this.removePageBorders?0:r.VERTICAL_PADDING))/(f=i[5]-(d=i[3]))/r.CSS_UNITS,v=Math.min(Math.abs((this.container.clientWidth-(this.removePageBorders?0:r.SCROLLBAR_PADDING))/p/r.CSS_UNITS),Math.abs(u));break;default:return void console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(i[1].name,'" is not a valid destination type.'))}if(c||(v&&v!==this._currentScale?this.currentScaleValue=v:this._currentScale===r.UNKNOWN_SCALE&&(this.currentScaleValue=r.DEFAULT_SCALE_VALUE)),"page-fit"!==v||i[4]){var b=[l.viewport.convertToViewportPoint(h,d),l.viewport.convertToViewportPoint(h+p,d+f)],_=Math.min(b[0][0],b[1][0]),w=Math.min(b[0][1],b[1][1]);o||(_=Math.max(_,0),w=Math.max(w,0)),this._scrollIntoView({pageDiv:l.div,pageSpot:{left:_,top:w},pageNumber:t})}else this._scrollIntoView({pageDiv:l.div,pageNumber:t})}else this._setCurrentPageNumber(t,!0);else console.error("".concat(this._name,".scrollPageIntoView: ")+'"'.concat(t,'" is not a valid pageNumber parameter.'))}}},{key:"_updateLocation",value:function(e){var t=this._currentScale,n=this._currentScaleValue,r=parseFloat(n)===t?Math.round(1e4*t)/100:n,i=e.id,a="#page="+i;a+="&zoom="+r;var o=this.container,s=this._pages[i-1].getPagePoint(o.scrollLeft-e.x,o.scrollTop-e.y),c=Math.round(s[0]),l=Math.round(s[1]);this._location={pageNumber:i,scale:r,top:l,left:c,rotation:this._pagesRotation,pdfOpenParams:a+=","+c+","+l}}},{key:"_updateHelper",value:function(e){throw new Error("Not implemented: _updateHelper")}},{key:"update",value:function(){var e=this._getVisiblePages(),t=e.views,n=t.length;if(0!==n){var r=Math.max(10,2*n+1);this._buffer.resize(r,t),this.renderingQueue.renderHighestPriority(e),this._updateHelper(t),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}}},{key:"containsElement",value:function(e){return this.container.contains(e)}},{key:"focus",value:function(){this.container.focus()}},{key:"_getCurrentVisiblePage",value:function(){if(!this.pagesCount)return{views:[]};var e=this._pages[this._currentPageNumber-1],t=e.div,n={id:e.id,x:t.offsetLeft+t.clientLeft,y:t.offsetTop+t.clientTop,view:e};return{first:n,last:n,views:[n]}}},{key:"_getVisiblePages",value:function(){return(0,r.getVisibleElements)(this.container,this._pages,!0,this._isScrollModeHorizontal)}},{key:"isPageVisible",value:function(e){return!!this.pdfDocument&&(e<1||e>this.pagesCount?(console.error("".concat(this._name,'.isPageVisible: "').concat(e,'" is out of bounds.')),!1):this._getVisiblePages().views.some(function(t){return t.id===e}))}},{key:"cleanup",value:function(){for(var e=0,t=this._pages.length;e3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return new l.TextLayerBuilder({textLayerDiv:e,eventBus:i,pageIndex:t,viewport:n,findController:this.isInPresentationMode?null:this.findController,enhanceTextSelection:!this.isInPresentationMode&&r})}},{key:"createAnnotationLayerBuilder",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=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.NullL10n;return new a.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:n,renderInteractiveForms:i,linkService:this.linkService,downloadManager:this.downloadManager,l10n:o})}},{key:"getPagesOverview",value:function(){var e=this._pages.map(function(e){var t=e.pdfPage.getViewport({scale:1});return{width:t.width,height:t.height,rotation:t.rotation}});if(!this.enablePrintAutoRotate)return e;var t=(0,r.isPortraitOrientation)(e[0]);return e.map(function(e){return t===(0,r.isPortraitOrientation)(e)?e:{width:e.height,height:e.width,rotation:(e.rotation+90)%360}})}},{key:"_updateScrollMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===r.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===r.ScrollMode.WRAPPED),this.pdfDocument&&e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}},{key:"_updateSpreadMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.pdfDocument){var t=this.viewer,n=this._pages;if(t.textContent="",this._spreadMode===r.SpreadMode.NONE)for(var i=0,a=n.length;i=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error("".concat(this._name,'.currentPageLabel: "').concat(e,'" is not a valid page.'))}}},{key:"currentScale",get:function(){return this._currentScale!==r.UNKNOWN_SCALE?this._currentScale:r.DEFAULT_SCALE},set:function(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}},{key:"currentScaleValue",get:function(){return this._currentScaleValue},set:function(e){this.pdfDocument&&this._setScale(e,!1)}},{key:"pagesRotation",get:function(){return this._pagesRotation},set:function(e){if(!(0,r.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(this.pdfDocument&&this._pagesRotation!==e){this._pagesRotation=e;for(var t=this._currentPageNumber,n=0,i=this._pages.length;nthis.container.clientWidth}},{key:"isVerticalScrollbarEnabled",get:function(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}},{key:"hasEqualPageSizes",get:function(){for(var e=this._pages[0],t=1,n=this._pages.length;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nl+s.clientWidth)&&(r={left:0,top:0})}c(h(d.prototype),"_scrollIntoView",this).call(this,{pageDiv:t,pageSpot:r,pageNumber:a})}},{key:"_getVisiblePages",value:function(){return this.isInPresentationMode?this._getCurrentVisiblePage():c(h(d.prototype),"_getVisiblePages",this).call(this)}},{key:"_updateHelper",value:function(e){if(!this.isInPresentationMode){var t,n=this._currentPageNumber,r=!1,i=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(e))){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a.percent<100)break;if(a.id===n){r=!0;break}}}catch(s){i.e(s)}finally{i.f()}r||(n=e[0].id),this._setCurrentPageNumber(n)}}},{key:"_viewerElement",get:function(){return(0,i.shadow)(this,"_viewerElement",this.viewer)}}])&&function(e,t){for(var n=0;n{class e{transform(e){return e.toString().replace(/,/g,"
")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"br",type:e,pure:!0}),e})()},"/uUt":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("7o/Q");function i(e,t){return n=>n.lift(new a(e,t))}class a{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o(e,this.compare,this.keySelector))}}class o extends r.a{constructor(e,t,n){super(e),this.keySelector=n,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:n}=this;t=n?n(e):e}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:e}=this;n=e(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))}}},0:function(e,t,n){e.exports=n("zUnb")},1:function(e,t){},"1G5W":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return t=>t.lift(new a(e))}class a{constructor(e){this.notifier=e}call(e,t){const n=new o(e),i=Object(r.c)(this.notifier,new r.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}class o extends r.b{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1KKV":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("fXoL"),i=n("aceb");const a=[[["router-outlet"]]],o=["router-outlet"];let s=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["rom-auth-layout"]],ngContentSelectors:o,decls:3,vars:0,consts:[["windowMode",""],[2,"padding","0"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](a),r["\u0275\u0275elementStart"](0,"nb-layout",0),r["\u0275\u0275elementStart"](1,"nb-layout-column",1),r["\u0275\u0275projection"](2),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())},directives:[i.W,i.V],styles:[".nb-theme-corporate [_nghost-%COMP%] .menu-sidebar[_ngcontent-%COMP%] .scrollable, .nb-theme-cosmic [_nghost-%COMP%] .menu-sidebar[_ngcontent-%COMP%] .scrollable, .nb-theme-dark [_nghost-%COMP%] .menu-sidebar[_ngcontent-%COMP%] .scrollable, .nb-theme-default [_nghost-%COMP%] .menu-sidebar[_ngcontent-%COMP%] .scrollable{padding-top:2.25rem}"]}),e})()},"1MpT":function(e,t,n){"use strict";n.d(t,"a",function(){return r});class r{static camelToSnakeCase(e){return e.replace(/([A-Z])/g," $1").split(" ").join("_").toLowerCase()}static isImageFile(e){var t=e.substring(e.lastIndexOf(".")+1).toLowerCase();return"png"==t||"jpeg"==t||"jpg"==t||"pdf"==t}static convertDateToUTC(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}static objFilter(e,t){return e.map(e=>t.reduce((t,n)=>(t[n]=e[n],t),{}))}}},2:function(e,t){},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("XNiG"),i=n("9ppp");class a extends r.a{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}next(e){super.next(this._value=e)}}},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=!1;const i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},3:function(e,t){},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("D0XW"),i=n("7o/Q"),a=n("WMd4");function o(e,t=r.a){var n;const i=(n=e)instanceof Date&&!isNaN(+n)?+e-t.now():Math.abs(e);return e=>e.lift(new s(i,t))}class s{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))}}class c extends i.a{constructor(e,t,n){super(e),this.delay=t,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,n=t.queue,r=e.scheduler,i=e.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){const t=Math.max(0,n[0].time-r.now());this.schedule(e,t)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,n=new l(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(a.a.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()}}class l{constructor(e,t){this.time=e,this.notification=t}}},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("quSY");class i extends r.a{constructor(e,t){super()}schedule(e,t=0){return this}}class a extends i{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n,r=!1;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}},"3Pt+":function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return qe}),n.d(t,"c",function(){return f}),n.d(t,"d",function(){return nt}),n.d(t,"e",function(){return fe}),n.d(t,"f",function(){return Pe}),n.d(t,"g",function(){return Le}),n.d(t,"h",function(){return Te}),n.d(t,"i",function(){return et}),n.d(t,"j",function(){return Ke}),n.d(t,"k",function(){return Ye}),n.d(t,"l",function(){return y}),n.d(t,"m",function(){return l}),n.d(t,"n",function(){return H}),n.d(t,"o",function(){return W}),n.d(t,"p",function(){return q}),n.d(t,"q",function(){return be}),n.d(t,"r",function(){return Ce}),n.d(t,"s",function(){return Fe}),n.d(t,"t",function(){return ke}),n.d(t,"u",function(){return Xe}),n.d(t,"v",function(){return tt}),n.d(t,"w",function(){return We}),n.d(t,"x",function(){return Re}),n.d(t,"y",function(){return _}),n.d(t,"z",function(){return Se}),n.d(t,"A",function(){return Be});var r=n("fXoL"),i=n("ofXK"),a=n("Cfvw"),o=n("cp0P"),s=n("lJxs");class c{}const l=new r.InjectionToken("NgValueAccessor"),u={provide:l,useExisting:Object(r.forwardRef)(()=>h),multi:!0};let h=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([u]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const d={provide:l,useExisting:Object(r.forwardRef)(()=>f),multi:!0},p=new r.InjectionToken("CompositionEventMode");let f=(()=>{class e{constructor(e,t,n){this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=e=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=Object(i.M)()?Object(i.M)().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](p,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,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&&r["\u0275\u0275listener"]("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:[r["\u0275\u0275ProvidersFeature"]([d])]}),e})();function g(e){return null==e||0===e.length}function m(e){return null!=e&&"number"==typeof e.length}const y=new r.InjectionToken("NgValidators"),v=new r.InjectionToken("NgAsyncValidators"),b=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _{static min(e){return function(e){return t=>{if(g(t.value)||g(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n{if(g(t.value)||g(e))return null;const n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}(e)}static required(e){return w(e)}static requiredTrue(e){return C(e)}static email(e){return function(e){return g(e.value)||b.test(e.value)?null:{email:!0}}(e)}static minLength(e){return S(e)}static maxLength(e){return x(e)}static pattern(e){return k(e)}static nullValidator(e){return null}static compose(e){return I(e)}static composeAsync(e){return D(e)}}function w(e){return g(e.value)?{required:!0}:null}function C(e){return!0===e.value?null:{required:!0}}function S(e){return t=>g(t.value)||!m(t.value)?null:t.value.lengthm(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function k(e){if(!e)return A;let t,n;return"string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),e=>{if(g(e.value))return null;const r=e.value;return t.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}function A(e){return null}function O(e){return null!=e}function E(e){const t=Object(r["\u0275isPromise"])(e)?Object(a.a)(e):e;return Object(r["\u0275isObservable"])(t),t}function P(e){let t={};return e.forEach(e=>{t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function M(e,t){return t.map(t=>t(e))}function T(e){return e.map(e=>function(e){return!e.validate}(e)?e:t=>e.validate(t))}function I(e){if(!e)return null;const t=e.filter(O);return 0==t.length?null:function(e){return P(M(e,t))}}function L(e){return null!=e?I(T(e)):null}function D(e){if(!e)return null;const t=e.filter(O);return 0==t.length?null:function(e){const n=M(e,t).map(E);return Object(o.a)(n).pipe(Object(s.a)(P))}}function j(e){return null!=e?D(T(e)):null}function R(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function F(e){return e._rawValidators}function N(e){return e._rawAsyncValidators}let V=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=L(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=j(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e}),e})(),z=(()=>{class e extends V{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(t){return B(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const B=r["\u0275\u0275getInheritedFactory"](z);class H extends V{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class U{constructor(e){this._cd=e}is(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}let W=(()=>{class e extends U{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](H,2))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),q=(()=>{class e extends U{constructor(e){super(e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&r["\u0275\u0275classProp"]("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[r["\u0275\u0275InheritDefinitionFeature"]]}),e})();function $(e,t){return[...t.path,e]}function G(e,t){K(e,t,!0),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&X(e,t)})}(e,t),function(e,t){const n=(e,n)=>{t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&X(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=e=>{t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Y(e,t,n=!0){const r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),Z(e,t,!0),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Q(e,t){e.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function K(e,t,n){const r=F(e);null!==t.validator?e.setValidators(R(r,t.validator)):"function"==typeof r&&e.setValidators([r]);const i=N(e);if(null!==t.asyncValidator?e.setAsyncValidators(R(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]),n){const n=()=>e.updateValueAndValidity();Q(t._rawValidators,n),Q(t._rawAsyncValidators,n)}}function Z(e,t,n){let r=!1;if(null!==e){if(null!==t.validator){const n=F(e);if(Array.isArray(n)&&n.length>0){const i=n.filter(e=>e!==t.validator);i.length!==n.length&&(r=!0,e.setValidators(i))}}if(null!==t.asyncValidator){const n=N(e);if(Array.isArray(n)&&n.length>0){const i=n.filter(e=>e!==t.asyncValidator);i.length!==n.length&&(r=!0,e.setAsyncValidators(i))}}}if(n){const e=()=>{};Q(t._rawValidators,e),Q(t._rawAsyncValidators,e)}return r}function X(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function J(e,t){K(e,t,!1)}function ee(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}function te(e,t){e._syncPendingControls(),t.forEach(e=>{const t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function ne(e,t){if(!t)return null;let n,r,i;return Array.isArray(t),t.forEach(e=>{e.constructor===f?n=e:Object.getPrototypeOf(e.constructor)===c?r=e:i=e}),i||r||n||null}function re(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ie="VALID",ae="INVALID",oe="PENDING",se="DISABLED";function ce(e){return(de(e)?e.validators:e)||null}function le(e){return Array.isArray(e)?L(e):e||null}function ue(e,t){return(de(t)?t.asyncValidators:e)||null}function he(e){return Array.isArray(e)?j(e):e||null}function de(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class pe{constructor(e,t){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=le(this._rawValidators),this._composedAsyncValidatorFn=he(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ie}get invalid(){return this.status===ae}get pending(){return this.status==oe}get disabled(){return this.status===se}get enabled(){return this.status!==se}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=le(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=he(e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=oe,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=se,this.errors=null,this._forEachChild(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(e=>e(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=ie,this._forEachChild(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(e=>e(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==ie&&this.status!==oe||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)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?se:ie}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=oe,this._hasOwnPendingAsyncValidator=!0;const t=E(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(t=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(t,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(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;let r=e;return t.forEach(e=>{r=r instanceof ge?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof me&&r.at(e)||null}),r}(this,e)}getError(e,t){const n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new r.EventEmitter,this.statusChanges=new r.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?se:this.errors?ae:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(oe)?oe:this._anyControlsHaveStatus(ae)?ae:ie}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){de(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class fe extends pe{constructor(e=null,t,n){super(ce(t),ue(n,t)),this._onChange=[],this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(e=>e(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=null,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){re(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){re(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(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}}class ge extends pe{constructor(e,t,n){super(ce(t),ue(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){this._checkAllValuesPresent(e),Object.keys(e).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t instanceof fe?t.value:t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(e,t)=>!!t._syncPendingControls()||e);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(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: ${e}.`)}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const n=this.controls[t];if(this.contains(t)&&e(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(e,t){let n=e;return this._forEachChild((e,r)=>{n=t(n,e,r)}),n}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class me extends pe{constructor(e,t,n){super(ce(t),ue(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!n})}at(e){return this.controls[e]}push(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}insert(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}removeAt(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity()}setControl(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){this._checkAllValuesPresent(e),e.forEach((e,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((e,n)=>{this.at(n)&&this.at(n).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,r)=>{n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e instanceof fe?e.value:e.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let e=this.controls.reduce((e,t)=>!!t._syncPendingControls()||e,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_throwIfControlMissing(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}`)}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_checkAllValuesPresent(e){this._forEachChild((t,n)=>{if(void 0===e[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const ye={provide:z,useExisting:Object(r.forwardRef)(()=>be)},ve=(()=>Promise.resolve(null))();let be=(()=>{class e extends z{constructor(e,t){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new r.EventEmitter,this.form=new ge({},L(e),j(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ve.then(()=>{const t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),G(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ve.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name),re(this._directives,e)})}addFormGroup(e){ve.then(()=>{const t=this._findContainer(e.path),n=new ge({});J(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ve.then(()=>{const t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){ve.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submitted=!0,te(this.form,this._directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](y,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([ye]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const _e={provide:H,useExisting:Object(r.forwardRef)(()=>Ce)},we=(()=>Promise.resolve(null))();let Ce=(()=>{class e extends H{constructor(e,t,n,i){super(),this.control=new fe,this._registered=!1,this.update=new r.EventEmitter,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ne(0,i)}ngOnChanges(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),ee(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?$(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){G(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){we.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1})})}_updateDisabled(e){const t=e.isDisabled.currentValue,n=""===t||t&&"false"!==t;we.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,9),r["\u0275\u0275directiveInject"](y,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r["\u0275\u0275ProvidersFeature"]([_e]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})(),Se=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})();const xe={provide:l,useExisting:Object(r.forwardRef)(()=>ke),multi:!0};let ke=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this.onChange=e=>{},this.onTouched=()=>{}}writeValue(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}registerOnChange(e){this.onChange=t=>{e(""==t?null:parseFloat(t))}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[r["\u0275\u0275ProvidersFeature"]([xe]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Ae=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({}),e})();const Oe=new r.InjectionToken("NgModelWithFormControlWarning"),Ee={provide:H,useExisting:Object(r.forwardRef)(()=>Pe)};let Pe=(()=>{class e extends H{constructor(e,t,n,i){super(),this._ngModelWarningConfig=i,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=ne(0,n)}set isDisabled(e){}ngOnChanges(e){if(this._isControlChanged(e)){const t=e.form.previousValue;t&&Y(t,this,!1),G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}ee(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Y(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](y,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10),r["\u0275\u0275directiveInject"](Oe,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Ee]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const Me={provide:z,useExisting:Object(r.forwardRef)(()=>Te)};let Te=(()=>{class e extends z{constructor(e,t){super(),this.validators=e,this.asyncValidators=t,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new r.EventEmitter,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Z(this.form,this,!1),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const t=this.form.get(e.path);return G(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Y(e.control||null,e,!1),re(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this.submitted=!0,te(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const t=e.control,n=this.form.get(e.path);t!==n&&(Y(t||null,e),n instanceof fe&&(G(n,e),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const t=this.form.get(e.path);J(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const t=this.form.get(e.path);t&&function(e,t){return Z(e,t,!1)}(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){K(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](y,10),r["\u0275\u0275directiveInject"](v,10))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formGroup",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r["\u0275\u0275ProvidersFeature"]([Me]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Ie={provide:H,useExisting:Object(r.forwardRef)(()=>Le)};let Le=(()=>{class e extends H{constructor(e,t,n,i,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.update=new r.EventEmitter,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ne(0,i)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),ee(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return $(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](z,13),r["\u0275\u0275directiveInject"](y,10),r["\u0275\u0275directiveInject"](v,10),r["\u0275\u0275directiveInject"](l,10),r["\u0275\u0275directiveInject"](Oe,8))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r["\u0275\u0275ProvidersFeature"]([Ie]),r["\u0275\u0275InheritDefinitionFeature"],r["\u0275\u0275NgOnChangesFeature"]]}),e._ngModelWarningSentOnce=!1,e})();const De={provide:l,useExisting:Object(r.forwardRef)(()=>Re),multi:!0};function je(e,t){return null==e?`${t}`:(t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let Re=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=je(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(e){this.onChange=t=>{this.value=this._getOptionValue(t),e(this.value)}}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const t of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(t),e))return t;return null}_getOptionValue(e){const t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("change",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},inputs:{compareWith:"compareWith"},features:[r["\u0275\u0275ProvidersFeature"]([De]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})(),Fe=(()=>{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(je(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](Re,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const Ne={provide:l,useExisting:Object(r.forwardRef)(()=>ze),multi:!0};function Ve(e,t){return null==e?`${t}`:("string"==typeof t&&(t=`'${t}'`),t&&"object"==typeof t&&(t="Object"),`${e}: ${t}`.slice(0,50))}let ze=(()=>{class e extends c{constructor(e,t){super(),this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=e=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let t;if(this.value=e,Array.isArray(e)){const n=e.map(e=>this._getOptionId(e));t=(e,t)=>{e._setSelected(n.indexOf(t.toString())>-1)}}else t=(e,t)=>{e._setSelected(!1)};this._optionMap.forEach(t)}registerOnChange(e){this.onChange=t=>{const n=[];if(void 0!==t.selectedOptions){const e=t.selectedOptions;for(let t=0;t{class e{constructor(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue(Ve(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ve(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef),r["\u0275\u0275directiveInject"](r.Renderer2),r["\u0275\u0275directiveInject"](ze,9))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),e})();const He={provide:y,useExisting:Object(r.forwardRef)(()=>We),multi:!0},Ue={provide:y,useExisting:Object(r.forwardRef)(()=>qe),multi:!0};let We=(()=>{class e{constructor(){this._required=!1}get required(){return this._required}set required(e){this._required=null!=e&&!1!==e&&"false"!=`${e}`,this._onChange&&this._onChange()}validate(e){return this.required?w(e):null}registerOnValidatorChange(e){this._onChange=e}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},inputs:{required:"required"},features:[r["\u0275\u0275ProvidersFeature"]([He])]}),e})(),qe=(()=>{class e extends We{validate(e){return this.required?C(e):null}}return e.\u0275fac=function(t){return $e(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("required",t.required?"":null)},features:[r["\u0275\u0275ProvidersFeature"]([Ue]),r["\u0275\u0275InheritDefinitionFeature"]]}),e})();const $e=r["\u0275\u0275getInheritedFactory"](qe),Ge={provide:y,useExisting:Object(r.forwardRef)(()=>Ye),multi:!0};let Ye=(()=>{class e{constructor(){this._validator=A}ngOnChanges(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null==this.minlength?null:this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=S("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[r["\u0275\u0275ProvidersFeature"]([Ge]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Qe={provide:y,useExisting:Object(r.forwardRef)(()=>Ke),multi:!0};let Ke=(()=>{class e{constructor(){this._validator=A}ngOnChanges(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return null!=this.maxlength?this._validator(e):null}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=x("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[r["\u0275\u0275ProvidersFeature"]([Qe]),r["\u0275\u0275NgOnChangesFeature"]]}),e})();const Ze={provide:y,useExisting:Object(r.forwardRef)(()=>Xe),multi:!0};let Xe=(()=>{class e{constructor(){this._validator=A}ngOnChanges(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}_createValidator(){this._validator=k(this.pattern)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&r["\u0275\u0275attribute"]("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[r["\u0275\u0275ProvidersFeature"]([Ze]),r["\u0275\u0275NgOnChangesFeature"]]}),e})(),Je=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({imports:[[Ae]]}),e})(),et=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({imports:[Je]}),e})(),tt=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Oe,useValue:t.warnOnNgModelWithFormControl}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({imports:[Je]}),e})(),nt=(()=>{class e{group(e,t=null){const n=this._reduceControls(e);let r,i=null,a=null;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,a=null!=t.asyncValidators?t.asyncValidators:null,r=null!=t.updateOn?t.updateOn:void 0):(i=null!=t.validator?t.validator:null,a=null!=t.asyncValidator?t.asyncValidator:null)),new ge(n,{asyncValidators:a,updateOn:r,validators:i})}control(e,t,n){return new fe(e,t,n)}array(e,t,n){const r=e.map(e=>this._createControl(e));return new me(r,t,n)}_reduceControls(e){const t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){return e instanceof fe||e instanceof ge||e instanceof me?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(r["\u0275\u0275defineInjectable"])({factory:function(){return new e},token:e,providedIn:tt}),e})()},4:function(e,t){},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})()},5:function(e,t){},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("lJxs"),i=n("Cfvw"),a=n("zx2A");function o(e,t,n=Number.POSITIVE_INFINITY){return"function"==typeof t?a=>a.pipe(o((n,a)=>Object(i.a)(e(n,a)).pipe(Object(r.a)((e,r)=>t(n,e,a,r))),n)):("number"==typeof t&&(n=t),t=>t.lift(new s(e,n)))}class s{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new c(e,this.project,this.concurrent))}}class c extends a.b{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"786k":function(e,t,n){"use strict";n.d(t,"a",function(){return B});var r=n("ucZK"),i=n("fXoL"),a=n("vEZ/"),o=n("aceb"),s=n("IfeN"),c=n("ofXK"),l=n("3Pt+"),u=n("xe5G"),h=n("nsUv");function d(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"p",14),i["\u0275\u0275text"](1),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](1),i["\u0275\u0275textInterpolate"](null==e.notification?null:e.notification.description)}}function p(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",3),i["\u0275\u0275text"](1," Username: "),i["\u0275\u0275elementStart"](2,"span",15),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](null==e.notification?null:e.notification.username)}}function f(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",3),i["\u0275\u0275text"](1," Password (OTP): "),i["\u0275\u0275elementStart"](2,"span",15),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](null==e.notification?null:e.notification.password)}}function g(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",3),i["\u0275\u0275text"](1," Percentage: "),i["\u0275\u0275elementStart"](2,"span",15),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](null==e.notification?null:e.notification.percentage)}}function m(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",3),i["\u0275\u0275text"](1," Last access date: "),i["\u0275\u0275elementStart"](2,"span",15),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](null==e.notification?null:e.notification.lastLoginDate)}}function y(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"h5",3),i["\u0275\u0275text"](1," Time remaining: "),i["\u0275\u0275elementStart"](2,"span",15),i["\u0275\u0275text"](3),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()),2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275textInterpolate"](e.PACTimer)}}function v(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onClickYes()}),i["\u0275\u0275text"](1,"Yes"),i["\u0275\u0275elementEnd"]()}}function b(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"button",17),i["\u0275\u0275text"](1,"Confirm"),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](28);i["\u0275\u0275property"]("nbPopover",e)}}function _(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"button",18),i["\u0275\u0275text"](1,"No"),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](26);i["\u0275\u0275property"]("nbPopover",e)}}function w(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"button",18),i["\u0275\u0275text"](1,"No"),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](30);i["\u0275\u0275property"]("nbPopover",e)}}function C(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",19),i["\u0275\u0275listener"]("click",function(){i["\u0275\u0275restoreView"](e);const t=i["\u0275\u0275nextContext"]();return t.getFHCFile(t.notification.sender,t.notification.restaurantId)}),i["\u0275\u0275text"](1,"View certificate"),i["\u0275\u0275elementEnd"]()}}function S(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"button",16),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().updateFHC(!0)}),i["\u0275\u0275text"](1,"Approve"),i["\u0275\u0275elementEnd"]()}}function x(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"button",18),i["\u0275\u0275text"](1,"Reject"),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](32);i["\u0275\u0275property"]("nbPopover",e)}}function k(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Username is required "),i["\u0275\u0275elementEnd"]())}function A(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",31),i["\u0275\u0275template"](1,k,2,0,"div",32),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](8);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.required)}}function O(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Password is required "),i["\u0275\u0275elementEnd"]())}function E(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Password should be 6 characters long "),i["\u0275\u0275elementEnd"]())}function P(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",31),i["\u0275\u0275template"](1,O,2,0,"div",32),i["\u0275\u0275template"](2,E,2,0,"div",32),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](15);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.required),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.minlength)}}function M(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"nb-card",20),i["\u0275\u0275elementStart"](1,"nb-card-header"),i["\u0275\u0275text"](2,"Send Popeyes Academy Credentials"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"nb-card-body"),i["\u0275\u0275elementStart"](4,"div",21),i["\u0275\u0275elementStart"](5,"label",22),i["\u0275\u0275text"](6,"Username"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"input",23,24),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().PACUsername=t}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](9,A,2,1,"div",25),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",21),i["\u0275\u0275elementStart"](11,"label",22),i["\u0275\u0275text"](12,"Password"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"nb-form-field"),i["\u0275\u0275elementStart"](14,"input",26,27),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().PACUserPassword=t}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"button",28),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().toggleShowPassword()}),i["\u0275\u0275element"](17,"nb-icon",29),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](18,P,3,2,"div",25),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](19,"nb-card-footer"),i["\u0275\u0275elementStart"](20,"div",3),i["\u0275\u0275elementStart"](21,"button",30),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().onClickNo()}),i["\u0275\u0275text"](22,"Send Details"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275reference"](8),t=i["\u0275\u0275reference"](15),n=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](7),i["\u0275\u0275property"]("ngModel",n.PACUsername),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",e.dirty&&e.invalid),i["\u0275\u0275advance"](5),i["\u0275\u0275property"]("type",n.getInputType())("ngModel",n.PACUserPassword),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("icon",n.showPassword?"eye-outline":"eye-off-2-outline"),i["\u0275\u0275attribute"]("aria-label",n.showPassword?"hide password":"show password"),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.dirty&&t.invalid)}}function T(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"nb-card",20),i["\u0275\u0275elementStart"](1,"nb-card-header"),i["\u0275\u0275text"](2," Upload User Profile Statistics "),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"nb-card-body"),i["\u0275\u0275elementStart"](4,"input",33,34),i["\u0275\u0275listener"]("change",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().fileChangeEvent(t)}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"nb-card-footer"),i["\u0275\u0275elementStart"](7,"button",35),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().uploadUserProfileStatisticsFile()}),i["\u0275\u0275text"](8,"submit"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](4),i["\u0275\u0275propertyInterpolate"]("id",e.name),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",!e.userProfileStatisticsFile)}}function I(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Percentage is required "),i["\u0275\u0275elementEnd"]())}function L(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Please enter a value between 0 and 100 "),i["\u0275\u0275elementEnd"]())}function D(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",31),i["\u0275\u0275template"](1,I,2,0,"div",32),i["\u0275\u0275template"](2,L,2,0,"div",32),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](8);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.required),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.pattern)}}function j(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Last login date is required "),i["\u0275\u0275elementEnd"]())}function R(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",31),i["\u0275\u0275template"](1,j,2,0,"div",32),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](14);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.required)}}function F(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"nb-card",20),i["\u0275\u0275elementStart"](1,"nb-card-header"),i["\u0275\u0275text"](2,"User Profile Statistics"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](3,"nb-card-body"),i["\u0275\u0275elementStart"](4,"div",21),i["\u0275\u0275elementStart"](5,"label",22),i["\u0275\u0275text"](6,"Percentage"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](7,"input",36,37),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().userProfileStatisticsPercentage=t}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](9,D,3,2,"div",25),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](10,"div",21),i["\u0275\u0275elementStart"](11,"label",22),i["\u0275\u0275text"](12,"Last login date (DD-MM-YYYY)"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](13,"input",38,39),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().userProfileStatisticsLastLoginDate=t}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](15,R,2,1,"div",25),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](16,"nb-card-footer"),i["\u0275\u0275elementStart"](17,"div",3),i["\u0275\u0275elementStart"](18,"button",40),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().uploadUserProfileStatistics()}),i["\u0275\u0275text"](19,"Submit"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275reference"](8),t=i["\u0275\u0275reference"](14),n=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](7),i["\u0275\u0275property"]("ngModel",n.userProfileStatisticsPercentage),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",e.dirty&&e.invalid),i["\u0275\u0275advance"](4),i["\u0275\u0275property"]("ngModel",n.userProfileStatisticsLastLoginDate),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",t.dirty&&t.invalid),i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("disabled",e.invalid||t.invalid)}}function N(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"div"),i["\u0275\u0275text"](1," Comments is required "),i["\u0275\u0275elementEnd"]())}function V(e,t){if(1&e&&(i["\u0275\u0275elementStart"](0,"div",31),i["\u0275\u0275template"](1,N,2,0,"div",32),i["\u0275\u0275elementEnd"]()),2&e){i["\u0275\u0275nextContext"]();const e=i["\u0275\u0275reference"](4);i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",null==e.errors?null:e.errors.required)}}function z(e,t){if(1&e){const e=i["\u0275\u0275getCurrentView"]();i["\u0275\u0275elementStart"](0,"nb-card",20),i["\u0275\u0275elementStart"](1,"nb-card-body"),i["\u0275\u0275elementStart"](2,"div",21),i["\u0275\u0275elementStart"](3,"textarea",41,42),i["\u0275\u0275listener"]("ngModelChange",function(t){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().FHCRejectMessage=t}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](5,V,2,1,"div",25),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"nb-card-footer"),i["\u0275\u0275elementStart"](7,"div",3),i["\u0275\u0275elementStart"](8,"button",30),i["\u0275\u0275listener"]("click",function(){return i["\u0275\u0275restoreView"](e),i["\u0275\u0275nextContext"]().updateFHC(!1)}),i["\u0275\u0275text"](9,"Submit"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"]()}if(2&e){const e=i["\u0275\u0275reference"](4),t=i["\u0275\u0275nextContext"]();i["\u0275\u0275advance"](3),i["\u0275\u0275property"]("ngModel",t.FHCRejectMessage),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf",e.touched&&e.invalid)}}let B=(()=>{class e{constructor(e,t,n,r){this.userService=e,this.dialogService=t,this.dialogRef=n,this.notificationService=r,this.showPassword=!0}ngOnInit(){this.notification.endDate&&this.pacTimer(new Date(this.notification.endDate))}onClickYes(){"1"===this.notification.typeId?this.updatePACStatus({status:!1,received_popeyes_academy_credentials:!0}):"2"===this.notification.typeId&&this.updatePacStatus({status:!1,finished_popeyes_academy_course:!0})}onClickNo(){"1"===this.notification.typeId?this.updatePACStatus({status:!1,received_popeyes_academy_credentials:!1}):"2"===this.notification.typeId&&this.updatePacStatus({status:!1,finished_popeyes_academy_course:!1})}updatePACStatus(e){this.userService.updatePopeyesAcademyCredentialsStatus(e,this.notification.sender,this.notification.receiver,this.PACUsername,this.PACUserPassword,this.notification.restaurantId).subscribe(e=>{this.notificationService.changeNotificationActionStatus(this.notification.objectId).subscribe(e=>{this.dismiss()})})}updatePacStatus(e){this.userService.updatePopeyesAcademyCourseStatus(e,this.notification.sender,this.notification.receiver,this.userProfileStatisticsPercentage,this.userProfileStatisticsLastLoginDate,this.notification.restaurantId).subscribe(e=>{this.notificationService.changeNotificationActionStatus(this.notification.objectId).subscribe(e=>{this.dismiss()})})}dismiss(){this.dialogRef.close(),"5"===this.notification.typeId&&this.updateUserDetails(this.notification.receiver)}fileChangeEvent(e){this.userProfileStatisticsFile=e.target.files[0]}uploadUserProfileStatisticsFile(){this.userService.uploadUserProfileStatictics(this.userProfileStatisticsFile,this.notification.sender).subscribe(e=>{this.updatePacStatus({status:!1,finished_popeyes_academy_course:!0})})}uploadUserProfileStatistics(){this.updatePacStatus({status:!1,finished_popeyes_academy_course:!1})}getFHCFile(e,t){this.userService.getImageApprovedUser({email:e,restaurant_id:t,image_key:"fhc"},localStorage.getItem("token")).subscribe(e=>{let t=URL.createObjectURL(e);this.viewFHCFile(t)})}viewFHCFile(e){this.dialogService.open(r.a,{context:{pdfSrc:e}})}updateFHC(e){this.userService.updateFoodHandlerCertificateStatus(e,this.notification.sender,this.notification.receiver,e?null:this.FHCRejectMessage,this.notification.restaurantId).subscribe(e=>{this.notificationService.changeNotificationActionStatus(this.notification.objectId).subscribe(e=>{this.dismiss()})})}pacTimer(e){let t=this.getTimeRemaining(e);if(console.log(t),t.timeleft<1e3)this.PACTimer="00:00";else{const t=setInterval(()=>{let n=this.getTimeRemaining(e);this.PACTimer="days: "+n.days+" hours: "+n.hours+" minutes: "+n.minutes+" seconds: "+n.seconds,n.timeleft<1e3&&clearInterval(t)},1e3)}}updateUserDetails(e){this.userService.getUserInfo(e).subscribe(e=>{localStorage.setItem("activeUser",JSON.stringify(e)),location.reload()})}getInputType(){return this.showPassword?"text":"password"}toggleShowPassword(){this.showPassword=!this.showPassword}getTimeRemaining(e){var t=(new Date).getTime(),n=e.getTime()-t;return{timeleft:n,days:Math.floor(n/864e5),hours:Math.floor(n%864e5/36e5),minutes:Math.floor(n%36e5/6e4),seconds:Math.floor(n%6e4/1e3)}}}return e.\u0275fac=function(t){return new(t||e)(i["\u0275\u0275directiveInject"](a.a),i["\u0275\u0275directiveInject"](o.N),i["\u0275\u0275directiveInject"](o.M),i["\u0275\u0275directiveInject"](s.a))},e.\u0275cmp=i["\u0275\u0275defineComponent"]({type:e,selectors:[["app-notification-dialog"]],inputs:{notification:"notification"},decls:33,vars:17,consts:[["status","primary",1,"dialog-card"],[1,"d-flex","justify-content-between"],["nbButton","","status","danger","icon","close-outline",3,"click"],[1,"text-center"],["class","text-center text-muted",4,"ngIf"],["class","text-center",4,"ngIf"],["nbButton","","hero","","status","success","class","mr-2",3,"click",4,"ngIf"],["nbButton","","hero","","status","success","class","mr-2",3,"nbPopover",4,"ngIf"],["nbButton","","hero","","status","danger",3,"nbPopover",4,"ngIf"],["nbButton","","hero","","status","primary","class","mr-2",3,"click",4,"ngIf"],["createPACredentialsPopover",""],["userProfileStatisticsConfirmPopover",""],["userProfileStatisticsNoPopover",""],["FHCRejectPopover",""],[1,"text-center","text-muted"],[1,"text-primary"],["nbButton","","hero","","status","success",1,"mr-2",3,"click"],["nbButton","","hero","","status","success",1,"mr-2",3,"nbPopover"],["nbButton","","hero","","status","danger",3,"nbPopover"],["nbButton","","hero","","status","primary",1,"mr-2",3,"click"],[1,"mb-0"],[1,"form-group"],[1,"label"],["name","quantity","type","text","nbInput","","fullWidth","","id","username","name","username","required","","placeholder","Enter username",3,"ngModel","ngModelChange"],["username","ngModel"],["class","text-warning",4,"ngIf"],["nbInput","","fullWidth","","id","password","name","password","required","","minlength","6","autocomplete","new-password","placeholder","Enter password",3,"type","ngModel","ngModelChange"],["password","ngModel"],["nbSuffix","","nbButton","","ghost","",3,"click"],["pack","eva",3,"icon"],["nbButton","","hero","","status","primary",3,"click"],[1,"text-warning"],[4,"ngIf"],["type","file","accept","application/pdf",3,"id","change"],["fileDropRef",""],["type","submit","nbButton","","hero","","status","primary",3,"disabled","click"],["name","percentage","type","text","nbInput","","fullWidth","","id","percentage","name","percentage","pattern","^(0*(\\d{1,2}(\\.\\d+)?)|\\.\\d+|100(\\.0+$)?)$","required","","NumbersOnly","","placeholder","Percentage",3,"ngModel","ngModelChange"],["percentage","ngModel"],["type","date","nbInput","","fullWidth","","id","loginDate","name","loginDate","placeholder","Last login date","required","",3,"ngModel","ngModelChange"],["loginDate","ngModel"],["nbButton","","hero","","status","primary",3,"disabled","click"],["nbInput","","fullWidth","","placeholder","Please give reason...","name","comment","rows","4","required","",1,"text-error",3,"ngModel","ngModelChange"],["txt","ngModel"]],template:function(e,t){1&e&&(i["\u0275\u0275elementStart"](0,"nb-card",0),i["\u0275\u0275elementStart"](1,"nb-card-header"),i["\u0275\u0275elementStart"](2,"div",1),i["\u0275\u0275elementStart"](3,"div"),i["\u0275\u0275text"](4),i["\u0275\u0275pipe"](5,"titlecase"),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](6,"div"),i["\u0275\u0275elementStart"](7,"nb-icon",2),i["\u0275\u0275listener"]("click",function(){return t.dismiss()}),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementStart"](8,"nb-card-body"),i["\u0275\u0275elementStart"](9,"p",3),i["\u0275\u0275text"](10),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](11,d,2,1,"p",4),i["\u0275\u0275template"](12,p,4,1,"h5",5),i["\u0275\u0275template"](13,f,4,1,"h5",5),i["\u0275\u0275template"](14,g,4,1,"h5",5),i["\u0275\u0275template"](15,m,4,1,"h5",5),i["\u0275\u0275template"](16,y,4,1,"h5",5),i["\u0275\u0275elementStart"](17,"div",3),i["\u0275\u0275template"](18,v,2,0,"button",6),i["\u0275\u0275template"](19,b,2,1,"button",7),i["\u0275\u0275template"](20,_,2,1,"button",8),i["\u0275\u0275template"](21,w,2,1,"button",8),i["\u0275\u0275template"](22,C,2,0,"button",9),i["\u0275\u0275template"](23,S,2,0,"button",6),i["\u0275\u0275template"](24,x,2,1,"button",8),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275elementEnd"](),i["\u0275\u0275template"](25,M,23,7,"ng-template",null,10,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](27,T,9,2,"ng-template",null,11,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](29,F,20,5,"ng-template",null,12,i["\u0275\u0275templateRefExtractor"]),i["\u0275\u0275template"](31,z,10,2,"ng-template",null,13,i["\u0275\u0275templateRefExtractor"])),2&e&&(i["\u0275\u0275advance"](4),i["\u0275\u0275textInterpolate"](i["\u0275\u0275pipeBind1"](5,15,null==t.notification?null:t.notification.type)),i["\u0275\u0275advance"](6),i["\u0275\u0275textInterpolate"](null==t.notification?null:t.notification.message),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.notification.description),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.notification.username),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.notification.password),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.notification.percentage),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.notification.lastLoginDate),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf",t.notification.endDate),i["\u0275\u0275advance"](2),i["\u0275\u0275property"]("ngIf","1"===t.notification.typeId),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","2"===t.notification.typeId),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","1"===t.notification.typeId),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","2"===t.notification.typeId),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","4"===t.notification.typeId),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","4"===t.notification.typeId),i["\u0275\u0275advance"](1),i["\u0275\u0275property"]("ngIf","4"===t.notification.typeId))},directives:[o.z,o.B,o.Q,o.y,c.s,o.u,o.kb,o.T,l.c,l.w,l.o,l.r,o.O,l.k,o.Db,o.A,u.a,l.u,h.a],pipes:[c.B],styles:["button+button{margin-left:1rem} .dialog-card{margin-left:auto;margin-right:auto;width:90%}@media (min-width:40rem){ .dialog-card{width:38rem}}"]}),e})()},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("n6bG"),i=n("gRHU"),a=n("quSY"),o=n("2QA8"),s=n("2fFW"),c=n("NJ4a");class l extends a.a{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=i.a;break;case 1:if(!e){this.destination=i.a;break}if("object"==typeof e){e instanceof l?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,e,t,n)}}[o.a](){return this}static create(e,t,n){const r=new l(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class u extends l{constructor(e,t,n,a){let o;super(),this._parentSubscriber=e;let s=this;Object(r.a)(t)?o=t:t&&(o=t.next,n=t.error,a=t.complete,t!==i.a&&(s=Object.create(t),Object(r.a)(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=n,this._complete=a}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=s.a;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(c.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(c.a)(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(e,t,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}},"8Swu":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("fXoL");let i=(()=>{class e{transform(e){var t=Math.abs(e)%60,n=(Math.abs(e)-t)/60;return(e<0?"-":"")+(n<10?"0":"")+n.toString()+":"+(t<10?"0":"")+t.toString()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=r["\u0275\u0275definePipe"]({name:"hourMin",type:e,pure:!0}),e})()},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})()},AytR:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r={production:!0,api_prefix:"https://8qrm3foei0.execute-api.us-east-1.amazonaws.com/production",stripe_key:"pk_test_51IgpErSIT84j4ptJIvUvLAzddp9ux1fkHRgJavx4lpTvqcUAvvnnIfK39INsBPb83G3RnNdbw2uqUYBZTNIqoBYz003EcOdA0a"}},C8Mr:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("fXoL"),i=n("3Pt+");let a=(()=>{class e{constructor(e){this.validateEqual=e}validate(e){let t=e.value,n=e.root.get(this.validateEqual);return n&&t!==n.value?{validateEqual:!0}:null}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275injectAttribute"]("validateEqual"))},e.\u0275dir=r["\u0275\u0275defineDirective"]({type:e,selectors:[["","validateEqual","","ngModel",""]],features:[r["\u0275\u0275ProvidersFeature"]([{provide:i.l,useExisting:Object(r.forwardRef)(()=>e),multi:!0}])]}),e})()},CWoy:function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});class r{constructor(){this.firstName="",this.lastName="",this.email="",this.restaurants=[],this.rolePermissions={},this.status="",this.initiateAvailability()}fillValsFromTokenObject(e){this.assignRestaurants(e),this.assignUsername(e),this.assignRolePermissions(e),this.status=e.user_claims.status}assignRestaurants(e){this.restaurants=e.user_claims.restaurants}assignUsername(e){this.email=e.identity}assignRolePermissions(e){this.rolePermissions=e.user_claims.rolePermissions}fillValsFromObj(e){for(var t of Object.keys(this))""!=e[t]&&(this[t]=e[t])}initiateAvailability(){this.availability=[{day:"monday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]},{day:"tuesday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]},{day:"wednesday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]},{day:"thursday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]},{day:"friday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]},{day:"saturday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]},{day:"sunday",period:[{open:"00:00",close:"10:00"},{open:"10:00",close:"23:59"}]}]}static getDayOptions(){return["sunday","monday","tuesday","wednesday","thursday","friday","saturday"]}isAugmenifyUser(){return this.email.includes("augmenify.com")}isApprovedUser(){return"Approved"==this.status}hasPermission(e,t){var n=this.rolePermissions[e];return n[Object.keys(n)[0]].indexOf(t)>-1}hasSalesEntryAccess(e){return this.hasPermission(e,"add sales entry")||this.hasPermission(e,"update sales entry")||this.hasPermission(e,"view sales entry")}canAddSalesEntry(e){return this.hasPermission(e,"add sales entry")}canViewSalesEntry(e){return this.hasPermission(e,"view sales entry")||this.hasPermission(e,"update sales entry")||this.hasPermission(e,"create schedule")||this.hasPermission(e,"update schedule")}canUpdateSalesEntry(e){return this.hasPermission(e,"update sales entry")}canCreateSchedule(e){return this.hasPermission(e,"create schedule")}canUpdateSchedule(e){return this.hasPermission(e,"update schedule")}canUpdateTimeEntry(e){return this.hasPermission(e,"update timesheet")}canViewDashboardChart(e){return["owner","general manager"].includes(e)}isOwner(e){return["owner"].includes(e)}isStaffUser(e){return["owner","general manager","manager","shift-super","cashier","cook","dishwasher"].includes(e)}hasUserManagementAccess(e){return this.hasPermission(e,"create user")||this.hasPermission(e,"update user")}canAddUser(e){return this.hasPermission(e,"create user")}canUpdateUser(e){return this.hasPermission(e,"update user")}canVerifyUser(e){return this.hasPermission(e,"verify user")}canApproveUser(e){return this.hasPermission(e,"view user")}canViewFoodItems(e){return this.hasPermission(e,"view food item")}canAddFoodItem(e){return this.hasPermission(e,"create food item")}canUpdateFoodItem(e){return this.hasPermission(e,"update food item")}canDeleteFoodItem(e){return this.hasPermission(e,"delete food item")}canUpdateDetailsOfUser(e,t){return this.canUpdateUser(t)&&this.isUserAboveOtherUserInRestaurant(e,t)}isUserAboveOtherUserInRestaurant(e,t){var n=["owner","manager","shift-super","cashier","cook"],r=Object.keys(this.rolePermissions[t])[0],i=Object.keys(e.rolePermissions[t])[0];return n.indexOf(r){const r=new a.a;return r.add(t.schedule(()=>{const i=e[o.a]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(Object(l.a)(e))return function(e,t){return new r.a(n=>{const r=new a.a;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(Object(u.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[c.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new a.a;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[c.a](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},D0XW:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("3N8a");const i=new(n("IjjT").a)(r.a)},DCtv:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("fXoL"),i=n("aceb"),a=n("KWzY"),o=n("SXPc");const s=[[["nb-menu"]],[["router-outlet"]]],c=["nb-menu","router-outlet"];let l=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["rom-restaurant-layout"]],ngContentSelectors:c,decls:9,vars:0,consts:[["windowMode",""],["fixed",""],["tag","menu-sidebar","responsive","",1,"menu-sidebar"],[1,"colored-column-basic"]],template:function(e,t){1&e&&(r["\u0275\u0275projectionDef"](s),r["\u0275\u0275elementStart"](0,"nb-layout",0),r["\u0275\u0275elementStart"](1,"nb-layout-header",1),r["\u0275\u0275element"](2,"rom-header"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](3,"nb-sidebar",2),r["\u0275\u0275projection"](4),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](5,"nb-layout-column",3),r["\u0275\u0275projection"](6,1),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementStart"](7,"nb-layout-footer",1),r["\u0275\u0275element"](8,"rom-footer"),r["\u0275\u0275elementEnd"](),r["\u0275\u0275elementEnd"]())},directives:[i.W,i.Y,a.a,i.ub,i.V,i.X,o.a],styles:[""]}),e})()},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))()},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c});var r=n("XNiG"),i=n("HDdC"),a=(n("7o/Q"),n("quSY")),o=n("x+ZX");class s extends i.a{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new a.a,e.add(this.source.subscribe(new l(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.a.EMPTY)),e}refCount(){return Object(o.a)()(this)}}const c=(()=>{const e=s.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class l extends r.b{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n("HDdC");const i=new r.a(e=>e.complete());function a(e){return e?function(e){return new r.a(t=>e.schedule(()=>t.complete()))}(e):i}},ExVU:function(e,t,n){"use strict";function r(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(u(Error)),f=function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return a(t,e),t}(p),g=function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return a(t,e),t}(p),m=function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return a(t,e),t}(p),y=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(p),v=function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return a(t,e),t}(p),b=function(e){function t(){return e.apply(this,arguments)||this}return a(t,e),t}(p),_=function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return a(t,e),t}(p),w="numeric",C="short",S="long",x={year:w,month:w,day:w},k={year:w,month:C,day:w},A={year:w,month:S,day:w},O={year:w,month:S,day:w,weekday:S},E={hour:w,minute:w},P={hour:w,minute:w,second:w},M={hour:w,minute:w,second:w,timeZoneName:C},T={hour:w,minute:w,second:w,timeZoneName:S},I={hour:w,minute:w,hour12:!1},L={hour:w,minute:w,second:w,hour12:!1},D={hour:w,minute:w,second:w,hour12:!1,timeZoneName:C},j={hour:w,minute:w,second:w,hour12:!1,timeZoneName:S},R={year:w,month:w,day:w,hour:w,minute:w},F={year:w,month:w,day:w,hour:w,minute:w,second:w},N={year:w,month:C,day:w,hour:w,minute:w},V={year:w,month:C,day:w,hour:w,minute:w,second:w},z={year:w,month:C,day:w,weekday:C,hour:w,minute:w},B={year:w,month:S,day:w,hour:w,minute:w,timeZoneName:C},H={year:w,month:S,day:w,hour:w,minute:w,second:w,timeZoneName:C},U={year:w,month:S,day:w,weekday:S,hour:w,minute:w,timeZoneName:S},W={year:w,month:S,day:w,weekday:S,hour:w,minute:w,second:w,timeZoneName:S};function q(e){return void 0===e}function $(e){return"number"==typeof e}function G(e){return"number"==typeof e&&e%1==0}function Y(){try{return"undefined"!=typeof Intl&&Intl.DateTimeFormat}catch(e){return!1}}function Q(){return!q(Intl.DateTimeFormat.prototype.formatToParts)}function K(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Z(e,t,n){if(0!==e.length)return e.reduce(function(e,r){var i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i},null)[1]}function X(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})}function J(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ee(e,t,n){return G(e)&&e>=t&&e<=n}function te(e,t){return void 0===t&&(t=2),e.toString().length=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function le(e){var t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function ue(e){return e>99?e:e>60?1900+e:2e3+e}function he(e,t,n,r){void 0===r&&(r=null);var i=new Date(e),a={hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);var o=Object.assign({timeZoneName:t},a),s=Y();if(s&&Q()){var c=new Intl.DateTimeFormat(n,o).formatToParts(i).find(function(e){return"timezonename"===e.type.toLowerCase()});return c?c.value:null}if(s){var l=new Intl.DateTimeFormat(n,a).format(i);return new Intl.DateTimeFormat(n,o).format(i).substring(l.length).replace(/^[, \u200e]+/,"")}return null}function de(e,t){var n=parseInt(e,10);Number.isNaN(n)&&(n=0);var r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function pe(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new b("Invalid unit value "+e);return t}function fe(e,t,n){var r={};for(var i in e)if(J(e,i)){if(n.indexOf(i)>=0)continue;var a=e[i];if(null==a)continue;r[t(i)]=pe(a)}return r}function ge(e,t){var n=Math.trunc(e/60),r=Math.abs(e%60),i=n>=0&&!Object.is(n,-0)?"+":"-",a=""+i+Math.abs(n);switch(t){case"short":return""+i+te(Math.abs(n),2)+":"+te(r,2);case"narrow":return r>0?a+":"+r:a;case"techie":return""+i+te(Math.abs(n),2)+te(r,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function me(e){return X(e,["hour","minute","second","millisecond"])}var ye=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;function ve(e){return JSON.stringify(e,Object.keys(e).sort())}var be=["January","February","March","April","May","June","July","August","September","October","November","December"],_e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],we=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ce(e){switch(e){case"narrow":return we;case"short":return _e;case"long":return be;case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var Se=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],xe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ke=["M","T","W","T","F","S","S"];function Ae(e){switch(e){case"narrow":return ke;case"short":return xe;case"long":return Se;case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var Oe=["AM","PM"],Ee=["Before Christ","Anno Domini"],Pe=["BC","AD"],Me=["B","A"];function Te(e){switch(e){case"narrow":return Me;case"short":return Pe;case"long":return Ee;default:return null}}function Ie(e,t){for(var n,r="",i=d(e);!(n=i()).done;){var a=n.value;r+=a.literal?a.val:t(a.val)}return r}var Le={D:x,DD:k,DDD:A,DDDD:O,t:E,tt:P,ttt:M,tttt:T,T:I,TT:L,TTT:D,TTTT:j,f:R,ff:N,fff:B,ffff:U,F:F,FF:V,FFF:H,FFFF:W},De=function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,n){return void 0===n&&(n={}),new e(t,n)},e.parseFormat=function(e){for(var t=null,n="",r=!1,i=[],a=0;a0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r,val:n}),i},e.macroTokenToFormatOpts=function(e){return Le[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTime=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).format()},t.formatDateTimeParts=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).formatToParts()},t.resolvedOptions=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,Object.assign({},this.opts,t)).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return te(e,t);var n=Object.assign({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)},t.formatDateTimeFromString=function(t,n){var r=this,i="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar&&Q(),o=function(e,n){return r.loc.extract(t,e,n)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},c=function(e,n){return i?function(e,t){return Ce(t)[e.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month")},l=function(e,n){return i?function(e,t){return Ae(t)[e.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},u=function(e){return i?function(e,t){return Te(t)[e.year<0?0:1]}(t,e):o({era:e},"era")};return Ie(e.parseFormat(n),function(n){switch(n){case"S":return r.num(t.millisecond);case"u":case"SSS":return r.num(t.millisecond,3);case"s":return r.num(t.second);case"ss":return r.num(t.second,2);case"m":return r.num(t.minute);case"mm":return r.num(t.minute,2);case"h":return r.num(t.hour%12==0?12:t.hour%12);case"hh":return r.num(t.hour%12==0?12:t.hour%12,2);case"H":return r.num(t.hour);case"HH":return r.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:r.opts.allowZ});case"ZZ":return s({format:"short",allowZ:r.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:r.opts.allowZ});case"ZZZZ":return console.log(t.zone),t.zone.offsetName(t.ts,{format:"short",locale:r.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:r.loc.locale});case"z":return t.zoneName;case"a":return i?function(e){return Oe[e.hour<12?0:1]}(t):o({hour:"numeric",hour12:!0},"dayperiod");case"d":return a?o({day:"numeric"},"day"):r.num(t.day);case"dd":return a?o({day:"2-digit"},"day"):r.num(t.day,2);case"c":return r.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"E":return r.num(t.weekday);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):r.num(t.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):r.num(t.month,2);case"LLL":return c("short",!0);case"LLLL":return c("long",!0);case"LLLLL":return c("narrow",!0);case"M":return a?o({month:"numeric"},"month"):r.num(t.month);case"MM":return a?o({month:"2-digit"},"month"):r.num(t.month,2);case"MMM":return c("short",!1);case"MMMM":return c("long",!1);case"MMMMM":return c("narrow",!1);case"y":return a?o({year:"numeric"},"year"):r.num(t.year);case"yy":return a?o({year:"2-digit"},"year"):r.num(t.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):r.num(t.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):r.num(t.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return r.num(t.weekYear.toString().slice(-2),2);case"kkkk":return r.num(t.weekYear,4);case"W":return r.num(t.weekNumber);case"WW":return r.num(t.weekNumber,2);case"o":return r.num(t.ordinal);case"ooo":return r.num(t.ordinal,3);case"q":return r.num(t.quarter);case"qq":return r.num(t.quarter,2);case"X":return r.num(Math.floor(t.ts/1e3));case"x":return r.num(t.ts);default:return function(n){var i=e.macroTokenToFormatOpts(n);return i?r.formatWithSystemDefault(t,i):n}(n)}})},t.formatDurationFromString=function(t,n){var r,i=this,a=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(n),s=o.reduce(function(e,t){return t.literal?e:e.concat(t.val)},[]),c=t.shiftTo.apply(t,s.map(a).filter(function(e){return e}));return Ie(o,(r=c,function(e){var t=a(e);return t?i.num(r.get(t),e.length):e}))},e}(),je=function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),Re=function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new _},t.formatOffset=function(e,t){throw new _},t.offset=function(e){throw new _},t.equals=function(e){throw new _},i(e,[{key:"type",get:function(){throw new _}},{key:"name",get:function(){throw new _}},{key:"universal",get:function(){throw new _}},{key:"isValid",get:function(){throw new _}}]),e}(),Fe=null,Ne=function(e){function t(){return e.apply(this,arguments)||this}a(t,e);var n=t.prototype;return n.offsetName=function(e,t){return he(e,t.format,t.locale)},n.formatOffset=function(e,t){return ge(this.offset(e),t)},n.offset=function(e){return-new Date(e).getTimezoneOffset()},n.equals=function(e){return"local"===e.type},i(t,[{key:"type",get:function(){return"local"}},{key:"name",get:function(){return Y()?(new Intl.DateTimeFormat).resolvedOptions().timeZone:"local"}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Fe&&(Fe=new t),Fe}}]),t}(Re),Ve=RegExp("^"+ye.source+"$"),ze={},Be={year:0,month:1,day:2,hour:3,minute:4,second:5},He={},Ue=function(e){function t(n){var r;return(r=e.call(this)||this).zoneName=n,r.valid=t.isValidZone(n),r}a(t,e),t.create=function(e){return He[e]||(He[e]=new t(e)),He[e]},t.resetCache=function(){He={},ze={}},t.isValidSpecifier=function(e){return!(!e||!e.match(Ve))},t.isValidZone=function(e){try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}},t.parseGMTOffset=function(e){if(e){var t=e.match(/^Etc\/GMT([+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var n=t.prototype;return n.offsetName=function(e,t){return he(e,t.format,t.locale,this.name)},n.formatOffset=function(e,t){return ge(this.offset(e),t)},n.offset=function(e){var t,n=new Date(e),r=(ze[t=this.name]||(ze[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),ze[t]),i=r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=[],i=0;i=0?s:1e3+s))/6e4},n.equals=function(e){return"iana"===e.type&&e.name===this.name},i(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(Re),We=null,qe=function(e){function t(t){var n;return(n=e.call(this)||this).fixed=t,n}a(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var n=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new t(de(n[1],n[2]))}return null},i(t,null,[{key:"utcInstance",get:function(){return null===We&&(We=new t(0)),We}}]);var n=t.prototype;return n.offsetName=function(){return this.name},n.formatOffset=function(e,t){return ge(this.fixed,t)},n.offset=function(){return this.fixed},n.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},i(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+ge(this.fixed,"narrow")}},{key:"universal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}]),t}(Re),$e=function(e){function t(t){var n;return(n=e.call(this)||this).zoneName=t,n}a(t,e);var n=t.prototype;return n.offsetName=function(){return null},n.formatOffset=function(){return""},n.offset=function(){return NaN},n.equals=function(){return!1},i(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"universal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(Re);function Ge(e,t){var n;if(q(e)||null===e)return t;if(e instanceof Re)return e;if("string"==typeof e){var r=e.toLowerCase();return"local"===r?t:"utc"===r||"gmt"===r?qe.utcInstance:null!=(n=Ue.parseGMTOffset(e))?qe.instance(n):Ue.isValidSpecifier(r)?Ue.create(e):qe.parseSpecifier(r)||new $e(e)}return $(e)?qe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new $e(e)}var Ye=function(){return Date.now()},Qe=null,Ke=null,Ze=null,Xe=null,Je=!1,et=function(){function e(){}return e.resetCaches=function(){ut.resetCache(),Ue.resetCache()},i(e,null,[{key:"now",get:function(){return Ye},set:function(e){Ye=e}},{key:"defaultZoneName",get:function(){return e.defaultZone.name},set:function(e){Qe=e?Ge(e):null}},{key:"defaultZone",get:function(){return Qe||Ne.instance}},{key:"defaultLocale",get:function(){return Ke},set:function(e){Ke=e}},{key:"defaultNumberingSystem",get:function(){return Ze},set:function(e){Ze=e}},{key:"defaultOutputCalendar",get:function(){return Xe},set:function(e){Xe=e}},{key:"throwOnInvalid",get:function(){return Je},set:function(e){Je=e}}]),e}(),tt={};function nt(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=tt[n];return r||(r=new Intl.DateTimeFormat(e,t),tt[n]=r),r}var rt={},it={},at=null;function ot(e,t,n,r,i){var a=e.listingMode(n);return"error"===a?null:"en"===a?r(t):i(t)}var st=function(){function e(e,t,n){if(this.padTo=n.padTo||0,this.floor=n.floor||!1,!t&&Y()){var r={useGrouping:!1};n.padTo>0&&(r.minimumIntegerDigits=n.padTo),this.inf=function(e,t){void 0===t&&(t={});var n=JSON.stringify([e,t]),r=rt[n];return r||(r=new Intl.NumberFormat(e,t),rt[n]=r),r}(e,r)}}return e.prototype.format=function(e){if(this.inf){var t=this.floor?Math.floor(e):e;return this.inf.format(t)}return te(this.floor?Math.floor(e):ie(e,3),this.padTo)},e}(),ct=function(){function e(e,t,n){var r;if(this.opts=n,this.hasIntl=Y(),e.zone.universal&&this.hasIntl?(r="UTC",this.dt=n.timeZoneName||0===e.offset?e:ar.fromMillis(e.ts+60*e.offset*1e3)):"local"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name),this.hasIntl){var i=Object.assign({},this.opts);r&&(i.timeZone=r),this.dtf=nt(t,i)}}var t=e.prototype;return t.format=function(){if(this.hasIntl)return this.dtf.format(this.dt.toJSDate());var e=function(e){var t="EEEE, LLLL d, yyyy, h:mm a";switch(ve(X(e,["weekday","era","year","month","day","hour","minute","second","timeZoneName","hour12"]))){case ve(x):return"M/d/yyyy";case ve(k):return"LLL d, yyyy";case ve(A):return"LLLL d, yyyy";case ve(O):return"EEEE, LLLL d, yyyy";case ve(E):return"h:mm a";case ve(P):return"h:mm:ss a";case ve(M):case ve(T):return"h:mm a";case ve(I):return"HH:mm";case ve(L):return"HH:mm:ss";case ve(D):case ve(j):return"HH:mm";case ve(R):return"M/d/yyyy, h:mm a";case ve(N):return"LLL d, yyyy, h:mm a";case ve(B):return"LLLL d, yyyy, h:mm a";case ve(U):return t;case ve(F):return"M/d/yyyy, h:mm:ss a";case ve(V):return"LLL d, yyyy, h:mm:ss a";case ve(z):return"EEE, d LLL yyyy, h:mm a";case ve(H):return"LLLL d, yyyy, h:mm:ss a";case ve(W):return"EEEE, LLLL d, yyyy, h:mm:ss a";default:return t}}(this.opts),t=ut.create("en-US");return De.create(t).formatDateTimeFromString(this.dt,e)},t.formatToParts=function(){return this.hasIntl&&Q()?this.dtf.formatToParts(this.dt.toJSDate()):[]},t.resolvedOptions=function(){return this.hasIntl?this.dtf.resolvedOptions():{locale:"en-US",numberingSystem:"latn",outputCalendar:"gregory"}},e}(),lt=function(){function e(e,t,n){this.opts=Object.assign({style:"long"},n),!t&&K()&&(this.rtf=function(e,t){void 0===t&&(t={});var n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(t,["base"]),r=JSON.stringify([e,n]),i=it[r];return i||(i=new Intl.RelativeTimeFormat(e,t),it[r]=i),i}(e,n))}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n,r){void 0===n&&(n="always"),void 0===r&&(r=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case-1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,c=Math.abs(t),l=1===c,u=i[e],h=r?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return s?c+" "+h+" ago":"in "+c+" "+h}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),ut=function(){function e(e,t,n,r){var i=function(e){var t=e.indexOf("-u-");if(-1===t)return[e];var n,r=e.substring(0,t);try{n=nt(e).resolvedOptions()}catch(i){n=nt(r).resolvedOptions()}return[r,n.numberingSystem,n.calendar]}(e),a=i[1],o=i[2];this.locale=i[0],this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.intl=function(e,t,n){return Y()?n||t?(e+="-u",n&&(e+="-ca-"+n),t&&(e+="-nu-"+t),e):e:[]}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},e.create=function(t,n,r,i){void 0===i&&(i=!1);var a=t||et.defaultLocale;return new e(a||(i?"en-US":function(){if(at)return at;if(Y()){var e=(new Intl.DateTimeFormat).resolvedOptions().locale;return at=e&&"und"!==e?e:"en-US"}return at="en-US"}()),n||et.defaultNumberingSystem,r||et.defaultOutputCalendar,a)},e.resetCache=function(){at=null,tt={},rt={},it={}},e.fromObject=function(t){var n=void 0===t?{}:t;return e.create(n.locale,n.numberingSystem,n.outputCalendar)};var t=e.prototype;return t.listingMode=function(e){void 0===e&&(e=!0);var t=Y()&&Q(),n=this.isEnglish(),r=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t||n&&r||e?!t||n&&r?"en":"intl":"error"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(Object.assign({},e,{defaultToEN:!1}))},t.months=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),ot(this,e,n,Ce,function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],n=1;n<=12;n++){var r=ar.utc(2016,n,1);t.push(e(r))}return t}(function(e){return r.extract(e,n,"month")})),r.monthsCache[i][e]})},t.weekdays=function(e,t,n){var r=this;return void 0===t&&(t=!1),void 0===n&&(n=!0),ot(this,e,n,Ae,function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],n=1;n<=7;n++){var r=ar.utc(2016,11,13+n);t.push(e(r))}return t}(function(e){return r.extract(e,n,"weekday")})),r.weekdaysCache[i][e]})},t.meridiems=function(e){var t=this;return void 0===e&&(e=!0),ot(this,void 0,e,function(){return Oe},function(){if(!t.meridiemCache){var e={hour:"numeric",hour12:!0};t.meridiemCache=[ar.utc(2016,11,13,9),ar.utc(2016,11,13,19)].map(function(n){return t.extract(n,e,"dayperiod")})}return t.meridiemCache})},t.eras=function(e,t){var n=this;return void 0===t&&(t=!0),ot(this,e,t,Te,function(){var t={era:e};return n.eraCache[e]||(n.eraCache[e]=[ar.utc(-40,1,1),ar.utc(2017,1,1)].map(function(e){return n.extract(e,t,"era")})),n.eraCache[e]})},t.extract=function(e,t,n){var r=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===n});return r?r.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new st(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new ct(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new lt(this.intl,this.isEnglish(),e)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||Y()&&new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},i(e,[{key:"fastNumbers",get:function(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||Y()&&"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}();function ht(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r3?Se.indexOf(e)+1:xe.indexOf(e)+1),s}var It=/^(?:(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\d)(\d\d)))$/;function Lt(e){var t,n=e[8],r=e[9],i=e[10],a=e[11],o=Tt(e[1],e[4],e[3],e[2],e[5],e[6],e[7]);return t=n?Mt[n]:r?0:de(i,a),[o,new qe(t)]}var Dt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Rt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ft(e){return[Tt(e[1],e[4],e[3],e[2],e[5],e[6],e[7]),qe.utcInstance]}function Nt(e){return[Tt(e[1],e[7],e[2],e[3],e[4],e[5],e[6]),qe.utcInstance]}var Vt=ht(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vt),zt=ht(/(\d{4})-?W(\d\d)(?:-?(\d))?/,vt),Bt=ht(/(\d{4})-?(\d{3})/,vt),Ht=ht(yt),Ut=dt(xt,kt,At),Wt=dt(bt,kt,At),qt=dt(_t,kt),$t=dt(kt,At),Gt=ht(/(\d{4})-(\d\d)-(\d\d)/,Ct),Yt=ht(wt),Qt=dt(xt,kt,At,Ot),Kt=dt(kt,At,Ot),Zt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Xt=Object.assign({years:{months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Zt),Jt=Object.assign({years:{months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Zt),en=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],tn=en.slice(0).reverse();function nn(e,t,n){void 0===n&&(n=!1);var r={values:n?t.values:Object.assign({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new on(r)}function rn(e,t,n,r,i){var a=e[i][n],o=t[n]/a,s=Math.sign(o)!==Math.sign(r[i])&&0!==r[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);r[i]+=s,t[n]-=s*a}function an(e,t){tn.reduce(function(n,r){return q(t[r])?n:(n&&rn(e,t,n,t,r),r)},null)}var on=function(){function e(e){var t="longterm"===e.conversionAccuracy||!1;this.values=e.values,this.loc=e.loc||ut.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=t?Jt:Xt,this.isLuxonDuration=!0}e.fromMillis=function(t,n){return e.fromObject(Object.assign({milliseconds:t},n))},e.fromObject=function(t){if(null==t||"object"!=typeof t)throw new b("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new e({values:fe(t,e.normalizeUnit,["locale","numberingSystem","conversionAccuracy","zone"]),loc:ut.fromObject(t),conversionAccuracy:t.conversionAccuracy})},e.fromISO=function(t,n){var r=function(e){return pt(e,[Et,Pt])}(t)[0];if(r){var i=Object.assign(r,n);return e.fromObject(i)}return e.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new b("need to specify a reason the Duration is invalid");var r=t instanceof je?t:new je(t,n);if(et.throwOnInvalid)throw new m(r);return new e({invalid:r})},e.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new v(e);return t},e.isDuration=function(e){return e&&e.isLuxonDuration||!1};var t=e.prototype;return t.toFormat=function(e,t){void 0===t&&(t={});var n=Object.assign({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?De.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.values);return e.includeConfig&&(t.conversionAccuracy=this.conversionAccuracy,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=ie(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.valueOf=function(){return this.as("milliseconds")},t.plus=function(e){if(!this.isValid)return this;for(var t,n=sn(e),r={},i=d(en);!(t=i()).done;){var a=t.value;(J(n.values,a)||J(this.values,a))&&(r[a]=n.get(a)+this.get(a))}return nn(this,{values:r},!0)},t.minus=function(e){if(!this.isValid)return this;var t=sn(e);return this.plus(t.negate())},t.mapUnits=function(e){if(!this.isValid)return this;for(var t={},n=0,r=Object.keys(this.values);n=0){i=u;var h=0;for(var p in o)h+=this.matrix[p][u]*o[p],o[p]=0;$(s[u])&&(h+=s[u]);var f=Math.trunc(h);for(var g in a[u]=f,o[u]=h-f,s)en.indexOf(g)>en.indexOf(u)&&rn(this.matrix,s,g,a,u)}else $(s[u])&&(o[u]=s[u])}for(var m in o)0!==o[m]&&(a[i]+=m===i?o[m]:o[m]/this.matrix[i][m]);return nn(this,{values:a},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var e={},t=0,n=Object.keys(this.values);te},t.isBefore=function(e){return!!this.isValid&&this.e<=e},t.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},t.set=function(t){var n=void 0===t?{}:t;return this.isValid?e.fromDateTimes(n.start||this.s,n.end||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var n=arguments.length,r=new Array(n),i=0;i+this.e?this.e:l;o.push(e.fromDateTimes(s,u)),s=u,c+=1}return o},t.splitBy=function(t){var n=sn(t);if(!this.isValid||!n.isValid||0===n.as("milliseconds"))return[];for(var r,i,a=this.s,o=[];a+this.e?this.e:r)),a=i;return o},t.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},t.overlaps=function(e){return this.e>e.s&&this.s=e.e},t.equals=function(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)},t.intersection=function(t){if(!this.isValid)return this;var n=this.s>t.s?this.s:t.s,r=this.er?null:e.fromDateTimes(n,r)},t.union=function(t){return this.isValid?e.fromDateTimes(this.st.e?this.e:t.e):this},e.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var n=e[0],r=e[1];return r?r.overlaps(t)||r.abutsStart(t)?[n,r.union(t)]:[n.concat([r]),t]:[n,t]},[[],null]),n=t[0],r=t[1];return r&&n.push(r),n},e.xor=function(t){for(var n,r,i=null,a=0,o=[],s=t.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),c=d((n=Array.prototype).concat.apply(n,s).sort(function(e,t){return e.time-t.time}));!(r=c()).done;){var l=r.value;1===(a+="s"===l.type?1:-1)?i=l.time:(i&&+i!=+l.time&&o.push(e.fromDateTimes(i,l.time)),i=null)}return e.merge(o)},t.difference=function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i=o&&r<=a[1]&&(t+=r-o)}}return parseInt(t,10)}return t}(e[0]))}}}function vn(e){return e.replace(/\./,"\\.?")}function bn(e){return e.replace(/\./,"").toLowerCase()}function _n(e,t){return null===e?null:{regex:RegExp(e.map(vn).join("|")),deser:function(n){var r=n[0];return e.findIndex(function(e){return bn(r)===bn(e)})+t}}}function wn(e,t){return{regex:e,deser:function(e){return de(e[1],e[2])},groups:t}}function Cn(e){return{regex:e,deser:function(e){return e[0]}}}var Sn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},xn=null;function kn(e,t,n){var r=function(e,t){var n;return(n=Array.prototype).concat.apply(n,e.map(function(e){return function(e,t){if(e.literal)return e;var n=De.macroTokenToFormatOpts(e.val);if(!n)return e;var r=De.create(t,n).formatDateTimeParts((xn||(xn=ar.fromMillis(1555555555555)),xn)).map(function(e){return function(e,t,n){var r=e.type;if("literal"===r)return{literal:!0,val:e.value};var i=Sn[r];return"object"==typeof i&&(i=i[n[r]]),i?{literal:!1,val:i}:void 0}(e,0,n)});return r.includes(void 0)?e:r}(e,t)}))}(De.parseFormat(n),e),i=r.map(function(t){return n=t,i=mn(r=e),a=mn(r,"{2}"),o=mn(r,"{3}"),s=mn(r,"{4}"),c=mn(r,"{6}"),l=mn(r,"{1,2}"),u=mn(r,"{1,3}"),h=mn(r,"{1,6}"),d=mn(r,"{1,9}"),p=mn(r,"{2,4}"),f=mn(r,"{4,6}"),g=function(e){return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(e){return e[0]},literal:!0};var t},(m=function(e){if(n.literal)return g(e);switch(e.val){case"G":return _n(r.eras("short",!1),0);case"GG":return _n(r.eras("long",!1),0);case"y":return yn(h);case"yy":return yn(p,ue);case"yyyy":return yn(s);case"yyyyy":return yn(f);case"yyyyyy":return yn(c);case"M":return yn(l);case"MM":return yn(a);case"MMM":return _n(r.months("short",!0,!1),1);case"MMMM":return _n(r.months("long",!0,!1),1);case"L":return yn(l);case"LL":return yn(a);case"LLL":return _n(r.months("short",!1,!1),1);case"LLLL":return _n(r.months("long",!1,!1),1);case"d":return yn(l);case"dd":return yn(a);case"o":return yn(u);case"ooo":return yn(o);case"HH":return yn(a);case"H":return yn(l);case"hh":return yn(a);case"h":return yn(l);case"mm":return yn(a);case"m":case"q":return yn(l);case"qq":return yn(a);case"s":return yn(l);case"ss":return yn(a);case"S":return yn(u);case"SSS":return yn(o);case"u":return Cn(d);case"a":return _n(r.meridiems(),0);case"kkkk":return yn(s);case"kk":return yn(p,ue);case"W":return yn(l);case"WW":return yn(a);case"E":case"c":return yn(i);case"EEE":return _n(r.weekdays("short",!1,!1),1);case"EEEE":return _n(r.weekdays("long",!1,!1),1);case"ccc":return _n(r.weekdays("short",!0,!1),1);case"cccc":return _n(r.weekdays("long",!0,!1),1);case"Z":case"ZZ":return wn(new RegExp("([+-]"+l.source+")(?::("+a.source+"))?"),2);case"ZZZ":return wn(new RegExp("([+-]"+l.source+")("+a.source+")?"),2);case"z":return Cn(/[a-z_+-/]{1,256}?/i);default:return g(e)}}(n)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=n,m;var n,r,i,a,o,s,c,l,u,h,d,p,f,g,m}),a=i.find(function(e){return e.invalidReason});if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};var o=function(e){return["^"+e.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",e]}(i),s=o[1],c=RegExp(o[0],"i"),l=function(e,t,n){var r=e.match(t);if(r){var i={},a=1;for(var o in n)if(J(n,o)){var s=n[o],c=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(r.slice(a,a+c))),a+=c}return[r,i]}return[r,{}]}(t,c,s),u=l[0],h=l[1],d=h?function(e){var t;return t=q(e.Z)?q(e.z)?null:Ue.create(e.z):new qe(e.Z),q(e.q)||(e.M=3*(e.q-1)+1),q(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),q(e.u)||(e.S=re(e.u)),[Object.keys(e).reduce(function(t,n){var r=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(n);return r&&(t[r]=e[n]),t},{}),t]}(h):[null,null],p=d[0],f=d[1];if(J(h,"a")&&J(h,"H"))throw new y("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:c,rawMatches:u,matches:h,result:p,zone:f}}var An=[0,31,59,90,120,151,181,212,243,273,304,334],On=[0,31,60,91,121,152,182,213,244,274,305,335];function En(e,t){return new je("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function Pn(e,t,n){var r=new Date(Date.UTC(e,t-1,n)).getUTCDay();return 0===r?7:r}function Mn(e,t,n){return n+(ae(e)?On:An)[t-1]}function Tn(e,t){var n=ae(e)?On:An,r=n.findIndex(function(e){return ele(n)?(t=n+1,s=1):t=n,Object.assign({weekYear:t,weekNumber:s,weekday:o},me(e))}function Ln(e){var t,n=e.weekYear,r=e.weekNumber,i=e.weekday,a=Pn(n,1,4),o=oe(n),s=7*r+i-a-3;s<1?s+=oe(t=n-1):s>o?(t=n+1,s-=oe(n)):t=n;var c=Tn(t,s);return Object.assign({year:t,month:c.month,day:c.day},me(e))}function Dn(e){var t=e.year,n=Mn(t,e.month,e.day);return Object.assign({year:t,ordinal:n},me(e))}function jn(e){var t=e.year,n=Tn(t,e.ordinal);return Object.assign({year:t,month:n.month,day:n.day},me(e))}function Rn(e){var t=G(e.year),n=ee(e.month,1,12),r=ee(e.day,1,se(e.year,e.month));return t?n?!r&&En("day",e.day):En("month",e.month):En("year",e.year)}function Fn(e){var t=e.hour,n=e.minute,r=e.second,i=e.millisecond,a=ee(t,0,23)||24===t&&0===n&&0===r&&0===i,o=ee(n,0,59),s=ee(r,0,59),c=ee(i,0,999);return a?o?s?!c&&En("millisecond",i):En("second",r):En("minute",n):En("hour",t)}var Nn="Invalid DateTime",Vn=864e13;function zn(e){return new je("unsupported zone",'the zone "'+e.name+'" is not supported')}function Bn(e){return null===e.weekData&&(e.weekData=In(e.c)),e.weekData}function Hn(e,t){var n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ar(Object.assign({},n,t,{old:n}))}function Un(e,t,n){var r=e-60*t*1e3,i=n.offset(r);if(t===i)return[r,t];var a=n.offset(r-=60*(i-t)*1e3);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function Wn(e,t){var n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function qn(e,t,n){return Un(ce(e),t,n)}function $n(e,t){var n,r=Object.keys(t.values);-1===r.indexOf("milliseconds")&&r.push("milliseconds"),t=(n=t).shiftTo.apply(n,r);var i=e.o,a=e.c.year+t.years,o=e.c.month+t.months+3*t.quarters,s=Object.assign({},e.c,{year:a,month:o,day:Math.min(e.c.day,se(a,o))+t.days+7*t.weeks}),c=on.fromObject({hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=Un(ce(s),i,e.zone),u=l[0],h=l[1];return 0!==c&&(h=e.zone.offset(u+=c)),{ts:u,o:h}}function Gn(e,t,n,r,i){var a=n.setZone,o=n.zone;if(e&&0!==Object.keys(e).length){var s=ar.fromObject(Object.assign(e,n,{zone:t||o,setZone:void 0}));return a?s:s.setZone(o)}return ar.invalid(new je("unparsable",'the input "'+i+"\" can't be parsed as "+r))}function Yn(e,t,n){return void 0===n&&(n=!0),e.isValid?De.create(ut.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){var n=t.suppressSeconds,r=t.suppressMilliseconds,i=t.includeOffset,a=t.includeZone,o=void 0!==a&&a,s=t.spaceZone,c=t.format,l=void 0===c?"extended":c,u="basic"===l?"HHmm":"HH:mm";return void 0!==n&&n&&0===e.second&&0===e.millisecond||(u+="basic"===l?"ss":":ss",void 0!==r&&r&&0===e.millisecond||(u+=".SSS")),(o||i)&&void 0!==s&&s&&(u+=" "),o?u+="z":i&&(u+="basic"===l?"ZZZ":"ZZ"),Yn(e,u)}var Kn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Zn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Jn=["year","month","day","hour","minute","second","millisecond"],er=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],tr=["year","ordinal","hour","minute","second","millisecond"];function nr(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new v(e);return t}function rr(e,t){for(var n,r=d(Jn);!(n=r()).done;){var i=n.value;q(e[i])&&(e[i]=Kn[i])}var a=Rn(e)||Fn(e);if(a)return ar.invalid(a);var o=et.now(),s=qn(e,t.offset(o),t);return new ar({ts:s[0],zone:t,o:s[1]})}function ir(e,t,n){var r=!!q(n.round)||n.round,i=function(e,i){return e=ie(e,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(e,i)},a=function(r){return n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r)};if(n.unit)return i(a(n.unit),n.unit);for(var o,s=d(n.units);!(o=s()).done;){var c=o.value,l=a(c);if(Math.abs(l)>=1)return i(l,c)}return i(0,n.units[n.units.length-1])}var ar=function(){function e(e){var t=e.zone||et.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new je("invalid input"):null)||(t.isValid?null:zn(t));this.ts=q(e.ts)?et.now():e.ts;var r=null,i=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var a=[e.old.c,e.old.o];r=a[0],i=a[1]}else{var o=t.offset(this.ts);r=Wn(this.ts,o),r=(n=Number.isNaN(r.year)?new je("invalid input"):null)?null:r,i=n?null:o}this._zone=t,this.loc=e.loc||ut.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}e.local=function(t,n,r,i,a,o,s){return q(t)?new e({ts:et.now()}):rr({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},et.defaultZone)},e.utc=function(t,n,r,i,a,o,s){return q(t)?new e({ts:et.now(),zone:qe.utcInstance}):rr({year:t,month:n,day:r,hour:i,minute:a,second:o,millisecond:s},qe.utcInstance)},e.fromJSDate=function(t,n){void 0===n&&(n={});var r="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(r))return e.invalid("invalid input");var i=Ge(n.zone,et.defaultZone);return i.isValid?new e({ts:r,zone:i,loc:ut.fromObject(n)}):e.invalid(zn(i))},e.fromMillis=function(t,n){if(void 0===n&&(n={}),$(t))return t<-Vn||t>Vn?e.invalid("Timestamp out of range"):new e({ts:t,zone:Ge(n.zone,et.defaultZone),loc:ut.fromObject(n)});throw new b("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},e.fromSeconds=function(t,n){if(void 0===n&&(n={}),$(t))return new e({ts:1e3*t,zone:Ge(n.zone,et.defaultZone),loc:ut.fromObject(n)});throw new b("fromSeconds requires a numerical input")},e.fromObject=function(t){var n=Ge(t.zone,et.defaultZone);if(!n.isValid)return e.invalid(zn(n));var r=et.now(),i=n.offset(r),a=fe(t,nr,["zone","locale","outputCalendar","numberingSystem"]),o=!q(a.ordinal),s=!q(a.year),c=!q(a.month)||!q(a.day),l=s||c,u=a.weekYear||a.weekNumber,h=ut.fromObject(t);if((l||o)&&u)throw new y("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new y("Can't mix ordinal dates with month/day");var p,f,g=u||a.weekday&&!l,m=Wn(r,i);g?(p=er,f=Zn,m=In(m)):o?(p=tr,f=Xn,m=Dn(m)):(p=Jn,f=Kn);for(var v,b=!1,_=d(p);!(v=_()).done;){var w=v.value;q(a[w])?a[w]=b?f[w]:m[w]:b=!0}var C=(g?function(e){var t=G(e.weekYear),n=ee(e.weekNumber,1,le(e.weekYear)),r=ee(e.weekday,1,7);return t?n?!r&&En("weekday",e.weekday):En("week",e.week):En("weekYear",e.weekYear)}(a):o?function(e){var t=G(e.year),n=ee(e.ordinal,1,oe(e.year));return t?!n&&En("ordinal",e.ordinal):En("year",e.year)}(a):Rn(a))||Fn(a);if(C)return e.invalid(C);var S=qn(g?Ln(a):o?jn(a):a,i,n),x=new e({ts:S[0],zone:n,o:S[1],loc:h});return a.weekday&&l&&t.weekday!==x.weekday?e.invalid("mismatched weekday","you can't specify both a weekday of "+a.weekday+" and a date of "+x.toISO()):x},e.fromISO=function(e,t){void 0===t&&(t={});var n=function(e){return pt(e,[Vt,Ut],[zt,Wt],[Bt,qt],[Ht,$t])}(e);return Gn(n[0],n[1],t,"ISO 8601",e)},e.fromRFC2822=function(e,t){void 0===t&&(t={});var n=function(e){return pt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[It,Lt])}(e);return Gn(n[0],n[1],t,"RFC 2822",e)},e.fromHTTP=function(e,t){void 0===t&&(t={});var n=function(e){return pt(e,[Dt,Ft],[jt,Ft],[Rt,Nt])}(e);return Gn(n[0],n[1],t,"HTTP",t)},e.fromFormat=function(t,n,r){if(void 0===r&&(r={}),q(t)||q(n))throw new b("fromFormat requires an input string and a format");var i,a=r.locale,o=r.numberingSystem,s=[(i=kn(ut.fromOpts({locale:void 0===a?null:a,numberingSystem:void 0===o?null:o,defaultToEN:!0}),t,n)).result,i.zone,i.invalidReason],c=s[0],l=s[1],u=s[2];return u?e.invalid(u):Gn(c,l,r,"format "+n,t)},e.fromString=function(t,n,r){return void 0===r&&(r={}),e.fromFormat(t,n,r)},e.fromSQL=function(e,t){void 0===t&&(t={});var n=function(e){return pt(e,[Gt,Qt],[Yt,Kt])}(e);return Gn(n[0],n[1],t,"SQL",e)},e.invalid=function(t,n){if(void 0===n&&(n=null),!t)throw new b("need to specify a reason the DateTime is invalid");var r=t instanceof je?t:new je(t,n);if(et.throwOnInvalid)throw new f(r);return new e({invalid:r})},e.isDateTime=function(e){return e&&e.isLuxonDateTime||!1};var t=e.prototype;return t.get=function(e){return this[e]},t.resolvedLocaleOpts=function(e){void 0===e&&(e={});var t=De.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(qe.instance(e),t)},t.toLocal=function(){return this.setZone(et.defaultZone)},t.setZone=function(t,n){var r=void 0===n?{}:n,i=r.keepLocalTime,a=void 0!==i&&i,o=r.keepCalendarTime,s=void 0!==o&&o;if((t=Ge(t,et.defaultZone)).equals(this.zone))return this;if(t.isValid){var c=this.ts;if(a||s){var l=t.offset(this.ts);c=qn(this.toObject(),l,t)[0]}return Hn(this,{ts:c,zone:t})}return e.invalid(zn(t))},t.reconfigure=function(e){var t=void 0===e?{}:e;return Hn(this,{loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.outputCalendar})})},t.setLocale=function(e){return this.reconfigure({locale:e})},t.set=function(e){if(!this.isValid)return this;var t,n=fe(e,nr,[]);q(n.weekYear)&&q(n.weekNumber)&&q(n.weekday)?q(n.ordinal)?(t=Object.assign(this.toObject(),n),q(n.day)&&(t.day=Math.min(se(t.year,t.month),t.day))):t=jn(Object.assign(Dn(this.c),n)):t=Ln(Object.assign(In(this.c),n));var r=qn(t,this.o,this.zone);return Hn(this,{ts:r[0],o:r[1]})},t.plus=function(e){return this.isValid?Hn(this,$n(this,sn(e))):this},t.minus=function(e){return this.isValid?Hn(this,$n(this,sn(e).negate())):this},t.startOf=function(e){if(!this.isValid)return this;var t={},n=on.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){var r=Math.ceil(this.month/3);t.month=3*(r-1)+1}return this.set(t)},t.endOf=function(e){var t;return this.isValid?this.plus((t={},t[e]=1,t)).startOf(e).minus(1):this},t.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?De.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Nn},t.toLocaleString=function(e){return void 0===e&&(e=x),this.isValid?De.create(this.loc.clone(e),e).formatDateTime(this):Nn},t.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?De.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},t.toISO=function(e){return void 0===e&&(e={}),this.isValid?this.toISODate(e)+"T"+this.toISOTime(e):null},t.toISODate=function(e){var t=(void 0===e?{}:e).format,n="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(n="+"+n),Yn(this,n)},t.toISOWeekDate=function(){return Yn(this,"kkkk-'W'WW-c")},t.toISOTime=function(e){var t=void 0===e?{}:e,n=t.suppressMilliseconds,r=t.suppressSeconds,i=t.includeOffset,a=t.format;return Qn(this,{suppressSeconds:void 0!==r&&r,suppressMilliseconds:void 0!==n&&n,includeOffset:void 0===i||i,format:void 0===a?"extended":a})},t.toRFC2822=function(){return Yn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Yn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Yn(this,"yyyy-MM-dd")},t.toSQLTime=function(e){var t=void 0===e?{}:e,n=t.includeOffset,r=t.includeZone;return Qn(this,{includeOffset:void 0===n||n,includeZone:void 0!==r&&r,spaceZone:!0})},t.toSQL=function(e){return void 0===e&&(e={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(e):null},t.toString=function(){return this.isValid?this.toISO():Nn},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=Object.assign({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(e,t,n){if(void 0===t&&(t="milliseconds"),void 0===n&&(n={}),!this.isValid||!e.isValid)return on.invalid(this.invalid||e.invalid,"created by diffing an invalid DateTime");var r,i=Object.assign({locale:this.locale,numberingSystem:this.numberingSystem},n),a=(r=t,Array.isArray(r)?r:[r]).map(on.normalizeUnit),o=e.valueOf()>this.valueOf(),s=function(e,t,n,r){var i,a=function(e,t,n){for(var r,i,a={},o=0,s=[["years",function(e,t){return t.year-e.year}],["months",function(e,t){return t.month-e.month+12*(t.year-e.year)}],["weeks",function(e,t){var n=dn(e,t);return(n-n%7)/7}],["days",dn]];o=0){var h;r=l;var d,p=u(e,t);(i=e.plus(((h={})[l]=p,h)))>t?(e=e.plus(((d={})[l]=p-1,d)),p-=1):e=i,a[l]=p}}return[e,a,i,r]}(e,t,n),o=a[0],s=a[1],c=a[2],l=a[3],u=t-o,h=n.filter(function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0});0===h.length&&(c0?(d=on.fromMillis(u,r)).shiftTo.apply(d,h).plus(p):p}(o?this:e,o?e:this,a,i);return o?s.negate():s},t.diffNow=function(t,n){return void 0===t&&(t="milliseconds"),void 0===n&&(n={}),this.diff(e.local(),t,n)},t.until=function(e){return this.isValid?un.fromDateTimes(this,e):this},t.hasSame=function(e,t){if(!this.isValid)return!1;if("millisecond"===t)return this.valueOf()===e.valueOf();var n=e.valueOf();return this.startOf(t)<=n&&n<=this.endOf(t)},t.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var n=t.base||e.fromObject({zone:this.zone});return ir(n,this.plus(t.padding?thisthis.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return ae(this.year)}},{key:"daysInMonth",get:function(){return se(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?oe(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?le(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return x}},{key:"DATE_MED",get:function(){return k}},{key:"DATE_FULL",get:function(){return A}},{key:"DATE_HUGE",get:function(){return O}},{key:"TIME_SIMPLE",get:function(){return E}},{key:"TIME_WITH_SECONDS",get:function(){return P}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return M}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return T}},{key:"TIME_24_SIMPLE",get:function(){return I}},{key:"TIME_24_WITH_SECONDS",get:function(){return L}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return D}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return R}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return F}},{key:"DATETIME_MED",get:function(){return N}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return V}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return z}},{key:"DATETIME_FULL",get:function(){return B}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return H}},{key:"DATETIME_HUGE",get:function(){return U}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return W}}]),e}();function or(e){if(ar.isDateTime(e))return e;if(e&&e.valueOf&&$(e.valueOf()))return ar.fromJSDate(e);if(e&&"object"==typeof e)return ar.fromObject(e);throw new b("Unknown datetime argument: "+e+", of type "+typeof e)}t.DateTime=ar,t.Duration=on,t.FixedOffsetZone=qe,t.IANAZone=Ue,t.Info=hn,t.Interval=un,t.InvalidZone=$e,t.LocalZone=Ne,t.Settings=et,t.Zone=Re},"G/xj":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("fXoL");let i=(()=>{class e{transform(e,t){let n=[],r=e.findIndex(e=>e.day===t.toLowerCase());for(let i=r;i{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:o}=this,s=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new r.a(e,t,n):new r.a(a.a)}(e,t,n);if(s.add(o?o.call(s,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:i}=e;if(t||i)return!1;e=n&&n instanceof r.a?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=u(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[o.a](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?s.a:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=u(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function u(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r=e=>e&&"number"==typeof e.length&&"function"!=typeof e},IRP5:function(e,t,n){"use strict";function r(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function i(e,t){return function(n,r){t(n,r,e)}}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i})},IfeN:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n("AytR"),i=n("z6cu"),a=n("O4cp"),o=n("up6S"),s=n("zE46"),c=n("JIr8"),l=n("fXoL"),u=n("ucNU"),h=n("tk/3");let d=(()=>{class e{constructor(e,t){this.authService=e,this.http=t,this.url=r.a.api_prefix+"/notification"}getNotification(){return this.http.get(this.url,this.authService.getBasicAuthHeaderForAPI())}changeNotificationReadStatus(e){return this.http.post(this.url+"/is_read",{object_id:e},this.authService.getBasicAuthHeaderForAPI()).pipe(Object(c.a)(this.handleError))}changeNotificationActionStatus(e){return this.http.post(this.url+"/action",{object_id:e},this.authService.getBasicAuthHeaderForAPI()).pipe(Object(c.a)(this.handleError))}handleError(e){return console.log(e),422===e.status?Object(i.a)(new a.a(e)):403===e.status?Object(i.a)(new o.a(e)):500===e.status?Object(i.a)(new s.a(e)):401===e.status?Object(i.a)(new o.a(e)):Object(i.a)(new s.a(e))}}return e.\u0275fac=function(t){return new(t||e)(l["\u0275\u0275inject"](u.a),l["\u0275\u0275inject"](h.b))},e.\u0275prov=l["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return i});let r=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class i extends r{constructor(e,t=r.now){super(e,()=>i.delegate&&i.delegate!==this?i.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return i.delegate&&i.delegate!==this?i.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let 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}}}},IkSl:function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var r=n("fXoL"),i=n("Q4Nv"),a=n("+Nuo");const o=["pdfViewerContainer"],s=function(e){const t=new e.EventBus(!0);var n;return(n=t).on("documentload",()=>{const e=document.createEvent("CustomEvent");e.initCustomEvent("documentload",!0,!0,{}),window.dispatchEvent(e)}),n.on("pagerendered",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("pagerendered",!0,!0,{pageNumber:e.pageNumber,cssTransform:e.cssTransform}),e.source.div.dispatchEvent(t)}),n.on("textlayerrendered",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("textlayerrendered",!0,!0,{pageNumber:e.pageNumber}),e.source.textLayerDiv.dispatchEvent(t)}),n.on("pagechanging",e=>{const t=document.createEvent("UIEvents");t.initEvent("pagechanging",!0,!0),t.pageNumber=e.pageNumber,e.source.container.dispatchEvent(t)}),n.on("pagesinit",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("pagesinit",!0,!0,null),e.source.container.dispatchEvent(t)}),n.on("pagesloaded",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("pagesloaded",!0,!0,{pagesCount:e.pagesCount}),e.source.container.dispatchEvent(t)}),n.on("scalechange",e=>{const t=document.createEvent("UIEvents");t.initEvent("scalechange",!0,!0),t.scale=e.scale,t.presetValue=e.presetValue,e.source.container.dispatchEvent(t)}),n.on("updateviewarea",e=>{const t=document.createEvent("UIEvents");t.initEvent("updateviewarea",!0,!0),t.location=e.location,e.source.container.dispatchEvent(t)}),n.on("find",e=>{if(e.source===window)return;const t=document.createEvent("CustomEvent");t.initCustomEvent("find"+e.type,!0,!0,{query:e.query,phraseSearch:e.phraseSearch,caseSensitive:e.caseSensitive,highlightAll:e.highlightAll,findPrevious:e.findPrevious}),window.dispatchEvent(t)}),n.on("attachmentsloaded",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("attachmentsloaded",!0,!0,{attachmentsCount:e.attachmentsCount}),e.source.container.dispatchEvent(t)}),n.on("sidebarviewchanged",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("sidebarviewchanged",!0,!0,{view:e.view}),e.source.outerContainer.dispatchEvent(t)}),n.on("pagemode",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("pagemode",!0,!0,{mode:e.mode}),e.source.pdfViewer.container.dispatchEvent(t)}),n.on("namedaction",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("namedaction",!0,!0,{action:e.action}),e.source.pdfViewer.container.dispatchEvent(t)}),n.on("presentationmodechanged",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("presentationmodechanged",!0,!0,{active:e.active,switchInProgress:e.switchInProgress}),window.dispatchEvent(t)}),n.on("outlineloaded",e=>{const t=document.createEvent("CustomEvent");t.initCustomEvent("outlineloaded",!0,!0,{outlineCount:e.outlineCount}),e.source.container.dispatchEvent(t)}),t};function c(e,t,n){e[t]=n}function l(){return"undefined"==typeof window}var u;l()||c(i,"verbosity",i.VerbosityLevel.ERRORS);var h=function(e){return e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e[e.ENHANCED=2]="ENHANCED",e}({});let d=(()=>{let e=u=class{constructor(e){if(this.element=e,this.isVisible=!1,this._cMapsUrl=void 0!==i?`https://unpkg.com/pdfjs-dist@${i.version}/cmaps/`:null,this._renderText=!0,this._renderTextMode=h.ENABLED,this._stickToPage=!1,this._originalSize=!0,this._page=1,this._zoom=1,this._zoomScale="page-width",this._rotation=0,this._showAll=!0,this._canAutoResize=!0,this._fitToPage=!1,this._externalLinkTarget="blank",this._showBorders=!1,this.isInitialized=!1,this.afterLoadComplete=new r.EventEmitter,this.pageRendered=new r.EventEmitter,this.pageInitialized=new r.EventEmitter,this.textLayerRendered=new r.EventEmitter,this.onError=new r.EventEmitter,this.onProgress=new r.EventEmitter,this.pageChange=new r.EventEmitter(!0),l())return;let t;t=window.hasOwnProperty("pdfWorkerSrc")&&"string"==typeof window.pdfWorkerSrc&&window.pdfWorkerSrc?window.pdfWorkerSrc:`https://cdn.jsdelivr.net/npm/pdfjs-dist@${i.version}/es5/build/pdf.worker.js`,c(i.GlobalWorkerOptions,"workerSrc",t)}set cMapsUrl(e){this._cMapsUrl=e}set page(e){const t=e=parseInt(e,10)||1;this._pdf&&(e=this.getValidPageNumber(e)),this._page=e,t!==e&&this.pageChange.emit(e)}set renderText(e){this._renderText=e}set renderTextMode(e){this._renderTextMode=e}set originalSize(e){this._originalSize=e}set showAll(e){this._showAll=e}set stickToPage(e){this._stickToPage=e}set zoom(e){e<=0||(this._zoom=e)}get zoom(){return this._zoom}set zoomScale(e){this._zoomScale=e}get zoomScale(){return this._zoomScale}set rotation(e){"number"==typeof e&&e%90==0?this._rotation=e:console.warn("Invalid pages rotation angle.")}set externalLinkTarget(e){this._externalLinkTarget=e}set autoresize(e){this._canAutoResize=Boolean(e)}set fitToPage(e){this._fitToPage=Boolean(e)}set showBorders(e){this._showBorders=Boolean(e)}static getLinkTarget(e){switch(e){case"blank":return i.LinkTarget.BLANK;case"none":return i.LinkTarget.NONE;case"self":return i.LinkTarget.SELF;case"parent":return i.LinkTarget.PARENT;case"top":return i.LinkTarget.TOP}return null}ngAfterViewChecked(){if(this.isInitialized)return;const e=this.pdfViewerContainer.nativeElement.offsetParent;!0!==this.isVisible||null!=e?!1===this.isVisible&&null!=e&&(this.isVisible=!0,setTimeout(()=>{this.ngOnInit(),this.ngOnChanges({src:this.src})})):this.isVisible=!1}ngOnInit(){!l()&&this.isVisible&&(this.isInitialized=!0,this.setupMultiPageViewer(),this.setupSinglePageViewer())}ngOnDestroy(){this.clear()}onPageResize(){this._canAutoResize&&this._pdf&&(this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.updateSize()},100))}get pdfLinkService(){return this._showAll?this.pdfMultiPageLinkService:this.pdfSinglePageLinkService}get pdfViewer(){return this.getCurrentViewer()}get pdfFindController(){return this._showAll?this.pdfMultiPageFindController:this.pdfSinglePageFindController}ngOnChanges(e){if(!l()&&this.isVisible)if("src"in e)this.loadPDF();else if(this._pdf){if("renderText"in e?(this.getCurrentViewer().textLayerMode=this._renderText?this._renderTextMode:h.DISABLED,this.resetPdfDocument()):"showAll"in e&&this.resetPdfDocument(),"page"in e){const{page:t}=e;if(t.currentValue===this._latestScrolledPage)return;this.getCurrentViewer().scrollPageIntoView({pageNumber:this._page})}this.update()}}updateSize(){const e=this.getCurrentViewer();this._pdf.getPage(e.currentPageNumber).then(t=>{const n=this._rotation||t.rotate,r=t.getViewport({scale:this._zoom,rotation:n}).width*u.CSS_UNITS;let i=this._zoom,a=!0;if(!this._originalSize||this._fitToPage&&r>this.pdfViewerContainer.nativeElement.clientWidth){const e=t.getViewport({scale:1,rotation:n});i=this.getScale(e.width,e.height),a=!this._stickToPage}e._setScale(i,a)})}clear(){this.loadingTask&&!this.loadingTask.destroyed&&this.loadingTask.destroy(),this._pdf&&(this._pdf.destroy(),this._pdf=null,this.pdfMultiPageViewer.setDocument(null),this.pdfSinglePageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null,null),this.pdfSinglePageLinkService.setDocument(null,null),this.pdfMultiPageFindController.setDocument(null),this.pdfSinglePageFindController.setDocument(null))}getPDFLinkServiceConfig(){const e={},t=u.getLinkTarget(this._externalLinkTarget);return t&&(e.externalLinkTarget=t),e}setupMultiPageViewer(){c(i,"disableTextLayer",!this._renderText);const e=s(a);e.on("pagerendered",e=>{this.pageRendered.emit(e)}),e.on("pagesinit",e=>{this.pageInitialized.emit(e)}),e.on("pagechanging",e=>{this.pageScrollTimeout&&clearTimeout(this.pageScrollTimeout),this.pageScrollTimeout=setTimeout(()=>{this._latestScrolledPage=e.pageNumber,this.pageChange.emit(e.pageNumber)},100)}),e.on("textlayerrendered",e=>{this.textLayerRendered.emit(e)}),this.pdfMultiPageLinkService=new a.PDFLinkService(Object.assign({eventBus:e},this.getPDFLinkServiceConfig())),this.pdfMultiPageFindController=new a.PDFFindController({linkService:this.pdfMultiPageLinkService,eventBus:e});const t={eventBus:e,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfMultiPageLinkService,textLayerMode:this._renderText?this._renderTextMode:h.DISABLED,findController:this.pdfMultiPageFindController};this.pdfMultiPageViewer=new a.PDFViewer(t),this.pdfMultiPageLinkService.setViewer(this.pdfMultiPageViewer),this.pdfMultiPageFindController.setDocument(this._pdf)}setupSinglePageViewer(){c(i,"disableTextLayer",!this._renderText);const e=s(a);e.on("pagechanging",e=>{e.pageNumber!==this._page&&(this.page=e.pageNumber)}),e.on("pagerendered",e=>{this.pageRendered.emit(e)}),e.on("pagesinit",e=>{this.pageInitialized.emit(e)}),e.on("textlayerrendered",e=>{this.textLayerRendered.emit(e)}),this.pdfSinglePageLinkService=new a.PDFLinkService(Object.assign({eventBus:e},this.getPDFLinkServiceConfig())),this.pdfSinglePageFindController=new a.PDFFindController({linkService:this.pdfSinglePageLinkService,eventBus:e});const t={eventBus:e,container:this.element.nativeElement.querySelector("div"),removePageBorders:!this._showBorders,linkService:this.pdfSinglePageLinkService,textLayerMode:this._renderText?this._renderTextMode:h.DISABLED,findController:this.pdfSinglePageFindController};this.pdfSinglePageViewer=new a.PDFSinglePageViewer(t),this.pdfSinglePageLinkService.setViewer(this.pdfSinglePageViewer),this.pdfSinglePageFindController.setDocument(this._pdf),this.pdfSinglePageViewer._currentPageNumber=this._page}getValidPageNumber(e){return e<1?1:e>this._pdf.numPages?this._pdf.numPages:e}getDocumentParams(){const e=typeof this.src;if(!this._cMapsUrl)return this.src;const t={cMapUrl:this._cMapsUrl,cMapPacked:!0};return"string"===e?t.url=this.src:"object"===e&&(void 0!==this.src.byteLength?t.data=this.src:Object.assign(t,this.src)),t}loadPDF(){if(!this.src)return;if(this.lastLoaded===this.src)return void this.update();this.clear(),this.loadingTask=Object(i.getDocument)(this.getDocumentParams()),this.loadingTask.onProgress=e=>{this.onProgress.emit(e)};const e=this.src;this.loadingTask.promise.then(t=>{this._pdf=t,this.lastLoaded=e,this.afterLoadComplete.emit(t),this.pdfMultiPageViewer||(this.setupMultiPageViewer(),this.setupSinglePageViewer()),this.resetPdfDocument(),this.update()},e=>{this.onError.emit(e)})}update(){this.page=this._page,this.render()}render(){this._page=this.getValidPageNumber(this._page);const e=this.getCurrentViewer();0===this._rotation&&e.pagesRotation===this._rotation||setTimeout(()=>{e.pagesRotation=this._rotation}),this._stickToPage&&setTimeout(()=>{e.currentPageNumber=this._page}),this.updateSize()}getScale(e,t){const n=this._showBorders?2*u.BORDER_WIDTH:0,r=this.pdfViewerContainer.nativeElement.clientWidth-n,i=this.pdfViewerContainer.nativeElement.clientHeight-n;if(0===i||0===t||0===r||0===e)return 1;let a=1;switch(this._zoomScale){case"page-fit":a=Math.min(i/t,r/e);break;case"page-height":a=i/t;break;case"page-width":default:a=r/e}return this._zoom*a/u.CSS_UNITS}getCurrentViewer(){return this._showAll?this.pdfMultiPageViewer:this.pdfSinglePageViewer}resetPdfDocument(){this.pdfFindController.setDocument(this._pdf),this._showAll?(this.pdfSinglePageViewer.setDocument(null),this.pdfSinglePageLinkService.setDocument(null),this.pdfMultiPageViewer.setDocument(this._pdf),this.pdfMultiPageLinkService.setDocument(this._pdf,null)):(this.pdfMultiPageViewer.setDocument(null),this.pdfMultiPageLinkService.setDocument(null),this.pdfSinglePageViewer.setDocument(this._pdf),this.pdfSinglePageLinkService.setDocument(this._pdf,null))}};return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](r.ElementRef))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["pdf-viewer"]],viewQuery:function(e,t){if(1&e&&r["\u0275\u0275viewQuery"](o,1),2&e){let e;r["\u0275\u0275queryRefresh"](e=r["\u0275\u0275loadQuery"]())&&(t.pdfViewerContainer=e.first)}},hostBindings:function(e,t){1&e&&r["\u0275\u0275listener"]("resize",function(){return t.onPageResize()},!1,r["\u0275\u0275resolveWindow"])},inputs:{cMapsUrl:["c-maps-url","cMapsUrl"],page:"page",renderText:["render-text","renderText"],renderTextMode:["render-text-mode","renderTextMode"],originalSize:["original-size","originalSize"],showAll:["show-all","showAll"],stickToPage:["stick-to-page","stickToPage"],zoom:"zoom",zoomScale:["zoom-scale","zoomScale"],rotation:"rotation",externalLinkTarget:["external-link-target","externalLinkTarget"],autoresize:"autoresize",fitToPage:["fit-to-page","fitToPage"],showBorders:["show-borders","showBorders"],src:"src"},outputs:{afterLoadComplete:"after-load-complete",pageRendered:"page-rendered",pageInitialized:"pages-initialized",textLayerRendered:"text-layer-rendered",onError:"error",onProgress:"on-progress",pageChange:"pageChange"},features:[r["\u0275\u0275NgOnChangesFeature"]],decls:3,vars:0,consts:[[1,"ng2-pdf-viewer-container"],["pdfViewerContainer",""],[1,"pdfViewer"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0,1),r["\u0275\u0275element"](2,"div",2),r["\u0275\u0275elementEnd"]())},styles:['.ng2-pdf-viewer-container[_ngcontent-%COMP%]{overflow-x:auto;position:relative;height:100%;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .textLayer{position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1}[_nghost-%COMP%] .textLayer>span{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0 0}[_nghost-%COMP%] .textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}[_nghost-%COMP%] .textLayer .highlight.begin{border-radius:4px 0 0 4px}[_nghost-%COMP%] .textLayer .highlight.end{border-radius:0 4px 4px 0}[_nghost-%COMP%] .textLayer .highlight.middle{border-radius:0}[_nghost-%COMP%] .textLayer .highlight.selected{background-color:#006400}[_nghost-%COMP%] .textLayer ::-moz-selection{background:#00f}[_nghost-%COMP%] .textLayer ::selection{background:#00f}[_nghost-%COMP%] .textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[_nghost-%COMP%] .textLayer .endOfContent.active{top:0}[_nghost-%COMP%] .annotationLayer section{position:absolute}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a, [_nghost-%COMP%] .annotationLayer .linkAnnotation>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.pushButton>a:hover, [_nghost-%COMP%] .annotationLayer .linkAnnotation>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}[_nghost-%COMP%] .annotationLayer .textAnnotation img{position:absolute;cursor:pointer}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;padding:0 3px;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{background-color:rgba(0,54,255,.13);border:1px solid transparent;box-sizing:border-box;font-size:9px;height:100%;margin:0;vertical-align:top;width:100%}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select option{padding:0}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea{font:message-box;font-size:9px;resize:none}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input[disabled], [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input[disabled], [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:0 0;border:1px solid transparent;cursor:not-allowed}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:hover, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:hover{border:1px solid #000}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:hover{border:1px solid #000}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:hover, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid #000}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input:focus, [_nghost-%COMP%] .annotationLayer .textWidgetAnnotation textarea:focus{background:0 0;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .choiceWidgetAnnotation select:focus{background:0 0;border:1px solid transparent}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{background-color:#000;content:"";display:block;position:absolute;height:80%;left:45%;width:1px}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:#000;content:"";display:block;position:absolute;border-radius:50%;height:50%;left:30%;top:20%;width:50%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}[_nghost-%COMP%] .annotationLayer .textWidgetAnnotation input.comb:focus{width:115%}[_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.checkBox input, [_nghost-%COMP%] .annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0}[_nghost-%COMP%] .annotationLayer .popupWrapper{position:absolute;width:20em}[_nghost-%COMP%] .annotationLayer .popup{position:absolute;z-index:200;max-width:20em;background-color:#ff9;box-shadow:0 2px 5px #888;border-radius:2px;padding:6px;margin-left:5px;cursor:pointer;font:message-box;font-size:9px;word-wrap:break-word}[_nghost-%COMP%] .annotationLayer .popup>*{font-size:9px}[_nghost-%COMP%] .annotationLayer .popup h1{display:inline-block}[_nghost-%COMP%] .annotationLayer .popup span{display:inline-block;margin-left:5px}[_nghost-%COMP%] .annotationLayer .popup p{border-top:1px solid #333;margin-top:2px;padding-top:2px}[_nghost-%COMP%] .annotationLayer .caretAnnotation, [_nghost-%COMP%] .annotationLayer .circleAnnotation svg ellipse, [_nghost-%COMP%] .annotationLayer .fileAttachmentAnnotation, [_nghost-%COMP%] .annotationLayer .freeTextAnnotation, [_nghost-%COMP%] .annotationLayer .highlightAnnotation, [_nghost-%COMP%] .annotationLayer .inkAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .lineAnnotation svg line, [_nghost-%COMP%] .annotationLayer .polygonAnnotation svg polygon, [_nghost-%COMP%] .annotationLayer .polylineAnnotation svg polyline, [_nghost-%COMP%] .annotationLayer .squareAnnotation svg rect, [_nghost-%COMP%] .annotationLayer .squigglyAnnotation, [_nghost-%COMP%] .annotationLayer .stampAnnotation, [_nghost-%COMP%] .annotationLayer .strikeoutAnnotation, [_nghost-%COMP%] .annotationLayer .underlineAnnotation{cursor:pointer}[_nghost-%COMP%] .pdfViewer{padding-bottom:10px}[_nghost-%COMP%] .pdfViewer .canvasWrapper{overflow:hidden}[_nghost-%COMP%] .pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:1px auto -8px;position:relative;overflow:visible;border:9px solid rgba(0,0,0,.01);box-sizing:initial;background-clip:content-box;-o-border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;border-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAA6UlEQVR4Xl2Pi2rEMAwE16fm1f7/r14v7w4rI0IzLAF7hLxNevBSEMEF5+OilNCsRd8ZMyn+a4NmsOT8WJw1lFbSYgGFzF2bLFoLjTClWjKKGRWpDYAGXUnZ4uhbBUzF3Oe/GG/ue2fn4GgsyXhNgysV2JnrhKEMg4fEZcALmiKbNhBBRFpSyDOj1G4QOVly6O1FV54ZZq8OVygrciDt6JazRgi1ljTPH0gbrPmHPXAbCiDd4GawIjip1TPh9tt2sz24qaCjr/jAb/GBFTbq9KZ7Ke/Cqt8nayUikZKsWZK7Fe6bg5dOUt8fZHWG2BHc+6EAAAAASUVORK5CYII=) 9 9 repeat;background-color:#fff}[_nghost-%COMP%] .pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}[_nghost-%COMP%] .pdfViewer.removePageBorders{padding-bottom:0}[_nghost-%COMP%] .pdfViewer.singlePageView{display:inline-block}[_nghost-%COMP%] .pdfViewer.singlePageView .page{margin:0;border:none}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .pdfViewer.scrollWrapped{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .spread{margin-left:3.5px;margin-right:3.5px;text-align:center}[_nghost-%COMP%] .pdfViewer.scrollHorizontal, [_nghost-%COMP%] .spread{white-space:nowrap}[_nghost-%COMP%] .pdfViewer.removePageBorders, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}[_nghost-%COMP%] .spread .page{display:inline-block;vertical-align:middle;margin-left:-3.5px;margin-right:-3.5px}[_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollHorizontal .spread, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}[_nghost-%COMP%] .pdfViewer.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.scrollWrapped .page{margin-left:-3.5px;margin-right:-3.5px}[_nghost-%COMP%] .pdfViewer.removePageBorders .spread .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollHorizontal .page, [_nghost-%COMP%] .pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}[_nghost-%COMP%] .pdfViewer .page canvas{margin:0;display:block}[_nghost-%COMP%] .pdfViewer .page canvas[hidden]{display:none}[_nghost-%COMP%] .pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer{margin-left:0;margin-right:0}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode .pdfViewer .spread{display:block}[_nghost-%COMP%] .pdfPresentationMode .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode .pdfViewer.removePageBorders .page{margin-left:auto;margin-right:auto}[_nghost-%COMP%] .pdfPresentationMode:-ms-fullscreen .pdfViewer .page{margin-bottom:100%!important}[_nghost-%COMP%] .pdfPresentationMode:-webkit-full-screen .pdfViewer .page{margin-bottom:100%;border:0}[_nghost-%COMP%] .pdfPresentationMode:-moz-full-screen .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode:-webkit-full-screen .pdfViewer .page, [_nghost-%COMP%] .pdfPresentationMode:fullscreen .pdfViewer .page{margin-bottom:100%;border:0}']}),e.CSS_UNITS=96/72,e.BORDER_WIDTH=9,e})(),p=(()=>{let e=class{};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r["\u0275\u0275defineNgModule"]({type:e}),e.\u0275inj=r["\u0275\u0275defineInjector"]({}),e})()},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("7o/Q"),i=n("4I5i"),a=n("EY2u");function o(e){return t=>0===e?Object(a.b)():t.lift(new s(e))}class s{constructor(e){if(this.total=e,this.total<0)throw new i.a}call(e,t){return t.subscribe(new c(e,this.total))}}class c extends r.a{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}},JBeB:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("fXoL"),i=n("tyNb");let a=(()=>{class e{constructor(e){this.router=e}goToHome(){this.router.navigate(["/"])}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275directiveInject"](i.c))},e.\u0275cmp=r["\u0275\u0275defineComponent"]({type:e,selectors:[["ngx-not-found"]],decls:2,vars:0,consts:[[1,"row"],[1,"col-md-12"]],template:function(e,t){1&e&&(r["\u0275\u0275elementStart"](0,"div",0),r["\u0275\u0275element"](1,"div",1),r["\u0275\u0275elementEnd"]())},styles:[".flex-centered[_ngcontent-%COMP%]{margin:auto}nb-card-body[_ngcontent-%COMP%]{display:flex}.sub-title[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{text-align:center}.sub-title[_ngcontent-%COMP%]{display:block;margin-bottom:3rem}.home-button[_ngcontent-%COMP%]{margin-bottom:2rem}"]}),e})()},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zx2A");function i(e){return function(t){const n=new a(e),r=t.lift(n);return n.caught=r}}class a{constructor(e){this.selector=e}call(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}class o extends r.b{constructor(e,t,n){super(e),this.selector=t,this.caught=n}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(t){return void super.error(t)}this._unsubscribeAndRecycle();const i=new r.a(this);this.add(i);const a=Object(r.c)(n,i);a!==i&&this.add(a)}}}},JX91:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("GyhO"),i=n("z+Ro");function a(...e){const t=e[e.length-1];return Object(i.a)(t)?(e.pop(),n=>Object(r.a)(e,n,t)):t=>Object(r.a)(e,t)}},KWzY:function(e,t,n){"use strict";n.d(t,"a",function(){return O});var r=n("lJxs"),i=n("1G5W"),a=n("pLZG"),o=n("XNiG"),s=n("gCK3"),c=n("786k"),l=n("fXoL"),u=n("aceb"),h=n("vC38"),d=n("lLt6"),p=n("fRX3"),f=n("NKF1"),g=n("ucNU"),m=n("tyNb"),y=n("IfeN"),v=n("ofXK");function b(e,t){if(1&e&&(l["\u0275\u0275elementStart"](0,"nb-option",16),l["\u0275\u0275text"](1),l["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;l["\u0275\u0275property"]("value",e.name),l["\u0275\u0275advance"](1),l["\u0275\u0275textInterpolate1"](" ",e.name," ")}}function _(e,t){if(1&e){const e=l["\u0275\u0275getCurrentView"]();l["\u0275\u0275elementStart"](0,"nb-select",15),l["\u0275\u0275listener"]("selectedChange",function(t){return l["\u0275\u0275restoreView"](e),l["\u0275\u0275nextContext"]().onChangeResturant(t)}),l["\u0275\u0275template"](1,b,2,2,"nb-option",9),l["\u0275\u0275elementEnd"]()}if(2&e){const e=l["\u0275\u0275nextContext"]();l["\u0275\u0275property"]("selected",e.selectedResturant),l["\u0275\u0275advance"](1),l["\u0275\u0275property"]("ngForOf",e.userRestaurants)}}function w(e,t){if(1&e&&(l["\u0275\u0275elementStart"](0,"nb-option",16),l["\u0275\u0275text"](1),l["\u0275\u0275elementEnd"]()),2&e){const e=t.$implicit;l["\u0275\u0275property"]("value",e.value),l["\u0275\u0275advance"](1),l["\u0275\u0275textInterpolate1"](" ",e.name,"")}}function C(e,t){1&e&&(l["\u0275\u0275elementStart"](0,"p",20),l["\u0275\u0275text"](1,"No notifications yet!"),l["\u0275\u0275elementEnd"]())}const S=function(e){return{read:e}};function x(e,t){if(1&e){const e=l["\u0275\u0275getCurrentView"]();l["\u0275\u0275elementStart"](0,"nb-list-item",22),l["\u0275\u0275listener"]("click",function(){l["\u0275\u0275restoreView"](e);const n=t.$implicit;return l["\u0275\u0275nextContext"](3).openNotificationDialog(n)}),l["\u0275\u0275element"](1,"nb-user",23),l["\u0275\u0275elementEnd"]()}if(2&e){const e=t.$implicit;l["\u0275\u0275property"]("ngClass",l["\u0275\u0275pureFunction1"](3,S,!e.read)),l["\u0275\u0275advance"](1),l["\u0275\u0275property"]("name",e.message)("title",e.createdDate)}}function k(e,t){if(1&e&&(l["\u0275\u0275elementStart"](0,"nb-list"),l["\u0275\u0275template"](1,x,2,5,"nb-list-item",21),l["\u0275\u0275elementEnd"]()),2&e){const e=l["\u0275\u0275nextContext"](2);l["\u0275\u0275advance"](1),l["\u0275\u0275property"]("ngForOf",e.notifications)}}function A(e,t){if(1&e&&(l["\u0275\u0275elementStart"](0,"nb-card",17),l["\u0275\u0275elementStart"](1,"nb-card-header"),l["\u0275\u0275text"](2,"Notifications"),l["\u0275\u0275elementEnd"](),l["\u0275\u0275template"](3,C,2,0,"p",18),l["\u0275\u0275template"](4,k,2,1,"nb-list",19),l["\u0275\u0275elementEnd"]()),2&e){const e=l["\u0275\u0275nextContext"]();l["\u0275\u0275advance"](3),l["\u0275\u0275property"]("ngIf",0===e.notifications.length),l["\u0275\u0275advance"](1),l["\u0275\u0275property"]("ngIf",e.notifications.length>0)}}let O=(()=>{class e{constructor(e,t,n,r,i,a,s,c,l,u,h,d){this.sidebarService=e,this.menuService=t,this.themeService=n,this.layoutService=r,this.foodItemLocalService=i,this.pageMenuService=a,this.restaurantService=s,this.breakpointService=c,this.authService=l,this.router=u,this.notificationService=h,this.dialogService=d,this.destroy$=new o.a,this.userPictureOnly=!1,this.userRestaurants=[],this.submitServerAttempted=!0,this.themes=[{value:"default",name:"Light"},{value:"dark",name:"Dark"},{value:"cosmic",name:"Cosmic"},{value:"corporate",name:"Corporate"}],this.currentTheme="default",this.userMenu=[{title:"Profile"},{title:"Log Out"}],this.notifications=[]}ngOnInit(){this.getUserRestaurantsData(),this.currentTheme=this.themeService.currentTheme;const{xl:e}=this.breakpointService.getBreakpointsMap();this.themeService.onMediaQueryChange().pipe(Object(r.a)(([,t])=>t.widththis.userPictureOnly=e),this.themeService.onThemeChange().pipe(Object(r.a)(({name:e})=>e),Object(i.a)(this.destroy$)).subscribe(e=>this.currentTheme=e),this.menuService.onItemClick().pipe(Object(a.a)(({tag:e})=>"my-context-menu"===e),Object(r.a)(({item:{title:e}})=>e)).subscribe(e=>{if("Log Out"===e)this.authService.logOut();else{let e=JSON.parse(localStorage.getItem("activeUser"));this.hasAccessToViewNonStaffUser()?this.router.navigate(["/user-profile"],{queryParams:{email:e.objectId,restaurant_id:this.authService.getActiveRestaurant().objectId}}):this.router.navigate(["/non-staff-user-profile"],{queryParams:{email:e.email,restaurant_id:this.authService.getActiveRestaurant().objectId}})}}),this.pageMenuService.isUpdateRestaurant.subscribe(e=>{this.userRestaurants=[],this.selectedResturant="",this.getUserRestaurantsData()}),this.userInfo=localStorage.getItem("userInfo"),this.activeRestaurant=JSON.parse(localStorage.getItem("activeRestaurant"))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}changeTheme(e){this.themeService.changeTheme(e)}toggleSidebar(){return this.sidebarService.toggle(!0,"menu-sidebar"),this.layoutService.changeLayoutSize(),!1}hasAccessToViewNonStaffUser(){return this.authService.currentUser.isStaffUser(Object.keys(this.authService.currentUser.rolePermissions[this.authService.getActiveRestaurant().objectId])[0])}onChangeResturant(e){var t=this.userRestaurants.filter(t=>t.name==e);this.authService.setActiveRestaurant(t[0]),this.canViewFoodItems()&&this.foodItemLocalService.getFoodItemsFromAPIAndSave(),this.pageMenuService.setCheckUserInfo(!0),setTimeout(()=>location.reload(),2e3)}canViewFoodItems(){return this.authService.currentUser.canViewFoodItems(this.authService.getActiveRestaurant().objectId)}fillUserRestaurantsArray(e){for(let n of e){var t=new s.a;t.fillValuesFromObj(n),"Approved"==t.status&&this.userRestaurants.push(t)}}getUserRestaurantsData(){this.submitServerAttempted=!0,this.restaurantService.getRestaurants(this.authService.currentUser.restaurants).subscribe(e=>{this.fillUserRestaurantsArray(e),this.submitServerAttempted=!1,this.setActiveRestaurant()},e=>{this.submitServerAttempted=!1})}setActiveRestaurant(){let e=JSON.parse(localStorage.getItem("activeRestaurant"));e&&null!==e&&(this.selectedResturant=e.name)}isNotificationBadge(e){return!e.every(e=>!0===e.read)}openNotificationDialog(e){e.action||(this.notificationService.changeNotificationReadStatus(e.objectId).subscribe(e=>{}),this.dialogService.open(c.a,{closeOnBackdropClick:!1,context:{notification:e}}))}}return e.\u0275fac=function(t){return new(t||e)(l["\u0275\u0275directiveInject"](u.wb),l["\u0275\u0275directiveInject"](u.hb),l["\u0275\u0275directiveInject"](u.Jb),l["\u0275\u0275directiveInject"](h.a),l["\u0275\u0275directiveInject"](d.a),l["\u0275\u0275directiveInject"](p.a),l["\u0275\u0275directiveInject"](f.a),l["\u0275\u0275directiveInject"](u.eb),l["\u0275\u0275directiveInject"](g.a),l["\u0275\u0275directiveInject"](m.c),l["\u0275\u0275directiveInject"](y.a),l["\u0275\u0275directiveInject"](u.N))},e.\u0275cmp=l["\u0275\u0275defineComponent"]({type:e,selectors:[["rom-header"]],decls:22,vars:8,consts:[[1,"header-container"],[1,"logo-container"],["href","#",1,"sidebar-toggle",3,"click"],["icon","menu-2-outline"],[1,"d-flex","flex-column"],[1,"logo"],[1,"text-success"],["fullWidth","","class","brand-name","status","primary","placeholder","Switch Resturant","size","small","hero","","shape","semi-round",3,"selected","selectedChange",4,"ngIf"],[1,"theme","ml-5",3,"selected","selectedChange"],[3,"value",4,"ngFor","ngForOf"],["size","small"],["nbPopoverTrigger","hover","nbPopoverPlacement","bottom","icon","bell-outline","badgeStatus","primary","badgePosition","top right",1,"control-item",3,"nbPopover","badgeDot"],[1,"user-action"],["nbContextMenuTag","my-context-menu",3,"nbContextMenu","onlyPicture","name"],["notificationPopover",""],["fullWidth","","status","primary","placeholder","Switch Resturant","size","small","hero","","shape","semi-round",1,"brand-name",3,"selected","selectedChange"],[3,"value"],[1,"popover-card"],["class","p-2 text-success",4,"ngIf"],[4,"ngIf"],[1,"p-2","text-success"],["style","cursor: pointer",3,"ngClass","click",4,"ngFor","ngForOf"],[2,"cursor","pointer",3,"ngClass","click"],["size","small","showInitials","false",3,"name","title"]],template:function(e,t){if(1&e&&(l["\u0275\u0275elementStart"](0,"div",0),l["\u0275\u0275elementStart"](1,"div",1),l["\u0275\u0275elementStart"](2,"a",2),l["\u0275\u0275listener"]("click",function(){return t.toggleSidebar()}),l["\u0275\u0275element"](3,"nb-icon",3),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementStart"](4,"div",4),l["\u0275\u0275elementStart"](5,"div"),l["\u0275\u0275elementStart"](6,"a",5),l["\u0275\u0275text"](7,"Augmenify"),l["\u0275\u0275elementStart"](8,"span",6),l["\u0275\u0275elementStart"](9,"strong"),l["\u0275\u0275text"](10,"."),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementStart"](11,"div"),l["\u0275\u0275template"](12,_,2,2,"nb-select",7),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementStart"](13,"nb-select",8),l["\u0275\u0275listener"]("selectedChange",function(e){return t.changeTheme(e)}),l["\u0275\u0275template"](14,w,2,2,"nb-option",9),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementStart"](15,"div",0),l["\u0275\u0275elementStart"](16,"nb-actions",10),l["\u0275\u0275element"](17,"nb-action",11),l["\u0275\u0275elementStart"](18,"nb-action",12),l["\u0275\u0275element"](19,"nb-user",13),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275elementEnd"](),l["\u0275\u0275template"](20,A,5,2,"ng-template",null,14,l["\u0275\u0275templateRefExtractor"])),2&e){const e=l["\u0275\u0275reference"](21);l["\u0275\u0275advance"](12),l["\u0275\u0275property"]("ngIf",t.activeRestaurant),l["\u0275\u0275advance"](1),l["\u0275\u0275property"]("selected",t.currentTheme),l["\u0275\u0275advance"](1),l["\u0275\u0275property"]("ngForOf",t.themes),l["\u0275\u0275advance"](3),l["\u0275\u0275property"]("nbPopover",e)("badgeDot",t.showNotificationBadge),l["\u0275\u0275advance"](2),l["\u0275\u0275property"]("nbContextMenu",t.userMenu)("onlyPicture",t.userPictureOnly)("name",t.userInfo)}},directives:[u.Q,v.s,u.sb,v.r,u.l,u.k,u.kb,u.Pb,u.F,u.ib,u.z,u.B,u.bb,u.cb,v.p],styles:[".nb-theme-default [_nghost-%COMP%]{display:flex;justify-content:space-between;width:100%}.nb-theme-default [_nghost-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:calc(16rem - 1.25rem)}.nb-theme-default [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]{height:auto;display:flex;align-content:center}.nb-theme-default [_nghost-%COMP%] nb-user[_ngcontent-%COMP%]{cursor:pointer}.nb-theme-default [_nghost-%COMP%] nb-search button{padding:0!important}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:auto}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:#8f9bb3}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}.nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1rem;font-size:1.35rem;white-space:nowrap;text-decoration:none}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid #edf1f7}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid #edf1f7}.nb-theme-default [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{margin-top:4px;padding:0 .7rem;font-size:1rem;white-space:nowrap;text-decoration:none;color:#36f}[dir=ltr] .nb-theme-default [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-left:1px solid #edf1f7}[dir=rtl] .nb-theme-default [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-right:1px solid #edf1f7}@media (max-width:767.98px){.nb-theme-default [_nghost-%COMP%] .user-action[_ngcontent-%COMP%]{border:none;padding:0}}@media (max-width:575.98px){.nb-theme-default [_nghost-%COMP%] .theme[_ngcontent-%COMP%]{display:none}}.nb-theme-dark [_nghost-%COMP%]{display:flex;justify-content:space-between;width:100%}.nb-theme-dark [_nghost-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:calc(16rem - 1.25rem)}.nb-theme-dark [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]{height:auto;display:flex;align-content:center}.nb-theme-dark [_nghost-%COMP%] nb-user[_ngcontent-%COMP%]{cursor:pointer}.nb-theme-dark [_nghost-%COMP%] nb-search button{padding:0!important}.nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:auto}.nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:#8f9bb3}[dir=ltr] .nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] .nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}.nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}.nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1rem;font-size:1.35rem;white-space:nowrap;text-decoration:none}[dir=ltr] .nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid #151a30}[dir=rtl] .nb-theme-dark [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid #151a30}.nb-theme-dark [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{margin-top:4px;padding:0 .7rem;font-size:1rem;white-space:nowrap;text-decoration:none;color:#36f}[dir=ltr] .nb-theme-dark [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-left:1px solid #151a30}[dir=rtl] .nb-theme-dark [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-right:1px solid #151a30}@media (max-width:767.98px){.nb-theme-dark [_nghost-%COMP%] .user-action[_ngcontent-%COMP%]{border:none;padding:0}}@media (max-width:575.98px){.nb-theme-dark [_nghost-%COMP%] .theme[_ngcontent-%COMP%]{display:none}}.nb-theme-cosmic [_nghost-%COMP%]{display:flex;justify-content:space-between;width:100%}.nb-theme-cosmic [_nghost-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:calc(16rem - 1.25rem)}.nb-theme-cosmic [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]{height:auto;display:flex;align-content:center}.nb-theme-cosmic [_nghost-%COMP%] nb-user[_ngcontent-%COMP%]{cursor:pointer}.nb-theme-cosmic [_nghost-%COMP%] nb-search button{padding:0!important}.nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:auto}.nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:#b4b4db}[dir=ltr] .nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] .nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}.nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}.nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1rem;font-size:1.35rem;white-space:nowrap;text-decoration:none}[dir=ltr] .nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid #1b1b38}[dir=rtl] .nb-theme-cosmic [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid #1b1b38}.nb-theme-cosmic [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{margin-top:4px;padding:0 .7rem;font-size:1rem;white-space:nowrap;text-decoration:none;color:#a16eff}[dir=ltr] .nb-theme-cosmic [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-left:1px solid #1b1b38}[dir=rtl] .nb-theme-cosmic [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-right:1px solid #1b1b38}@media (max-width:767.98px){.nb-theme-cosmic [_nghost-%COMP%] .user-action[_ngcontent-%COMP%]{border:none;padding:0}}@media (max-width:575.98px){.nb-theme-cosmic [_nghost-%COMP%] .theme[_ngcontent-%COMP%]{display:none}}.nb-theme-corporate [_nghost-%COMP%]{display:flex;justify-content:space-between;width:100%}.nb-theme-corporate [_nghost-%COMP%] .logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:calc(16rem - 1.25rem)}.nb-theme-corporate [_nghost-%COMP%] nb-action[_ngcontent-%COMP%]{height:auto;display:flex;align-content:center}.nb-theme-corporate [_nghost-%COMP%] nb-user[_ngcontent-%COMP%]{cursor:pointer}.nb-theme-corporate [_nghost-%COMP%] nb-search button{padding:0!important}.nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%]{display:flex;align-items:center;width:auto}.nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{text-decoration:none;color:#8f9bb3}[dir=ltr] .nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-right:1.25rem}[dir=rtl] .nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%]{padding-left:1.25rem}.nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .sidebar-toggle[_ngcontent-%COMP%] nb-icon[_ngcontent-%COMP%]{font-size:1.75rem}.nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{padding:0 1rem;font-size:1.35rem;white-space:nowrap;text-decoration:none}[dir=ltr] .nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-left:1px solid #edf1f7}[dir=rtl] .nb-theme-corporate [_nghost-%COMP%] .header-container[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{border-right:1px solid #edf1f7}.nb-theme-corporate [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{margin-top:4px;padding:0 .7rem;font-size:1rem;white-space:nowrap;text-decoration:none;color:#36f}[dir=ltr] .nb-theme-corporate [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-left:1px solid #edf1f7}[dir=rtl] .nb-theme-corporate [_nghost-%COMP%] .brand-name[_ngcontent-%COMP%]{border-right:1px solid #edf1f7}@media (max-width:767.98px){.nb-theme-corporate [_nghost-%COMP%] .user-action[_ngcontent-%COMP%]{border:none;padding:0}}@media (max-width:575.98px){.nb-theme-corporate [_nghost-%COMP%] .theme[_ngcontent-%COMP%]{display:none}}.read[_ngcontent-%COMP%]{background-color:#d9e4ff}.popover-card[_ngcontent-%COMP%]{margin:0;max-width:25rem;max-height:30rem}"]}),e})()},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("7o/Q"),i=n("D0XW");function a(e,t=i.a){return n=>n.lift(new o(e,t))}class o{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}class s extends r.a{constructor(e,t,n){super(e),this.dueTime=t,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function c(e){e.debouncedNext()}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("z+Ro"),i=n("yCtX"),a=n("jZKg");function o(...e){let t=e[e.length-1];return Object(r.a)(t)?(e.pop(),Object(a.a)(e,t)):Object(i.a)(e)}},Lhse:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});const i=r()},NJ4a:function(e,t,n){"use strict";function r(e){setTimeout(()=>{throw e},0)}n.d(t,"a",function(){return r})},NKF1:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("AytR"),i=n("z6cu"),a=n("up6S"),o=n("zE46"),s=n("JIr8"),c=n("fXoL"),l=n("ucNU"),u=n("tk/3");let h=(()=>{class e{constructor(e,t){this.authService=e,this.http=t,this.url=r.a.api_prefix+"/restaurant"}getRestaurants(e){return this.http.post(this.url+"/view/all",{restaurants:e},this.authService.getBasicAuthHeaderForAPI()).pipe(Object(s.a)(this.handleError))}getAllRestaurnats(){return this.http.get(this.url+"/get_all_restaurants",this.authService.getBasicAuthHeaderForAPI()).pipe(Object(s.a)(this.handleError))}approveRestaurant(e){var t=new FormData;return t.append("object_id",e),this.http.post(this.url+"/approve",t,this.authService.getBasicAuthHeaderForAPI()).pipe(Object(s.a)(this.handleError))}updateOperatingHours(e){return this.http.post(this.url+"/update_operating_hours",e,this.authService.getBasicAuthHeaderForAPI()).pipe(Object(s.a)(this.handleError))}updateRestaurantData(e){return this.http.post(this.url+"/update_restaurant",e,this.authService.getBasicAuthHeaderForAPI()).pipe(Object(s.a)(this.handleError))}getValidRestaurantData(){return this.http.post(this.url+"/view/valid",{restaurants:this.authService.currentUser.restaurants},this.authService.getBasicAuthHeaderForAPI()).pipe(Object(s.a)(this.handleError))}handleError(e){return console.log(e),403===e.status?Object(i.a)(new a.a(e)):Object(i.a)(new o.a(e))}}return e.\u0275fac=function(t){return new(t||e)(c["\u0275\u0275inject"](l.a),c["\u0275\u0275inject"](u.b))},e.\u0275prov=c["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac,providedIn:"root"}),e})()},Nm8O:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("fXoL");n("ofXK"),n("5+tZ"),n("Cfvw"),n("tk/3");const i=new r.InjectionToken("JWT_OPTIONS");let a=(()=>{class e{constructor(e=null){this.tokenGetter=e&&e.tokenGetter||function(){}}urlBase64Decode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}b64decode(e){let t="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let n,r,i=0,a=0;r=e.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?t+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return t}b64DecodeUnicode(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(e=this.tokenGetter()){if(!e||""===e)return null;const t=e.split(".");if(3!==t.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const n=this.urlBase64Decode(t[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}getTokenExpirationDate(e=this.tokenGetter()){let t;if(t=this.decodeToken(e),!t||!t.hasOwnProperty("exp"))return null;const n=new Date(0);return n.setUTCSeconds(t.exp),n}isTokenExpired(e=this.tokenGetter(),t){if(!e||""===e)return!0;const n=this.getTokenExpirationDate(e);return t=t||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*t)}getAuthScheme(e,t){return"function"==typeof e?e(t):e}}return e.\u0275fac=function(t){return new(t||e)(r["\u0275\u0275inject"](i))},e.\u0275prov=r["\u0275\u0275defineInjectable"]({token:e,factory:e.\u0275fac}),e})()},O4cp:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zE46");class i extends r.a{}},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},PqYM:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("HDdC"),i=n("D0XW"),a=n("Y7HM"),o=n("z+Ro");function s(e=0,t,n){let s=-1;return Object(a.a)(t)?s=Number(t)<1?1:Number(t):Object(o.a)(t)&&(n=t),Object(o.a)(n)||(n=i.a),new r.a(t=>{const r=Object(a.a)(e)?e:+e-n.now();return n.schedule(c,r,{index:0,period:s,subscriber:t})})}function c(e){const{index:t,period:n,subscriber:r}=e;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},Q4Nv:function(module,exports,__webpack_require__){var factory;factory=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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 r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},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=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(t,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(t,"LoopbackPort",{enumerable:!0,get:function(){return i.LoopbackPort}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return i.version}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return a.CMapCompressionType}}),Object.defineProperty(t,"createObjectURL",{enumerable:!0,get:function(){return a.createObjectURL}}),Object.defineProperty(t,"createPromiseCapability",{enumerable:!0,get:function(){return a.createPromiseCapability}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return a.createValidAbsoluteUrl}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return a.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return a.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return a.OPS}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return a.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return a.PermissionFlag}}),Object.defineProperty(t,"removeNullCharacters",{enumerable:!0,get:function(){return a.removeNullCharacters}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return a.shadow}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return a.UnexpectedResponseException}}),Object.defineProperty(t,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return a.UNSUPPORTED_FEATURES}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return a.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return a.VerbosityLevel}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(t,"apiCompatibilityParams",{enumerable:!0,get:function(){return s.apiCompatibilityParams}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return c.GlobalWorkerOptions}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return l.renderTextLayer}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}});var r=n(1),i=n(198),a=n(5),o=n(209),s=n(200),c=n(203),l=n(210),u=n(211);if(n(7).isNodeJS){var h=n(212).PDFNodeStream;(0,i.setPDFNetworkStreamFactory)(function(e){return new h(e)})}else{var d,p=n(215).PDFNetworkStream;(0,r.isFetchSupported)()&&(d=n(216).PDFFetchStream),(0,i.setPDFNetworkStreamFactory)(function(e){return d&&(0,r.isValidFetchUrl)(e.url)?new d(e):new p(e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLinkAttributes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.url,r=t.target,i=t.rel,o=t.enabled,s=void 0===o||o;(0,a.assert)(n&&"string"==typeof n,'addLinkAttributes: A valid "url" parameter must provided.');var c=(0,a.removeNullCharacters)(n);s?e.href=e.title=c:(e.href="",e.title="Disabled: ".concat(c),e.onclick=function(){return!1});var l="";switch(r){case _.NONE:break;case _.SELF:l="_self";break;case _.BLANK:l="_blank";break;case _.PARENT:l="_parent";break;case _.TOP:l="_top"}e.target=l,e.rel="string"==typeof i?i:y},t.getFilenameFromUrl=function(e){var t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.isFetchSupported=w,t.isValidFetchUrl=C,t.loadScript=function(e){return new Promise(function(t,n){var r=document.createElement("script");r.src=e,r.onload=t,r.onerror=function(){n(new Error("Cannot load script at: ".concat(r.src)))},(document.head||document.documentElement).appendChild(r)})},t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.PDFDateString=t.StatTimer=t.DOMSVGFactory=t.DOMCMapReaderFactory=t.DOMCanvasFactory=t.DEFAULT_LINK_REL=t.LinkTarget=t.RenderingCancelledException=t.PageViewport=void 0;var r,i=(r=n(2))&&r.__esModule?r:{default:r},a=n(5);function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&t>0,"Invalid SVG dimensions");var n=document.createElementNS(v,"svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox","0 0 "+e+" "+t),n}},{key:"createElement",value:function(e){return(0,a.assert)("string"==typeof e,"Invalid SVG element type"),document.createElementNS(v,e)}}]),e}(),t.PageViewport=function(){function e(t){var n=t.viewBox,r=t.scale,i=t.rotation,a=t.offsetX,o=void 0===a?0:a,s=t.offsetY,c=void 0===s?0:s,l=t.dontFlip,u=void 0!==l&&l;f(this,e),this.viewBox=n,this.scale=r,this.rotation=i,this.offsetX=o,this.offsetY=c;var h,d,p,g,m,y,v,b,_=(n[2]+n[0])/2,w=(n[3]+n[1])/2;switch(i=(i%=360)<0?i+360:i){case 180:h=-1,d=0,p=0,g=1;break;case 90:h=0,d=1,p=1,g=0;break;case 270:h=0,d=-1,p=-1,g=0;break;case 0:h=1,d=0,p=0,g=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}u&&(p=-p,g=-g),0===h?(m=Math.abs(w-n[1])*r+o,y=Math.abs(_-n[0])*r+c,v=Math.abs(n[3]-n[1])*r,b=Math.abs(n[2]-n[0])*r):(m=Math.abs(_-n[0])*r+o,y=Math.abs(w-n[1])*r+c,v=Math.abs(n[2]-n[0])*r,b=Math.abs(n[3]-n[1])*r),this.transform=[h*r,d*r,p*r,g*r,m-h*r*_-p*r*w,y-d*r*_-g*r*w],this.width=v,this.height=b}return m(e,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.scale,r=void 0===n?this.scale:n,i=t.rotation,a=void 0===i?this.rotation:i,o=t.offsetX,s=void 0===o?this.offsetX:o,c=t.offsetY,l=void 0===c?this.offsetY:c,u=t.dontFlip,h=void 0!==u&&u;return new e({viewBox:this.viewBox.slice(),scale:r,rotation:a,offsetX:s,offsetY:l,dontFlip:h})}},{key:"convertToViewportPoint",value:function(e,t){return a.Util.applyTransform([e,t],this.transform)}},{key:"convertToViewportRectangle",value:function(e){var t=a.Util.applyTransform([e[0],e[1]],this.transform),n=a.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}},{key:"convertToPdfPoint",value:function(e,t){return a.Util.applyInverseTransform([e,t],this.transform)}}]),e}(),t.RenderingCancelledException=function(e){!function(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}}),t&&l(e,t)}(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=h(t);if(n){var i=h(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return u(this,e)});function i(e,t){var n;return f(this,i),(n=r.call(this,e)).type=t,n}return i}(a.BaseException);var b,_={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function w(){return"undefined"!=typeof fetch&&"undefined"!=typeof Response&&"body"in Response.prototype&&"undefined"!=typeof ReadableStream}function C(e,t){try{var n=(t?new URL(e,t):new URL(e)).protocol;return"http:"===n||"https:"===n}catch(r){return!1}}t.LinkTarget=_,t.StatTimer=function(){function e(){f(this,e),this.started=Object.create(null),this.times=[]}return m(e,[{key:"time",value:function(e){e in this.started&&(0,a.warn)("Timer is already running for ".concat(e)),this.started[e]=Date.now()}},{key:"timeEnd",value:function(e){e in this.started||(0,a.warn)("Timer has not been started for ".concat(e)),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}},{key:"toString",value:function(){var e,t=[],n=0,r=o(this.times);try{for(r.s();!(e=r.n()).done;){var i=e.value.name;i.length>n&&(n=i.length)}}catch(u){r.e(u)}finally{r.f()}var a,s=o(this.times);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=c.end-c.start;t.push("".concat(c.name.padEnd(n)," ").concat(l,"ms\n"))}}catch(u){s.e(u)}finally{s.f()}return t.join("")}}]),e}(),t.PDFDateString=function(){function e(){f(this,e)}return m(e,null,[{key:"toDateObject",value:function(e){if(!e||!(0,a.isString)(e))return null;b||(b=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var t=b.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;var i=parseInt(t[3],10);i=i>=1&&i<=31?i:1;var o=parseInt(t[4],10);o=o>=0&&o<=23?o:0;var s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;var c=parseInt(t[6],10);c=c>=0&&c<=59?c:0;var l=t[7]||"Z",u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;var h=parseInt(t[9],10)||0;return h=h>=0&&h<=59?h:0,"-"===l?(o+=u,s+=h):"+"===l&&(o-=u,s-=h),new Date(Date.UTC(n,r,i,o,s,c))}}]),e}()},function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";(function(e){function t(e){return(t="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)}var n=function(e){var n,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=Object.create((t&&t.prototype instanceof m?t:m).prototype),a=new E(r||[]);return i._invoke=function(e,t,n){var r=h;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===i)throw a;return M()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=k(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?f:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=f,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=l;var h="suspendedStart",d="suspendedYield",p="executing",f="completed",g={};function m(){}function y(){}function v(){}var b={};b[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(P([])));w&&w!==r&&i.call(w,o)&&(b=w);var C=v.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e,n){function r(a,o,s,c){var l=u(e[a],e,o);if("throw"!==l.type){var h=l.arg,d=h.value;return d&&"object"===t(d)&&i.call(d,"__await")?n.resolve(d.__await).then(function(e){r("next",e,s,c)},function(e){r("throw",e,s,c)}):n.resolve(d).then(function(e){h.value=e,s(h)},function(e){return r("throw",e,s,c)})}c(l.arg)}var a;this._invoke=function(e,t){function i(){return new n(function(n,i){r(e,t,n,i)})}return a=a?a.then(i,i):i()}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return g;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=u(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,g;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,g):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function A(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 E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function P(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=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 r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),g}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(r){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(4)(e))},function(e,t,n){"use strict";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}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=h.INFOS&&console.log("Info: ".concat(e))},t.isArrayBuffer=function(e){return"object"===i(e)&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})},t.isBool=function(e){return"boolean"==typeof e},t.isEmptyObj=function(e){for(var t in e)return!1;return!0},t.isNum=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSameOrigin=function(e,t){var n;try{if(!(n=new URL(e)).origin||"null"===n.origin)return!1}catch(i){return!1}var r=new URL(t,n);return n.origin===r.origin},t.createValidAbsoluteUrl=function(e,t){if(!e)return null;try{var n=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(n))return n}catch(r){}return null},t.removeNullCharacters=function(e){return"string"!=typeof e?(p("The argument for removeNullCharacters must be a string."),e):e.replace(v,"")},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(d=e)},t.shadow=m,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=b,t.stringToPDFString=function(e){var t=e.length,n=[];if("\xfe"===e[0]&&"\xff"===e[1])for(var r=2;r=h.WARNINGS&&console.log("Warning: ".concat(e))}function f(e){throw new Error(e)}function g(e,t){e||f(t)}function m(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}var y=function(){function e(t){this.constructor===e&&f("Cannot initialize BaseException."),this.message=t,this.name=this.constructor.name}return e.prototype=new Error,e.constructor=e,e}();t.BaseException=y,t.PasswordException=function(e){o(n,e);var t=c(n);function n(e,r){var i;return a(this,n),(i=t.call(this,e)).code=r,i}return n}(y),t.UnknownErrorException=function(e){o(n,e);var t=c(n);function n(e,r){var i;return a(this,n),(i=t.call(this,e)).details=r,i}return n}(y),t.InvalidPDFException=function(e){o(n,e);var t=c(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(y),t.MissingPDFException=function(e){o(n,e);var t=c(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(y),t.UnexpectedResponseException=function(e){o(n,e);var t=c(n);function n(e,r){var i;return a(this,n),(i=t.call(this,e)).status=r,i}return n}(y),t.FormatError=function(e){o(n,e);var t=c(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(y),t.AbortException=function(e){o(n,e);var t=c(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(y);var v=/\x00/g;function b(e){g("string"==typeof e,"Invalid argument for stringToBytes");for(var t=e.length,n=new Uint8Array(t),r=0;re[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}},{key:"intersect",value:function(t,n){function r(e,t){return e-t}var i=[t[0],t[2],n[0],n[2]].sort(r),a=[t[1],t[3],n[1],n[3]].sort(r),o=[];return t=e.normalizeRect(t),n=e.normalizeRect(n),i[0]===t[0]&&i[1]===n[0]||i[0]===n[0]&&i[1]===t[0]?(o[0]=i[1],o[2]=i[2],a[0]===t[1]&&a[1]===n[1]||a[0]===n[1]&&a[1]===t[1]?(o[1]=a[1],o[3]=a[2],o):null):null}}])&&r(t,n),e}();var C,S=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364],x=(C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!n&&URL.createObjectURL){var r=new Blob([e],{type:t});return URL.createObjectURL(r)}for(var i="data:".concat(t,";base64,"),a=0,o=e.length;a>2,h=(3&s)<<4|c>>4,d=a+1>6:64,p=a+21?!!arguments[1]:!this.contains(e);return this[t?"add":"remove"](e),t}),function(){if(a&&s){var e=window.history.pushState,t=window.history.replaceState;window.history.pushState=function(t,n,r){e.apply(this,void 0===r?[t,n]:[t,n,r])},window.history.replaceState=function(e,n,r){t.apply(this,void 0===r?[e,n]:[e,n,r])}}}(),String.prototype.startsWith||n(53),String.prototype.endsWith||n(64),String.prototype.includes||n(66),Array.prototype.includes||n(68),Array.from||n(76),Object.assign||n(98),Math.log2||(Math.log2=n(101)),Number.isNaN||(Number.isNaN=n(103)),Number.isInteger||(Number.isInteger=n(105)),Uint8Array.prototype.slice||n(108),globalThis.Promise&&globalThis.Promise.allSettled||(globalThis.Promise=n(113)),globalThis.URL=n(136),function(){var e=!1;if("undefined"!=typeof ReadableStream)try{new ReadableStream({start:function(e){e.close()}}),e=!0}catch(t){}e||(globalThis.ReadableStream=n(143).ReadableStream)}(),globalThis.Map&&globalThis.Map.prototype.entries||(globalThis.Map=n(144)),globalThis.Set&&globalThis.Set.prototype.entries||(globalThis.Set=n(151)),globalThis.WeakMap||(globalThis.WeakMap=n(153)),globalThis.WeakSet||(globalThis.WeakSet=n(159)),String.prototype.codePointAt||n(161),String.fromCodePoint||(String.fromCodePoint=n(163)),globalThis.Symbol||n(165),String.prototype.padStart||n(188),String.prototype.padEnd||n(193),Object.values||(Object.values=n(195))}},function(e,t,n){"use strict";function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;var i="object"===("undefined"==typeof process?"undefined":r(process))&&process+""=="[object process]"&&!process.versions.nw&&!process.versions.electron;t.isNodeJS=i},function(e,t,n){n(9),e.exports=n(11)},function(e,t,n){n(10)({global:!0},{globalThis:n(11)})},function(e,t,n){var r=n(11),i=n(12).f,a=n(26),o=n(29),s=n(30),c=n(40),l=n(52);e.exports=function(e,t){var n,u,h,d,p,f=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(d=t[u],h=e.noTargetGet?(p=i(n,u))&&p.value:n[u],!l(g?u:f+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(e.sham||h&&h.sham)&&a(d,"sham",!0),o(n,u,d,e)}}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||Function("return this")()},function(e,t,n){var r=n(13),i=n(15),a=n(16),o=n(17),s=n(21),c=n(23),l=n(24),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(n){}if(c(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t,n){var r=n(14);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!r.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(18),i=n(20);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(14),i=n(19),a="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?a.call(e,""):Object(e)}:Object},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(22);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(13),i=n(14),a=n(25);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(11),i=n(22),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(13),i=n(27),a=n(16);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(13),i=n(24),a=n(28),o=n(21),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(11),i=n(26),a=n(23),o=n(30),s=n(31),c=n(33),l=c.get,u=c.enforce,h=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),u(n).source=h.join("string"==typeof t?t:"")),e!==r?(c?!d&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},function(e,t,n){var r=n(11),i=n(26);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(32),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(11),i=n(30),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},function(e,t,n){var r,i,a,o=n(34),s=n(11),c=n(22),l=n(26),u=n(23),h=n(35),d=n(39);if(o){var p=new(0,s.WeakMap),f=p.get,g=p.has,m=p.set;r=function(e,t){return m.call(p,e,t),t},i=function(e){return f.call(p,e)||{}},a=function(e){return g.call(p,e)}}else{var y=h("state");d[y]=!0,r=function(e,t){return l(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},a=function(e){return u(e,y)}}e.exports={set:r,get:i,has:a,enforce:function(e){return a(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(11),i=n(31),a=r.WeakMap;e.exports="function"==typeof a&&/native code/.test(i(a))},function(e,t,n){var r=n(36),i=n(38),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},function(e,t,n){var r=n(37),i=n(32);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t){e.exports={}},function(e,t,n){var r=n(23),i=n(41),a=n(12),o=n(27);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;lc;)r(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var r=n(17),i=n(47),a=n(49),o=function(e){return function(t,n,o){var s,c=r(t),l=i(c.length),u=a(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},function(e,t,n){var r=n(48),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(48),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(14),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},o=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},function(e,t,n){n(54);var r=n(61);e.exports=r("String","startsWith")},function(e,t,n){"use strict";var r,i=n(10),a=n(12).f,o=n(47),s=n(55),c=n(20),l=n(60),u=n(37),h="".startsWith,d=Math.min,p=l("startsWith");i({target:"String",proto:!0,forced:!(!u&&!p&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||p)},{startsWith:function(e){var t=String(c(this));s(e);var n=o(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return h?h.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){var r=n(56);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(22),i=n(19),a=n(57)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(11),i=n(36),a=n(23),o=n(38),s=n(58),c=n(59),l=i("wks"),u=r.Symbol,h=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(l[e]=s&&a(u,e)?u[e]:h("Symbol."+e)),l[e]}},function(e,t,n){var r=n(14);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},function(e,t,n){var r=n(58);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(57)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(i){}}return!1}},function(e,t,n){var r=n(11),i=n(62),a=Function.call;e.exports=function(e,t,n){return i(a,r[e].prototype[t],n)}},function(e,t,n){var r=n(63);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){n(65);var r=n(61);e.exports=r("String","endsWith")},function(e,t,n){"use strict";var r,i=n(10),a=n(12).f,o=n(47),s=n(55),c=n(20),l=n(60),u=n(37),h="".endsWith,d=Math.min,p=l("endsWith");i({target:"String",proto:!0,forced:!(!u&&!p&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||p)},{endsWith:function(e){var t=String(c(this));s(e);var n=arguments.length>1?arguments[1]:void 0,r=o(t.length),i=void 0===n?r:d(o(n),r),a=String(e);return h?h.call(t,a,i):t.slice(i-a.length,i)===a}})},function(e,t,n){n(67);var r=n(61);e.exports=r("String","includes")},function(e,t,n){"use strict";var r=n(10),i=n(55),a=n(20);r({target:"String",proto:!0,forced:!n(60)("includes")},{includes:function(e){return!!~String(a(this)).indexOf(i(e),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(69);var r=n(61);e.exports=r("Array","includes")},function(e,t,n){"use strict";var r=n(10),i=n(46).includes,a=n(70);r({target:"Array",proto:!0,forced:!n(75)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){var r=n(57),i=n(71),a=n(27),o=r("unscopables"),s=Array.prototype;null==s[o]&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},function(e,t,n){var r,i=n(28),a=n(72),o=n(50),s=n(39),c=n(74),l=n(25),u=n(35)("IE_PROTO"),h=function(){},d=function(e){return"